]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
Remove some items from the Recent additions list
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChar swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxClientDC swig_types[25]
2492 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493 #define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxColour swig_types[28]
2495 #define SWIGTYPE_p_wxColourDatabase swig_types[29]
2496 #define SWIGTYPE_p_wxCommandEvent swig_types[30]
2497 #define SWIGTYPE_p_wxContextMenuEvent swig_types[31]
2498 #define SWIGTYPE_p_wxControl swig_types[32]
2499 #define SWIGTYPE_p_wxControlWithItems swig_types[33]
2500 #define SWIGTYPE_p_wxCursor swig_types[34]
2501 #define SWIGTYPE_p_wxDC swig_types[35]
2502 #define SWIGTYPE_p_wxDCBrushChanger swig_types[36]
2503 #define SWIGTYPE_p_wxDCClipper swig_types[37]
2504 #define SWIGTYPE_p_wxDCOverlay swig_types[38]
2505 #define SWIGTYPE_p_wxDCPenChanger swig_types[39]
2506 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[40]
2507 #define SWIGTYPE_p_wxDash swig_types[41]
2508 #define SWIGTYPE_p_wxDateEvent swig_types[42]
2509 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDropFilesEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDuplexMode swig_types[45]
2512 #define SWIGTYPE_p_wxEffects swig_types[46]
2513 #define SWIGTYPE_p_wxEncodingConverter swig_types[47]
2514 #define SWIGTYPE_p_wxEraseEvent swig_types[48]
2515 #define SWIGTYPE_p_wxEvent swig_types[49]
2516 #define SWIGTYPE_p_wxEvtHandler swig_types[50]
2517 #define SWIGTYPE_p_wxFSFile swig_types[51]
2518 #define SWIGTYPE_p_wxFileSystem swig_types[52]
2519 #define SWIGTYPE_p_wxFlexGridSizer swig_types[53]
2520 #define SWIGTYPE_p_wxFocusEvent swig_types[54]
2521 #define SWIGTYPE_p_wxFont swig_types[55]
2522 #define SWIGTYPE_p_wxFontList swig_types[56]
2523 #define SWIGTYPE_p_wxFontMapper swig_types[57]
2524 #define SWIGTYPE_p_wxGBSizerItem swig_types[58]
2525 #define SWIGTYPE_p_wxGCDC swig_types[59]
2526 #define SWIGTYPE_p_wxGDIObjListBase swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObject swig_types[61]
2528 #define SWIGTYPE_p_wxGIFHandler swig_types[62]
2529 #define SWIGTYPE_p_wxGraphicsBrush swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsContext swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsFont swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsObject swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsPath swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPen swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[70]
2537 #define SWIGTYPE_p_wxGridBagSizer swig_types[71]
2538 #define SWIGTYPE_p_wxGridSizer swig_types[72]
2539 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[73]
2540 #define SWIGTYPE_p_wxICOHandler swig_types[74]
2541 #define SWIGTYPE_p_wxIcon swig_types[75]
2542 #define SWIGTYPE_p_wxIconBundle swig_types[76]
2543 #define SWIGTYPE_p_wxIconLocation swig_types[77]
2544 #define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545 #define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546 #define SWIGTYPE_p_wxImage swig_types[80]
2547 #define SWIGTYPE_p_wxImageHandler swig_types[81]
2548 #define SWIGTYPE_p_wxImageList swig_types[82]
2549 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550 #define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551 #define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552 #define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553 #define SWIGTYPE_p_wxLanguageInfo swig_types[87]
2554 #define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555 #define SWIGTYPE_p_wxLocale swig_types[89]
2556 #define SWIGTYPE_p_wxMask swig_types[90]
2557 #define SWIGTYPE_p_wxMaximizeEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMemoryDC swig_types[92]
2559 #define SWIGTYPE_p_wxMenu swig_types[93]
2560 #define SWIGTYPE_p_wxMenuBar swig_types[94]
2561 #define SWIGTYPE_p_wxMenuEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMenuItem swig_types[96]
2563 #define SWIGTYPE_p_wxMetaFile swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFileDC swig_types[98]
2565 #define SWIGTYPE_p_wxMirrorDC swig_types[99]
2566 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMoveEvent swig_types[103]
2570 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[104]
2571 #define SWIGTYPE_p_wxNativeFontInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativePixelData swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[107]
2574 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[108]
2575 #define SWIGTYPE_p_wxNcPaintEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577 #define SWIGTYPE_p_wxObject swig_types[111]
2578 #define SWIGTYPE_p_wxOverlay swig_types[112]
2579 #define SWIGTYPE_p_wxPCXHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPNGHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNMHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPaintDC swig_types[116]
2583 #define SWIGTYPE_p_wxPaintEvent swig_types[117]
2584 #define SWIGTYPE_p_wxPalette swig_types[118]
2585 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[119]
2586 #define SWIGTYPE_p_wxPaperSize swig_types[120]
2587 #define SWIGTYPE_p_wxPen swig_types[121]
2588 #define SWIGTYPE_p_wxPenList swig_types[122]
2589 #define SWIGTYPE_p_wxPixelDataBase swig_types[123]
2590 #define SWIGTYPE_p_wxPoint swig_types[124]
2591 #define SWIGTYPE_p_wxPoint2D swig_types[125]
2592 #define SWIGTYPE_p_wxPostScriptDC swig_types[126]
2593 #define SWIGTYPE_p_wxPrintData swig_types[127]
2594 #define SWIGTYPE_p_wxPrinterDC swig_types[128]
2595 #define SWIGTYPE_p_wxPseudoDC swig_types[129]
2596 #define SWIGTYPE_p_wxPyApp swig_types[130]
2597 #define SWIGTYPE_p_wxPyCommandEvent swig_types[131]
2598 #define SWIGTYPE_p_wxPyEvent swig_types[132]
2599 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[133]
2600 #define SWIGTYPE_p_wxPyImageHandler swig_types[134]
2601 #define SWIGTYPE_p_wxPyLocale swig_types[135]
2602 #define SWIGTYPE_p_wxPySizer swig_types[136]
2603 #define SWIGTYPE_p_wxPyValidator swig_types[137]
2604 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[138]
2605 #define SWIGTYPE_p_wxRect swig_types[139]
2606 #define SWIGTYPE_p_wxRect2D swig_types[140]
2607 #define SWIGTYPE_p_wxRegion swig_types[141]
2608 #define SWIGTYPE_p_wxRegionIterator swig_types[142]
2609 #define SWIGTYPE_p_wxRendererNative swig_types[143]
2610 #define SWIGTYPE_p_wxRendererVersion swig_types[144]
2611 #define SWIGTYPE_p_wxScreenDC swig_types[145]
2612 #define SWIGTYPE_p_wxScrollEvent swig_types[146]
2613 #define SWIGTYPE_p_wxScrollWinEvent swig_types[147]
2614 #define SWIGTYPE_p_wxSetCursorEvent swig_types[148]
2615 #define SWIGTYPE_p_wxShowEvent swig_types[149]
2616 #define SWIGTYPE_p_wxSize swig_types[150]
2617 #define SWIGTYPE_p_wxSizeEvent swig_types[151]
2618 #define SWIGTYPE_p_wxSizer swig_types[152]
2619 #define SWIGTYPE_p_wxSizerItem swig_types[153]
2620 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[154]
2621 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[155]
2622 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[156]
2623 #define SWIGTYPE_p_wxStockGDI swig_types[157]
2624 #define SWIGTYPE_p_wxString swig_types[158]
2625 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[159]
2626 #define SWIGTYPE_p_wxTGAHandler swig_types[160]
2627 #define SWIGTYPE_p_wxTIFFHandler swig_types[161]
2628 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[162]
2629 #define SWIGTYPE_p_wxValidator swig_types[163]
2630 #define SWIGTYPE_p_wxWindow swig_types[164]
2631 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[165]
2632 #define SWIGTYPE_p_wxWindowDC swig_types[166]
2633 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[167]
2634 #define SWIGTYPE_p_wxXPMHandler swig_types[168]
2635 static swig_type_info *swig_types[170];
2636 static swig_module_info swig_module = {swig_types, 169, 0, 0, 0, 0};
2637 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2638 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2639
2640 /* -------- TYPES TABLE (END) -------- */
2641
2642 #if (PY_VERSION_HEX <= 0x02000000)
2643 # if !defined(SWIG_PYTHON_CLASSIC)
2644 # error "This python version requires to use swig with the '-classic' option"
2645 # endif
2646 #endif
2647 #if (PY_VERSION_HEX <= 0x02020000)
2648 # error "This python version requires to use swig with the '-nomodern' option"
2649 #endif
2650 #if (PY_VERSION_HEX <= 0x02020000)
2651 # error "This python version requires to use swig with the '-nomodernargs' option"
2652 #endif
2653 #ifndef METH_O
2654 # error "This python version requires to use swig with the '-nofastunpack' option"
2655 #endif
2656
2657 /*-----------------------------------------------
2658 @(target):= _gdi_.so
2659 ------------------------------------------------*/
2660 #define SWIG_init init_gdi_
2661
2662 #define SWIG_name "_gdi_"
2663
2664 #define SWIGVERSION 0x010329
2665
2666
2667 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2668 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2669
2670
2671 #include <stdexcept>
2672
2673
2674 namespace swig {
2675 class PyObject_ptr {
2676 protected:
2677 PyObject *_obj;
2678
2679 public:
2680 PyObject_ptr() :_obj(0)
2681 {
2682 }
2683
2684 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2685 {
2686 Py_XINCREF(_obj);
2687 }
2688
2689 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2690 {
2691 if (initial_ref) Py_XINCREF(_obj);
2692 }
2693
2694 PyObject_ptr & operator=(const PyObject_ptr& item)
2695 {
2696 Py_XINCREF(item._obj);
2697 Py_XDECREF(_obj);
2698 _obj = item._obj;
2699 return *this;
2700 }
2701
2702 ~PyObject_ptr()
2703 {
2704 Py_XDECREF(_obj);
2705 }
2706
2707 operator PyObject *() const
2708 {
2709 return _obj;
2710 }
2711
2712 PyObject *operator->() const
2713 {
2714 return _obj;
2715 }
2716 };
2717 }
2718
2719
2720 namespace swig {
2721 struct PyObject_var : PyObject_ptr {
2722 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2723
2724 PyObject_var & operator = (PyObject* obj)
2725 {
2726 Py_XDECREF(_obj);
2727 _obj = obj;
2728 return *this;
2729 }
2730 };
2731 }
2732
2733
2734 #include "wx/wxPython/wxPython.h"
2735 #include "wx/wxPython/pyclasses.h"
2736
2737
2738 static const wxString wxPyEmptyString(wxEmptyString);
2739
2740 #define SWIG_From_long PyInt_FromLong
2741
2742
2743 SWIGINTERNINLINE PyObject *
2744 SWIG_From_int (int value)
2745 {
2746 return SWIG_From_long (value);
2747 }
2748
2749
2750 #include <limits.h>
2751 #ifndef LLONG_MIN
2752 # define LLONG_MIN LONG_LONG_MIN
2753 #endif
2754 #ifndef LLONG_MAX
2755 # define LLONG_MAX LONG_LONG_MAX
2756 #endif
2757 #ifndef ULLONG_MAX
2758 # define ULLONG_MAX ULONG_LONG_MAX
2759 #endif
2760
2761
2762 SWIGINTERN int
2763 SWIG_AsVal_long (PyObject* obj, long* val)
2764 {
2765 if (PyNumber_Check(obj)) {
2766 if (val) *val = PyInt_AsLong(obj);
2767 return SWIG_OK;
2768 }
2769 return SWIG_TypeError;
2770 }
2771
2772
2773 SWIGINTERN int
2774 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2775 {
2776 long v = 0;
2777 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2778 return SWIG_TypeError;
2779 }
2780 else if (val)
2781 *val = (unsigned long)v;
2782 return SWIG_OK;
2783 }
2784
2785
2786 SWIGINTERN int
2787 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2788 {
2789 unsigned long v;
2790 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2791 if (SWIG_IsOK(res)) {
2792 if ((v > UCHAR_MAX)) {
2793 return SWIG_OverflowError;
2794 } else {
2795 if (val) *val = static_cast< unsigned char >(v);
2796 }
2797 }
2798 return res;
2799 }
2800
2801
2802 SWIGINTERNINLINE PyObject*
2803 SWIG_From_unsigned_SS_long (unsigned long value)
2804 {
2805 return (value > LONG_MAX) ?
2806 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2807 }
2808
2809
2810 SWIGINTERNINLINE PyObject *
2811 SWIG_From_unsigned_SS_char (unsigned char value)
2812 {
2813 return SWIG_From_unsigned_SS_long (value);
2814 }
2815
2816 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2817 wxColour temp, *obj = &temp;
2818 if ( other == Py_None ) return false;
2819 if ( ! wxColour_helper(other, &obj) ) {
2820 PyErr_Clear();
2821 return false;
2822 }
2823 return self->operator==(*obj);
2824 }
2825 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2826 wxColour temp, *obj = &temp;
2827 if ( other == Py_None ) return true;
2828 if ( ! wxColour_helper(other, &obj)) {
2829 PyErr_Clear();
2830 return true;
2831 }
2832 return self->operator!=(*obj);
2833 }
2834
2835 SWIGINTERN int
2836 SWIG_AsVal_bool (PyObject *obj, bool *val)
2837 {
2838 if (obj == Py_True) {
2839 if (val) *val = true;
2840 return SWIG_OK;
2841 } else if (obj == Py_False) {
2842 if (val) *val = false;
2843 return SWIG_OK;
2844 } else {
2845 long v = 0;
2846 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2847 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2848 return res;
2849 }
2850 }
2851
2852 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2853 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2854 int red = -1;
2855 int green = -1;
2856 int blue = -1;
2857 int alpha = wxALPHA_OPAQUE;
2858 if (self->IsOk()) {
2859 red = self->Red();
2860 green = self->Green();
2861 blue = self->Blue();
2862 alpha = self->Alpha();
2863 }
2864 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2865 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2866 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2867 if (includeAlpha)
2868 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2869 return rv;
2870 }
2871 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2872 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2873 }
2874
2875 SWIGINTERN int
2876 SWIG_AsVal_int (PyObject * obj, int *val)
2877 {
2878 long v;
2879 int res = SWIG_AsVal_long (obj, &v);
2880 if (SWIG_IsOK(res)) {
2881 if ((v < INT_MIN || v > INT_MAX)) {
2882 return SWIG_OverflowError;
2883 } else {
2884 if (val) *val = static_cast< int >(v);
2885 }
2886 }
2887 return res;
2888 }
2889
2890 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2891 wxDash* dashes;
2892 int count = self->GetDashes(&dashes);
2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2894 PyObject* retval = PyList_New(0);
2895 for (int x=0; x<count; x++) {
2896 PyObject* pyint = PyInt_FromLong(dashes[x]);
2897 PyList_Append(retval, pyint);
2898 Py_DECREF(pyint);
2899 }
2900 wxPyEndBlockThreads(blocked);
2901 return retval;
2902 }
2903 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2904 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2905 int size = PyList_Size(pyDashes);
2906 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2907
2908 // black magic warning! The array of wxDashes needs to exist as
2909 // long as the pen does because wxPen does not copy the array. So
2910 // stick a copy in a Python string object and attach it to _self,
2911 // and then call SetDashes with a pointer to that array. Then
2912 // when the Python pen object is destroyed the array will be
2913 // cleaned up too.
2914 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2915 PyObject_SetAttrString(_self, "_dashes", strDashes);
2916
2917 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2918 delete [] dashes;
2919 Py_DECREF(strDashes);
2920 wxPyEndBlockThreads(blocked);
2921 }
2922 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2923 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2924
2925 #include <wx/rawbmp.h>
2926
2927
2928 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2929 // appears to me that the other platforms are already doing it, so I'll just
2930 // automatically do it for wxMSW here.
2931 #ifdef __WXMSW__
2932 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2933 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2934 #else
2935 #define wxPy_premultiply(p, a) (p)
2936 #define wxPy_unpremultiply(p, a) (p)
2937 #endif
2938
2939
2940 #include <wx/image.h>
2941
2942 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2943 char** cArray = NULL;
2944 int count;
2945
2946 if (!PyList_Check(listOfStrings)) {
2947 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2948 return NULL;
2949 }
2950 count = PyList_Size(listOfStrings);
2951 cArray = new char*[count];
2952
2953 for(int x=0; x<count; x++) {
2954 // TODO: Need some validation and error checking here
2955 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2956 }
2957 return cArray;
2958 }
2959
2960
2961 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2962 char** cArray = NULL;
2963 wxBitmap* bmp;
2964
2965 cArray = ConvertListOfStrings(listOfStrings);
2966 if (! cArray)
2967 return NULL;
2968 bmp = new wxBitmap(cArray);
2969 delete [] cArray;
2970 return bmp;
2971 }
2972 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2973 char* buf;
2974 Py_ssize_t length;
2975 PyString_AsStringAndSize(bits, &buf, &length);
2976 return new wxBitmap(buf, width, height, depth);
2977 }
2978 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2979 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2980 wxSize size(self->GetWidth(), self->GetHeight());
2981 return size;
2982 }
2983 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2984 wxMask *mask = new wxMask(*self, colour);
2985 self->SetMask(mask);
2986 }
2987 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2988 self->SetWidth(size.x);
2989 self->SetHeight(size.y);
2990 }
2991 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2992 int height=self->GetHeight();
2993 int width=self->GetWidth();
2994
2995 if (DATASIZE != width * height * 3) {
2996 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2997 }
2998 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
2999 if (! pixData) {
3000 // raise an exception...
3001 wxPyErr_SetString(PyExc_RuntimeError,
3002 "Failed to gain raw access to bitmap data.");
3003 return;
3004 }
3005
3006 wxNativePixelData::Iterator p(pixData);
3007 for (int y=0; y<height; y++) {
3008 wxNativePixelData::Iterator rowStart = p;
3009 for (int x=0; x<width; x++) {
3010 p.Red() = *(data++);
3011 p.Green() = *(data++);
3012 p.Blue() = *(data++);
3013 ++p;
3014 }
3015 p = rowStart;
3016 p.OffsetY(pixData, 1);
3017 }
3018 }
3019 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3020 int height=self->GetHeight();
3021 int width=self->GetWidth();
3022
3023 if (DATASIZE != width * height * 4) {
3024 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3025 }
3026 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3027 if (! pixData) {
3028 // raise an exception...
3029 wxPyErr_SetString(PyExc_RuntimeError,
3030 "Failed to gain raw access to bitmap data.");
3031 return;
3032 }
3033
3034 pixData.UseAlpha();
3035 wxAlphaPixelData::Iterator p(pixData);
3036 for (int y=0; y<height; y++) {
3037 wxAlphaPixelData::Iterator rowStart = p;
3038 for (int x=0; x<width; x++) {
3039 byte a = data[3];
3040 p.Red() = wxPy_premultiply(*(data++), a);
3041 p.Green() = wxPy_premultiply(*(data++), a);
3042 p.Blue() = wxPy_premultiply(*(data++), a);
3043 p.Alpha() = a; data++;
3044 ++p;
3045 }
3046 p = rowStart;
3047 p.OffsetY(pixData, 1);
3048 }
3049 }
3050 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3051 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3052
3053 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3054 buffer data, int DATASIZE,
3055 buffer alpha, int ALPHASIZE)
3056 {
3057 if (DATASIZE != width*height*3) {
3058 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3059 return NULL;
3060 }
3061
3062 if (ALPHASIZE != width*height) {
3063 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3064 return NULL;
3065 }
3066
3067 wxBitmap* bmp = new wxBitmap(width, height, 32);
3068 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3069 if (! pixData) {
3070 // raise an exception...
3071 wxPyErr_SetString(PyExc_RuntimeError,
3072 "Failed to gain raw access to bitmap data.");
3073 return NULL;
3074 }
3075
3076 pixData.UseAlpha();
3077 wxAlphaPixelData::Iterator p(pixData);
3078 for (int y=0; y<height; y++) {
3079 wxAlphaPixelData::Iterator rowStart = p;
3080 for (int x=0; x<width; x++) {
3081 byte a = *(alpha++);
3082 p.Red() = wxPy_premultiply(*(data++), a);
3083 p.Green() = wxPy_premultiply(*(data++), a);
3084 p.Blue() = wxPy_premultiply(*(data++), a);
3085 p.Alpha() = a;
3086 ++p;
3087 }
3088 p = rowStart;
3089 p.OffsetY(pixData, 1);
3090 }
3091 return bmp;
3092 }
3093
3094 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3095 {
3096 if (DATASIZE != width*height*3) {
3097 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3098 return NULL;
3099 }
3100
3101 wxBitmap* bmp = new wxBitmap(width, height, 24);
3102 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3103 if (! pixData) {
3104 // raise an exception...
3105 wxPyErr_SetString(PyExc_RuntimeError,
3106 "Failed to gain raw access to bitmap data.");
3107 return NULL;
3108 }
3109
3110 wxNativePixelData::Iterator p(pixData);
3111 for (int y=0; y<height; y++) {
3112 wxNativePixelData::Iterator rowStart = p;
3113 for (int x=0; x<width; x++) {
3114 p.Red() = *(data++);
3115 p.Green() = *(data++);
3116 p.Blue() = *(data++);
3117 ++p;
3118 }
3119 p = rowStart;
3120 p.OffsetY(pixData, 1);
3121 }
3122 return bmp;
3123 }
3124
3125
3126 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3127 {
3128 if (DATASIZE != width*height*4) {
3129 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3130 return NULL;
3131 }
3132
3133 wxBitmap* bmp = new wxBitmap(width, height, 32);
3134 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3135 if (! pixData) {
3136 // raise an exception...
3137 wxPyErr_SetString(PyExc_RuntimeError,
3138 "Failed to gain raw access to bitmap data.");
3139 return NULL;
3140 }
3141
3142 pixData.UseAlpha();
3143 wxAlphaPixelData::Iterator p(pixData);
3144 for (int y=0; y<height; y++) {
3145 wxAlphaPixelData::Iterator rowStart = p;
3146 for (int x=0; x<width; x++) {
3147 byte a = data[3];
3148 p.Red() = wxPy_premultiply(*(data++), a);
3149 p.Green() = wxPy_premultiply(*(data++), a);
3150 p.Blue() = wxPy_premultiply(*(data++), a);
3151 p.Alpha() = a; data++;
3152 ++p;
3153 }
3154 p = rowStart;
3155 p.OffsetY(pixData, 1);
3156 }
3157 return bmp;
3158 }
3159
3160
3161 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3162
3163 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3164 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3165 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3166 self->Red() = red;
3167 self->Green() = green;
3168 self->Blue() = blue;
3169 }
3170 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3171 PyObject* rv = PyTuple_New(3);
3172 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3173 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3174 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3175 return rv;
3176 }
3177
3178 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3179
3180 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3181 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3182 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3183 self->Red() = wxPy_premultiply(red, alpha);
3184 self->Green() = wxPy_premultiply(green, alpha);
3185 self->Blue() = wxPy_premultiply(blue, alpha);
3186 self->Alpha() = alpha;
3187 }
3188 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3189 PyObject* rv = PyTuple_New(4);
3190 int red = self->Red();
3191 int green = self->Green();
3192 int blue = self->Blue();
3193 int alpha = self->Alpha();
3194
3195 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3196 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3197 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3198 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3199 return rv;
3200 }
3201 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3202 if ( !colour.IsOk() )
3203 return new wxMask(bitmap, *wxBLACK);
3204 else
3205 return new wxMask(bitmap, colour);
3206 }
3207
3208 #include <wx/iconbndl.h>
3209
3210 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3211 wxIcon* icon = new wxIcon();
3212 icon->CopyFromBitmap(bmp);
3213 return icon;
3214 }
3215 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3216 char** cArray = NULL;
3217 wxIcon* icon;
3218
3219 cArray = ConvertListOfStrings(listOfStrings);
3220 if (! cArray)
3221 return NULL;
3222 icon = new wxIcon(cArray);
3223 delete [] cArray;
3224 return icon;
3225 }
3226 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3227 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3228
3229 return new wxIconLocation(*filename, num);
3230
3231
3232
3233 }
3234 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3235
3236 self->SetIndex(num);
3237
3238
3239
3240 }
3241 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3242
3243 return self->GetIndex();
3244
3245
3246
3247 }
3248 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3249 #ifdef __WXGTK__
3250 wxImage img(cursorName, type);
3251 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3252 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3253 return new wxCursor(img);
3254 #else
3255 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3256 #endif
3257 }
3258 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3259
3260
3261 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3262 (*self) ++;
3263 }
3264 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3265 return self->operator bool();
3266 }
3267
3268 #include <wx/fontutil.h>
3269 #include <wx/fontmap.h>
3270 #include <wx/fontenum.h>
3271
3272 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3273 return self->ToString();
3274 }
3275
3276 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3277 { wxPyRaiseNotImplemented(); return NULL; }
3278
3279 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3280 { wxPyRaiseNotImplemented(); return false; }
3281
3282
3283 SWIGINTERNINLINE PyObject *
3284 SWIG_From_size_t (size_t value)
3285 {
3286 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3287 }
3288
3289
3290 SWIGINTERNINLINE int
3291 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3292 {
3293 unsigned long v;
3294 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3295 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3296 return res;
3297 }
3298
3299 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3300 wxFontEncoding alt_enc;
3301 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3302 return PyInt_FromLong(alt_enc);
3303 else {
3304 Py_INCREF(Py_None);
3305 return Py_None;
3306 }
3307 }
3308 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3309 wxNativeFontInfo nfi;
3310 nfi.FromString(info);
3311 return new wxFont(nfi);
3312 }
3313 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3314 return wxFont::New(pointSize, family, flags, face, encoding);
3315 }
3316 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3317 return wxFontBase::New(pixelSize, family,
3318 style, weight, underlined,
3319 face, encoding);
3320 }
3321 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3322 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3323 }
3324 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3325 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3326
3327 class wxPyFontEnumerator : public wxFontEnumerator {
3328 public:
3329 wxPyFontEnumerator() {}
3330 ~wxPyFontEnumerator() {}
3331
3332 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3333 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3334
3335 PYPRIVATE;
3336 };
3337
3338 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3339 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3340
3341
3342 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3343 PyObject* ret;
3344 wxArrayString arr = wxFontEnumerator::GetEncodings();
3345 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3346 ret = wxArrayString2PyList_helper(arr);
3347 wxPyEndBlockThreads(blocked);
3348 return ret;
3349 }
3350 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3351 PyObject* ret;
3352 wxArrayString arr = wxFontEnumerator::GetFacenames();
3353 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3354 ret = wxArrayString2PyList_helper(arr);
3355 wxPyEndBlockThreads(blocked);
3356 return ret;
3357 }
3358
3359 #include <locale.h>
3360
3361 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3362 wxLocale* loc;
3363 if (language == -1)
3364 loc = new wxLocale();
3365 else
3366 loc = new wxLocale(language, flags);
3367 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3368 // for the floating point conversions and such to work right.
3369 #if PY_VERSION_HEX < 0x02040000
3370 setlocale(LC_NUMERIC, "C");
3371 #endif
3372 return loc;
3373 }
3374 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3375 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3376 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3377 // for the floating point conversions and such to work right.
3378 #if PY_VERSION_HEX < 0x02040000
3379 setlocale(LC_NUMERIC, "C");
3380 #endif
3381 return rc;
3382 }
3383 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3384 bool rc = self->Init(language, flags);
3385 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3386 // for the floating point conversions and such to work right.
3387 #if PY_VERSION_HEX < 0x02040000
3388 setlocale(LC_NUMERIC, "C");
3389 #endif
3390 return rc;
3391 }
3392
3393 class wxPyLocale : public wxLocale
3394 {
3395 public:
3396 wxPyLocale();
3397
3398 wxPyLocale(const wxChar *szName, // name (for messages)
3399 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3400 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3401 bool bLoadDefault = true, // preload wxstd.mo?
3402 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3403
3404 wxPyLocale(int language, // wxLanguage id or custom language
3405 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3406
3407 ~wxPyLocale();
3408
3409 virtual const wxChar *GetString(const wxChar *szOrigString,
3410 const wxChar *szDomain = NULL) const;
3411 virtual const wxChar *GetString(const wxChar *szOrigString,
3412 const wxChar *szOrigString2, size_t n,
3413 const wxChar *szDomain = NULL) const;
3414
3415 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3416 const wxChar *szDomain = NULL) const;
3417 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3418 const wxChar *szOrigString2, size_t n,
3419 const wxChar *szDomain = NULL) const;
3420
3421 PYPRIVATE;
3422 private:
3423 DECLARE_NO_COPY_CLASS(wxPyLocale)
3424 };
3425
3426 wxPyLocale::wxPyLocale() : wxLocale()
3427 {
3428 }
3429
3430 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3431 const wxChar *szShort, // dir prefix (for msg files)
3432 const wxChar *szLocale, // locale (for setlocale)
3433 bool bLoadDefault, // preload wxstd.mo?
3434 bool bConvertEncoding) // convert Win<->Unix if necessary?
3435 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3436 {
3437 }
3438
3439 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3440 int flags) : wxLocale(language, flags)
3441 {
3442 }
3443
3444 wxPyLocale::~wxPyLocale()
3445 {
3446 }
3447
3448 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3449 const wxChar *szDomain) const
3450 {
3451 wxChar *str = GetSingularString(szOrigString, szDomain);
3452 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3453 }
3454
3455 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3456 const wxChar *szOrigString2, size_t n,
3457 const wxChar *szDomain) const
3458 {
3459 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3460 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3461 }
3462
3463 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3464 const wxChar *szDomain) const
3465 {
3466 bool found;
3467 static wxString str;
3468 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.
3469 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3470 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3471 PyObject* param1 = wx2PyString(szOrigString);
3472 PyObject* param2 = wx2PyString(szDomain);
3473 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3474 Py_DECREF(param1);
3475 Py_DECREF(param2);
3476 if (ret) {
3477 str = Py2wxString(ret);
3478 Py_DECREF(ret);
3479 }
3480 }
3481 wxPyEndBlockThreads(blocked);
3482 return (found ? (wxChar*)str.c_str() : NULL);
3483 }
3484
3485 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3486 const wxChar *szOrigString2, size_t n,
3487 const wxChar *szDomain) const
3488 {
3489 bool found;
3490 static wxString str;
3491 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.
3492 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3493 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3494 PyObject* param1 = wx2PyString(szOrigString);
3495 PyObject* param2 = wx2PyString(szOrigString2);
3496 PyObject* param4 = wx2PyString(szDomain);
3497 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3498 Py_DECREF(param1);
3499 Py_DECREF(param2);
3500 Py_DECREF(param4);
3501 if( ret) {
3502 str = Py2wxString(ret);
3503 Py_DECREF(ret);
3504 }
3505 }
3506 wxPyEndBlockThreads(blocked);
3507 return (found ? (wxChar*)str.c_str() : NULL);
3508 }
3509
3510 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3511 wxPyLocale* loc;
3512 if (language == -1)
3513 loc = new wxPyLocale();
3514 else
3515 loc = new wxPyLocale(language, flags);
3516 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3517 // for the floating point conversions and such to work right.
3518 #if PY_VERSION_HEX < 0x02040000
3519 setlocale(LC_NUMERIC, "C");
3520 #endif
3521 return loc;
3522 }
3523
3524 #include "wx/wxPython/pydrawxxx.h"
3525
3526 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3527 wxColour col;
3528 self->GetPixel(x, y, &col);
3529 return col;
3530 }
3531 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3532 wxColour col;
3533 self->GetPixel(pt, &col);
3534 return col;
3535 }
3536
3537 SWIGINTERN int
3538 SWIG_AsVal_double (PyObject *obj, double* val)
3539 {
3540 if (PyNumber_Check(obj)) {
3541 if (val) *val = PyFloat_AsDouble(obj);
3542 return SWIG_OK;
3543 }
3544 return SWIG_TypeError;
3545 }
3546
3547 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3548 wxRect rv;
3549 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3550 return rv;
3551 }
3552 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3553 wxRect rect;
3554 self->GetClippingBox(rect);
3555 return rect;
3556 }
3557 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3558 wxArrayInt widths;
3559 self->GetPartialTextExtents(text, widths);
3560 return widths;
3561 }
3562
3563 #define SWIG_From_double PyFloat_FromDouble
3564
3565 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3566 self->SetLogicalOrigin(point.x, point.y);
3567 }
3568 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3569 self->SetDeviceOrigin(point.x, point.y);
3570 }
3571 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3572 self->CalcBoundingBox(point.x, point.y);
3573 }
3574 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3575 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3576 }
3577 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3578 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3579 }
3580 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3581 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3582 }
3583 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3584 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3585 }
3586 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3587 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3588 }
3589 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3590 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3591 }
3592
3593 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3594 *x1 = dc->MinX();
3595 *y1 = dc->MinY();
3596 *x2 = dc->MaxX();
3597 *y2 = dc->MaxY();
3598 }
3599
3600
3601 #include <wx/dcbuffer.h>
3602
3603
3604 #include <wx/dcps.h>
3605
3606
3607 #include <wx/metafile.h>
3608
3609
3610 #include <wx/graphics.h>
3611
3612
3613 #if !wxUSE_GRAPHICS_CONTEXT
3614 // C++ stub classes for platforms or build configurations that don't have
3615 // wxGraphicsContext yet.
3616
3617 class wxGraphicsRenderer;
3618 class wxGraphicsMatrix;
3619
3620
3621 class wxGraphicsObject : public wxObject
3622 {
3623 public :
3624 wxGraphicsObject() {}
3625 wxGraphicsObject( wxGraphicsRenderer* ) {
3626 PyErr_SetString(PyExc_NotImplementedError,
3627 "wx.GraphicsObject is not available on this platform.");
3628 }
3629 wxGraphicsObject( const wxGraphicsObject& ) {}
3630 virtual ~wxGraphicsObject() {}
3631 bool IsNull() const { return false; }
3632 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3633 } ;
3634
3635
3636
3637 class wxGraphicsPen : public wxGraphicsObject
3638 {
3639 public:
3640 wxGraphicsPen() {}
3641 virtual ~wxGraphicsPen() {}
3642 } ;
3643 wxGraphicsPen wxNullGraphicsPen;
3644
3645
3646
3647 class wxGraphicsBrush : public wxGraphicsObject
3648 {
3649 public :
3650 wxGraphicsBrush() {}
3651 virtual ~wxGraphicsBrush() {}
3652 } ;
3653 wxGraphicsBrush wxNullGraphicsBrush;
3654
3655
3656
3657 class wxGraphicsFont : public wxGraphicsObject
3658 {
3659 public :
3660 wxGraphicsFont() {}
3661 virtual ~wxGraphicsFont() {}
3662 } ;
3663 wxGraphicsFont wxNullGraphicsFont;
3664
3665
3666
3667 class wxGraphicsPath : public wxGraphicsObject
3668 {
3669 public :
3670 wxGraphicsPath() { }
3671 wxGraphicsPath(wxGraphicsRenderer* ) {
3672 PyErr_SetString(PyExc_NotImplementedError,
3673 "wx.GraphicsPath is not available on this platform.");
3674 }
3675 virtual ~wxGraphicsPath() {}
3676
3677 void MoveToPoint( wxDouble, wxDouble ) {}
3678 void MoveToPoint( const wxPoint2DDouble& ) {}
3679 void AddLineToPoint( wxDouble, wxDouble ) {}
3680 void AddLineToPoint( const wxPoint2DDouble& ) {}
3681 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3682 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3683 void AddPath( const wxGraphicsPath& ) {}
3684 void CloseSubpath() {}
3685 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3686 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
3687 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3688 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3689
3690 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3691 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3692 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3693 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3694
3695 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3696 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3697 void * GetNativePath() const { return NULL; }
3698 void UnGetNativePath(void *) const {}
3699 void Transform( const wxGraphicsMatrix& ) {}
3700 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3701 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
3702
3703 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3704 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
3705 };
3706 wxGraphicsPath wxNullGraphicsPath;
3707
3708
3709 class wxGraphicsMatrix : public wxGraphicsObject
3710 {
3711 public :
3712 wxGraphicsMatrix() { }
3713 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3714 PyErr_SetString(PyExc_NotImplementedError,
3715 "wx.GraphicsMatrix is not available on this platform.");
3716 }
3717 virtual ~wxGraphicsMatrix() {}
3718 virtual void Concat( const wxGraphicsMatrix & ) {}
3719 virtual void Copy( const wxGraphicsMatrix & ) {}
3720 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3721 wxDouble , wxDouble ) {}
3722 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3723 wxDouble*, wxDouble*, wxDouble*) {}
3724 virtual void Invert() {}
3725 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3726 virtual bool IsIdentity() const { return false; }
3727 virtual void Translate( wxDouble , wxDouble ) {}
3728 virtual void Scale( wxDouble , wxDouble ) {}
3729 virtual void Rotate( wxDouble ) {}
3730 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3731 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
3732 virtual void * GetNativeMatrix() const { return NULL; }
3733 };
3734 wxGraphicsMatrix wxNullGraphicsMatrix;
3735
3736
3737 class wxGraphicsContext : public wxGraphicsObject
3738 {
3739 public:
3740
3741 wxGraphicsContext(wxGraphicsRenderer* ) {
3742 PyErr_SetString(PyExc_NotImplementedError,
3743 "wx.GraphicsContext is not available on this platform.");
3744 }
3745
3746 virtual ~wxGraphicsContext() {}
3747
3748 static wxGraphicsContext* Create() {
3749 PyErr_SetString(PyExc_NotImplementedError,
3750 "wx.GraphicsContext is not available on this platform.");
3751 return NULL;
3752 }
3753 static wxGraphicsContext* Create( const wxWindowDC& ) {
3754 PyErr_SetString(PyExc_NotImplementedError,
3755 "wx.GraphicsContext is not available on this platform.");
3756 return NULL;
3757 }
3758
3759 static wxGraphicsContext* CreateFromNative( void * ) {
3760 PyErr_SetString(PyExc_NotImplementedError,
3761 "wx.GraphicsContext is not available on this platform.");
3762 return NULL;
3763 }
3764
3765 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3766 PyErr_SetString(PyExc_NotImplementedError,
3767 "wx.GraphicsContext is not available on this platform.");
3768 return NULL;
3769 }
3770
3771 static wxGraphicsContext* Create( wxWindow* ) {
3772 PyErr_SetString(PyExc_NotImplementedError,
3773 "wx.GraphicsContext is not available on this platform.");
3774 return NULL;
3775 }
3776
3777 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3778
3779 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3780
3781 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3782
3783 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3784 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3785
3786 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3787 wxDouble xc, wxDouble yc, wxDouble radius,
3788 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
3789
3790 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
3791
3792 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3793 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
3794
3795 virtual void PushState() {}
3796 virtual void PopState() {}
3797 virtual void Clip( const wxRegion & ) {}
3798 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3799 virtual void ResetClip() {}
3800 virtual void * GetNativeContext() { return NULL; }
3801 virtual int GetLogicalFunction() const { return 0; }
3802 virtual bool SetLogicalFunction(int ) {}
3803 virtual void Translate( wxDouble , wxDouble ) {}
3804 virtual void Scale( wxDouble , wxDouble ) {}
3805 virtual void Rotate( wxDouble ) {}
3806 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3807 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3808 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
3809
3810 virtual void SetPen( const wxGraphicsPen& ) {}
3811 void SetPen( const wxPen& ) {}
3812
3813 virtual void SetBrush( const wxGraphicsBrush& ) {}
3814 void SetBrush( const wxBrush& ) {}
3815
3816 virtual void SetFont( const wxGraphicsFont& ) {}
3817 void SetFont( const wxFont&, const wxColour& ) {}
3818
3819 virtual void StrokePath( const wxGraphicsPath & ) {}
3820 virtual void FillPath( const wxGraphicsPath &, int ) {}
3821 virtual void DrawPath( const wxGraphicsPath &, int ) {}
3822
3823 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3824 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3825 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3826 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
3827 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3828 wxDouble *, wxDouble * ) const {}
3829 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3830
3831 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3832 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3833
3834 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3835 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3836 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3837 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3838 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3839 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3840 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3841 virtual bool ShouldOffset() const { return false; }
3842 };
3843
3844
3845 class wxGraphicsRenderer : public wxObject
3846 {
3847 public :
3848 wxGraphicsRenderer() {
3849 PyErr_SetString(PyExc_NotImplementedError,
3850 "wx.GraphicsRenderer is not available on this platform.");
3851 }
3852
3853 virtual ~wxGraphicsRenderer() {}
3854
3855 static wxGraphicsRenderer* GetDefaultRenderer() {
3856 PyErr_SetString(PyExc_NotImplementedError,
3857 "wx.GraphicsRenderer is not available on this platform.");
3858 return NULL;
3859 }
3860
3861 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3862 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3863 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3864 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3865 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
3866
3867 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3868
3869 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3870 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
3871
3872 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3873 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3874 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3875 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3876 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3877 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3878 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
3879 };
3880
3881
3882
3883 class wxGCDC: public wxWindowDC
3884 {
3885 public:
3886 wxGCDC(const wxWindowDC&) {
3887 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3888 PyErr_SetString(PyExc_NotImplementedError,
3889 "wxGCDC is not available on this platform.");
3890 wxPyEndBlockThreads(blocked);
3891 }
3892
3893 wxGCDC(const wxWindow*) {
3894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3895 PyErr_SetString(PyExc_NotImplementedError,
3896 "wxGCDC is not available on this platform.");
3897 wxPyEndBlockThreads(blocked);
3898 }
3899
3900 wxGCDC() {
3901 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3902 PyErr_SetString(PyExc_NotImplementedError,
3903 "wxGCDC is not available on this platform.");
3904 wxPyEndBlockThreads(blocked);
3905 }
3906
3907 virtual ~wxGCDC() {}
3908
3909 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3910 void SetGraphicsContext( wxGraphicsContext* ) {}
3911 };
3912
3913 #endif
3914
3915 SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3916 if ( !backgroundBrush.IsNull() )
3917 self->DrawText(str, x, y, backgroundBrush);
3918 else
3919 self->DrawText(str, x, y);
3920 }
3921 SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3922 if ( !backgroundBrush.IsNull() )
3923 self->DrawText(str, x, y, angle, backgroundBrush);
3924 else
3925 self->DrawText(str, x, y, angle);
3926 }
3927 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3928 wxDouble width = 0.0,
3929 height = 0.0;
3930 self->GetTextExtent(text, &width, &height, NULL, NULL);
3931 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3932 PyObject* rv = PyTuple_New(2);
3933 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3934 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3935 return rv;
3936 }
3937 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3938 wxArrayDouble widths;
3939 self->GetPartialTextExtents(text, widths);
3940 return widths;
3941 }
3942 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3943 size_t c1, c2, count;
3944 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3945 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3946
3947 if ( beginP != NULL && endP != NULL )
3948 {
3949 count = wxMin(c1, c2);
3950 self->StrokeLines(count, beginP, endP);
3951 }
3952 delete [] beginP;
3953 delete [] endP;
3954 }
3955
3956 #include "wx/dcgraph.h"
3957
3958
3959 #include <wx/overlay.h>
3960
3961
3962
3963 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3964 self->AddColour(name, wxColour(red, green, blue));
3965 }
3966
3967 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3968 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3969 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3970 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3971
3972
3973 #include <wx/effects.h>
3974
3975
3976 #include "wx/renderer.h"
3977
3978
3979 SWIGINTERNINLINE PyObject*
3980 SWIG_From_bool (bool value)
3981 {
3982 return PyBool_FromLong(value ? 1 : 0);
3983 }
3984
3985
3986 #include "wx/wxPython/pseudodc.h"
3987
3988 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3989 wxRect rect;
3990 self->GetIdBounds(id, rect);
3991 return rect;
3992 }
3993 #ifdef __cplusplus
3994 extern "C" {
3995 #endif
3996 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3997 PyObject *resultobj = 0;
3998 wxGDIObject *result = 0 ;
3999
4000 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4001 {
4002 if (!wxPyCheckForApp()) SWIG_fail;
4003 PyThreadState* __tstate = wxPyBeginAllowThreads();
4004 result = (wxGDIObject *)new wxGDIObject();
4005 wxPyEndAllowThreads(__tstate);
4006 if (PyErr_Occurred()) SWIG_fail;
4007 }
4008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4009 return resultobj;
4010 fail:
4011 return NULL;
4012 }
4013
4014
4015 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4016 PyObject *resultobj = 0;
4017 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4018 void *argp1 = 0 ;
4019 int res1 = 0 ;
4020 PyObject *swig_obj[1] ;
4021
4022 if (!args) SWIG_fail;
4023 swig_obj[0] = args;
4024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4025 if (!SWIG_IsOK(res1)) {
4026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4027 }
4028 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4029 {
4030 PyThreadState* __tstate = wxPyBeginAllowThreads();
4031 delete arg1;
4032
4033 wxPyEndAllowThreads(__tstate);
4034 if (PyErr_Occurred()) SWIG_fail;
4035 }
4036 resultobj = SWIG_Py_Void();
4037 return resultobj;
4038 fail:
4039 return NULL;
4040 }
4041
4042
4043 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4044 PyObject *resultobj = 0;
4045 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4046 bool result;
4047 void *argp1 = 0 ;
4048 int res1 = 0 ;
4049 PyObject *swig_obj[1] ;
4050
4051 if (!args) SWIG_fail;
4052 swig_obj[0] = args;
4053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4054 if (!SWIG_IsOK(res1)) {
4055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4056 }
4057 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4058 {
4059 PyThreadState* __tstate = wxPyBeginAllowThreads();
4060 result = (bool)(arg1)->IsNull();
4061 wxPyEndAllowThreads(__tstate);
4062 if (PyErr_Occurred()) SWIG_fail;
4063 }
4064 {
4065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4066 }
4067 return resultobj;
4068 fail:
4069 return NULL;
4070 }
4071
4072
4073 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4074 PyObject *obj;
4075 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4076 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4077 return SWIG_Py_Void();
4078 }
4079
4080 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4081 return SWIG_Python_InitShadowInstance(args);
4082 }
4083
4084 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4085 PyObject *resultobj = 0;
4086 byte arg1 = (byte) 0 ;
4087 byte arg2 = (byte) 0 ;
4088 byte arg3 = (byte) 0 ;
4089 byte arg4 = (byte) wxALPHA_OPAQUE ;
4090 wxColour *result = 0 ;
4091 unsigned char val1 ;
4092 int ecode1 = 0 ;
4093 unsigned char val2 ;
4094 int ecode2 = 0 ;
4095 unsigned char val3 ;
4096 int ecode3 = 0 ;
4097 unsigned char val4 ;
4098 int ecode4 = 0 ;
4099 PyObject * obj0 = 0 ;
4100 PyObject * obj1 = 0 ;
4101 PyObject * obj2 = 0 ;
4102 PyObject * obj3 = 0 ;
4103 char * kwnames[] = {
4104 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4105 };
4106
4107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4108 if (obj0) {
4109 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4110 if (!SWIG_IsOK(ecode1)) {
4111 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4112 }
4113 arg1 = static_cast< byte >(val1);
4114 }
4115 if (obj1) {
4116 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4117 if (!SWIG_IsOK(ecode2)) {
4118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4119 }
4120 arg2 = static_cast< byte >(val2);
4121 }
4122 if (obj2) {
4123 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4124 if (!SWIG_IsOK(ecode3)) {
4125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4126 }
4127 arg3 = static_cast< byte >(val3);
4128 }
4129 if (obj3) {
4130 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4131 if (!SWIG_IsOK(ecode4)) {
4132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4133 }
4134 arg4 = static_cast< byte >(val4);
4135 }
4136 {
4137 PyThreadState* __tstate = wxPyBeginAllowThreads();
4138 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4139 wxPyEndAllowThreads(__tstate);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 }
4142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4143 return resultobj;
4144 fail:
4145 return NULL;
4146 }
4147
4148
4149 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4150 PyObject *resultobj = 0;
4151 wxString *arg1 = 0 ;
4152 wxColour *result = 0 ;
4153 bool temp1 = false ;
4154 PyObject * obj0 = 0 ;
4155 char * kwnames[] = {
4156 (char *) "colorName", NULL
4157 };
4158
4159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4160 {
4161 arg1 = wxString_in_helper(obj0);
4162 if (arg1 == NULL) SWIG_fail;
4163 temp1 = true;
4164 }
4165 {
4166 if (!wxPyCheckForApp()) SWIG_fail;
4167 PyThreadState* __tstate = wxPyBeginAllowThreads();
4168 result = (wxColour *)new wxColour((wxString const &)*arg1);
4169 wxPyEndAllowThreads(__tstate);
4170 if (PyErr_Occurred()) SWIG_fail;
4171 }
4172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4173 {
4174 if (temp1)
4175 delete arg1;
4176 }
4177 return resultobj;
4178 fail:
4179 {
4180 if (temp1)
4181 delete arg1;
4182 }
4183 return NULL;
4184 }
4185
4186
4187 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4188 PyObject *resultobj = 0;
4189 unsigned long arg1 ;
4190 wxColour *result = 0 ;
4191 unsigned long val1 ;
4192 int ecode1 = 0 ;
4193 PyObject * obj0 = 0 ;
4194 char * kwnames[] = {
4195 (char *) "colRGB", NULL
4196 };
4197
4198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4199 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4200 if (!SWIG_IsOK(ecode1)) {
4201 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4202 }
4203 arg1 = static_cast< unsigned long >(val1);
4204 {
4205 PyThreadState* __tstate = wxPyBeginAllowThreads();
4206 result = (wxColour *)new wxColour(arg1);
4207 wxPyEndAllowThreads(__tstate);
4208 if (PyErr_Occurred()) SWIG_fail;
4209 }
4210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4211 return resultobj;
4212 fail:
4213 return NULL;
4214 }
4215
4216
4217 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4218 PyObject *resultobj = 0;
4219 wxColour *arg1 = (wxColour *) 0 ;
4220 void *argp1 = 0 ;
4221 int res1 = 0 ;
4222 PyObject *swig_obj[1] ;
4223
4224 if (!args) SWIG_fail;
4225 swig_obj[0] = args;
4226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4227 if (!SWIG_IsOK(res1)) {
4228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4229 }
4230 arg1 = reinterpret_cast< wxColour * >(argp1);
4231 {
4232 PyThreadState* __tstate = wxPyBeginAllowThreads();
4233 delete arg1;
4234
4235 wxPyEndAllowThreads(__tstate);
4236 if (PyErr_Occurred()) SWIG_fail;
4237 }
4238 resultobj = SWIG_Py_Void();
4239 return resultobj;
4240 fail:
4241 return NULL;
4242 }
4243
4244
4245 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4246 PyObject *resultobj = 0;
4247 wxColour *arg1 = (wxColour *) 0 ;
4248 byte result;
4249 void *argp1 = 0 ;
4250 int res1 = 0 ;
4251 PyObject *swig_obj[1] ;
4252
4253 if (!args) SWIG_fail;
4254 swig_obj[0] = args;
4255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4256 if (!SWIG_IsOK(res1)) {
4257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4258 }
4259 arg1 = reinterpret_cast< wxColour * >(argp1);
4260 {
4261 PyThreadState* __tstate = wxPyBeginAllowThreads();
4262 result = (byte)(arg1)->Red();
4263 wxPyEndAllowThreads(__tstate);
4264 if (PyErr_Occurred()) SWIG_fail;
4265 }
4266 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4267 return resultobj;
4268 fail:
4269 return NULL;
4270 }
4271
4272
4273 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4274 PyObject *resultobj = 0;
4275 wxColour *arg1 = (wxColour *) 0 ;
4276 byte result;
4277 void *argp1 = 0 ;
4278 int res1 = 0 ;
4279 PyObject *swig_obj[1] ;
4280
4281 if (!args) SWIG_fail;
4282 swig_obj[0] = args;
4283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4284 if (!SWIG_IsOK(res1)) {
4285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4286 }
4287 arg1 = reinterpret_cast< wxColour * >(argp1);
4288 {
4289 PyThreadState* __tstate = wxPyBeginAllowThreads();
4290 result = (byte)(arg1)->Green();
4291 wxPyEndAllowThreads(__tstate);
4292 if (PyErr_Occurred()) SWIG_fail;
4293 }
4294 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4295 return resultobj;
4296 fail:
4297 return NULL;
4298 }
4299
4300
4301 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4302 PyObject *resultobj = 0;
4303 wxColour *arg1 = (wxColour *) 0 ;
4304 byte result;
4305 void *argp1 = 0 ;
4306 int res1 = 0 ;
4307 PyObject *swig_obj[1] ;
4308
4309 if (!args) SWIG_fail;
4310 swig_obj[0] = args;
4311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4312 if (!SWIG_IsOK(res1)) {
4313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4314 }
4315 arg1 = reinterpret_cast< wxColour * >(argp1);
4316 {
4317 PyThreadState* __tstate = wxPyBeginAllowThreads();
4318 result = (byte)(arg1)->Blue();
4319 wxPyEndAllowThreads(__tstate);
4320 if (PyErr_Occurred()) SWIG_fail;
4321 }
4322 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4323 return resultobj;
4324 fail:
4325 return NULL;
4326 }
4327
4328
4329 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4330 PyObject *resultobj = 0;
4331 wxColour *arg1 = (wxColour *) 0 ;
4332 byte result;
4333 void *argp1 = 0 ;
4334 int res1 = 0 ;
4335 PyObject *swig_obj[1] ;
4336
4337 if (!args) SWIG_fail;
4338 swig_obj[0] = args;
4339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4340 if (!SWIG_IsOK(res1)) {
4341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4342 }
4343 arg1 = reinterpret_cast< wxColour * >(argp1);
4344 {
4345 PyThreadState* __tstate = wxPyBeginAllowThreads();
4346 result = (byte)(arg1)->Alpha();
4347 wxPyEndAllowThreads(__tstate);
4348 if (PyErr_Occurred()) SWIG_fail;
4349 }
4350 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4351 return resultobj;
4352 fail:
4353 return NULL;
4354 }
4355
4356
4357 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4358 PyObject *resultobj = 0;
4359 wxColour *arg1 = (wxColour *) 0 ;
4360 bool result;
4361 void *argp1 = 0 ;
4362 int res1 = 0 ;
4363 PyObject *swig_obj[1] ;
4364
4365 if (!args) SWIG_fail;
4366 swig_obj[0] = args;
4367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4368 if (!SWIG_IsOK(res1)) {
4369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4370 }
4371 arg1 = reinterpret_cast< wxColour * >(argp1);
4372 {
4373 PyThreadState* __tstate = wxPyBeginAllowThreads();
4374 result = (bool)(arg1)->IsOk();
4375 wxPyEndAllowThreads(__tstate);
4376 if (PyErr_Occurred()) SWIG_fail;
4377 }
4378 {
4379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4380 }
4381 return resultobj;
4382 fail:
4383 return NULL;
4384 }
4385
4386
4387 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4388 PyObject *resultobj = 0;
4389 wxColour *arg1 = (wxColour *) 0 ;
4390 byte arg2 ;
4391 byte arg3 ;
4392 byte arg4 ;
4393 byte arg5 = (byte) wxALPHA_OPAQUE ;
4394 void *argp1 = 0 ;
4395 int res1 = 0 ;
4396 unsigned char val2 ;
4397 int ecode2 = 0 ;
4398 unsigned char val3 ;
4399 int ecode3 = 0 ;
4400 unsigned char val4 ;
4401 int ecode4 = 0 ;
4402 unsigned char val5 ;
4403 int ecode5 = 0 ;
4404 PyObject * obj0 = 0 ;
4405 PyObject * obj1 = 0 ;
4406 PyObject * obj2 = 0 ;
4407 PyObject * obj3 = 0 ;
4408 PyObject * obj4 = 0 ;
4409 char * kwnames[] = {
4410 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4411 };
4412
4413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4415 if (!SWIG_IsOK(res1)) {
4416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4417 }
4418 arg1 = reinterpret_cast< wxColour * >(argp1);
4419 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4420 if (!SWIG_IsOK(ecode2)) {
4421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4422 }
4423 arg2 = static_cast< byte >(val2);
4424 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4425 if (!SWIG_IsOK(ecode3)) {
4426 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4427 }
4428 arg3 = static_cast< byte >(val3);
4429 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4430 if (!SWIG_IsOK(ecode4)) {
4431 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4432 }
4433 arg4 = static_cast< byte >(val4);
4434 if (obj4) {
4435 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4436 if (!SWIG_IsOK(ecode5)) {
4437 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4438 }
4439 arg5 = static_cast< byte >(val5);
4440 }
4441 {
4442 PyThreadState* __tstate = wxPyBeginAllowThreads();
4443 (arg1)->Set(arg2,arg3,arg4,arg5);
4444 wxPyEndAllowThreads(__tstate);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 }
4447 resultobj = SWIG_Py_Void();
4448 return resultobj;
4449 fail:
4450 return NULL;
4451 }
4452
4453
4454 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4455 PyObject *resultobj = 0;
4456 wxColour *arg1 = (wxColour *) 0 ;
4457 unsigned long arg2 ;
4458 void *argp1 = 0 ;
4459 int res1 = 0 ;
4460 unsigned long val2 ;
4461 int ecode2 = 0 ;
4462 PyObject * obj0 = 0 ;
4463 PyObject * obj1 = 0 ;
4464 char * kwnames[] = {
4465 (char *) "self",(char *) "colRGB", NULL
4466 };
4467
4468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4470 if (!SWIG_IsOK(res1)) {
4471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4472 }
4473 arg1 = reinterpret_cast< wxColour * >(argp1);
4474 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4475 if (!SWIG_IsOK(ecode2)) {
4476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4477 }
4478 arg2 = static_cast< unsigned long >(val2);
4479 {
4480 PyThreadState* __tstate = wxPyBeginAllowThreads();
4481 (arg1)->Set(arg2);
4482 wxPyEndAllowThreads(__tstate);
4483 if (PyErr_Occurred()) SWIG_fail;
4484 }
4485 resultobj = SWIG_Py_Void();
4486 return resultobj;
4487 fail:
4488 return NULL;
4489 }
4490
4491
4492 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4493 PyObject *resultobj = 0;
4494 wxColour *arg1 = (wxColour *) 0 ;
4495 wxString *arg2 = 0 ;
4496 void *argp1 = 0 ;
4497 int res1 = 0 ;
4498 bool temp2 = false ;
4499 PyObject * obj0 = 0 ;
4500 PyObject * obj1 = 0 ;
4501 char * kwnames[] = {
4502 (char *) "self",(char *) "colourName", NULL
4503 };
4504
4505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4507 if (!SWIG_IsOK(res1)) {
4508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4509 }
4510 arg1 = reinterpret_cast< wxColour * >(argp1);
4511 {
4512 arg2 = wxString_in_helper(obj1);
4513 if (arg2 == NULL) SWIG_fail;
4514 temp2 = true;
4515 }
4516 {
4517 PyThreadState* __tstate = wxPyBeginAllowThreads();
4518 (arg1)->Set((wxString const &)*arg2);
4519 wxPyEndAllowThreads(__tstate);
4520 if (PyErr_Occurred()) SWIG_fail;
4521 }
4522 resultobj = SWIG_Py_Void();
4523 {
4524 if (temp2)
4525 delete arg2;
4526 }
4527 return resultobj;
4528 fail:
4529 {
4530 if (temp2)
4531 delete arg2;
4532 }
4533 return NULL;
4534 }
4535
4536
4537 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4538 PyObject *resultobj = 0;
4539 wxColour *arg1 = (wxColour *) 0 ;
4540 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4541 wxString result;
4542 void *argp1 = 0 ;
4543 int res1 = 0 ;
4544 long val2 ;
4545 int ecode2 = 0 ;
4546 PyObject * obj0 = 0 ;
4547 PyObject * obj1 = 0 ;
4548 char * kwnames[] = {
4549 (char *) "self",(char *) "flags", NULL
4550 };
4551
4552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4554 if (!SWIG_IsOK(res1)) {
4555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4556 }
4557 arg1 = reinterpret_cast< wxColour * >(argp1);
4558 if (obj1) {
4559 ecode2 = SWIG_AsVal_long(obj1, &val2);
4560 if (!SWIG_IsOK(ecode2)) {
4561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4562 }
4563 arg2 = static_cast< long >(val2);
4564 }
4565 {
4566 PyThreadState* __tstate = wxPyBeginAllowThreads();
4567 result = ((wxColour const *)arg1)->GetAsString(arg2);
4568 wxPyEndAllowThreads(__tstate);
4569 if (PyErr_Occurred()) SWIG_fail;
4570 }
4571 {
4572 #if wxUSE_UNICODE
4573 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4574 #else
4575 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4576 #endif
4577 }
4578 return resultobj;
4579 fail:
4580 return NULL;
4581 }
4582
4583
4584 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4585 PyObject *resultobj = 0;
4586 wxColour *arg1 = (wxColour *) 0 ;
4587 long result;
4588 void *argp1 = 0 ;
4589 int res1 = 0 ;
4590 PyObject *swig_obj[1] ;
4591
4592 if (!args) SWIG_fail;
4593 swig_obj[0] = args;
4594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4595 if (!SWIG_IsOK(res1)) {
4596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4597 }
4598 arg1 = reinterpret_cast< wxColour * >(argp1);
4599 {
4600 PyThreadState* __tstate = wxPyBeginAllowThreads();
4601 result = (long)((wxColour const *)arg1)->GetPixel();
4602 wxPyEndAllowThreads(__tstate);
4603 if (PyErr_Occurred()) SWIG_fail;
4604 }
4605 resultobj = SWIG_From_long(static_cast< long >(result));
4606 return resultobj;
4607 fail:
4608 return NULL;
4609 }
4610
4611
4612 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4613 PyObject *resultobj = 0;
4614 wxColour *arg1 = (wxColour *) 0 ;
4615 PyObject *arg2 = (PyObject *) 0 ;
4616 bool result;
4617 void *argp1 = 0 ;
4618 int res1 = 0 ;
4619 PyObject * obj0 = 0 ;
4620 PyObject * obj1 = 0 ;
4621 char * kwnames[] = {
4622 (char *) "self",(char *) "other", NULL
4623 };
4624
4625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4627 if (!SWIG_IsOK(res1)) {
4628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4629 }
4630 arg1 = reinterpret_cast< wxColour * >(argp1);
4631 arg2 = obj1;
4632 {
4633 result = (bool)wxColour___eq__(arg1,arg2);
4634 if (PyErr_Occurred()) SWIG_fail;
4635 }
4636 {
4637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4638 }
4639 return resultobj;
4640 fail:
4641 return NULL;
4642 }
4643
4644
4645 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4646 PyObject *resultobj = 0;
4647 wxColour *arg1 = (wxColour *) 0 ;
4648 PyObject *arg2 = (PyObject *) 0 ;
4649 bool result;
4650 void *argp1 = 0 ;
4651 int res1 = 0 ;
4652 PyObject * obj0 = 0 ;
4653 PyObject * obj1 = 0 ;
4654 char * kwnames[] = {
4655 (char *) "self",(char *) "other", NULL
4656 };
4657
4658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4660 if (!SWIG_IsOK(res1)) {
4661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4662 }
4663 arg1 = reinterpret_cast< wxColour * >(argp1);
4664 arg2 = obj1;
4665 {
4666 result = (bool)wxColour___ne__(arg1,arg2);
4667 if (PyErr_Occurred()) SWIG_fail;
4668 }
4669 {
4670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4671 }
4672 return resultobj;
4673 fail:
4674 return NULL;
4675 }
4676
4677
4678 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4679 PyObject *resultobj = 0;
4680 wxColour *arg1 = (wxColour *) 0 ;
4681 bool arg2 = (bool) false ;
4682 PyObject *result = 0 ;
4683 void *argp1 = 0 ;
4684 int res1 = 0 ;
4685 bool val2 ;
4686 int ecode2 = 0 ;
4687 PyObject * obj0 = 0 ;
4688 PyObject * obj1 = 0 ;
4689 char * kwnames[] = {
4690 (char *) "self",(char *) "includeAlpha", NULL
4691 };
4692
4693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4695 if (!SWIG_IsOK(res1)) {
4696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4697 }
4698 arg1 = reinterpret_cast< wxColour * >(argp1);
4699 if (obj1) {
4700 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4701 if (!SWIG_IsOK(ecode2)) {
4702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4703 }
4704 arg2 = static_cast< bool >(val2);
4705 }
4706 {
4707 result = (PyObject *)wxColour_Get(arg1,arg2);
4708 if (PyErr_Occurred()) SWIG_fail;
4709 }
4710 resultobj = result;
4711 return resultobj;
4712 fail:
4713 return NULL;
4714 }
4715
4716
4717 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4718 PyObject *resultobj = 0;
4719 wxColour *arg1 = (wxColour *) 0 ;
4720 unsigned long result;
4721 void *argp1 = 0 ;
4722 int res1 = 0 ;
4723 PyObject *swig_obj[1] ;
4724
4725 if (!args) SWIG_fail;
4726 swig_obj[0] = args;
4727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4728 if (!SWIG_IsOK(res1)) {
4729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4730 }
4731 arg1 = reinterpret_cast< wxColour * >(argp1);
4732 {
4733 result = (unsigned long)wxColour_GetRGB(arg1);
4734 if (PyErr_Occurred()) SWIG_fail;
4735 }
4736 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4737 return resultobj;
4738 fail:
4739 return NULL;
4740 }
4741
4742
4743 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4744 PyObject *obj;
4745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4746 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4747 return SWIG_Py_Void();
4748 }
4749
4750 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4751 return SWIG_Python_InitShadowInstance(args);
4752 }
4753
4754 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4755 PyObject *resultobj = 0;
4756 int arg1 ;
4757 unsigned char *arg2 = (unsigned char *) 0 ;
4758 unsigned char *arg3 = (unsigned char *) 0 ;
4759 unsigned char *arg4 = (unsigned char *) 0 ;
4760 wxPalette *result = 0 ;
4761 int val1 ;
4762 int ecode1 = 0 ;
4763 void *argp2 = 0 ;
4764 int res2 = 0 ;
4765 void *argp3 = 0 ;
4766 int res3 = 0 ;
4767 void *argp4 = 0 ;
4768 int res4 = 0 ;
4769 PyObject * obj0 = 0 ;
4770 PyObject * obj1 = 0 ;
4771 PyObject * obj2 = 0 ;
4772 PyObject * obj3 = 0 ;
4773 char * kwnames[] = {
4774 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4775 };
4776
4777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4778 ecode1 = SWIG_AsVal_int(obj0, &val1);
4779 if (!SWIG_IsOK(ecode1)) {
4780 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4781 }
4782 arg1 = static_cast< int >(val1);
4783 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4784 if (!SWIG_IsOK(res2)) {
4785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4786 }
4787 arg2 = reinterpret_cast< unsigned char * >(argp2);
4788 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4789 if (!SWIG_IsOK(res3)) {
4790 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4791 }
4792 arg3 = reinterpret_cast< unsigned char * >(argp3);
4793 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4794 if (!SWIG_IsOK(res4)) {
4795 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4796 }
4797 arg4 = reinterpret_cast< unsigned char * >(argp4);
4798 {
4799 if (!wxPyCheckForApp()) SWIG_fail;
4800 PyThreadState* __tstate = wxPyBeginAllowThreads();
4801 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4802 wxPyEndAllowThreads(__tstate);
4803 if (PyErr_Occurred()) SWIG_fail;
4804 }
4805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4806 return resultobj;
4807 fail:
4808 return NULL;
4809 }
4810
4811
4812 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4813 PyObject *resultobj = 0;
4814 wxPalette *arg1 = (wxPalette *) 0 ;
4815 void *argp1 = 0 ;
4816 int res1 = 0 ;
4817 PyObject *swig_obj[1] ;
4818
4819 if (!args) SWIG_fail;
4820 swig_obj[0] = args;
4821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4822 if (!SWIG_IsOK(res1)) {
4823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4824 }
4825 arg1 = reinterpret_cast< wxPalette * >(argp1);
4826 {
4827 PyThreadState* __tstate = wxPyBeginAllowThreads();
4828 delete arg1;
4829
4830 wxPyEndAllowThreads(__tstate);
4831 if (PyErr_Occurred()) SWIG_fail;
4832 }
4833 resultobj = SWIG_Py_Void();
4834 return resultobj;
4835 fail:
4836 return NULL;
4837 }
4838
4839
4840 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4841 PyObject *resultobj = 0;
4842 wxPalette *arg1 = (wxPalette *) 0 ;
4843 byte arg2 ;
4844 byte arg3 ;
4845 byte arg4 ;
4846 int result;
4847 void *argp1 = 0 ;
4848 int res1 = 0 ;
4849 unsigned char val2 ;
4850 int ecode2 = 0 ;
4851 unsigned char val3 ;
4852 int ecode3 = 0 ;
4853 unsigned char val4 ;
4854 int ecode4 = 0 ;
4855 PyObject * obj0 = 0 ;
4856 PyObject * obj1 = 0 ;
4857 PyObject * obj2 = 0 ;
4858 PyObject * obj3 = 0 ;
4859 char * kwnames[] = {
4860 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4861 };
4862
4863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4865 if (!SWIG_IsOK(res1)) {
4866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4867 }
4868 arg1 = reinterpret_cast< wxPalette * >(argp1);
4869 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4870 if (!SWIG_IsOK(ecode2)) {
4871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4872 }
4873 arg2 = static_cast< byte >(val2);
4874 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4875 if (!SWIG_IsOK(ecode3)) {
4876 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4877 }
4878 arg3 = static_cast< byte >(val3);
4879 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4880 if (!SWIG_IsOK(ecode4)) {
4881 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4882 }
4883 arg4 = static_cast< byte >(val4);
4884 {
4885 PyThreadState* __tstate = wxPyBeginAllowThreads();
4886 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4887 wxPyEndAllowThreads(__tstate);
4888 if (PyErr_Occurred()) SWIG_fail;
4889 }
4890 resultobj = SWIG_From_int(static_cast< int >(result));
4891 return resultobj;
4892 fail:
4893 return NULL;
4894 }
4895
4896
4897 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4898 PyObject *resultobj = 0;
4899 wxPalette *arg1 = (wxPalette *) 0 ;
4900 int arg2 ;
4901 byte *arg3 = (byte *) 0 ;
4902 byte *arg4 = (byte *) 0 ;
4903 byte *arg5 = (byte *) 0 ;
4904 bool result;
4905 void *argp1 = 0 ;
4906 int res1 = 0 ;
4907 int val2 ;
4908 int ecode2 = 0 ;
4909 byte temp3 ;
4910 int res3 = SWIG_TMPOBJ ;
4911 byte temp4 ;
4912 int res4 = SWIG_TMPOBJ ;
4913 byte temp5 ;
4914 int res5 = SWIG_TMPOBJ ;
4915 PyObject * obj0 = 0 ;
4916 PyObject * obj1 = 0 ;
4917 char * kwnames[] = {
4918 (char *) "self",(char *) "pixel", NULL
4919 };
4920
4921 arg3 = &temp3;
4922 arg4 = &temp4;
4923 arg5 = &temp5;
4924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4926 if (!SWIG_IsOK(res1)) {
4927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4928 }
4929 arg1 = reinterpret_cast< wxPalette * >(argp1);
4930 ecode2 = SWIG_AsVal_int(obj1, &val2);
4931 if (!SWIG_IsOK(ecode2)) {
4932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4933 }
4934 arg2 = static_cast< int >(val2);
4935 {
4936 PyThreadState* __tstate = wxPyBeginAllowThreads();
4937 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4938 wxPyEndAllowThreads(__tstate);
4939 if (PyErr_Occurred()) SWIG_fail;
4940 }
4941 {
4942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4943 }
4944 if (SWIG_IsTmpObj(res3)) {
4945 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4946 } else {
4947 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4948 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4949 }
4950 if (SWIG_IsTmpObj(res4)) {
4951 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4952 } else {
4953 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4954 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4955 }
4956 if (SWIG_IsTmpObj(res5)) {
4957 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4958 } else {
4959 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4960 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4961 }
4962 return resultobj;
4963 fail:
4964 return NULL;
4965 }
4966
4967
4968 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4969 PyObject *resultobj = 0;
4970 wxPalette *arg1 = (wxPalette *) 0 ;
4971 int result;
4972 void *argp1 = 0 ;
4973 int res1 = 0 ;
4974 PyObject *swig_obj[1] ;
4975
4976 if (!args) SWIG_fail;
4977 swig_obj[0] = args;
4978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4979 if (!SWIG_IsOK(res1)) {
4980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4981 }
4982 arg1 = reinterpret_cast< wxPalette * >(argp1);
4983 {
4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
4985 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4986 wxPyEndAllowThreads(__tstate);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 }
4989 resultobj = SWIG_From_int(static_cast< int >(result));
4990 return resultobj;
4991 fail:
4992 return NULL;
4993 }
4994
4995
4996 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4997 PyObject *resultobj = 0;
4998 wxPalette *arg1 = (wxPalette *) 0 ;
4999 bool result;
5000 void *argp1 = 0 ;
5001 int res1 = 0 ;
5002 PyObject *swig_obj[1] ;
5003
5004 if (!args) SWIG_fail;
5005 swig_obj[0] = args;
5006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5007 if (!SWIG_IsOK(res1)) {
5008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
5009 }
5010 arg1 = reinterpret_cast< wxPalette * >(argp1);
5011 {
5012 PyThreadState* __tstate = wxPyBeginAllowThreads();
5013 result = (bool)(arg1)->IsOk();
5014 wxPyEndAllowThreads(__tstate);
5015 if (PyErr_Occurred()) SWIG_fail;
5016 }
5017 {
5018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5019 }
5020 return resultobj;
5021 fail:
5022 return NULL;
5023 }
5024
5025
5026 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5027 PyObject *obj;
5028 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5029 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5030 return SWIG_Py_Void();
5031 }
5032
5033 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5034 return SWIG_Python_InitShadowInstance(args);
5035 }
5036
5037 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5038 PyObject *resultobj = 0;
5039 wxColour *arg1 = 0 ;
5040 int arg2 = (int) 1 ;
5041 int arg3 = (int) wxSOLID ;
5042 wxPen *result = 0 ;
5043 wxColour temp1 ;
5044 int val2 ;
5045 int ecode2 = 0 ;
5046 int val3 ;
5047 int ecode3 = 0 ;
5048 PyObject * obj0 = 0 ;
5049 PyObject * obj1 = 0 ;
5050 PyObject * obj2 = 0 ;
5051 char * kwnames[] = {
5052 (char *) "colour",(char *) "width",(char *) "style", NULL
5053 };
5054
5055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5056 {
5057 arg1 = &temp1;
5058 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5059 }
5060 if (obj1) {
5061 ecode2 = SWIG_AsVal_int(obj1, &val2);
5062 if (!SWIG_IsOK(ecode2)) {
5063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5064 }
5065 arg2 = static_cast< int >(val2);
5066 }
5067 if (obj2) {
5068 ecode3 = SWIG_AsVal_int(obj2, &val3);
5069 if (!SWIG_IsOK(ecode3)) {
5070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5071 }
5072 arg3 = static_cast< int >(val3);
5073 }
5074 {
5075 if (!wxPyCheckForApp()) SWIG_fail;
5076 PyThreadState* __tstate = wxPyBeginAllowThreads();
5077 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5078 wxPyEndAllowThreads(__tstate);
5079 if (PyErr_Occurred()) SWIG_fail;
5080 }
5081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5082 return resultobj;
5083 fail:
5084 return NULL;
5085 }
5086
5087
5088 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5089 PyObject *resultobj = 0;
5090 wxPen *arg1 = (wxPen *) 0 ;
5091 void *argp1 = 0 ;
5092 int res1 = 0 ;
5093 PyObject *swig_obj[1] ;
5094
5095 if (!args) SWIG_fail;
5096 swig_obj[0] = args;
5097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5098 if (!SWIG_IsOK(res1)) {
5099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5100 }
5101 arg1 = reinterpret_cast< wxPen * >(argp1);
5102 {
5103 PyThreadState* __tstate = wxPyBeginAllowThreads();
5104 delete arg1;
5105
5106 wxPyEndAllowThreads(__tstate);
5107 if (PyErr_Occurred()) SWIG_fail;
5108 }
5109 resultobj = SWIG_Py_Void();
5110 return resultobj;
5111 fail:
5112 return NULL;
5113 }
5114
5115
5116 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5117 PyObject *resultobj = 0;
5118 wxPen *arg1 = (wxPen *) 0 ;
5119 int result;
5120 void *argp1 = 0 ;
5121 int res1 = 0 ;
5122 PyObject *swig_obj[1] ;
5123
5124 if (!args) SWIG_fail;
5125 swig_obj[0] = args;
5126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5127 if (!SWIG_IsOK(res1)) {
5128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5129 }
5130 arg1 = reinterpret_cast< wxPen * >(argp1);
5131 {
5132 PyThreadState* __tstate = wxPyBeginAllowThreads();
5133 result = (int)(arg1)->GetCap();
5134 wxPyEndAllowThreads(__tstate);
5135 if (PyErr_Occurred()) SWIG_fail;
5136 }
5137 resultobj = SWIG_From_int(static_cast< int >(result));
5138 return resultobj;
5139 fail:
5140 return NULL;
5141 }
5142
5143
5144 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5145 PyObject *resultobj = 0;
5146 wxPen *arg1 = (wxPen *) 0 ;
5147 wxColour result;
5148 void *argp1 = 0 ;
5149 int res1 = 0 ;
5150 PyObject *swig_obj[1] ;
5151
5152 if (!args) SWIG_fail;
5153 swig_obj[0] = args;
5154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5155 if (!SWIG_IsOK(res1)) {
5156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5157 }
5158 arg1 = reinterpret_cast< wxPen * >(argp1);
5159 {
5160 PyThreadState* __tstate = wxPyBeginAllowThreads();
5161 result = (arg1)->GetColour();
5162 wxPyEndAllowThreads(__tstate);
5163 if (PyErr_Occurred()) SWIG_fail;
5164 }
5165 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5166 return resultobj;
5167 fail:
5168 return NULL;
5169 }
5170
5171
5172 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5173 PyObject *resultobj = 0;
5174 wxPen *arg1 = (wxPen *) 0 ;
5175 int result;
5176 void *argp1 = 0 ;
5177 int res1 = 0 ;
5178 PyObject *swig_obj[1] ;
5179
5180 if (!args) SWIG_fail;
5181 swig_obj[0] = args;
5182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5183 if (!SWIG_IsOK(res1)) {
5184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5185 }
5186 arg1 = reinterpret_cast< wxPen * >(argp1);
5187 {
5188 PyThreadState* __tstate = wxPyBeginAllowThreads();
5189 result = (int)(arg1)->GetJoin();
5190 wxPyEndAllowThreads(__tstate);
5191 if (PyErr_Occurred()) SWIG_fail;
5192 }
5193 resultobj = SWIG_From_int(static_cast< int >(result));
5194 return resultobj;
5195 fail:
5196 return NULL;
5197 }
5198
5199
5200 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5201 PyObject *resultobj = 0;
5202 wxPen *arg1 = (wxPen *) 0 ;
5203 int result;
5204 void *argp1 = 0 ;
5205 int res1 = 0 ;
5206 PyObject *swig_obj[1] ;
5207
5208 if (!args) SWIG_fail;
5209 swig_obj[0] = args;
5210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5211 if (!SWIG_IsOK(res1)) {
5212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5213 }
5214 arg1 = reinterpret_cast< wxPen * >(argp1);
5215 {
5216 PyThreadState* __tstate = wxPyBeginAllowThreads();
5217 result = (int)(arg1)->GetStyle();
5218 wxPyEndAllowThreads(__tstate);
5219 if (PyErr_Occurred()) SWIG_fail;
5220 }
5221 resultobj = SWIG_From_int(static_cast< int >(result));
5222 return resultobj;
5223 fail:
5224 return NULL;
5225 }
5226
5227
5228 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5229 PyObject *resultobj = 0;
5230 wxPen *arg1 = (wxPen *) 0 ;
5231 int result;
5232 void *argp1 = 0 ;
5233 int res1 = 0 ;
5234 PyObject *swig_obj[1] ;
5235
5236 if (!args) SWIG_fail;
5237 swig_obj[0] = args;
5238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5239 if (!SWIG_IsOK(res1)) {
5240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5241 }
5242 arg1 = reinterpret_cast< wxPen * >(argp1);
5243 {
5244 PyThreadState* __tstate = wxPyBeginAllowThreads();
5245 result = (int)(arg1)->GetWidth();
5246 wxPyEndAllowThreads(__tstate);
5247 if (PyErr_Occurred()) SWIG_fail;
5248 }
5249 resultobj = SWIG_From_int(static_cast< int >(result));
5250 return resultobj;
5251 fail:
5252 return NULL;
5253 }
5254
5255
5256 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5257 PyObject *resultobj = 0;
5258 wxPen *arg1 = (wxPen *) 0 ;
5259 bool result;
5260 void *argp1 = 0 ;
5261 int res1 = 0 ;
5262 PyObject *swig_obj[1] ;
5263
5264 if (!args) SWIG_fail;
5265 swig_obj[0] = args;
5266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5267 if (!SWIG_IsOK(res1)) {
5268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5269 }
5270 arg1 = reinterpret_cast< wxPen * >(argp1);
5271 {
5272 PyThreadState* __tstate = wxPyBeginAllowThreads();
5273 result = (bool)(arg1)->IsOk();
5274 wxPyEndAllowThreads(__tstate);
5275 if (PyErr_Occurred()) SWIG_fail;
5276 }
5277 {
5278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5279 }
5280 return resultobj;
5281 fail:
5282 return NULL;
5283 }
5284
5285
5286 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5287 PyObject *resultobj = 0;
5288 wxPen *arg1 = (wxPen *) 0 ;
5289 int arg2 ;
5290 void *argp1 = 0 ;
5291 int res1 = 0 ;
5292 int val2 ;
5293 int ecode2 = 0 ;
5294 PyObject * obj0 = 0 ;
5295 PyObject * obj1 = 0 ;
5296 char * kwnames[] = {
5297 (char *) "self",(char *) "cap_style", NULL
5298 };
5299
5300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5302 if (!SWIG_IsOK(res1)) {
5303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5304 }
5305 arg1 = reinterpret_cast< wxPen * >(argp1);
5306 ecode2 = SWIG_AsVal_int(obj1, &val2);
5307 if (!SWIG_IsOK(ecode2)) {
5308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5309 }
5310 arg2 = static_cast< int >(val2);
5311 {
5312 PyThreadState* __tstate = wxPyBeginAllowThreads();
5313 (arg1)->SetCap(arg2);
5314 wxPyEndAllowThreads(__tstate);
5315 if (PyErr_Occurred()) SWIG_fail;
5316 }
5317 resultobj = SWIG_Py_Void();
5318 return resultobj;
5319 fail:
5320 return NULL;
5321 }
5322
5323
5324 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5325 PyObject *resultobj = 0;
5326 wxPen *arg1 = (wxPen *) 0 ;
5327 wxColour *arg2 = 0 ;
5328 void *argp1 = 0 ;
5329 int res1 = 0 ;
5330 wxColour temp2 ;
5331 PyObject * obj0 = 0 ;
5332 PyObject * obj1 = 0 ;
5333 char * kwnames[] = {
5334 (char *) "self",(char *) "colour", NULL
5335 };
5336
5337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5339 if (!SWIG_IsOK(res1)) {
5340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5341 }
5342 arg1 = reinterpret_cast< wxPen * >(argp1);
5343 {
5344 arg2 = &temp2;
5345 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5346 }
5347 {
5348 PyThreadState* __tstate = wxPyBeginAllowThreads();
5349 (arg1)->SetColour(*arg2);
5350 wxPyEndAllowThreads(__tstate);
5351 if (PyErr_Occurred()) SWIG_fail;
5352 }
5353 resultobj = SWIG_Py_Void();
5354 return resultobj;
5355 fail:
5356 return NULL;
5357 }
5358
5359
5360 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5361 PyObject *resultobj = 0;
5362 wxPen *arg1 = (wxPen *) 0 ;
5363 int arg2 ;
5364 void *argp1 = 0 ;
5365 int res1 = 0 ;
5366 int val2 ;
5367 int ecode2 = 0 ;
5368 PyObject * obj0 = 0 ;
5369 PyObject * obj1 = 0 ;
5370 char * kwnames[] = {
5371 (char *) "self",(char *) "join_style", NULL
5372 };
5373
5374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5376 if (!SWIG_IsOK(res1)) {
5377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5378 }
5379 arg1 = reinterpret_cast< wxPen * >(argp1);
5380 ecode2 = SWIG_AsVal_int(obj1, &val2);
5381 if (!SWIG_IsOK(ecode2)) {
5382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5383 }
5384 arg2 = static_cast< int >(val2);
5385 {
5386 PyThreadState* __tstate = wxPyBeginAllowThreads();
5387 (arg1)->SetJoin(arg2);
5388 wxPyEndAllowThreads(__tstate);
5389 if (PyErr_Occurred()) SWIG_fail;
5390 }
5391 resultobj = SWIG_Py_Void();
5392 return resultobj;
5393 fail:
5394 return NULL;
5395 }
5396
5397
5398 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5399 PyObject *resultobj = 0;
5400 wxPen *arg1 = (wxPen *) 0 ;
5401 int arg2 ;
5402 void *argp1 = 0 ;
5403 int res1 = 0 ;
5404 int val2 ;
5405 int ecode2 = 0 ;
5406 PyObject * obj0 = 0 ;
5407 PyObject * obj1 = 0 ;
5408 char * kwnames[] = {
5409 (char *) "self",(char *) "style", NULL
5410 };
5411
5412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5414 if (!SWIG_IsOK(res1)) {
5415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5416 }
5417 arg1 = reinterpret_cast< wxPen * >(argp1);
5418 ecode2 = SWIG_AsVal_int(obj1, &val2);
5419 if (!SWIG_IsOK(ecode2)) {
5420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5421 }
5422 arg2 = static_cast< int >(val2);
5423 {
5424 PyThreadState* __tstate = wxPyBeginAllowThreads();
5425 (arg1)->SetStyle(arg2);
5426 wxPyEndAllowThreads(__tstate);
5427 if (PyErr_Occurred()) SWIG_fail;
5428 }
5429 resultobj = SWIG_Py_Void();
5430 return resultobj;
5431 fail:
5432 return NULL;
5433 }
5434
5435
5436 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5437 PyObject *resultobj = 0;
5438 wxPen *arg1 = (wxPen *) 0 ;
5439 int arg2 ;
5440 void *argp1 = 0 ;
5441 int res1 = 0 ;
5442 int val2 ;
5443 int ecode2 = 0 ;
5444 PyObject * obj0 = 0 ;
5445 PyObject * obj1 = 0 ;
5446 char * kwnames[] = {
5447 (char *) "self",(char *) "width", NULL
5448 };
5449
5450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5452 if (!SWIG_IsOK(res1)) {
5453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5454 }
5455 arg1 = reinterpret_cast< wxPen * >(argp1);
5456 ecode2 = SWIG_AsVal_int(obj1, &val2);
5457 if (!SWIG_IsOK(ecode2)) {
5458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5459 }
5460 arg2 = static_cast< int >(val2);
5461 {
5462 PyThreadState* __tstate = wxPyBeginAllowThreads();
5463 (arg1)->SetWidth(arg2);
5464 wxPyEndAllowThreads(__tstate);
5465 if (PyErr_Occurred()) SWIG_fail;
5466 }
5467 resultobj = SWIG_Py_Void();
5468 return resultobj;
5469 fail:
5470 return NULL;
5471 }
5472
5473
5474 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5475 PyObject *resultobj = 0;
5476 wxPen *arg1 = (wxPen *) 0 ;
5477 int arg2 ;
5478 wxDash *arg3 = (wxDash *) 0 ;
5479 void *argp1 = 0 ;
5480 int res1 = 0 ;
5481 PyObject * obj0 = 0 ;
5482 PyObject * obj1 = 0 ;
5483 char * kwnames[] = {
5484 (char *) "self",(char *) "dashes", NULL
5485 };
5486
5487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5489 if (!SWIG_IsOK(res1)) {
5490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5491 }
5492 arg1 = reinterpret_cast< wxPen * >(argp1);
5493 {
5494 arg2 = PyList_Size(obj1);
5495 arg3 = (wxDash*)byte_LIST_helper(obj1);
5496 if (arg3 == NULL) SWIG_fail;
5497 }
5498 {
5499 PyThreadState* __tstate = wxPyBeginAllowThreads();
5500 (arg1)->SetDashes(arg2,arg3);
5501 wxPyEndAllowThreads(__tstate);
5502 if (PyErr_Occurred()) SWIG_fail;
5503 }
5504 resultobj = SWIG_Py_Void();
5505 {
5506 if (arg3) delete [] arg3;
5507 }
5508 return resultobj;
5509 fail:
5510 {
5511 if (arg3) delete [] arg3;
5512 }
5513 return NULL;
5514 }
5515
5516
5517 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5518 PyObject *resultobj = 0;
5519 wxPen *arg1 = (wxPen *) 0 ;
5520 PyObject *result = 0 ;
5521 void *argp1 = 0 ;
5522 int res1 = 0 ;
5523 PyObject *swig_obj[1] ;
5524
5525 if (!args) SWIG_fail;
5526 swig_obj[0] = args;
5527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5528 if (!SWIG_IsOK(res1)) {
5529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5530 }
5531 arg1 = reinterpret_cast< wxPen * >(argp1);
5532 {
5533 PyThreadState* __tstate = wxPyBeginAllowThreads();
5534 result = (PyObject *)wxPen_GetDashes(arg1);
5535 wxPyEndAllowThreads(__tstate);
5536 if (PyErr_Occurred()) SWIG_fail;
5537 }
5538 resultobj = result;
5539 return resultobj;
5540 fail:
5541 return NULL;
5542 }
5543
5544
5545 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5546 PyObject *resultobj = 0;
5547 wxPen *arg1 = (wxPen *) 0 ;
5548 PyObject *arg2 = (PyObject *) 0 ;
5549 PyObject *arg3 = (PyObject *) 0 ;
5550 void *argp1 = 0 ;
5551 int res1 = 0 ;
5552 PyObject * obj0 = 0 ;
5553 PyObject * obj1 = 0 ;
5554 PyObject * obj2 = 0 ;
5555 char * kwnames[] = {
5556 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5557 };
5558
5559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5561 if (!SWIG_IsOK(res1)) {
5562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5563 }
5564 arg1 = reinterpret_cast< wxPen * >(argp1);
5565 arg2 = obj1;
5566 arg3 = obj2;
5567 {
5568 PyThreadState* __tstate = wxPyBeginAllowThreads();
5569 wxPen__SetDashes(arg1,arg2,arg3);
5570 wxPyEndAllowThreads(__tstate);
5571 if (PyErr_Occurred()) SWIG_fail;
5572 }
5573 resultobj = SWIG_Py_Void();
5574 return resultobj;
5575 fail:
5576 return NULL;
5577 }
5578
5579
5580 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5581 PyObject *resultobj = 0;
5582 wxPen *arg1 = (wxPen *) 0 ;
5583 int result;
5584 void *argp1 = 0 ;
5585 int res1 = 0 ;
5586 PyObject *swig_obj[1] ;
5587
5588 if (!args) SWIG_fail;
5589 swig_obj[0] = args;
5590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5591 if (!SWIG_IsOK(res1)) {
5592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5593 }
5594 arg1 = reinterpret_cast< wxPen * >(argp1);
5595 {
5596 PyThreadState* __tstate = wxPyBeginAllowThreads();
5597 result = (int)((wxPen const *)arg1)->GetDashCount();
5598 wxPyEndAllowThreads(__tstate);
5599 if (PyErr_Occurred()) SWIG_fail;
5600 }
5601 resultobj = SWIG_From_int(static_cast< int >(result));
5602 return resultobj;
5603 fail:
5604 return NULL;
5605 }
5606
5607
5608 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5609 PyObject *resultobj = 0;
5610 wxPen *arg1 = (wxPen *) 0 ;
5611 wxBitmap *result = 0 ;
5612 void *argp1 = 0 ;
5613 int res1 = 0 ;
5614 PyObject *swig_obj[1] ;
5615
5616 if (!args) SWIG_fail;
5617 swig_obj[0] = args;
5618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5619 if (!SWIG_IsOK(res1)) {
5620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5621 }
5622 arg1 = reinterpret_cast< wxPen * >(argp1);
5623 {
5624 PyThreadState* __tstate = wxPyBeginAllowThreads();
5625 result = (wxBitmap *)(arg1)->GetStipple();
5626 wxPyEndAllowThreads(__tstate);
5627 if (PyErr_Occurred()) SWIG_fail;
5628 }
5629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5630 return resultobj;
5631 fail:
5632 return NULL;
5633 }
5634
5635
5636 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5637 PyObject *resultobj = 0;
5638 wxPen *arg1 = (wxPen *) 0 ;
5639 wxBitmap *arg2 = 0 ;
5640 void *argp1 = 0 ;
5641 int res1 = 0 ;
5642 void *argp2 = 0 ;
5643 int res2 = 0 ;
5644 PyObject * obj0 = 0 ;
5645 PyObject * obj1 = 0 ;
5646 char * kwnames[] = {
5647 (char *) "self",(char *) "stipple", NULL
5648 };
5649
5650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5652 if (!SWIG_IsOK(res1)) {
5653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5654 }
5655 arg1 = reinterpret_cast< wxPen * >(argp1);
5656 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5657 if (!SWIG_IsOK(res2)) {
5658 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5659 }
5660 if (!argp2) {
5661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5662 }
5663 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5664 {
5665 PyThreadState* __tstate = wxPyBeginAllowThreads();
5666 (arg1)->SetStipple(*arg2);
5667 wxPyEndAllowThreads(__tstate);
5668 if (PyErr_Occurred()) SWIG_fail;
5669 }
5670 resultobj = SWIG_Py_Void();
5671 return resultobj;
5672 fail:
5673 return NULL;
5674 }
5675
5676
5677 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5678 PyObject *resultobj = 0;
5679 wxPen *arg1 = (wxPen *) 0 ;
5680 wxPen *arg2 = (wxPen *) 0 ;
5681 bool result;
5682 void *argp1 = 0 ;
5683 int res1 = 0 ;
5684 void *argp2 = 0 ;
5685 int res2 = 0 ;
5686 PyObject * obj0 = 0 ;
5687 PyObject * obj1 = 0 ;
5688 char * kwnames[] = {
5689 (char *) "self",(char *) "other", NULL
5690 };
5691
5692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5694 if (!SWIG_IsOK(res1)) {
5695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5696 }
5697 arg1 = reinterpret_cast< wxPen * >(argp1);
5698 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5699 if (!SWIG_IsOK(res2)) {
5700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5701 }
5702 arg2 = reinterpret_cast< wxPen * >(argp2);
5703 {
5704 PyThreadState* __tstate = wxPyBeginAllowThreads();
5705 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5706 wxPyEndAllowThreads(__tstate);
5707 if (PyErr_Occurred()) SWIG_fail;
5708 }
5709 {
5710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5711 }
5712 return resultobj;
5713 fail:
5714 return NULL;
5715 }
5716
5717
5718 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5719 PyObject *resultobj = 0;
5720 wxPen *arg1 = (wxPen *) 0 ;
5721 wxPen *arg2 = (wxPen *) 0 ;
5722 bool result;
5723 void *argp1 = 0 ;
5724 int res1 = 0 ;
5725 void *argp2 = 0 ;
5726 int res2 = 0 ;
5727 PyObject * obj0 = 0 ;
5728 PyObject * obj1 = 0 ;
5729 char * kwnames[] = {
5730 (char *) "self",(char *) "other", NULL
5731 };
5732
5733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5735 if (!SWIG_IsOK(res1)) {
5736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5737 }
5738 arg1 = reinterpret_cast< wxPen * >(argp1);
5739 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5740 if (!SWIG_IsOK(res2)) {
5741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5742 }
5743 arg2 = reinterpret_cast< wxPen * >(argp2);
5744 {
5745 PyThreadState* __tstate = wxPyBeginAllowThreads();
5746 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5747 wxPyEndAllowThreads(__tstate);
5748 if (PyErr_Occurred()) SWIG_fail;
5749 }
5750 {
5751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5752 }
5753 return resultobj;
5754 fail:
5755 return NULL;
5756 }
5757
5758
5759 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5760 PyObject *obj;
5761 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5762 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5763 return SWIG_Py_Void();
5764 }
5765
5766 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5767 return SWIG_Python_InitShadowInstance(args);
5768 }
5769
5770 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5771 PyObject *resultobj = 0;
5772 wxColour *arg1 = 0 ;
5773 int arg2 = (int) wxSOLID ;
5774 wxBrush *result = 0 ;
5775 wxColour temp1 ;
5776 int val2 ;
5777 int ecode2 = 0 ;
5778 PyObject * obj0 = 0 ;
5779 PyObject * obj1 = 0 ;
5780 char * kwnames[] = {
5781 (char *) "colour",(char *) "style", NULL
5782 };
5783
5784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5785 {
5786 arg1 = &temp1;
5787 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5788 }
5789 if (obj1) {
5790 ecode2 = SWIG_AsVal_int(obj1, &val2);
5791 if (!SWIG_IsOK(ecode2)) {
5792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5793 }
5794 arg2 = static_cast< int >(val2);
5795 }
5796 {
5797 if (!wxPyCheckForApp()) SWIG_fail;
5798 PyThreadState* __tstate = wxPyBeginAllowThreads();
5799 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5800 wxPyEndAllowThreads(__tstate);
5801 if (PyErr_Occurred()) SWIG_fail;
5802 }
5803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5804 return resultobj;
5805 fail:
5806 return NULL;
5807 }
5808
5809
5810 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5811 PyObject *resultobj = 0;
5812 wxBitmap *arg1 = 0 ;
5813 wxBrush *result = 0 ;
5814 void *argp1 = 0 ;
5815 int res1 = 0 ;
5816 PyObject * obj0 = 0 ;
5817 char * kwnames[] = {
5818 (char *) "stippleBitmap", NULL
5819 };
5820
5821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5822 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5823 if (!SWIG_IsOK(res1)) {
5824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5825 }
5826 if (!argp1) {
5827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5828 }
5829 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5830 {
5831 if (!wxPyCheckForApp()) SWIG_fail;
5832 PyThreadState* __tstate = wxPyBeginAllowThreads();
5833 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5834 wxPyEndAllowThreads(__tstate);
5835 if (PyErr_Occurred()) SWIG_fail;
5836 }
5837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5838 return resultobj;
5839 fail:
5840 return NULL;
5841 }
5842
5843
5844 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5845 PyObject *resultobj = 0;
5846 wxBrush *arg1 = (wxBrush *) 0 ;
5847 void *argp1 = 0 ;
5848 int res1 = 0 ;
5849 PyObject *swig_obj[1] ;
5850
5851 if (!args) SWIG_fail;
5852 swig_obj[0] = args;
5853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5854 if (!SWIG_IsOK(res1)) {
5855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5856 }
5857 arg1 = reinterpret_cast< wxBrush * >(argp1);
5858 {
5859 PyThreadState* __tstate = wxPyBeginAllowThreads();
5860 delete arg1;
5861
5862 wxPyEndAllowThreads(__tstate);
5863 if (PyErr_Occurred()) SWIG_fail;
5864 }
5865 resultobj = SWIG_Py_Void();
5866 return resultobj;
5867 fail:
5868 return NULL;
5869 }
5870
5871
5872 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5873 PyObject *resultobj = 0;
5874 wxBrush *arg1 = (wxBrush *) 0 ;
5875 wxColour *arg2 = 0 ;
5876 void *argp1 = 0 ;
5877 int res1 = 0 ;
5878 wxColour temp2 ;
5879 PyObject * obj0 = 0 ;
5880 PyObject * obj1 = 0 ;
5881 char * kwnames[] = {
5882 (char *) "self",(char *) "col", NULL
5883 };
5884
5885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5887 if (!SWIG_IsOK(res1)) {
5888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5889 }
5890 arg1 = reinterpret_cast< wxBrush * >(argp1);
5891 {
5892 arg2 = &temp2;
5893 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5894 }
5895 {
5896 PyThreadState* __tstate = wxPyBeginAllowThreads();
5897 (arg1)->SetColour((wxColour const &)*arg2);
5898 wxPyEndAllowThreads(__tstate);
5899 if (PyErr_Occurred()) SWIG_fail;
5900 }
5901 resultobj = SWIG_Py_Void();
5902 return resultobj;
5903 fail:
5904 return NULL;
5905 }
5906
5907
5908 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5909 PyObject *resultobj = 0;
5910 wxBrush *arg1 = (wxBrush *) 0 ;
5911 int arg2 ;
5912 void *argp1 = 0 ;
5913 int res1 = 0 ;
5914 int val2 ;
5915 int ecode2 = 0 ;
5916 PyObject * obj0 = 0 ;
5917 PyObject * obj1 = 0 ;
5918 char * kwnames[] = {
5919 (char *) "self",(char *) "style", NULL
5920 };
5921
5922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5924 if (!SWIG_IsOK(res1)) {
5925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5926 }
5927 arg1 = reinterpret_cast< wxBrush * >(argp1);
5928 ecode2 = SWIG_AsVal_int(obj1, &val2);
5929 if (!SWIG_IsOK(ecode2)) {
5930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5931 }
5932 arg2 = static_cast< int >(val2);
5933 {
5934 PyThreadState* __tstate = wxPyBeginAllowThreads();
5935 (arg1)->SetStyle(arg2);
5936 wxPyEndAllowThreads(__tstate);
5937 if (PyErr_Occurred()) SWIG_fail;
5938 }
5939 resultobj = SWIG_Py_Void();
5940 return resultobj;
5941 fail:
5942 return NULL;
5943 }
5944
5945
5946 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5947 PyObject *resultobj = 0;
5948 wxBrush *arg1 = (wxBrush *) 0 ;
5949 wxBitmap *arg2 = 0 ;
5950 void *argp1 = 0 ;
5951 int res1 = 0 ;
5952 void *argp2 = 0 ;
5953 int res2 = 0 ;
5954 PyObject * obj0 = 0 ;
5955 PyObject * obj1 = 0 ;
5956 char * kwnames[] = {
5957 (char *) "self",(char *) "stipple", NULL
5958 };
5959
5960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5962 if (!SWIG_IsOK(res1)) {
5963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5964 }
5965 arg1 = reinterpret_cast< wxBrush * >(argp1);
5966 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5967 if (!SWIG_IsOK(res2)) {
5968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5969 }
5970 if (!argp2) {
5971 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5972 }
5973 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5974 {
5975 PyThreadState* __tstate = wxPyBeginAllowThreads();
5976 (arg1)->SetStipple((wxBitmap const &)*arg2);
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) SWIG_fail;
5979 }
5980 resultobj = SWIG_Py_Void();
5981 return resultobj;
5982 fail:
5983 return NULL;
5984 }
5985
5986
5987 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5988 PyObject *resultobj = 0;
5989 wxBrush *arg1 = (wxBrush *) 0 ;
5990 wxColour result;
5991 void *argp1 = 0 ;
5992 int res1 = 0 ;
5993 PyObject *swig_obj[1] ;
5994
5995 if (!args) SWIG_fail;
5996 swig_obj[0] = args;
5997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5998 if (!SWIG_IsOK(res1)) {
5999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
6000 }
6001 arg1 = reinterpret_cast< wxBrush * >(argp1);
6002 {
6003 PyThreadState* __tstate = wxPyBeginAllowThreads();
6004 result = ((wxBrush const *)arg1)->GetColour();
6005 wxPyEndAllowThreads(__tstate);
6006 if (PyErr_Occurred()) SWIG_fail;
6007 }
6008 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
6009 return resultobj;
6010 fail:
6011 return NULL;
6012 }
6013
6014
6015 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6016 PyObject *resultobj = 0;
6017 wxBrush *arg1 = (wxBrush *) 0 ;
6018 int result;
6019 void *argp1 = 0 ;
6020 int res1 = 0 ;
6021 PyObject *swig_obj[1] ;
6022
6023 if (!args) SWIG_fail;
6024 swig_obj[0] = args;
6025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6026 if (!SWIG_IsOK(res1)) {
6027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
6028 }
6029 arg1 = reinterpret_cast< wxBrush * >(argp1);
6030 {
6031 PyThreadState* __tstate = wxPyBeginAllowThreads();
6032 result = (int)((wxBrush const *)arg1)->GetStyle();
6033 wxPyEndAllowThreads(__tstate);
6034 if (PyErr_Occurred()) SWIG_fail;
6035 }
6036 resultobj = SWIG_From_int(static_cast< int >(result));
6037 return resultobj;
6038 fail:
6039 return NULL;
6040 }
6041
6042
6043 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6044 PyObject *resultobj = 0;
6045 wxBrush *arg1 = (wxBrush *) 0 ;
6046 wxBitmap *result = 0 ;
6047 void *argp1 = 0 ;
6048 int res1 = 0 ;
6049 PyObject *swig_obj[1] ;
6050
6051 if (!args) SWIG_fail;
6052 swig_obj[0] = args;
6053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6054 if (!SWIG_IsOK(res1)) {
6055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6056 }
6057 arg1 = reinterpret_cast< wxBrush * >(argp1);
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6061 wxPyEndAllowThreads(__tstate);
6062 if (PyErr_Occurred()) SWIG_fail;
6063 }
6064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6065 return resultobj;
6066 fail:
6067 return NULL;
6068 }
6069
6070
6071 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6072 PyObject *resultobj = 0;
6073 wxBrush *arg1 = (wxBrush *) 0 ;
6074 bool result;
6075 void *argp1 = 0 ;
6076 int res1 = 0 ;
6077 PyObject *swig_obj[1] ;
6078
6079 if (!args) SWIG_fail;
6080 swig_obj[0] = args;
6081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6082 if (!SWIG_IsOK(res1)) {
6083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6084 }
6085 arg1 = reinterpret_cast< wxBrush * >(argp1);
6086 {
6087 PyThreadState* __tstate = wxPyBeginAllowThreads();
6088 result = (bool)((wxBrush const *)arg1)->IsHatch();
6089 wxPyEndAllowThreads(__tstate);
6090 if (PyErr_Occurred()) SWIG_fail;
6091 }
6092 {
6093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6094 }
6095 return resultobj;
6096 fail:
6097 return NULL;
6098 }
6099
6100
6101 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6102 PyObject *resultobj = 0;
6103 wxBrush *arg1 = (wxBrush *) 0 ;
6104 bool result;
6105 void *argp1 = 0 ;
6106 int res1 = 0 ;
6107 PyObject *swig_obj[1] ;
6108
6109 if (!args) SWIG_fail;
6110 swig_obj[0] = args;
6111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6112 if (!SWIG_IsOK(res1)) {
6113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6114 }
6115 arg1 = reinterpret_cast< wxBrush * >(argp1);
6116 {
6117 PyThreadState* __tstate = wxPyBeginAllowThreads();
6118 result = (bool)(arg1)->IsOk();
6119 wxPyEndAllowThreads(__tstate);
6120 if (PyErr_Occurred()) SWIG_fail;
6121 }
6122 {
6123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6124 }
6125 return resultobj;
6126 fail:
6127 return NULL;
6128 }
6129
6130
6131 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6132 PyObject *obj;
6133 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6134 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6135 return SWIG_Py_Void();
6136 }
6137
6138 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6139 return SWIG_Python_InitShadowInstance(args);
6140 }
6141
6142 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6143 PyObject *resultobj = 0;
6144 wxString *arg1 = 0 ;
6145 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6146 wxBitmap *result = 0 ;
6147 bool temp1 = false ;
6148 int val2 ;
6149 int ecode2 = 0 ;
6150 PyObject * obj0 = 0 ;
6151 PyObject * obj1 = 0 ;
6152 char * kwnames[] = {
6153 (char *) "name",(char *) "type", NULL
6154 };
6155
6156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6157 {
6158 arg1 = wxString_in_helper(obj0);
6159 if (arg1 == NULL) SWIG_fail;
6160 temp1 = true;
6161 }
6162 if (obj1) {
6163 ecode2 = SWIG_AsVal_int(obj1, &val2);
6164 if (!SWIG_IsOK(ecode2)) {
6165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6166 }
6167 arg2 = static_cast< wxBitmapType >(val2);
6168 }
6169 {
6170 if (!wxPyCheckForApp()) SWIG_fail;
6171 PyThreadState* __tstate = wxPyBeginAllowThreads();
6172 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6173 wxPyEndAllowThreads(__tstate);
6174 if (PyErr_Occurred()) SWIG_fail;
6175 }
6176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6177 {
6178 if (temp1)
6179 delete arg1;
6180 }
6181 return resultobj;
6182 fail:
6183 {
6184 if (temp1)
6185 delete arg1;
6186 }
6187 return NULL;
6188 }
6189
6190
6191 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6192 PyObject *resultobj = 0;
6193 wxBitmap *arg1 = (wxBitmap *) 0 ;
6194 void *argp1 = 0 ;
6195 int res1 = 0 ;
6196 PyObject *swig_obj[1] ;
6197
6198 if (!args) SWIG_fail;
6199 swig_obj[0] = args;
6200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6201 if (!SWIG_IsOK(res1)) {
6202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6203 }
6204 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6205 {
6206 delete arg1;
6207
6208 if (PyErr_Occurred()) SWIG_fail;
6209 }
6210 resultobj = SWIG_Py_Void();
6211 return resultobj;
6212 fail:
6213 return NULL;
6214 }
6215
6216
6217 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6218 PyObject *resultobj = 0;
6219 int arg1 ;
6220 int arg2 ;
6221 int arg3 = (int) -1 ;
6222 wxBitmap *result = 0 ;
6223 int val1 ;
6224 int ecode1 = 0 ;
6225 int val2 ;
6226 int ecode2 = 0 ;
6227 int val3 ;
6228 int ecode3 = 0 ;
6229 PyObject * obj0 = 0 ;
6230 PyObject * obj1 = 0 ;
6231 PyObject * obj2 = 0 ;
6232 char * kwnames[] = {
6233 (char *) "width",(char *) "height",(char *) "depth", NULL
6234 };
6235
6236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6237 ecode1 = SWIG_AsVal_int(obj0, &val1);
6238 if (!SWIG_IsOK(ecode1)) {
6239 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6240 }
6241 arg1 = static_cast< int >(val1);
6242 ecode2 = SWIG_AsVal_int(obj1, &val2);
6243 if (!SWIG_IsOK(ecode2)) {
6244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6245 }
6246 arg2 = static_cast< int >(val2);
6247 if (obj2) {
6248 ecode3 = SWIG_AsVal_int(obj2, &val3);
6249 if (!SWIG_IsOK(ecode3)) {
6250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6251 }
6252 arg3 = static_cast< int >(val3);
6253 }
6254 {
6255 if (!wxPyCheckForApp()) SWIG_fail;
6256 PyThreadState* __tstate = wxPyBeginAllowThreads();
6257 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6258 wxPyEndAllowThreads(__tstate);
6259 if (PyErr_Occurred()) SWIG_fail;
6260 }
6261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6262 return resultobj;
6263 fail:
6264 return NULL;
6265 }
6266
6267
6268 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6269 PyObject *resultobj = 0;
6270 wxIcon *arg1 = 0 ;
6271 wxBitmap *result = 0 ;
6272 void *argp1 = 0 ;
6273 int res1 = 0 ;
6274 PyObject * obj0 = 0 ;
6275 char * kwnames[] = {
6276 (char *) "icon", NULL
6277 };
6278
6279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6280 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6281 if (!SWIG_IsOK(res1)) {
6282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6283 }
6284 if (!argp1) {
6285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6286 }
6287 arg1 = reinterpret_cast< wxIcon * >(argp1);
6288 {
6289 if (!wxPyCheckForApp()) SWIG_fail;
6290 PyThreadState* __tstate = wxPyBeginAllowThreads();
6291 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6292 wxPyEndAllowThreads(__tstate);
6293 if (PyErr_Occurred()) SWIG_fail;
6294 }
6295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6296 return resultobj;
6297 fail:
6298 return NULL;
6299 }
6300
6301
6302 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6303 PyObject *resultobj = 0;
6304 wxImage *arg1 = 0 ;
6305 int arg2 = (int) -1 ;
6306 wxBitmap *result = 0 ;
6307 void *argp1 = 0 ;
6308 int res1 = 0 ;
6309 int val2 ;
6310 int ecode2 = 0 ;
6311 PyObject * obj0 = 0 ;
6312 PyObject * obj1 = 0 ;
6313 char * kwnames[] = {
6314 (char *) "image",(char *) "depth", NULL
6315 };
6316
6317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6318 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6319 if (!SWIG_IsOK(res1)) {
6320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6321 }
6322 if (!argp1) {
6323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6324 }
6325 arg1 = reinterpret_cast< wxImage * >(argp1);
6326 if (obj1) {
6327 ecode2 = SWIG_AsVal_int(obj1, &val2);
6328 if (!SWIG_IsOK(ecode2)) {
6329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6330 }
6331 arg2 = static_cast< int >(val2);
6332 }
6333 {
6334 if (!wxPyCheckForApp()) SWIG_fail;
6335 PyThreadState* __tstate = wxPyBeginAllowThreads();
6336 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6337 wxPyEndAllowThreads(__tstate);
6338 if (PyErr_Occurred()) SWIG_fail;
6339 }
6340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6341 return resultobj;
6342 fail:
6343 return NULL;
6344 }
6345
6346
6347 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6348 PyObject *resultobj = 0;
6349 PyObject *arg1 = (PyObject *) 0 ;
6350 wxBitmap *result = 0 ;
6351 PyObject * obj0 = 0 ;
6352 char * kwnames[] = {
6353 (char *) "listOfStrings", NULL
6354 };
6355
6356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6357 arg1 = obj0;
6358 {
6359 if (!wxPyCheckForApp()) SWIG_fail;
6360 PyThreadState* __tstate = wxPyBeginAllowThreads();
6361 result = (wxBitmap *)new_wxBitmap(arg1);
6362 wxPyEndAllowThreads(__tstate);
6363 if (PyErr_Occurred()) SWIG_fail;
6364 }
6365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6366 return resultobj;
6367 fail:
6368 return NULL;
6369 }
6370
6371
6372 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6373 PyObject *resultobj = 0;
6374 PyObject *arg1 = (PyObject *) 0 ;
6375 int arg2 ;
6376 int arg3 ;
6377 int arg4 = (int) 1 ;
6378 wxBitmap *result = 0 ;
6379 int val2 ;
6380 int ecode2 = 0 ;
6381 int val3 ;
6382 int ecode3 = 0 ;
6383 int val4 ;
6384 int ecode4 = 0 ;
6385 PyObject * obj0 = 0 ;
6386 PyObject * obj1 = 0 ;
6387 PyObject * obj2 = 0 ;
6388 PyObject * obj3 = 0 ;
6389 char * kwnames[] = {
6390 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6391 };
6392
6393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6394 arg1 = obj0;
6395 ecode2 = SWIG_AsVal_int(obj1, &val2);
6396 if (!SWIG_IsOK(ecode2)) {
6397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6398 }
6399 arg2 = static_cast< int >(val2);
6400 ecode3 = SWIG_AsVal_int(obj2, &val3);
6401 if (!SWIG_IsOK(ecode3)) {
6402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6403 }
6404 arg3 = static_cast< int >(val3);
6405 if (obj3) {
6406 ecode4 = SWIG_AsVal_int(obj3, &val4);
6407 if (!SWIG_IsOK(ecode4)) {
6408 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6409 }
6410 arg4 = static_cast< int >(val4);
6411 }
6412 {
6413 if (!wxPyCheckForApp()) SWIG_fail;
6414 PyThreadState* __tstate = wxPyBeginAllowThreads();
6415 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6416 wxPyEndAllowThreads(__tstate);
6417 if (PyErr_Occurred()) SWIG_fail;
6418 }
6419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6420 return resultobj;
6421 fail:
6422 return NULL;
6423 }
6424
6425
6426 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6427 PyObject *resultobj = 0;
6428 wxBitmap *arg1 = (wxBitmap *) 0 ;
6429 long result;
6430 void *argp1 = 0 ;
6431 int res1 = 0 ;
6432 PyObject *swig_obj[1] ;
6433
6434 if (!args) SWIG_fail;
6435 swig_obj[0] = args;
6436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6437 if (!SWIG_IsOK(res1)) {
6438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6439 }
6440 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6441 {
6442 result = (long)(arg1)->GetHandle();
6443 if (PyErr_Occurred()) SWIG_fail;
6444 }
6445 resultobj = SWIG_From_long(static_cast< long >(result));
6446 return resultobj;
6447 fail:
6448 return NULL;
6449 }
6450
6451
6452 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6453 PyObject *resultobj = 0;
6454 wxBitmap *arg1 = (wxBitmap *) 0 ;
6455 long arg2 ;
6456 void *argp1 = 0 ;
6457 int res1 = 0 ;
6458 long val2 ;
6459 int ecode2 = 0 ;
6460 PyObject * obj0 = 0 ;
6461 PyObject * obj1 = 0 ;
6462 char * kwnames[] = {
6463 (char *) "self",(char *) "handle", NULL
6464 };
6465
6466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6468 if (!SWIG_IsOK(res1)) {
6469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6470 }
6471 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6472 ecode2 = SWIG_AsVal_long(obj1, &val2);
6473 if (!SWIG_IsOK(ecode2)) {
6474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6475 }
6476 arg2 = static_cast< long >(val2);
6477 {
6478 wxBitmap_SetHandle(arg1,arg2);
6479 if (PyErr_Occurred()) SWIG_fail;
6480 }
6481 resultobj = SWIG_Py_Void();
6482 return resultobj;
6483 fail:
6484 return NULL;
6485 }
6486
6487
6488 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6489 PyObject *resultobj = 0;
6490 wxBitmap *arg1 = (wxBitmap *) 0 ;
6491 bool result;
6492 void *argp1 = 0 ;
6493 int res1 = 0 ;
6494 PyObject *swig_obj[1] ;
6495
6496 if (!args) SWIG_fail;
6497 swig_obj[0] = args;
6498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6499 if (!SWIG_IsOK(res1)) {
6500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6501 }
6502 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6503 {
6504 result = (bool)(arg1)->IsOk();
6505 if (PyErr_Occurred()) SWIG_fail;
6506 }
6507 {
6508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6509 }
6510 return resultobj;
6511 fail:
6512 return NULL;
6513 }
6514
6515
6516 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6517 PyObject *resultobj = 0;
6518 wxBitmap *arg1 = (wxBitmap *) 0 ;
6519 int result;
6520 void *argp1 = 0 ;
6521 int res1 = 0 ;
6522 PyObject *swig_obj[1] ;
6523
6524 if (!args) SWIG_fail;
6525 swig_obj[0] = args;
6526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6527 if (!SWIG_IsOK(res1)) {
6528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6529 }
6530 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6531 {
6532 result = (int)(arg1)->GetWidth();
6533 if (PyErr_Occurred()) SWIG_fail;
6534 }
6535 resultobj = SWIG_From_int(static_cast< int >(result));
6536 return resultobj;
6537 fail:
6538 return NULL;
6539 }
6540
6541
6542 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6543 PyObject *resultobj = 0;
6544 wxBitmap *arg1 = (wxBitmap *) 0 ;
6545 int result;
6546 void *argp1 = 0 ;
6547 int res1 = 0 ;
6548 PyObject *swig_obj[1] ;
6549
6550 if (!args) SWIG_fail;
6551 swig_obj[0] = args;
6552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6553 if (!SWIG_IsOK(res1)) {
6554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6555 }
6556 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6557 {
6558 result = (int)(arg1)->GetHeight();
6559 if (PyErr_Occurred()) SWIG_fail;
6560 }
6561 resultobj = SWIG_From_int(static_cast< int >(result));
6562 return resultobj;
6563 fail:
6564 return NULL;
6565 }
6566
6567
6568 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6569 PyObject *resultobj = 0;
6570 wxBitmap *arg1 = (wxBitmap *) 0 ;
6571 int result;
6572 void *argp1 = 0 ;
6573 int res1 = 0 ;
6574 PyObject *swig_obj[1] ;
6575
6576 if (!args) SWIG_fail;
6577 swig_obj[0] = args;
6578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6579 if (!SWIG_IsOK(res1)) {
6580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6581 }
6582 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6583 {
6584 result = (int)(arg1)->GetDepth();
6585 if (PyErr_Occurred()) SWIG_fail;
6586 }
6587 resultobj = SWIG_From_int(static_cast< int >(result));
6588 return resultobj;
6589 fail:
6590 return NULL;
6591 }
6592
6593
6594 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6595 PyObject *resultobj = 0;
6596 wxBitmap *arg1 = (wxBitmap *) 0 ;
6597 wxSize result;
6598 void *argp1 = 0 ;
6599 int res1 = 0 ;
6600 PyObject *swig_obj[1] ;
6601
6602 if (!args) SWIG_fail;
6603 swig_obj[0] = args;
6604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6605 if (!SWIG_IsOK(res1)) {
6606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6607 }
6608 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6609 {
6610 result = wxBitmap_GetSize(arg1);
6611 if (PyErr_Occurred()) SWIG_fail;
6612 }
6613 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6614 return resultobj;
6615 fail:
6616 return NULL;
6617 }
6618
6619
6620 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6621 PyObject *resultobj = 0;
6622 wxBitmap *arg1 = (wxBitmap *) 0 ;
6623 SwigValueWrapper<wxImage > result;
6624 void *argp1 = 0 ;
6625 int res1 = 0 ;
6626 PyObject *swig_obj[1] ;
6627
6628 if (!args) SWIG_fail;
6629 swig_obj[0] = args;
6630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6631 if (!SWIG_IsOK(res1)) {
6632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6633 }
6634 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6635 {
6636 result = ((wxBitmap const *)arg1)->ConvertToImage();
6637 if (PyErr_Occurred()) SWIG_fail;
6638 }
6639 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6640 return resultobj;
6641 fail:
6642 return NULL;
6643 }
6644
6645
6646 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6647 PyObject *resultobj = 0;
6648 wxBitmap *arg1 = (wxBitmap *) 0 ;
6649 wxMask *result = 0 ;
6650 void *argp1 = 0 ;
6651 int res1 = 0 ;
6652 PyObject *swig_obj[1] ;
6653
6654 if (!args) SWIG_fail;
6655 swig_obj[0] = args;
6656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6657 if (!SWIG_IsOK(res1)) {
6658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6659 }
6660 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6661 {
6662 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6666 return resultobj;
6667 fail:
6668 return NULL;
6669 }
6670
6671
6672 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6673 PyObject *resultobj = 0;
6674 wxBitmap *arg1 = (wxBitmap *) 0 ;
6675 wxMask *arg2 = (wxMask *) 0 ;
6676 void *argp1 = 0 ;
6677 int res1 = 0 ;
6678 int res2 = 0 ;
6679 PyObject * obj0 = 0 ;
6680 PyObject * obj1 = 0 ;
6681 char * kwnames[] = {
6682 (char *) "self",(char *) "mask", NULL
6683 };
6684
6685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6687 if (!SWIG_IsOK(res1)) {
6688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6689 }
6690 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6691 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6692 if (!SWIG_IsOK(res2)) {
6693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6694 }
6695 {
6696 (arg1)->SetMask(arg2);
6697 if (PyErr_Occurred()) SWIG_fail;
6698 }
6699 resultobj = SWIG_Py_Void();
6700 return resultobj;
6701 fail:
6702 return NULL;
6703 }
6704
6705
6706 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6707 PyObject *resultobj = 0;
6708 wxBitmap *arg1 = (wxBitmap *) 0 ;
6709 wxColour *arg2 = 0 ;
6710 void *argp1 = 0 ;
6711 int res1 = 0 ;
6712 wxColour temp2 ;
6713 PyObject * obj0 = 0 ;
6714 PyObject * obj1 = 0 ;
6715 char * kwnames[] = {
6716 (char *) "self",(char *) "colour", NULL
6717 };
6718
6719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6721 if (!SWIG_IsOK(res1)) {
6722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6723 }
6724 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6725 {
6726 arg2 = &temp2;
6727 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6728 }
6729 {
6730 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6731 if (PyErr_Occurred()) SWIG_fail;
6732 }
6733 resultobj = SWIG_Py_Void();
6734 return resultobj;
6735 fail:
6736 return NULL;
6737 }
6738
6739
6740 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6741 PyObject *resultobj = 0;
6742 wxBitmap *arg1 = (wxBitmap *) 0 ;
6743 wxRect *arg2 = 0 ;
6744 SwigValueWrapper<wxBitmap > result;
6745 void *argp1 = 0 ;
6746 int res1 = 0 ;
6747 wxRect temp2 ;
6748 PyObject * obj0 = 0 ;
6749 PyObject * obj1 = 0 ;
6750 char * kwnames[] = {
6751 (char *) "self",(char *) "rect", NULL
6752 };
6753
6754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6756 if (!SWIG_IsOK(res1)) {
6757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6758 }
6759 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6760 {
6761 arg2 = &temp2;
6762 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6763 }
6764 {
6765 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6766 if (PyErr_Occurred()) SWIG_fail;
6767 }
6768 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6769 return resultobj;
6770 fail:
6771 return NULL;
6772 }
6773
6774
6775 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6776 PyObject *resultobj = 0;
6777 wxBitmap *arg1 = (wxBitmap *) 0 ;
6778 wxString *arg2 = 0 ;
6779 wxBitmapType arg3 ;
6780 wxPalette *arg4 = (wxPalette *) NULL ;
6781 bool result;
6782 void *argp1 = 0 ;
6783 int res1 = 0 ;
6784 bool temp2 = false ;
6785 int val3 ;
6786 int ecode3 = 0 ;
6787 void *argp4 = 0 ;
6788 int res4 = 0 ;
6789 PyObject * obj0 = 0 ;
6790 PyObject * obj1 = 0 ;
6791 PyObject * obj2 = 0 ;
6792 PyObject * obj3 = 0 ;
6793 char * kwnames[] = {
6794 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6795 };
6796
6797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6799 if (!SWIG_IsOK(res1)) {
6800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6801 }
6802 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6803 {
6804 arg2 = wxString_in_helper(obj1);
6805 if (arg2 == NULL) SWIG_fail;
6806 temp2 = true;
6807 }
6808 ecode3 = SWIG_AsVal_int(obj2, &val3);
6809 if (!SWIG_IsOK(ecode3)) {
6810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6811 }
6812 arg3 = static_cast< wxBitmapType >(val3);
6813 if (obj3) {
6814 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6815 if (!SWIG_IsOK(res4)) {
6816 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6817 }
6818 arg4 = reinterpret_cast< wxPalette * >(argp4);
6819 }
6820 {
6821 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6822 if (PyErr_Occurred()) SWIG_fail;
6823 }
6824 {
6825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6826 }
6827 {
6828 if (temp2)
6829 delete arg2;
6830 }
6831 return resultobj;
6832 fail:
6833 {
6834 if (temp2)
6835 delete arg2;
6836 }
6837 return NULL;
6838 }
6839
6840
6841 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6842 PyObject *resultobj = 0;
6843 wxBitmap *arg1 = (wxBitmap *) 0 ;
6844 wxString *arg2 = 0 ;
6845 wxBitmapType arg3 ;
6846 bool result;
6847 void *argp1 = 0 ;
6848 int res1 = 0 ;
6849 bool temp2 = false ;
6850 int val3 ;
6851 int ecode3 = 0 ;
6852 PyObject * obj0 = 0 ;
6853 PyObject * obj1 = 0 ;
6854 PyObject * obj2 = 0 ;
6855 char * kwnames[] = {
6856 (char *) "self",(char *) "name",(char *) "type", NULL
6857 };
6858
6859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6861 if (!SWIG_IsOK(res1)) {
6862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6863 }
6864 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6865 {
6866 arg2 = wxString_in_helper(obj1);
6867 if (arg2 == NULL) SWIG_fail;
6868 temp2 = true;
6869 }
6870 ecode3 = SWIG_AsVal_int(obj2, &val3);
6871 if (!SWIG_IsOK(ecode3)) {
6872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6873 }
6874 arg3 = static_cast< wxBitmapType >(val3);
6875 {
6876 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6877 if (PyErr_Occurred()) SWIG_fail;
6878 }
6879 {
6880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6881 }
6882 {
6883 if (temp2)
6884 delete arg2;
6885 }
6886 return resultobj;
6887 fail:
6888 {
6889 if (temp2)
6890 delete arg2;
6891 }
6892 return NULL;
6893 }
6894
6895
6896 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6897 PyObject *resultobj = 0;
6898 wxBitmap *arg1 = (wxBitmap *) 0 ;
6899 wxPalette *result = 0 ;
6900 void *argp1 = 0 ;
6901 int res1 = 0 ;
6902 PyObject *swig_obj[1] ;
6903
6904 if (!args) SWIG_fail;
6905 swig_obj[0] = args;
6906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6907 if (!SWIG_IsOK(res1)) {
6908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6909 }
6910 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6911 {
6912 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6913 if (PyErr_Occurred()) SWIG_fail;
6914 }
6915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6916 return resultobj;
6917 fail:
6918 return NULL;
6919 }
6920
6921
6922 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6923 PyObject *resultobj = 0;
6924 wxBitmap *arg1 = (wxBitmap *) 0 ;
6925 wxPalette *arg2 = 0 ;
6926 void *argp1 = 0 ;
6927 int res1 = 0 ;
6928 void *argp2 = 0 ;
6929 int res2 = 0 ;
6930 PyObject * obj0 = 0 ;
6931 PyObject * obj1 = 0 ;
6932 char * kwnames[] = {
6933 (char *) "self",(char *) "palette", NULL
6934 };
6935
6936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6938 if (!SWIG_IsOK(res1)) {
6939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6940 }
6941 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6942 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6943 if (!SWIG_IsOK(res2)) {
6944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6945 }
6946 if (!argp2) {
6947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6948 }
6949 arg2 = reinterpret_cast< wxPalette * >(argp2);
6950 {
6951 (arg1)->SetPalette((wxPalette const &)*arg2);
6952 if (PyErr_Occurred()) SWIG_fail;
6953 }
6954 resultobj = SWIG_Py_Void();
6955 return resultobj;
6956 fail:
6957 return NULL;
6958 }
6959
6960
6961 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6962 PyObject *resultobj = 0;
6963 wxBitmap *arg1 = (wxBitmap *) 0 ;
6964 wxIcon *arg2 = 0 ;
6965 bool result;
6966 void *argp1 = 0 ;
6967 int res1 = 0 ;
6968 void *argp2 = 0 ;
6969 int res2 = 0 ;
6970 PyObject * obj0 = 0 ;
6971 PyObject * obj1 = 0 ;
6972 char * kwnames[] = {
6973 (char *) "self",(char *) "icon", NULL
6974 };
6975
6976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6978 if (!SWIG_IsOK(res1)) {
6979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6980 }
6981 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6982 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6983 if (!SWIG_IsOK(res2)) {
6984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6985 }
6986 if (!argp2) {
6987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6988 }
6989 arg2 = reinterpret_cast< wxIcon * >(argp2);
6990 {
6991 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6992 if (PyErr_Occurred()) SWIG_fail;
6993 }
6994 {
6995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6996 }
6997 return resultobj;
6998 fail:
6999 return NULL;
7000 }
7001
7002
7003 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7004 PyObject *resultobj = 0;
7005 wxBitmap *arg1 = (wxBitmap *) 0 ;
7006 int arg2 ;
7007 void *argp1 = 0 ;
7008 int res1 = 0 ;
7009 int val2 ;
7010 int ecode2 = 0 ;
7011 PyObject * obj0 = 0 ;
7012 PyObject * obj1 = 0 ;
7013 char * kwnames[] = {
7014 (char *) "self",(char *) "height", NULL
7015 };
7016
7017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
7018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7019 if (!SWIG_IsOK(res1)) {
7020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
7021 }
7022 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7023 ecode2 = SWIG_AsVal_int(obj1, &val2);
7024 if (!SWIG_IsOK(ecode2)) {
7025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
7026 }
7027 arg2 = static_cast< int >(val2);
7028 {
7029 (arg1)->SetHeight(arg2);
7030 if (PyErr_Occurred()) SWIG_fail;
7031 }
7032 resultobj = SWIG_Py_Void();
7033 return resultobj;
7034 fail:
7035 return NULL;
7036 }
7037
7038
7039 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7040 PyObject *resultobj = 0;
7041 wxBitmap *arg1 = (wxBitmap *) 0 ;
7042 int arg2 ;
7043 void *argp1 = 0 ;
7044 int res1 = 0 ;
7045 int val2 ;
7046 int ecode2 = 0 ;
7047 PyObject * obj0 = 0 ;
7048 PyObject * obj1 = 0 ;
7049 char * kwnames[] = {
7050 (char *) "self",(char *) "width", NULL
7051 };
7052
7053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7055 if (!SWIG_IsOK(res1)) {
7056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7057 }
7058 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7059 ecode2 = SWIG_AsVal_int(obj1, &val2);
7060 if (!SWIG_IsOK(ecode2)) {
7061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
7062 }
7063 arg2 = static_cast< int >(val2);
7064 {
7065 (arg1)->SetWidth(arg2);
7066 if (PyErr_Occurred()) SWIG_fail;
7067 }
7068 resultobj = SWIG_Py_Void();
7069 return resultobj;
7070 fail:
7071 return NULL;
7072 }
7073
7074
7075 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7076 PyObject *resultobj = 0;
7077 wxBitmap *arg1 = (wxBitmap *) 0 ;
7078 int arg2 ;
7079 void *argp1 = 0 ;
7080 int res1 = 0 ;
7081 int val2 ;
7082 int ecode2 = 0 ;
7083 PyObject * obj0 = 0 ;
7084 PyObject * obj1 = 0 ;
7085 char * kwnames[] = {
7086 (char *) "self",(char *) "depth", NULL
7087 };
7088
7089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7091 if (!SWIG_IsOK(res1)) {
7092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7093 }
7094 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7095 ecode2 = SWIG_AsVal_int(obj1, &val2);
7096 if (!SWIG_IsOK(ecode2)) {
7097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
7098 }
7099 arg2 = static_cast< int >(val2);
7100 {
7101 (arg1)->SetDepth(arg2);
7102 if (PyErr_Occurred()) SWIG_fail;
7103 }
7104 resultobj = SWIG_Py_Void();
7105 return resultobj;
7106 fail:
7107 return NULL;
7108 }
7109
7110
7111 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7112 PyObject *resultobj = 0;
7113 wxBitmap *arg1 = (wxBitmap *) 0 ;
7114 wxSize *arg2 = 0 ;
7115 void *argp1 = 0 ;
7116 int res1 = 0 ;
7117 wxSize temp2 ;
7118 PyObject * obj0 = 0 ;
7119 PyObject * obj1 = 0 ;
7120 char * kwnames[] = {
7121 (char *) "self",(char *) "size", NULL
7122 };
7123
7124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7126 if (!SWIG_IsOK(res1)) {
7127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7128 }
7129 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7130 {
7131 arg2 = &temp2;
7132 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7133 }
7134 {
7135 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
7136 if (PyErr_Occurred()) SWIG_fail;
7137 }
7138 resultobj = SWIG_Py_Void();
7139 return resultobj;
7140 fail:
7141 return NULL;
7142 }
7143
7144
7145 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7146 PyObject *resultobj = 0;
7147 wxBitmap *arg1 = (wxBitmap *) 0 ;
7148 wxCursor *arg2 = 0 ;
7149 bool result;
7150 void *argp1 = 0 ;
7151 int res1 = 0 ;
7152 void *argp2 = 0 ;
7153 int res2 = 0 ;
7154 PyObject * obj0 = 0 ;
7155 PyObject * obj1 = 0 ;
7156 char * kwnames[] = {
7157 (char *) "self",(char *) "cursor", NULL
7158 };
7159
7160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
7161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7162 if (!SWIG_IsOK(res1)) {
7163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
7164 }
7165 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7166 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
7167 if (!SWIG_IsOK(res2)) {
7168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7169 }
7170 if (!argp2) {
7171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7172 }
7173 arg2 = reinterpret_cast< wxCursor * >(argp2);
7174 {
7175 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
7176 if (PyErr_Occurred()) SWIG_fail;
7177 }
7178 {
7179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7180 }
7181 return resultobj;
7182 fail:
7183 return NULL;
7184 }
7185
7186
7187 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7188 PyObject *resultobj = 0;
7189 wxBitmap *arg1 = (wxBitmap *) 0 ;
7190 buffer arg2 ;
7191 int arg3 ;
7192 void *argp1 = 0 ;
7193 int res1 = 0 ;
7194 Py_ssize_t temp2 ;
7195 PyObject * obj0 = 0 ;
7196 PyObject * obj1 = 0 ;
7197 char * kwnames[] = {
7198 (char *) "self",(char *) "data", NULL
7199 };
7200
7201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7203 if (!SWIG_IsOK(res1)) {
7204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7205 }
7206 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7207 {
7208 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7209 arg3 = (int)temp2;
7210 }
7211 {
7212 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7213 if (PyErr_Occurred()) SWIG_fail;
7214 }
7215 resultobj = SWIG_Py_Void();
7216 return resultobj;
7217 fail:
7218 return NULL;
7219 }
7220
7221
7222 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7223 PyObject *resultobj = 0;
7224 wxBitmap *arg1 = (wxBitmap *) 0 ;
7225 buffer arg2 ;
7226 int arg3 ;
7227 void *argp1 = 0 ;
7228 int res1 = 0 ;
7229 Py_ssize_t temp2 ;
7230 PyObject * obj0 = 0 ;
7231 PyObject * obj1 = 0 ;
7232 char * kwnames[] = {
7233 (char *) "self",(char *) "data", NULL
7234 };
7235
7236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7238 if (!SWIG_IsOK(res1)) {
7239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7240 }
7241 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7242 {
7243 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7244 arg3 = (int)temp2;
7245 }
7246 {
7247 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7248 if (PyErr_Occurred()) SWIG_fail;
7249 }
7250 resultobj = SWIG_Py_Void();
7251 return resultobj;
7252 fail:
7253 return NULL;
7254 }
7255
7256
7257 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7258 PyObject *resultobj = 0;
7259 wxBitmap *arg1 = (wxBitmap *) 0 ;
7260 wxBitmap *arg2 = (wxBitmap *) 0 ;
7261 bool result;
7262 void *argp1 = 0 ;
7263 int res1 = 0 ;
7264 void *argp2 = 0 ;
7265 int res2 = 0 ;
7266 PyObject * obj0 = 0 ;
7267 PyObject * obj1 = 0 ;
7268 char * kwnames[] = {
7269 (char *) "self",(char *) "other", NULL
7270 };
7271
7272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7274 if (!SWIG_IsOK(res1)) {
7275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7276 }
7277 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7278 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7279 if (!SWIG_IsOK(res2)) {
7280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7281 }
7282 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7283 {
7284 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7285 if (PyErr_Occurred()) SWIG_fail;
7286 }
7287 {
7288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7289 }
7290 return resultobj;
7291 fail:
7292 return NULL;
7293 }
7294
7295
7296 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7297 PyObject *resultobj = 0;
7298 wxBitmap *arg1 = (wxBitmap *) 0 ;
7299 wxBitmap *arg2 = (wxBitmap *) 0 ;
7300 bool result;
7301 void *argp1 = 0 ;
7302 int res1 = 0 ;
7303 void *argp2 = 0 ;
7304 int res2 = 0 ;
7305 PyObject * obj0 = 0 ;
7306 PyObject * obj1 = 0 ;
7307 char * kwnames[] = {
7308 (char *) "self",(char *) "other", NULL
7309 };
7310
7311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7313 if (!SWIG_IsOK(res1)) {
7314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7315 }
7316 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7317 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7318 if (!SWIG_IsOK(res2)) {
7319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7320 }
7321 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7322 {
7323 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7324 if (PyErr_Occurred()) SWIG_fail;
7325 }
7326 {
7327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7328 }
7329 return resultobj;
7330 fail:
7331 return NULL;
7332 }
7333
7334
7335 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7336 PyObject *obj;
7337 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7338 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7339 return SWIG_Py_Void();
7340 }
7341
7342 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7343 return SWIG_Python_InitShadowInstance(args);
7344 }
7345
7346 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7347 PyObject *resultobj = 0;
7348 int arg1 ;
7349 int arg2 ;
7350 buffer arg3 ;
7351 int arg4 ;
7352 buffer arg5 ;
7353 int arg6 ;
7354 wxBitmap *result = 0 ;
7355 int val1 ;
7356 int ecode1 = 0 ;
7357 int val2 ;
7358 int ecode2 = 0 ;
7359 Py_ssize_t temp3 ;
7360 Py_ssize_t temp5 ;
7361 PyObject * obj0 = 0 ;
7362 PyObject * obj1 = 0 ;
7363 PyObject * obj2 = 0 ;
7364 PyObject * obj3 = 0 ;
7365 char * kwnames[] = {
7366 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7367 };
7368
7369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7370 ecode1 = SWIG_AsVal_int(obj0, &val1);
7371 if (!SWIG_IsOK(ecode1)) {
7372 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7373 }
7374 arg1 = static_cast< int >(val1);
7375 ecode2 = SWIG_AsVal_int(obj1, &val2);
7376 if (!SWIG_IsOK(ecode2)) {
7377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7378 }
7379 arg2 = static_cast< int >(val2);
7380 {
7381 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7382 arg4 = (int)temp3;
7383 }
7384 {
7385 if (obj3 != Py_None) {
7386 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7387 arg6 = (int)temp5;
7388 }
7389 }
7390 {
7391 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7392 if (PyErr_Occurred()) SWIG_fail;
7393 }
7394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7395 return resultobj;
7396 fail:
7397 return NULL;
7398 }
7399
7400
7401 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7402 PyObject *resultobj = 0;
7403 int arg1 ;
7404 int arg2 ;
7405 buffer arg3 ;
7406 int arg4 ;
7407 wxBitmap *result = 0 ;
7408 int val1 ;
7409 int ecode1 = 0 ;
7410 int val2 ;
7411 int ecode2 = 0 ;
7412 Py_ssize_t temp3 ;
7413 PyObject * obj0 = 0 ;
7414 PyObject * obj1 = 0 ;
7415 PyObject * obj2 = 0 ;
7416 char * kwnames[] = {
7417 (char *) "width",(char *) "height",(char *) "data", NULL
7418 };
7419
7420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7421 ecode1 = SWIG_AsVal_int(obj0, &val1);
7422 if (!SWIG_IsOK(ecode1)) {
7423 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7424 }
7425 arg1 = static_cast< int >(val1);
7426 ecode2 = SWIG_AsVal_int(obj1, &val2);
7427 if (!SWIG_IsOK(ecode2)) {
7428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7429 }
7430 arg2 = static_cast< int >(val2);
7431 {
7432 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7433 arg4 = (int)temp3;
7434 }
7435 {
7436 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7437 if (PyErr_Occurred()) SWIG_fail;
7438 }
7439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7440 return resultobj;
7441 fail:
7442 return NULL;
7443 }
7444
7445
7446 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7447 PyObject *resultobj = 0;
7448 int arg1 ;
7449 int arg2 ;
7450 buffer arg3 ;
7451 int arg4 ;
7452 wxBitmap *result = 0 ;
7453 int val1 ;
7454 int ecode1 = 0 ;
7455 int val2 ;
7456 int ecode2 = 0 ;
7457 Py_ssize_t temp3 ;
7458 PyObject * obj0 = 0 ;
7459 PyObject * obj1 = 0 ;
7460 PyObject * obj2 = 0 ;
7461 char * kwnames[] = {
7462 (char *) "width",(char *) "height",(char *) "data", NULL
7463 };
7464
7465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7466 ecode1 = SWIG_AsVal_int(obj0, &val1);
7467 if (!SWIG_IsOK(ecode1)) {
7468 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7469 }
7470 arg1 = static_cast< int >(val1);
7471 ecode2 = SWIG_AsVal_int(obj1, &val2);
7472 if (!SWIG_IsOK(ecode2)) {
7473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7474 }
7475 arg2 = static_cast< int >(val2);
7476 {
7477 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7478 arg4 = (int)temp3;
7479 }
7480 {
7481 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7482 if (PyErr_Occurred()) SWIG_fail;
7483 }
7484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7485 return resultobj;
7486 fail:
7487 return NULL;
7488 }
7489
7490
7491 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7492 PyObject *resultobj = 0;
7493 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7494 wxPoint result;
7495 void *argp1 = 0 ;
7496 int res1 = 0 ;
7497 PyObject *swig_obj[1] ;
7498
7499 if (!args) SWIG_fail;
7500 swig_obj[0] = args;
7501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7502 if (!SWIG_IsOK(res1)) {
7503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7504 }
7505 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7506 {
7507 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7508 if (PyErr_Occurred()) SWIG_fail;
7509 }
7510 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7511 return resultobj;
7512 fail:
7513 return NULL;
7514 }
7515
7516
7517 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7518 PyObject *resultobj = 0;
7519 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7520 int result;
7521 void *argp1 = 0 ;
7522 int res1 = 0 ;
7523 PyObject *swig_obj[1] ;
7524
7525 if (!args) SWIG_fail;
7526 swig_obj[0] = args;
7527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7528 if (!SWIG_IsOK(res1)) {
7529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7530 }
7531 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7532 {
7533 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7534 if (PyErr_Occurred()) SWIG_fail;
7535 }
7536 resultobj = SWIG_From_int(static_cast< int >(result));
7537 return resultobj;
7538 fail:
7539 return NULL;
7540 }
7541
7542
7543 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7544 PyObject *resultobj = 0;
7545 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7546 int result;
7547 void *argp1 = 0 ;
7548 int res1 = 0 ;
7549 PyObject *swig_obj[1] ;
7550
7551 if (!args) SWIG_fail;
7552 swig_obj[0] = args;
7553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7554 if (!SWIG_IsOK(res1)) {
7555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7556 }
7557 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7558 {
7559 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7560 if (PyErr_Occurred()) SWIG_fail;
7561 }
7562 resultobj = SWIG_From_int(static_cast< int >(result));
7563 return resultobj;
7564 fail:
7565 return NULL;
7566 }
7567
7568
7569 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7570 PyObject *resultobj = 0;
7571 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7572 wxSize result;
7573 void *argp1 = 0 ;
7574 int res1 = 0 ;
7575 PyObject *swig_obj[1] ;
7576
7577 if (!args) SWIG_fail;
7578 swig_obj[0] = args;
7579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7580 if (!SWIG_IsOK(res1)) {
7581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7582 }
7583 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7584 {
7585 result = ((wxPixelDataBase const *)arg1)->GetSize();
7586 if (PyErr_Occurred()) SWIG_fail;
7587 }
7588 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7589 return resultobj;
7590 fail:
7591 return NULL;
7592 }
7593
7594
7595 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7596 PyObject *resultobj = 0;
7597 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7598 int result;
7599 void *argp1 = 0 ;
7600 int res1 = 0 ;
7601 PyObject *swig_obj[1] ;
7602
7603 if (!args) SWIG_fail;
7604 swig_obj[0] = args;
7605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7606 if (!SWIG_IsOK(res1)) {
7607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7608 }
7609 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7610 {
7611 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7612 if (PyErr_Occurred()) SWIG_fail;
7613 }
7614 resultobj = SWIG_From_int(static_cast< int >(result));
7615 return resultobj;
7616 fail:
7617 return NULL;
7618 }
7619
7620
7621 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7622 PyObject *obj;
7623 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7624 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7625 return SWIG_Py_Void();
7626 }
7627
7628 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7629 PyObject *resultobj = 0;
7630 wxBitmap *arg1 = 0 ;
7631 wxNativePixelData *result = 0 ;
7632 void *argp1 = 0 ;
7633 int res1 = 0 ;
7634
7635 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7637 if (!SWIG_IsOK(res1)) {
7638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7639 }
7640 if (!argp1) {
7641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7642 }
7643 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7644 {
7645 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7646 if (PyErr_Occurred()) SWIG_fail;
7647 }
7648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7649 return resultobj;
7650 fail:
7651 return NULL;
7652 }
7653
7654
7655 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7656 PyObject *resultobj = 0;
7657 wxBitmap *arg1 = 0 ;
7658 wxRect *arg2 = 0 ;
7659 wxNativePixelData *result = 0 ;
7660 void *argp1 = 0 ;
7661 int res1 = 0 ;
7662 wxRect temp2 ;
7663
7664 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7666 if (!SWIG_IsOK(res1)) {
7667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7668 }
7669 if (!argp1) {
7670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7671 }
7672 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7673 {
7674 arg2 = &temp2;
7675 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7676 }
7677 {
7678 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7679 if (PyErr_Occurred()) SWIG_fail;
7680 }
7681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7682 return resultobj;
7683 fail:
7684 return NULL;
7685 }
7686
7687
7688 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7689 PyObject *resultobj = 0;
7690 wxBitmap *arg1 = 0 ;
7691 wxPoint *arg2 = 0 ;
7692 wxSize *arg3 = 0 ;
7693 wxNativePixelData *result = 0 ;
7694 void *argp1 = 0 ;
7695 int res1 = 0 ;
7696 wxPoint temp2 ;
7697 wxSize temp3 ;
7698
7699 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7701 if (!SWIG_IsOK(res1)) {
7702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7703 }
7704 if (!argp1) {
7705 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7706 }
7707 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7708 {
7709 arg2 = &temp2;
7710 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7711 }
7712 {
7713 arg3 = &temp3;
7714 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7715 }
7716 {
7717 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7718 if (PyErr_Occurred()) SWIG_fail;
7719 }
7720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7721 return resultobj;
7722 fail:
7723 return NULL;
7724 }
7725
7726
7727 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7728 int argc;
7729 PyObject *argv[4];
7730
7731 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7732 --argc;
7733 if (argc == 1) {
7734 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7735 }
7736 if (argc == 2) {
7737 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7738 }
7739 if (argc == 3) {
7740 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7741 }
7742
7743 fail:
7744 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7745 return NULL;
7746 }
7747
7748
7749 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7750 PyObject *resultobj = 0;
7751 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7752 void *argp1 = 0 ;
7753 int res1 = 0 ;
7754 PyObject *swig_obj[1] ;
7755
7756 if (!args) SWIG_fail;
7757 swig_obj[0] = args;
7758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7759 if (!SWIG_IsOK(res1)) {
7760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7761 }
7762 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7763 {
7764 delete arg1;
7765
7766 if (PyErr_Occurred()) SWIG_fail;
7767 }
7768 resultobj = SWIG_Py_Void();
7769 return resultobj;
7770 fail:
7771 return NULL;
7772 }
7773
7774
7775 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7776 PyObject *resultobj = 0;
7777 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7778 wxNativePixelData_Accessor result;
7779 void *argp1 = 0 ;
7780 int res1 = 0 ;
7781 PyObject *swig_obj[1] ;
7782
7783 if (!args) SWIG_fail;
7784 swig_obj[0] = args;
7785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7786 if (!SWIG_IsOK(res1)) {
7787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7788 }
7789 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7790 {
7791 result = ((wxNativePixelData const *)arg1)->GetPixels();
7792 if (PyErr_Occurred()) SWIG_fail;
7793 }
7794 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7795 return resultobj;
7796 fail:
7797 return NULL;
7798 }
7799
7800
7801 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7802 PyObject *resultobj = 0;
7803 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7804 void *argp1 = 0 ;
7805 int res1 = 0 ;
7806 PyObject *swig_obj[1] ;
7807
7808 if (!args) SWIG_fail;
7809 swig_obj[0] = args;
7810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7811 if (!SWIG_IsOK(res1)) {
7812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7813 }
7814 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7815 {
7816 (arg1)->UseAlpha();
7817 if (PyErr_Occurred()) SWIG_fail;
7818 }
7819 resultobj = SWIG_Py_Void();
7820 return resultobj;
7821 fail:
7822 return NULL;
7823 }
7824
7825
7826 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7827 PyObject *resultobj = 0;
7828 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7829 bool result;
7830 void *argp1 = 0 ;
7831 int res1 = 0 ;
7832 PyObject *swig_obj[1] ;
7833
7834 if (!args) SWIG_fail;
7835 swig_obj[0] = args;
7836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7837 if (!SWIG_IsOK(res1)) {
7838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7839 }
7840 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7841 {
7842 result = (bool)wxNativePixelData___nonzero__(arg1);
7843 if (PyErr_Occurred()) SWIG_fail;
7844 }
7845 {
7846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7847 }
7848 return resultobj;
7849 fail:
7850 return NULL;
7851 }
7852
7853
7854 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7855 PyObject *obj;
7856 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7857 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7858 return SWIG_Py_Void();
7859 }
7860
7861 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7862 return SWIG_Python_InitShadowInstance(args);
7863 }
7864
7865 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7866 PyObject *resultobj = 0;
7867 wxNativePixelData *arg1 = 0 ;
7868 wxNativePixelData_Accessor *result = 0 ;
7869 void *argp1 = 0 ;
7870 int res1 = 0 ;
7871
7872 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7874 if (!SWIG_IsOK(res1)) {
7875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7876 }
7877 if (!argp1) {
7878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7879 }
7880 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7881 {
7882 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7883 if (PyErr_Occurred()) SWIG_fail;
7884 }
7885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7886 return resultobj;
7887 fail:
7888 return NULL;
7889 }
7890
7891
7892 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7893 PyObject *resultobj = 0;
7894 wxBitmap *arg1 = 0 ;
7895 wxNativePixelData *arg2 = 0 ;
7896 wxNativePixelData_Accessor *result = 0 ;
7897 void *argp1 = 0 ;
7898 int res1 = 0 ;
7899 void *argp2 = 0 ;
7900 int res2 = 0 ;
7901
7902 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7904 if (!SWIG_IsOK(res1)) {
7905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7906 }
7907 if (!argp1) {
7908 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7909 }
7910 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7911 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7912 if (!SWIG_IsOK(res2)) {
7913 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7914 }
7915 if (!argp2) {
7916 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7917 }
7918 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7919 {
7920 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7921 if (PyErr_Occurred()) SWIG_fail;
7922 }
7923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7924 return resultobj;
7925 fail:
7926 return NULL;
7927 }
7928
7929
7930 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7931 PyObject *resultobj = 0;
7932 wxNativePixelData_Accessor *result = 0 ;
7933
7934 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7935 {
7936 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7937 if (PyErr_Occurred()) SWIG_fail;
7938 }
7939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7940 return resultobj;
7941 fail:
7942 return NULL;
7943 }
7944
7945
7946 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7947 int argc;
7948 PyObject *argv[3];
7949
7950 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7951 --argc;
7952 if (argc == 0) {
7953 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7954 }
7955 if (argc == 1) {
7956 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7957 }
7958 if (argc == 2) {
7959 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7960 }
7961
7962 fail:
7963 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7964 return NULL;
7965 }
7966
7967
7968 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7969 PyObject *resultobj = 0;
7970 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7971 void *argp1 = 0 ;
7972 int res1 = 0 ;
7973 PyObject *swig_obj[1] ;
7974
7975 if (!args) SWIG_fail;
7976 swig_obj[0] = args;
7977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7978 if (!SWIG_IsOK(res1)) {
7979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7980 }
7981 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7982 {
7983 delete arg1;
7984
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 resultobj = SWIG_Py_Void();
7988 return resultobj;
7989 fail:
7990 return NULL;
7991 }
7992
7993
7994 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7995 PyObject *resultobj = 0;
7996 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7997 wxNativePixelData *arg2 = 0 ;
7998 void *argp1 = 0 ;
7999 int res1 = 0 ;
8000 void *argp2 = 0 ;
8001 int res2 = 0 ;
8002 PyObject * obj0 = 0 ;
8003 PyObject * obj1 = 0 ;
8004 char * kwnames[] = {
8005 (char *) "self",(char *) "data", NULL
8006 };
8007
8008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8010 if (!SWIG_IsOK(res1)) {
8011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8012 }
8013 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8014 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8015 if (!SWIG_IsOK(res2)) {
8016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8017 }
8018 if (!argp2) {
8019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8020 }
8021 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8022 {
8023 (arg1)->Reset((wxNativePixelData const &)*arg2);
8024 if (PyErr_Occurred()) SWIG_fail;
8025 }
8026 resultobj = SWIG_Py_Void();
8027 return resultobj;
8028 fail:
8029 return NULL;
8030 }
8031
8032
8033 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8034 PyObject *resultobj = 0;
8035 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8036 bool result;
8037 void *argp1 = 0 ;
8038 int res1 = 0 ;
8039 PyObject *swig_obj[1] ;
8040
8041 if (!args) SWIG_fail;
8042 swig_obj[0] = args;
8043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8044 if (!SWIG_IsOK(res1)) {
8045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
8046 }
8047 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8048 {
8049 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
8052 {
8053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8054 }
8055 return resultobj;
8056 fail:
8057 return NULL;
8058 }
8059
8060
8061 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8062 PyObject *resultobj = 0;
8063 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8064 void *argp1 = 0 ;
8065 int res1 = 0 ;
8066 PyObject *swig_obj[1] ;
8067
8068 if (!args) SWIG_fail;
8069 swig_obj[0] = args;
8070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8071 if (!SWIG_IsOK(res1)) {
8072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8073 }
8074 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8075 {
8076 wxNativePixelData_Accessor_nextPixel(arg1);
8077 if (PyErr_Occurred()) SWIG_fail;
8078 }
8079 resultobj = SWIG_Py_Void();
8080 return resultobj;
8081 fail:
8082 return NULL;
8083 }
8084
8085
8086 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8087 PyObject *resultobj = 0;
8088 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8089 wxNativePixelData *arg2 = 0 ;
8090 int arg3 ;
8091 int arg4 ;
8092 void *argp1 = 0 ;
8093 int res1 = 0 ;
8094 void *argp2 = 0 ;
8095 int res2 = 0 ;
8096 int val3 ;
8097 int ecode3 = 0 ;
8098 int val4 ;
8099 int ecode4 = 0 ;
8100 PyObject * obj0 = 0 ;
8101 PyObject * obj1 = 0 ;
8102 PyObject * obj2 = 0 ;
8103 PyObject * obj3 = 0 ;
8104 char * kwnames[] = {
8105 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8106 };
8107
8108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8110 if (!SWIG_IsOK(res1)) {
8111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8112 }
8113 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8114 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8115 if (!SWIG_IsOK(res2)) {
8116 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8117 }
8118 if (!argp2) {
8119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8120 }
8121 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8122 ecode3 = SWIG_AsVal_int(obj2, &val3);
8123 if (!SWIG_IsOK(ecode3)) {
8124 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8125 }
8126 arg3 = static_cast< int >(val3);
8127 ecode4 = SWIG_AsVal_int(obj3, &val4);
8128 if (!SWIG_IsOK(ecode4)) {
8129 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8130 }
8131 arg4 = static_cast< int >(val4);
8132 {
8133 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
8134 if (PyErr_Occurred()) SWIG_fail;
8135 }
8136 resultobj = SWIG_Py_Void();
8137 return resultobj;
8138 fail:
8139 return NULL;
8140 }
8141
8142
8143 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8144 PyObject *resultobj = 0;
8145 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8146 wxNativePixelData *arg2 = 0 ;
8147 int arg3 ;
8148 void *argp1 = 0 ;
8149 int res1 = 0 ;
8150 void *argp2 = 0 ;
8151 int res2 = 0 ;
8152 int val3 ;
8153 int ecode3 = 0 ;
8154 PyObject * obj0 = 0 ;
8155 PyObject * obj1 = 0 ;
8156 PyObject * obj2 = 0 ;
8157 char * kwnames[] = {
8158 (char *) "self",(char *) "data",(char *) "x", NULL
8159 };
8160
8161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8163 if (!SWIG_IsOK(res1)) {
8164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8165 }
8166 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8167 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8168 if (!SWIG_IsOK(res2)) {
8169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8170 }
8171 if (!argp2) {
8172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8173 }
8174 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8175 ecode3 = SWIG_AsVal_int(obj2, &val3);
8176 if (!SWIG_IsOK(ecode3)) {
8177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8178 }
8179 arg3 = static_cast< int >(val3);
8180 {
8181 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8182 if (PyErr_Occurred()) SWIG_fail;
8183 }
8184 resultobj = SWIG_Py_Void();
8185 return resultobj;
8186 fail:
8187 return NULL;
8188 }
8189
8190
8191 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8192 PyObject *resultobj = 0;
8193 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8194 wxNativePixelData *arg2 = 0 ;
8195 int arg3 ;
8196 void *argp1 = 0 ;
8197 int res1 = 0 ;
8198 void *argp2 = 0 ;
8199 int res2 = 0 ;
8200 int val3 ;
8201 int ecode3 = 0 ;
8202 PyObject * obj0 = 0 ;
8203 PyObject * obj1 = 0 ;
8204 PyObject * obj2 = 0 ;
8205 char * kwnames[] = {
8206 (char *) "self",(char *) "data",(char *) "y", NULL
8207 };
8208
8209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8211 if (!SWIG_IsOK(res1)) {
8212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8213 }
8214 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8215 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8216 if (!SWIG_IsOK(res2)) {
8217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8218 }
8219 if (!argp2) {
8220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8221 }
8222 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8223 ecode3 = SWIG_AsVal_int(obj2, &val3);
8224 if (!SWIG_IsOK(ecode3)) {
8225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8226 }
8227 arg3 = static_cast< int >(val3);
8228 {
8229 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8230 if (PyErr_Occurred()) SWIG_fail;
8231 }
8232 resultobj = SWIG_Py_Void();
8233 return resultobj;
8234 fail:
8235 return NULL;
8236 }
8237
8238
8239 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8240 PyObject *resultobj = 0;
8241 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8242 wxNativePixelData *arg2 = 0 ;
8243 int arg3 ;
8244 int arg4 ;
8245 void *argp1 = 0 ;
8246 int res1 = 0 ;
8247 void *argp2 = 0 ;
8248 int res2 = 0 ;
8249 int val3 ;
8250 int ecode3 = 0 ;
8251 int val4 ;
8252 int ecode4 = 0 ;
8253 PyObject * obj0 = 0 ;
8254 PyObject * obj1 = 0 ;
8255 PyObject * obj2 = 0 ;
8256 PyObject * obj3 = 0 ;
8257 char * kwnames[] = {
8258 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8259 };
8260
8261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8263 if (!SWIG_IsOK(res1)) {
8264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8265 }
8266 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8267 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8268 if (!SWIG_IsOK(res2)) {
8269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8270 }
8271 if (!argp2) {
8272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8273 }
8274 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8275 ecode3 = SWIG_AsVal_int(obj2, &val3);
8276 if (!SWIG_IsOK(ecode3)) {
8277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8278 }
8279 arg3 = static_cast< int >(val3);
8280 ecode4 = SWIG_AsVal_int(obj3, &val4);
8281 if (!SWIG_IsOK(ecode4)) {
8282 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8283 }
8284 arg4 = static_cast< int >(val4);
8285 {
8286 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 }
8289 resultobj = SWIG_Py_Void();
8290 return resultobj;
8291 fail:
8292 return NULL;
8293 }
8294
8295
8296 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8297 PyObject *resultobj = 0;
8298 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8299 byte arg2 ;
8300 byte arg3 ;
8301 byte arg4 ;
8302 void *argp1 = 0 ;
8303 int res1 = 0 ;
8304 unsigned char val2 ;
8305 int ecode2 = 0 ;
8306 unsigned char val3 ;
8307 int ecode3 = 0 ;
8308 unsigned char val4 ;
8309 int ecode4 = 0 ;
8310 PyObject * obj0 = 0 ;
8311 PyObject * obj1 = 0 ;
8312 PyObject * obj2 = 0 ;
8313 PyObject * obj3 = 0 ;
8314 char * kwnames[] = {
8315 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8316 };
8317
8318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8320 if (!SWIG_IsOK(res1)) {
8321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8322 }
8323 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8324 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8325 if (!SWIG_IsOK(ecode2)) {
8326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8327 }
8328 arg2 = static_cast< byte >(val2);
8329 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8330 if (!SWIG_IsOK(ecode3)) {
8331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8332 }
8333 arg3 = static_cast< byte >(val3);
8334 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8335 if (!SWIG_IsOK(ecode4)) {
8336 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8337 }
8338 arg4 = static_cast< byte >(val4);
8339 {
8340 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8341 if (PyErr_Occurred()) SWIG_fail;
8342 }
8343 resultobj = SWIG_Py_Void();
8344 return resultobj;
8345 fail:
8346 return NULL;
8347 }
8348
8349
8350 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8351 PyObject *resultobj = 0;
8352 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8353 PyObject *result = 0 ;
8354 void *argp1 = 0 ;
8355 int res1 = 0 ;
8356 PyObject *swig_obj[1] ;
8357
8358 if (!args) SWIG_fail;
8359 swig_obj[0] = args;
8360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8361 if (!SWIG_IsOK(res1)) {
8362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8363 }
8364 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8365 {
8366 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8367 if (PyErr_Occurred()) SWIG_fail;
8368 }
8369 resultobj = result;
8370 return resultobj;
8371 fail:
8372 return NULL;
8373 }
8374
8375
8376 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8377 PyObject *obj;
8378 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8379 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8380 return SWIG_Py_Void();
8381 }
8382
8383 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8384 return SWIG_Python_InitShadowInstance(args);
8385 }
8386
8387 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8388 PyObject *resultobj = 0;
8389 wxBitmap *arg1 = 0 ;
8390 wxAlphaPixelData *result = 0 ;
8391 void *argp1 = 0 ;
8392 int res1 = 0 ;
8393
8394 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8396 if (!SWIG_IsOK(res1)) {
8397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8398 }
8399 if (!argp1) {
8400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8401 }
8402 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8403 {
8404 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8405 if (PyErr_Occurred()) SWIG_fail;
8406 }
8407 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8408 return resultobj;
8409 fail:
8410 return NULL;
8411 }
8412
8413
8414 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8415 PyObject *resultobj = 0;
8416 wxBitmap *arg1 = 0 ;
8417 wxRect *arg2 = 0 ;
8418 wxAlphaPixelData *result = 0 ;
8419 void *argp1 = 0 ;
8420 int res1 = 0 ;
8421 wxRect temp2 ;
8422
8423 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8425 if (!SWIG_IsOK(res1)) {
8426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8427 }
8428 if (!argp1) {
8429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8430 }
8431 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8432 {
8433 arg2 = &temp2;
8434 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8435 }
8436 {
8437 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8438 if (PyErr_Occurred()) SWIG_fail;
8439 }
8440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8441 return resultobj;
8442 fail:
8443 return NULL;
8444 }
8445
8446
8447 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8448 PyObject *resultobj = 0;
8449 wxBitmap *arg1 = 0 ;
8450 wxPoint *arg2 = 0 ;
8451 wxSize *arg3 = 0 ;
8452 wxAlphaPixelData *result = 0 ;
8453 void *argp1 = 0 ;
8454 int res1 = 0 ;
8455 wxPoint temp2 ;
8456 wxSize temp3 ;
8457
8458 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8460 if (!SWIG_IsOK(res1)) {
8461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8462 }
8463 if (!argp1) {
8464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8465 }
8466 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8467 {
8468 arg2 = &temp2;
8469 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8470 }
8471 {
8472 arg3 = &temp3;
8473 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8474 }
8475 {
8476 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8477 if (PyErr_Occurred()) SWIG_fail;
8478 }
8479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8480 return resultobj;
8481 fail:
8482 return NULL;
8483 }
8484
8485
8486 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8487 int argc;
8488 PyObject *argv[4];
8489
8490 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8491 --argc;
8492 if (argc == 1) {
8493 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8494 }
8495 if (argc == 2) {
8496 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8497 }
8498 if (argc == 3) {
8499 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8500 }
8501
8502 fail:
8503 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8504 return NULL;
8505 }
8506
8507
8508 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8509 PyObject *resultobj = 0;
8510 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8511 void *argp1 = 0 ;
8512 int res1 = 0 ;
8513 PyObject *swig_obj[1] ;
8514
8515 if (!args) SWIG_fail;
8516 swig_obj[0] = args;
8517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8518 if (!SWIG_IsOK(res1)) {
8519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8520 }
8521 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8522 {
8523 delete arg1;
8524
8525 if (PyErr_Occurred()) SWIG_fail;
8526 }
8527 resultobj = SWIG_Py_Void();
8528 return resultobj;
8529 fail:
8530 return NULL;
8531 }
8532
8533
8534 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8535 PyObject *resultobj = 0;
8536 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8537 wxAlphaPixelData_Accessor result;
8538 void *argp1 = 0 ;
8539 int res1 = 0 ;
8540 PyObject *swig_obj[1] ;
8541
8542 if (!args) SWIG_fail;
8543 swig_obj[0] = args;
8544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8545 if (!SWIG_IsOK(res1)) {
8546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8547 }
8548 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8549 {
8550 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8551 if (PyErr_Occurred()) SWIG_fail;
8552 }
8553 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8554 return resultobj;
8555 fail:
8556 return NULL;
8557 }
8558
8559
8560 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8561 PyObject *resultobj = 0;
8562 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8563 void *argp1 = 0 ;
8564 int res1 = 0 ;
8565 PyObject *swig_obj[1] ;
8566
8567 if (!args) SWIG_fail;
8568 swig_obj[0] = args;
8569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8570 if (!SWIG_IsOK(res1)) {
8571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8572 }
8573 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8574 {
8575 (arg1)->UseAlpha();
8576 if (PyErr_Occurred()) SWIG_fail;
8577 }
8578 resultobj = SWIG_Py_Void();
8579 return resultobj;
8580 fail:
8581 return NULL;
8582 }
8583
8584
8585 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8586 PyObject *resultobj = 0;
8587 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8588 bool result;
8589 void *argp1 = 0 ;
8590 int res1 = 0 ;
8591 PyObject *swig_obj[1] ;
8592
8593 if (!args) SWIG_fail;
8594 swig_obj[0] = args;
8595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8596 if (!SWIG_IsOK(res1)) {
8597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8598 }
8599 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8600 {
8601 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8602 if (PyErr_Occurred()) SWIG_fail;
8603 }
8604 {
8605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8606 }
8607 return resultobj;
8608 fail:
8609 return NULL;
8610 }
8611
8612
8613 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8614 PyObject *obj;
8615 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8616 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8617 return SWIG_Py_Void();
8618 }
8619
8620 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8621 return SWIG_Python_InitShadowInstance(args);
8622 }
8623
8624 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8625 PyObject *resultobj = 0;
8626 wxAlphaPixelData *arg1 = 0 ;
8627 wxAlphaPixelData_Accessor *result = 0 ;
8628 void *argp1 = 0 ;
8629 int res1 = 0 ;
8630
8631 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8633 if (!SWIG_IsOK(res1)) {
8634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8635 }
8636 if (!argp1) {
8637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8638 }
8639 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8640 {
8641 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8642 if (PyErr_Occurred()) SWIG_fail;
8643 }
8644 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8645 return resultobj;
8646 fail:
8647 return NULL;
8648 }
8649
8650
8651 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8652 PyObject *resultobj = 0;
8653 wxBitmap *arg1 = 0 ;
8654 wxAlphaPixelData *arg2 = 0 ;
8655 wxAlphaPixelData_Accessor *result = 0 ;
8656 void *argp1 = 0 ;
8657 int res1 = 0 ;
8658 void *argp2 = 0 ;
8659 int res2 = 0 ;
8660
8661 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8663 if (!SWIG_IsOK(res1)) {
8664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8665 }
8666 if (!argp1) {
8667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8668 }
8669 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8670 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8671 if (!SWIG_IsOK(res2)) {
8672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8673 }
8674 if (!argp2) {
8675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8676 }
8677 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8678 {
8679 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8680 if (PyErr_Occurred()) SWIG_fail;
8681 }
8682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8683 return resultobj;
8684 fail:
8685 return NULL;
8686 }
8687
8688
8689 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8690 PyObject *resultobj = 0;
8691 wxAlphaPixelData_Accessor *result = 0 ;
8692
8693 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8694 {
8695 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8696 if (PyErr_Occurred()) SWIG_fail;
8697 }
8698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8699 return resultobj;
8700 fail:
8701 return NULL;
8702 }
8703
8704
8705 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8706 int argc;
8707 PyObject *argv[3];
8708
8709 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8710 --argc;
8711 if (argc == 0) {
8712 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8713 }
8714 if (argc == 1) {
8715 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8716 }
8717 if (argc == 2) {
8718 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8719 }
8720
8721 fail:
8722 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8723 return NULL;
8724 }
8725
8726
8727 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8728 PyObject *resultobj = 0;
8729 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8730 void *argp1 = 0 ;
8731 int res1 = 0 ;
8732 PyObject *swig_obj[1] ;
8733
8734 if (!args) SWIG_fail;
8735 swig_obj[0] = args;
8736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8737 if (!SWIG_IsOK(res1)) {
8738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8739 }
8740 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8741 {
8742 delete arg1;
8743
8744 if (PyErr_Occurred()) SWIG_fail;
8745 }
8746 resultobj = SWIG_Py_Void();
8747 return resultobj;
8748 fail:
8749 return NULL;
8750 }
8751
8752
8753 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8754 PyObject *resultobj = 0;
8755 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8756 wxAlphaPixelData *arg2 = 0 ;
8757 void *argp1 = 0 ;
8758 int res1 = 0 ;
8759 void *argp2 = 0 ;
8760 int res2 = 0 ;
8761 PyObject * obj0 = 0 ;
8762 PyObject * obj1 = 0 ;
8763 char * kwnames[] = {
8764 (char *) "self",(char *) "data", NULL
8765 };
8766
8767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8769 if (!SWIG_IsOK(res1)) {
8770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8771 }
8772 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8773 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8774 if (!SWIG_IsOK(res2)) {
8775 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8776 }
8777 if (!argp2) {
8778 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8779 }
8780 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8781 {
8782 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8783 if (PyErr_Occurred()) SWIG_fail;
8784 }
8785 resultobj = SWIG_Py_Void();
8786 return resultobj;
8787 fail:
8788 return NULL;
8789 }
8790
8791
8792 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8793 PyObject *resultobj = 0;
8794 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8795 bool result;
8796 void *argp1 = 0 ;
8797 int res1 = 0 ;
8798 PyObject *swig_obj[1] ;
8799
8800 if (!args) SWIG_fail;
8801 swig_obj[0] = args;
8802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8803 if (!SWIG_IsOK(res1)) {
8804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8805 }
8806 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8807 {
8808 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8809 if (PyErr_Occurred()) SWIG_fail;
8810 }
8811 {
8812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8813 }
8814 return resultobj;
8815 fail:
8816 return NULL;
8817 }
8818
8819
8820 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8821 PyObject *resultobj = 0;
8822 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8823 void *argp1 = 0 ;
8824 int res1 = 0 ;
8825 PyObject *swig_obj[1] ;
8826
8827 if (!args) SWIG_fail;
8828 swig_obj[0] = args;
8829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8830 if (!SWIG_IsOK(res1)) {
8831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8832 }
8833 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8834 {
8835 wxAlphaPixelData_Accessor_nextPixel(arg1);
8836 if (PyErr_Occurred()) SWIG_fail;
8837 }
8838 resultobj = SWIG_Py_Void();
8839 return resultobj;
8840 fail:
8841 return NULL;
8842 }
8843
8844
8845 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8846 PyObject *resultobj = 0;
8847 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8848 wxAlphaPixelData *arg2 = 0 ;
8849 int arg3 ;
8850 int arg4 ;
8851 void *argp1 = 0 ;
8852 int res1 = 0 ;
8853 void *argp2 = 0 ;
8854 int res2 = 0 ;
8855 int val3 ;
8856 int ecode3 = 0 ;
8857 int val4 ;
8858 int ecode4 = 0 ;
8859 PyObject * obj0 = 0 ;
8860 PyObject * obj1 = 0 ;
8861 PyObject * obj2 = 0 ;
8862 PyObject * obj3 = 0 ;
8863 char * kwnames[] = {
8864 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8865 };
8866
8867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8869 if (!SWIG_IsOK(res1)) {
8870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8871 }
8872 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8873 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8874 if (!SWIG_IsOK(res2)) {
8875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8876 }
8877 if (!argp2) {
8878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8879 }
8880 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8881 ecode3 = SWIG_AsVal_int(obj2, &val3);
8882 if (!SWIG_IsOK(ecode3)) {
8883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8884 }
8885 arg3 = static_cast< int >(val3);
8886 ecode4 = SWIG_AsVal_int(obj3, &val4);
8887 if (!SWIG_IsOK(ecode4)) {
8888 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8889 }
8890 arg4 = static_cast< int >(val4);
8891 {
8892 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8893 if (PyErr_Occurred()) SWIG_fail;
8894 }
8895 resultobj = SWIG_Py_Void();
8896 return resultobj;
8897 fail:
8898 return NULL;
8899 }
8900
8901
8902 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8903 PyObject *resultobj = 0;
8904 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8905 wxAlphaPixelData *arg2 = 0 ;
8906 int arg3 ;
8907 void *argp1 = 0 ;
8908 int res1 = 0 ;
8909 void *argp2 = 0 ;
8910 int res2 = 0 ;
8911 int val3 ;
8912 int ecode3 = 0 ;
8913 PyObject * obj0 = 0 ;
8914 PyObject * obj1 = 0 ;
8915 PyObject * obj2 = 0 ;
8916 char * kwnames[] = {
8917 (char *) "self",(char *) "data",(char *) "x", NULL
8918 };
8919
8920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8922 if (!SWIG_IsOK(res1)) {
8923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8924 }
8925 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8926 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8927 if (!SWIG_IsOK(res2)) {
8928 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8929 }
8930 if (!argp2) {
8931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8932 }
8933 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8934 ecode3 = SWIG_AsVal_int(obj2, &val3);
8935 if (!SWIG_IsOK(ecode3)) {
8936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8937 }
8938 arg3 = static_cast< int >(val3);
8939 {
8940 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8941 if (PyErr_Occurred()) SWIG_fail;
8942 }
8943 resultobj = SWIG_Py_Void();
8944 return resultobj;
8945 fail:
8946 return NULL;
8947 }
8948
8949
8950 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8951 PyObject *resultobj = 0;
8952 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8953 wxAlphaPixelData *arg2 = 0 ;
8954 int arg3 ;
8955 void *argp1 = 0 ;
8956 int res1 = 0 ;
8957 void *argp2 = 0 ;
8958 int res2 = 0 ;
8959 int val3 ;
8960 int ecode3 = 0 ;
8961 PyObject * obj0 = 0 ;
8962 PyObject * obj1 = 0 ;
8963 PyObject * obj2 = 0 ;
8964 char * kwnames[] = {
8965 (char *) "self",(char *) "data",(char *) "y", NULL
8966 };
8967
8968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8970 if (!SWIG_IsOK(res1)) {
8971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8972 }
8973 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8974 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8975 if (!SWIG_IsOK(res2)) {
8976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8977 }
8978 if (!argp2) {
8979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8980 }
8981 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8982 ecode3 = SWIG_AsVal_int(obj2, &val3);
8983 if (!SWIG_IsOK(ecode3)) {
8984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8985 }
8986 arg3 = static_cast< int >(val3);
8987 {
8988 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8989 if (PyErr_Occurred()) SWIG_fail;
8990 }
8991 resultobj = SWIG_Py_Void();
8992 return resultobj;
8993 fail:
8994 return NULL;
8995 }
8996
8997
8998 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8999 PyObject *resultobj = 0;
9000 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9001 wxAlphaPixelData *arg2 = 0 ;
9002 int arg3 ;
9003 int arg4 ;
9004 void *argp1 = 0 ;
9005 int res1 = 0 ;
9006 void *argp2 = 0 ;
9007 int res2 = 0 ;
9008 int val3 ;
9009 int ecode3 = 0 ;
9010 int val4 ;
9011 int ecode4 = 0 ;
9012 PyObject * obj0 = 0 ;
9013 PyObject * obj1 = 0 ;
9014 PyObject * obj2 = 0 ;
9015 PyObject * obj3 = 0 ;
9016 char * kwnames[] = {
9017 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
9018 };
9019
9020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9022 if (!SWIG_IsOK(res1)) {
9023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9024 }
9025 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9026 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
9027 if (!SWIG_IsOK(res2)) {
9028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
9029 }
9030 if (!argp2) {
9031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
9032 }
9033 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
9034 ecode3 = SWIG_AsVal_int(obj2, &val3);
9035 if (!SWIG_IsOK(ecode3)) {
9036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
9037 }
9038 arg3 = static_cast< int >(val3);
9039 ecode4 = SWIG_AsVal_int(obj3, &val4);
9040 if (!SWIG_IsOK(ecode4)) {
9041 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
9042 }
9043 arg4 = static_cast< int >(val4);
9044 {
9045 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
9046 if (PyErr_Occurred()) SWIG_fail;
9047 }
9048 resultobj = SWIG_Py_Void();
9049 return resultobj;
9050 fail:
9051 return NULL;
9052 }
9053
9054
9055 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9056 PyObject *resultobj = 0;
9057 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9058 byte arg2 ;
9059 byte arg3 ;
9060 byte arg4 ;
9061 byte arg5 ;
9062 void *argp1 = 0 ;
9063 int res1 = 0 ;
9064 unsigned char val2 ;
9065 int ecode2 = 0 ;
9066 unsigned char val3 ;
9067 int ecode3 = 0 ;
9068 unsigned char val4 ;
9069 int ecode4 = 0 ;
9070 unsigned char val5 ;
9071 int ecode5 = 0 ;
9072 PyObject * obj0 = 0 ;
9073 PyObject * obj1 = 0 ;
9074 PyObject * obj2 = 0 ;
9075 PyObject * obj3 = 0 ;
9076 PyObject * obj4 = 0 ;
9077 char * kwnames[] = {
9078 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
9079 };
9080
9081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9083 if (!SWIG_IsOK(res1)) {
9084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9085 }
9086 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9087 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
9088 if (!SWIG_IsOK(ecode2)) {
9089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
9090 }
9091 arg2 = static_cast< byte >(val2);
9092 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
9093 if (!SWIG_IsOK(ecode3)) {
9094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
9095 }
9096 arg3 = static_cast< byte >(val3);
9097 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
9098 if (!SWIG_IsOK(ecode4)) {
9099 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
9100 }
9101 arg4 = static_cast< byte >(val4);
9102 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
9103 if (!SWIG_IsOK(ecode5)) {
9104 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
9105 }
9106 arg5 = static_cast< byte >(val5);
9107 {
9108 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
9109 if (PyErr_Occurred()) SWIG_fail;
9110 }
9111 resultobj = SWIG_Py_Void();
9112 return resultobj;
9113 fail:
9114 return NULL;
9115 }
9116
9117
9118 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9119 PyObject *resultobj = 0;
9120 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9121 PyObject *result = 0 ;
9122 void *argp1 = 0 ;
9123 int res1 = 0 ;
9124 PyObject *swig_obj[1] ;
9125
9126 if (!args) SWIG_fail;
9127 swig_obj[0] = args;
9128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9129 if (!SWIG_IsOK(res1)) {
9130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9131 }
9132 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9133 {
9134 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 resultobj = result;
9138 return resultobj;
9139 fail:
9140 return NULL;
9141 }
9142
9143
9144 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9145 PyObject *obj;
9146 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9147 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
9148 return SWIG_Py_Void();
9149 }
9150
9151 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9152 return SWIG_Python_InitShadowInstance(args);
9153 }
9154
9155 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9156 PyObject *resultobj = 0;
9157 wxBitmap *arg1 = 0 ;
9158 wxColour const &arg2_defvalue = wxNullColour ;
9159 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9160 wxMask *result = 0 ;
9161 void *argp1 = 0 ;
9162 int res1 = 0 ;
9163 wxColour temp2 ;
9164 PyObject * obj0 = 0 ;
9165 PyObject * obj1 = 0 ;
9166 char * kwnames[] = {
9167 (char *) "bitmap",(char *) "colour", NULL
9168 };
9169
9170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9171 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9172 if (!SWIG_IsOK(res1)) {
9173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9174 }
9175 if (!argp1) {
9176 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9177 }
9178 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9179 if (obj1) {
9180 {
9181 arg2 = &temp2;
9182 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9183 }
9184 }
9185 {
9186 if (!wxPyCheckForApp()) SWIG_fail;
9187 PyThreadState* __tstate = wxPyBeginAllowThreads();
9188 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9189 wxPyEndAllowThreads(__tstate);
9190 if (PyErr_Occurred()) SWIG_fail;
9191 }
9192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9193 return resultobj;
9194 fail:
9195 return NULL;
9196 }
9197
9198
9199 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9200 PyObject *resultobj = 0;
9201 wxMask *arg1 = (wxMask *) 0 ;
9202 void *argp1 = 0 ;
9203 int res1 = 0 ;
9204 PyObject *swig_obj[1] ;
9205
9206 if (!args) SWIG_fail;
9207 swig_obj[0] = args;
9208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9209 if (!SWIG_IsOK(res1)) {
9210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9211 }
9212 arg1 = reinterpret_cast< wxMask * >(argp1);
9213 {
9214 delete arg1;
9215
9216 if (PyErr_Occurred()) SWIG_fail;
9217 }
9218 resultobj = SWIG_Py_Void();
9219 return resultobj;
9220 fail:
9221 return NULL;
9222 }
9223
9224
9225 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9226 PyObject *obj;
9227 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9228 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9229 return SWIG_Py_Void();
9230 }
9231
9232 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9233 return SWIG_Python_InitShadowInstance(args);
9234 }
9235
9236 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9237 PyObject *resultobj = 0;
9238 wxString *arg1 = 0 ;
9239 wxBitmapType arg2 ;
9240 int arg3 = (int) -1 ;
9241 int arg4 = (int) -1 ;
9242 wxIcon *result = 0 ;
9243 bool temp1 = false ;
9244 int val2 ;
9245 int ecode2 = 0 ;
9246 int val3 ;
9247 int ecode3 = 0 ;
9248 int val4 ;
9249 int ecode4 = 0 ;
9250 PyObject * obj0 = 0 ;
9251 PyObject * obj1 = 0 ;
9252 PyObject * obj2 = 0 ;
9253 PyObject * obj3 = 0 ;
9254 char * kwnames[] = {
9255 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9256 };
9257
9258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9259 {
9260 arg1 = wxString_in_helper(obj0);
9261 if (arg1 == NULL) SWIG_fail;
9262 temp1 = true;
9263 }
9264 ecode2 = SWIG_AsVal_int(obj1, &val2);
9265 if (!SWIG_IsOK(ecode2)) {
9266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9267 }
9268 arg2 = static_cast< wxBitmapType >(val2);
9269 if (obj2) {
9270 ecode3 = SWIG_AsVal_int(obj2, &val3);
9271 if (!SWIG_IsOK(ecode3)) {
9272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9273 }
9274 arg3 = static_cast< int >(val3);
9275 }
9276 if (obj3) {
9277 ecode4 = SWIG_AsVal_int(obj3, &val4);
9278 if (!SWIG_IsOK(ecode4)) {
9279 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9280 }
9281 arg4 = static_cast< int >(val4);
9282 }
9283 {
9284 if (!wxPyCheckForApp()) SWIG_fail;
9285 PyThreadState* __tstate = wxPyBeginAllowThreads();
9286 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9287 wxPyEndAllowThreads(__tstate);
9288 if (PyErr_Occurred()) SWIG_fail;
9289 }
9290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9291 {
9292 if (temp1)
9293 delete arg1;
9294 }
9295 return resultobj;
9296 fail:
9297 {
9298 if (temp1)
9299 delete arg1;
9300 }
9301 return NULL;
9302 }
9303
9304
9305 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9306 PyObject *resultobj = 0;
9307 wxIcon *arg1 = (wxIcon *) 0 ;
9308 void *argp1 = 0 ;
9309 int res1 = 0 ;
9310 PyObject *swig_obj[1] ;
9311
9312 if (!args) SWIG_fail;
9313 swig_obj[0] = args;
9314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9315 if (!SWIG_IsOK(res1)) {
9316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9317 }
9318 arg1 = reinterpret_cast< wxIcon * >(argp1);
9319 {
9320 PyThreadState* __tstate = wxPyBeginAllowThreads();
9321 delete arg1;
9322
9323 wxPyEndAllowThreads(__tstate);
9324 if (PyErr_Occurred()) SWIG_fail;
9325 }
9326 resultobj = SWIG_Py_Void();
9327 return resultobj;
9328 fail:
9329 return NULL;
9330 }
9331
9332
9333 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9334 PyObject *resultobj = 0;
9335 wxIcon *result = 0 ;
9336
9337 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9338 {
9339 if (!wxPyCheckForApp()) SWIG_fail;
9340 PyThreadState* __tstate = wxPyBeginAllowThreads();
9341 result = (wxIcon *)new wxIcon();
9342 wxPyEndAllowThreads(__tstate);
9343 if (PyErr_Occurred()) SWIG_fail;
9344 }
9345 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9346 return resultobj;
9347 fail:
9348 return NULL;
9349 }
9350
9351
9352 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9353 PyObject *resultobj = 0;
9354 wxIconLocation *arg1 = 0 ;
9355 wxIcon *result = 0 ;
9356 void *argp1 = 0 ;
9357 int res1 = 0 ;
9358 PyObject * obj0 = 0 ;
9359 char * kwnames[] = {
9360 (char *) "loc", NULL
9361 };
9362
9363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9364 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9365 if (!SWIG_IsOK(res1)) {
9366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9367 }
9368 if (!argp1) {
9369 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9370 }
9371 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9372 {
9373 if (!wxPyCheckForApp()) SWIG_fail;
9374 PyThreadState* __tstate = wxPyBeginAllowThreads();
9375 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9376 wxPyEndAllowThreads(__tstate);
9377 if (PyErr_Occurred()) SWIG_fail;
9378 }
9379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9380 return resultobj;
9381 fail:
9382 return NULL;
9383 }
9384
9385
9386 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9387 PyObject *resultobj = 0;
9388 wxBitmap *arg1 = 0 ;
9389 wxIcon *result = 0 ;
9390 void *argp1 = 0 ;
9391 int res1 = 0 ;
9392 PyObject * obj0 = 0 ;
9393 char * kwnames[] = {
9394 (char *) "bmp", NULL
9395 };
9396
9397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9398 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9399 if (!SWIG_IsOK(res1)) {
9400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9401 }
9402 if (!argp1) {
9403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9404 }
9405 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9406 {
9407 if (!wxPyCheckForApp()) SWIG_fail;
9408 PyThreadState* __tstate = wxPyBeginAllowThreads();
9409 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9410 wxPyEndAllowThreads(__tstate);
9411 if (PyErr_Occurred()) SWIG_fail;
9412 }
9413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9414 return resultobj;
9415 fail:
9416 return NULL;
9417 }
9418
9419
9420 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9421 PyObject *resultobj = 0;
9422 PyObject *arg1 = (PyObject *) 0 ;
9423 wxIcon *result = 0 ;
9424 PyObject * obj0 = 0 ;
9425 char * kwnames[] = {
9426 (char *) "listOfStrings", NULL
9427 };
9428
9429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9430 arg1 = obj0;
9431 {
9432 if (!wxPyCheckForApp()) SWIG_fail;
9433 PyThreadState* __tstate = wxPyBeginAllowThreads();
9434 result = (wxIcon *)new_wxIcon(arg1);
9435 wxPyEndAllowThreads(__tstate);
9436 if (PyErr_Occurred()) SWIG_fail;
9437 }
9438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9439 return resultobj;
9440 fail:
9441 return NULL;
9442 }
9443
9444
9445 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9446 PyObject *resultobj = 0;
9447 wxIcon *arg1 = (wxIcon *) 0 ;
9448 wxString *arg2 = 0 ;
9449 wxBitmapType arg3 ;
9450 bool result;
9451 void *argp1 = 0 ;
9452 int res1 = 0 ;
9453 bool temp2 = false ;
9454 int val3 ;
9455 int ecode3 = 0 ;
9456 PyObject * obj0 = 0 ;
9457 PyObject * obj1 = 0 ;
9458 PyObject * obj2 = 0 ;
9459 char * kwnames[] = {
9460 (char *) "self",(char *) "name",(char *) "type", NULL
9461 };
9462
9463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9465 if (!SWIG_IsOK(res1)) {
9466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9467 }
9468 arg1 = reinterpret_cast< wxIcon * >(argp1);
9469 {
9470 arg2 = wxString_in_helper(obj1);
9471 if (arg2 == NULL) SWIG_fail;
9472 temp2 = true;
9473 }
9474 ecode3 = SWIG_AsVal_int(obj2, &val3);
9475 if (!SWIG_IsOK(ecode3)) {
9476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9477 }
9478 arg3 = static_cast< wxBitmapType >(val3);
9479 {
9480 PyThreadState* __tstate = wxPyBeginAllowThreads();
9481 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9482 wxPyEndAllowThreads(__tstate);
9483 if (PyErr_Occurred()) SWIG_fail;
9484 }
9485 {
9486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9487 }
9488 {
9489 if (temp2)
9490 delete arg2;
9491 }
9492 return resultobj;
9493 fail:
9494 {
9495 if (temp2)
9496 delete arg2;
9497 }
9498 return NULL;
9499 }
9500
9501
9502 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9503 PyObject *resultobj = 0;
9504 wxIcon *arg1 = (wxIcon *) 0 ;
9505 long result;
9506 void *argp1 = 0 ;
9507 int res1 = 0 ;
9508 PyObject *swig_obj[1] ;
9509
9510 if (!args) SWIG_fail;
9511 swig_obj[0] = args;
9512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9513 if (!SWIG_IsOK(res1)) {
9514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9515 }
9516 arg1 = reinterpret_cast< wxIcon * >(argp1);
9517 {
9518 PyThreadState* __tstate = wxPyBeginAllowThreads();
9519 result = (long)(arg1)->GetHandle();
9520 wxPyEndAllowThreads(__tstate);
9521 if (PyErr_Occurred()) SWIG_fail;
9522 }
9523 resultobj = SWIG_From_long(static_cast< long >(result));
9524 return resultobj;
9525 fail:
9526 return NULL;
9527 }
9528
9529
9530 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9531 PyObject *resultobj = 0;
9532 wxIcon *arg1 = (wxIcon *) 0 ;
9533 long arg2 ;
9534 void *argp1 = 0 ;
9535 int res1 = 0 ;
9536 long val2 ;
9537 int ecode2 = 0 ;
9538 PyObject * obj0 = 0 ;
9539 PyObject * obj1 = 0 ;
9540 char * kwnames[] = {
9541 (char *) "self",(char *) "handle", NULL
9542 };
9543
9544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9546 if (!SWIG_IsOK(res1)) {
9547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9548 }
9549 arg1 = reinterpret_cast< wxIcon * >(argp1);
9550 ecode2 = SWIG_AsVal_long(obj1, &val2);
9551 if (!SWIG_IsOK(ecode2)) {
9552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9553 }
9554 arg2 = static_cast< long >(val2);
9555 {
9556 PyThreadState* __tstate = wxPyBeginAllowThreads();
9557 wxIcon_SetHandle(arg1,arg2);
9558 wxPyEndAllowThreads(__tstate);
9559 if (PyErr_Occurred()) SWIG_fail;
9560 }
9561 resultobj = SWIG_Py_Void();
9562 return resultobj;
9563 fail:
9564 return NULL;
9565 }
9566
9567
9568 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9569 PyObject *resultobj = 0;
9570 wxIcon *arg1 = (wxIcon *) 0 ;
9571 bool result;
9572 void *argp1 = 0 ;
9573 int res1 = 0 ;
9574 PyObject *swig_obj[1] ;
9575
9576 if (!args) SWIG_fail;
9577 swig_obj[0] = args;
9578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9579 if (!SWIG_IsOK(res1)) {
9580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9581 }
9582 arg1 = reinterpret_cast< wxIcon * >(argp1);
9583 {
9584 PyThreadState* __tstate = wxPyBeginAllowThreads();
9585 result = (bool)(arg1)->IsOk();
9586 wxPyEndAllowThreads(__tstate);
9587 if (PyErr_Occurred()) SWIG_fail;
9588 }
9589 {
9590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9591 }
9592 return resultobj;
9593 fail:
9594 return NULL;
9595 }
9596
9597
9598 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9599 PyObject *resultobj = 0;
9600 wxIcon *arg1 = (wxIcon *) 0 ;
9601 int result;
9602 void *argp1 = 0 ;
9603 int res1 = 0 ;
9604 PyObject *swig_obj[1] ;
9605
9606 if (!args) SWIG_fail;
9607 swig_obj[0] = args;
9608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9609 if (!SWIG_IsOK(res1)) {
9610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9611 }
9612 arg1 = reinterpret_cast< wxIcon * >(argp1);
9613 {
9614 PyThreadState* __tstate = wxPyBeginAllowThreads();
9615 result = (int)(arg1)->GetWidth();
9616 wxPyEndAllowThreads(__tstate);
9617 if (PyErr_Occurred()) SWIG_fail;
9618 }
9619 resultobj = SWIG_From_int(static_cast< int >(result));
9620 return resultobj;
9621 fail:
9622 return NULL;
9623 }
9624
9625
9626 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9627 PyObject *resultobj = 0;
9628 wxIcon *arg1 = (wxIcon *) 0 ;
9629 int result;
9630 void *argp1 = 0 ;
9631 int res1 = 0 ;
9632 PyObject *swig_obj[1] ;
9633
9634 if (!args) SWIG_fail;
9635 swig_obj[0] = args;
9636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9637 if (!SWIG_IsOK(res1)) {
9638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9639 }
9640 arg1 = reinterpret_cast< wxIcon * >(argp1);
9641 {
9642 PyThreadState* __tstate = wxPyBeginAllowThreads();
9643 result = (int)(arg1)->GetHeight();
9644 wxPyEndAllowThreads(__tstate);
9645 if (PyErr_Occurred()) SWIG_fail;
9646 }
9647 resultobj = SWIG_From_int(static_cast< int >(result));
9648 return resultobj;
9649 fail:
9650 return NULL;
9651 }
9652
9653
9654 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9655 PyObject *resultobj = 0;
9656 wxIcon *arg1 = (wxIcon *) 0 ;
9657 int result;
9658 void *argp1 = 0 ;
9659 int res1 = 0 ;
9660 PyObject *swig_obj[1] ;
9661
9662 if (!args) SWIG_fail;
9663 swig_obj[0] = args;
9664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9665 if (!SWIG_IsOK(res1)) {
9666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9667 }
9668 arg1 = reinterpret_cast< wxIcon * >(argp1);
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 result = (int)(arg1)->GetDepth();
9672 wxPyEndAllowThreads(__tstate);
9673 if (PyErr_Occurred()) SWIG_fail;
9674 }
9675 resultobj = SWIG_From_int(static_cast< int >(result));
9676 return resultobj;
9677 fail:
9678 return NULL;
9679 }
9680
9681
9682 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9683 PyObject *resultobj = 0;
9684 wxIcon *arg1 = (wxIcon *) 0 ;
9685 int arg2 ;
9686 void *argp1 = 0 ;
9687 int res1 = 0 ;
9688 int val2 ;
9689 int ecode2 = 0 ;
9690 PyObject * obj0 = 0 ;
9691 PyObject * obj1 = 0 ;
9692 char * kwnames[] = {
9693 (char *) "self",(char *) "w", NULL
9694 };
9695
9696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9698 if (!SWIG_IsOK(res1)) {
9699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9700 }
9701 arg1 = reinterpret_cast< wxIcon * >(argp1);
9702 ecode2 = SWIG_AsVal_int(obj1, &val2);
9703 if (!SWIG_IsOK(ecode2)) {
9704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9705 }
9706 arg2 = static_cast< int >(val2);
9707 {
9708 PyThreadState* __tstate = wxPyBeginAllowThreads();
9709 (arg1)->SetWidth(arg2);
9710 wxPyEndAllowThreads(__tstate);
9711 if (PyErr_Occurred()) SWIG_fail;
9712 }
9713 resultobj = SWIG_Py_Void();
9714 return resultobj;
9715 fail:
9716 return NULL;
9717 }
9718
9719
9720 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9721 PyObject *resultobj = 0;
9722 wxIcon *arg1 = (wxIcon *) 0 ;
9723 int arg2 ;
9724 void *argp1 = 0 ;
9725 int res1 = 0 ;
9726 int val2 ;
9727 int ecode2 = 0 ;
9728 PyObject * obj0 = 0 ;
9729 PyObject * obj1 = 0 ;
9730 char * kwnames[] = {
9731 (char *) "self",(char *) "h", NULL
9732 };
9733
9734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9736 if (!SWIG_IsOK(res1)) {
9737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9738 }
9739 arg1 = reinterpret_cast< wxIcon * >(argp1);
9740 ecode2 = SWIG_AsVal_int(obj1, &val2);
9741 if (!SWIG_IsOK(ecode2)) {
9742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9743 }
9744 arg2 = static_cast< int >(val2);
9745 {
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 (arg1)->SetHeight(arg2);
9748 wxPyEndAllowThreads(__tstate);
9749 if (PyErr_Occurred()) SWIG_fail;
9750 }
9751 resultobj = SWIG_Py_Void();
9752 return resultobj;
9753 fail:
9754 return NULL;
9755 }
9756
9757
9758 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9759 PyObject *resultobj = 0;
9760 wxIcon *arg1 = (wxIcon *) 0 ;
9761 int arg2 ;
9762 void *argp1 = 0 ;
9763 int res1 = 0 ;
9764 int val2 ;
9765 int ecode2 = 0 ;
9766 PyObject * obj0 = 0 ;
9767 PyObject * obj1 = 0 ;
9768 char * kwnames[] = {
9769 (char *) "self",(char *) "d", NULL
9770 };
9771
9772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9774 if (!SWIG_IsOK(res1)) {
9775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9776 }
9777 arg1 = reinterpret_cast< wxIcon * >(argp1);
9778 ecode2 = SWIG_AsVal_int(obj1, &val2);
9779 if (!SWIG_IsOK(ecode2)) {
9780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9781 }
9782 arg2 = static_cast< int >(val2);
9783 {
9784 PyThreadState* __tstate = wxPyBeginAllowThreads();
9785 (arg1)->SetDepth(arg2);
9786 wxPyEndAllowThreads(__tstate);
9787 if (PyErr_Occurred()) SWIG_fail;
9788 }
9789 resultobj = SWIG_Py_Void();
9790 return resultobj;
9791 fail:
9792 return NULL;
9793 }
9794
9795
9796 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9797 PyObject *resultobj = 0;
9798 wxIcon *arg1 = (wxIcon *) 0 ;
9799 wxSize *arg2 = 0 ;
9800 void *argp1 = 0 ;
9801 int res1 = 0 ;
9802 wxSize temp2 ;
9803 PyObject * obj0 = 0 ;
9804 PyObject * obj1 = 0 ;
9805 char * kwnames[] = {
9806 (char *) "self",(char *) "size", NULL
9807 };
9808
9809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9811 if (!SWIG_IsOK(res1)) {
9812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9813 }
9814 arg1 = reinterpret_cast< wxIcon * >(argp1);
9815 {
9816 arg2 = &temp2;
9817 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9818 }
9819 {
9820 PyThreadState* __tstate = wxPyBeginAllowThreads();
9821 (arg1)->SetSize((wxSize const &)*arg2);
9822 wxPyEndAllowThreads(__tstate);
9823 if (PyErr_Occurred()) SWIG_fail;
9824 }
9825 resultobj = SWIG_Py_Void();
9826 return resultobj;
9827 fail:
9828 return NULL;
9829 }
9830
9831
9832 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9833 PyObject *resultobj = 0;
9834 wxIcon *arg1 = (wxIcon *) 0 ;
9835 wxBitmap *arg2 = 0 ;
9836 void *argp1 = 0 ;
9837 int res1 = 0 ;
9838 void *argp2 = 0 ;
9839 int res2 = 0 ;
9840 PyObject * obj0 = 0 ;
9841 PyObject * obj1 = 0 ;
9842 char * kwnames[] = {
9843 (char *) "self",(char *) "bmp", NULL
9844 };
9845
9846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9848 if (!SWIG_IsOK(res1)) {
9849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9850 }
9851 arg1 = reinterpret_cast< wxIcon * >(argp1);
9852 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9853 if (!SWIG_IsOK(res2)) {
9854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9855 }
9856 if (!argp2) {
9857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9858 }
9859 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9860 {
9861 PyThreadState* __tstate = wxPyBeginAllowThreads();
9862 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9863 wxPyEndAllowThreads(__tstate);
9864 if (PyErr_Occurred()) SWIG_fail;
9865 }
9866 resultobj = SWIG_Py_Void();
9867 return resultobj;
9868 fail:
9869 return NULL;
9870 }
9871
9872
9873 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9874 PyObject *obj;
9875 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9876 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9877 return SWIG_Py_Void();
9878 }
9879
9880 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9881 return SWIG_Python_InitShadowInstance(args);
9882 }
9883
9884 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9885 PyObject *resultobj = 0;
9886 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9887 int arg2 = (int) 0 ;
9888 wxIconLocation *result = 0 ;
9889 bool temp1 = false ;
9890 int val2 ;
9891 int ecode2 = 0 ;
9892 PyObject * obj0 = 0 ;
9893 PyObject * obj1 = 0 ;
9894 char * kwnames[] = {
9895 (char *) "filename",(char *) "num", NULL
9896 };
9897
9898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9899 if (obj0) {
9900 {
9901 arg1 = wxString_in_helper(obj0);
9902 if (arg1 == NULL) SWIG_fail;
9903 temp1 = true;
9904 }
9905 }
9906 if (obj1) {
9907 ecode2 = SWIG_AsVal_int(obj1, &val2);
9908 if (!SWIG_IsOK(ecode2)) {
9909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9910 }
9911 arg2 = static_cast< int >(val2);
9912 }
9913 {
9914 PyThreadState* __tstate = wxPyBeginAllowThreads();
9915 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9916 wxPyEndAllowThreads(__tstate);
9917 if (PyErr_Occurred()) SWIG_fail;
9918 }
9919 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9920 {
9921 if (temp1)
9922 delete arg1;
9923 }
9924 return resultobj;
9925 fail:
9926 {
9927 if (temp1)
9928 delete arg1;
9929 }
9930 return NULL;
9931 }
9932
9933
9934 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9935 PyObject *resultobj = 0;
9936 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9937 void *argp1 = 0 ;
9938 int res1 = 0 ;
9939 PyObject *swig_obj[1] ;
9940
9941 if (!args) SWIG_fail;
9942 swig_obj[0] = args;
9943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9944 if (!SWIG_IsOK(res1)) {
9945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9946 }
9947 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9948 {
9949 PyThreadState* __tstate = wxPyBeginAllowThreads();
9950 delete arg1;
9951
9952 wxPyEndAllowThreads(__tstate);
9953 if (PyErr_Occurred()) SWIG_fail;
9954 }
9955 resultobj = SWIG_Py_Void();
9956 return resultobj;
9957 fail:
9958 return NULL;
9959 }
9960
9961
9962 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9963 PyObject *resultobj = 0;
9964 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9965 bool result;
9966 void *argp1 = 0 ;
9967 int res1 = 0 ;
9968 PyObject *swig_obj[1] ;
9969
9970 if (!args) SWIG_fail;
9971 swig_obj[0] = args;
9972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9973 if (!SWIG_IsOK(res1)) {
9974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9975 }
9976 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9977 {
9978 PyThreadState* __tstate = wxPyBeginAllowThreads();
9979 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9980 wxPyEndAllowThreads(__tstate);
9981 if (PyErr_Occurred()) SWIG_fail;
9982 }
9983 {
9984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9985 }
9986 return resultobj;
9987 fail:
9988 return NULL;
9989 }
9990
9991
9992 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9993 PyObject *resultobj = 0;
9994 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9995 wxString *arg2 = 0 ;
9996 void *argp1 = 0 ;
9997 int res1 = 0 ;
9998 bool temp2 = false ;
9999 PyObject * obj0 = 0 ;
10000 PyObject * obj1 = 0 ;
10001 char * kwnames[] = {
10002 (char *) "self",(char *) "filename", NULL
10003 };
10004
10005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
10006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10007 if (!SWIG_IsOK(res1)) {
10008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10009 }
10010 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10011 {
10012 arg2 = wxString_in_helper(obj1);
10013 if (arg2 == NULL) SWIG_fail;
10014 temp2 = true;
10015 }
10016 {
10017 PyThreadState* __tstate = wxPyBeginAllowThreads();
10018 (arg1)->SetFileName((wxString const &)*arg2);
10019 wxPyEndAllowThreads(__tstate);
10020 if (PyErr_Occurred()) SWIG_fail;
10021 }
10022 resultobj = SWIG_Py_Void();
10023 {
10024 if (temp2)
10025 delete arg2;
10026 }
10027 return resultobj;
10028 fail:
10029 {
10030 if (temp2)
10031 delete arg2;
10032 }
10033 return NULL;
10034 }
10035
10036
10037 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10038 PyObject *resultobj = 0;
10039 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10040 wxString *result = 0 ;
10041 void *argp1 = 0 ;
10042 int res1 = 0 ;
10043 PyObject *swig_obj[1] ;
10044
10045 if (!args) SWIG_fail;
10046 swig_obj[0] = args;
10047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10048 if (!SWIG_IsOK(res1)) {
10049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
10050 }
10051 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10052 {
10053 PyThreadState* __tstate = wxPyBeginAllowThreads();
10054 {
10055 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
10056 result = (wxString *) &_result_ref;
10057 }
10058 wxPyEndAllowThreads(__tstate);
10059 if (PyErr_Occurred()) SWIG_fail;
10060 }
10061 {
10062 #if wxUSE_UNICODE
10063 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10064 #else
10065 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10066 #endif
10067 }
10068 return resultobj;
10069 fail:
10070 return NULL;
10071 }
10072
10073
10074 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10075 PyObject *resultobj = 0;
10076 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10077 int arg2 ;
10078 void *argp1 = 0 ;
10079 int res1 = 0 ;
10080 int val2 ;
10081 int ecode2 = 0 ;
10082 PyObject * obj0 = 0 ;
10083 PyObject * obj1 = 0 ;
10084 char * kwnames[] = {
10085 (char *) "self",(char *) "num", NULL
10086 };
10087
10088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10090 if (!SWIG_IsOK(res1)) {
10091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10092 }
10093 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10094 ecode2 = SWIG_AsVal_int(obj1, &val2);
10095 if (!SWIG_IsOK(ecode2)) {
10096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
10097 }
10098 arg2 = static_cast< int >(val2);
10099 {
10100 PyThreadState* __tstate = wxPyBeginAllowThreads();
10101 wxIconLocation_SetIndex(arg1,arg2);
10102 wxPyEndAllowThreads(__tstate);
10103 if (PyErr_Occurred()) SWIG_fail;
10104 }
10105 resultobj = SWIG_Py_Void();
10106 return resultobj;
10107 fail:
10108 return NULL;
10109 }
10110
10111
10112 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10113 PyObject *resultobj = 0;
10114 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10115 int result;
10116 void *argp1 = 0 ;
10117 int res1 = 0 ;
10118 PyObject *swig_obj[1] ;
10119
10120 if (!args) SWIG_fail;
10121 swig_obj[0] = args;
10122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10123 if (!SWIG_IsOK(res1)) {
10124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10125 }
10126 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10127 {
10128 PyThreadState* __tstate = wxPyBeginAllowThreads();
10129 result = (int)wxIconLocation_GetIndex(arg1);
10130 wxPyEndAllowThreads(__tstate);
10131 if (PyErr_Occurred()) SWIG_fail;
10132 }
10133 resultobj = SWIG_From_int(static_cast< int >(result));
10134 return resultobj;
10135 fail:
10136 return NULL;
10137 }
10138
10139
10140 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10141 PyObject *obj;
10142 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10143 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
10144 return SWIG_Py_Void();
10145 }
10146
10147 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10148 return SWIG_Python_InitShadowInstance(args);
10149 }
10150
10151 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10152 PyObject *resultobj = 0;
10153 wxIconBundle *result = 0 ;
10154
10155 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
10156 {
10157 PyThreadState* __tstate = wxPyBeginAllowThreads();
10158 result = (wxIconBundle *)new wxIconBundle();
10159 wxPyEndAllowThreads(__tstate);
10160 if (PyErr_Occurred()) SWIG_fail;
10161 }
10162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
10163 return resultobj;
10164 fail:
10165 return NULL;
10166 }
10167
10168
10169 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10170 PyObject *resultobj = 0;
10171 wxString *arg1 = 0 ;
10172 long arg2 ;
10173 wxIconBundle *result = 0 ;
10174 bool temp1 = false ;
10175 long val2 ;
10176 int ecode2 = 0 ;
10177 PyObject * obj0 = 0 ;
10178 PyObject * obj1 = 0 ;
10179 char * kwnames[] = {
10180 (char *) "file",(char *) "type", NULL
10181 };
10182
10183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
10184 {
10185 arg1 = wxString_in_helper(obj0);
10186 if (arg1 == NULL) SWIG_fail;
10187 temp1 = true;
10188 }
10189 ecode2 = SWIG_AsVal_long(obj1, &val2);
10190 if (!SWIG_IsOK(ecode2)) {
10191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
10192 }
10193 arg2 = static_cast< long >(val2);
10194 {
10195 PyThreadState* __tstate = wxPyBeginAllowThreads();
10196 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
10197 wxPyEndAllowThreads(__tstate);
10198 if (PyErr_Occurred()) SWIG_fail;
10199 }
10200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10201 {
10202 if (temp1)
10203 delete arg1;
10204 }
10205 return resultobj;
10206 fail:
10207 {
10208 if (temp1)
10209 delete arg1;
10210 }
10211 return NULL;
10212 }
10213
10214
10215 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10216 PyObject *resultobj = 0;
10217 wxIcon *arg1 = 0 ;
10218 wxIconBundle *result = 0 ;
10219 void *argp1 = 0 ;
10220 int res1 = 0 ;
10221 PyObject * obj0 = 0 ;
10222 char * kwnames[] = {
10223 (char *) "icon", NULL
10224 };
10225
10226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
10227 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
10228 if (!SWIG_IsOK(res1)) {
10229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10230 }
10231 if (!argp1) {
10232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10233 }
10234 arg1 = reinterpret_cast< wxIcon * >(argp1);
10235 {
10236 PyThreadState* __tstate = wxPyBeginAllowThreads();
10237 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
10238 wxPyEndAllowThreads(__tstate);
10239 if (PyErr_Occurred()) SWIG_fail;
10240 }
10241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10242 return resultobj;
10243 fail:
10244 return NULL;
10245 }
10246
10247
10248 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10249 PyObject *resultobj = 0;
10250 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10251 void *argp1 = 0 ;
10252 int res1 = 0 ;
10253 PyObject *swig_obj[1] ;
10254
10255 if (!args) SWIG_fail;
10256 swig_obj[0] = args;
10257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
10258 if (!SWIG_IsOK(res1)) {
10259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10260 }
10261 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10262 {
10263 PyThreadState* __tstate = wxPyBeginAllowThreads();
10264 delete arg1;
10265
10266 wxPyEndAllowThreads(__tstate);
10267 if (PyErr_Occurred()) SWIG_fail;
10268 }
10269 resultobj = SWIG_Py_Void();
10270 return resultobj;
10271 fail:
10272 return NULL;
10273 }
10274
10275
10276 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10277 PyObject *resultobj = 0;
10278 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10279 wxIcon *arg2 = 0 ;
10280 void *argp1 = 0 ;
10281 int res1 = 0 ;
10282 void *argp2 = 0 ;
10283 int res2 = 0 ;
10284 PyObject * obj0 = 0 ;
10285 PyObject * obj1 = 0 ;
10286 char * kwnames[] = {
10287 (char *) "self",(char *) "icon", NULL
10288 };
10289
10290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10292 if (!SWIG_IsOK(res1)) {
10293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10294 }
10295 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10297 if (!SWIG_IsOK(res2)) {
10298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10299 }
10300 if (!argp2) {
10301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10302 }
10303 arg2 = reinterpret_cast< wxIcon * >(argp2);
10304 {
10305 PyThreadState* __tstate = wxPyBeginAllowThreads();
10306 (arg1)->AddIcon((wxIcon const &)*arg2);
10307 wxPyEndAllowThreads(__tstate);
10308 if (PyErr_Occurred()) SWIG_fail;
10309 }
10310 resultobj = SWIG_Py_Void();
10311 return resultobj;
10312 fail:
10313 return NULL;
10314 }
10315
10316
10317 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10318 PyObject *resultobj = 0;
10319 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10320 wxString *arg2 = 0 ;
10321 long arg3 ;
10322 void *argp1 = 0 ;
10323 int res1 = 0 ;
10324 bool temp2 = false ;
10325 long val3 ;
10326 int ecode3 = 0 ;
10327 PyObject * obj0 = 0 ;
10328 PyObject * obj1 = 0 ;
10329 PyObject * obj2 = 0 ;
10330 char * kwnames[] = {
10331 (char *) "self",(char *) "file",(char *) "type", NULL
10332 };
10333
10334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10336 if (!SWIG_IsOK(res1)) {
10337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10338 }
10339 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10340 {
10341 arg2 = wxString_in_helper(obj1);
10342 if (arg2 == NULL) SWIG_fail;
10343 temp2 = true;
10344 }
10345 ecode3 = SWIG_AsVal_long(obj2, &val3);
10346 if (!SWIG_IsOK(ecode3)) {
10347 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10348 }
10349 arg3 = static_cast< long >(val3);
10350 {
10351 PyThreadState* __tstate = wxPyBeginAllowThreads();
10352 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10353 wxPyEndAllowThreads(__tstate);
10354 if (PyErr_Occurred()) SWIG_fail;
10355 }
10356 resultobj = SWIG_Py_Void();
10357 {
10358 if (temp2)
10359 delete arg2;
10360 }
10361 return resultobj;
10362 fail:
10363 {
10364 if (temp2)
10365 delete arg2;
10366 }
10367 return NULL;
10368 }
10369
10370
10371 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10372 PyObject *resultobj = 0;
10373 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10374 wxSize *arg2 = 0 ;
10375 wxIcon *result = 0 ;
10376 void *argp1 = 0 ;
10377 int res1 = 0 ;
10378 wxSize temp2 ;
10379 PyObject * obj0 = 0 ;
10380 PyObject * obj1 = 0 ;
10381 char * kwnames[] = {
10382 (char *) "self",(char *) "size", NULL
10383 };
10384
10385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10387 if (!SWIG_IsOK(res1)) {
10388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10389 }
10390 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10391 {
10392 arg2 = &temp2;
10393 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10394 }
10395 {
10396 PyThreadState* __tstate = wxPyBeginAllowThreads();
10397 {
10398 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10399 result = (wxIcon *) &_result_ref;
10400 }
10401 wxPyEndAllowThreads(__tstate);
10402 if (PyErr_Occurred()) SWIG_fail;
10403 }
10404 {
10405 wxIcon* resultptr = new wxIcon(*result);
10406 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10407 }
10408 return resultobj;
10409 fail:
10410 return NULL;
10411 }
10412
10413
10414 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10415 PyObject *obj;
10416 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10417 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10418 return SWIG_Py_Void();
10419 }
10420
10421 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10422 return SWIG_Python_InitShadowInstance(args);
10423 }
10424
10425 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10426 PyObject *resultobj = 0;
10427 wxString *arg1 = 0 ;
10428 long arg2 ;
10429 int arg3 = (int) 0 ;
10430 int arg4 = (int) 0 ;
10431 wxCursor *result = 0 ;
10432 bool temp1 = false ;
10433 long val2 ;
10434 int ecode2 = 0 ;
10435 int val3 ;
10436 int ecode3 = 0 ;
10437 int val4 ;
10438 int ecode4 = 0 ;
10439 PyObject * obj0 = 0 ;
10440 PyObject * obj1 = 0 ;
10441 PyObject * obj2 = 0 ;
10442 PyObject * obj3 = 0 ;
10443 char * kwnames[] = {
10444 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10445 };
10446
10447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10448 {
10449 arg1 = wxString_in_helper(obj0);
10450 if (arg1 == NULL) SWIG_fail;
10451 temp1 = true;
10452 }
10453 ecode2 = SWIG_AsVal_long(obj1, &val2);
10454 if (!SWIG_IsOK(ecode2)) {
10455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10456 }
10457 arg2 = static_cast< long >(val2);
10458 if (obj2) {
10459 ecode3 = SWIG_AsVal_int(obj2, &val3);
10460 if (!SWIG_IsOK(ecode3)) {
10461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10462 }
10463 arg3 = static_cast< int >(val3);
10464 }
10465 if (obj3) {
10466 ecode4 = SWIG_AsVal_int(obj3, &val4);
10467 if (!SWIG_IsOK(ecode4)) {
10468 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10469 }
10470 arg4 = static_cast< int >(val4);
10471 }
10472 {
10473 if (!wxPyCheckForApp()) SWIG_fail;
10474 PyThreadState* __tstate = wxPyBeginAllowThreads();
10475 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10476 wxPyEndAllowThreads(__tstate);
10477 if (PyErr_Occurred()) SWIG_fail;
10478 }
10479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10480 {
10481 if (temp1)
10482 delete arg1;
10483 }
10484 return resultobj;
10485 fail:
10486 {
10487 if (temp1)
10488 delete arg1;
10489 }
10490 return NULL;
10491 }
10492
10493
10494 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10495 PyObject *resultobj = 0;
10496 wxCursor *arg1 = (wxCursor *) 0 ;
10497 void *argp1 = 0 ;
10498 int res1 = 0 ;
10499 PyObject *swig_obj[1] ;
10500
10501 if (!args) SWIG_fail;
10502 swig_obj[0] = args;
10503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10504 if (!SWIG_IsOK(res1)) {
10505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10506 }
10507 arg1 = reinterpret_cast< wxCursor * >(argp1);
10508 {
10509 PyThreadState* __tstate = wxPyBeginAllowThreads();
10510 delete arg1;
10511
10512 wxPyEndAllowThreads(__tstate);
10513 if (PyErr_Occurred()) SWIG_fail;
10514 }
10515 resultobj = SWIG_Py_Void();
10516 return resultobj;
10517 fail:
10518 return NULL;
10519 }
10520
10521
10522 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10523 PyObject *resultobj = 0;
10524 int arg1 ;
10525 wxCursor *result = 0 ;
10526 int val1 ;
10527 int ecode1 = 0 ;
10528 PyObject * obj0 = 0 ;
10529 char * kwnames[] = {
10530 (char *) "id", NULL
10531 };
10532
10533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10534 ecode1 = SWIG_AsVal_int(obj0, &val1);
10535 if (!SWIG_IsOK(ecode1)) {
10536 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10537 }
10538 arg1 = static_cast< int >(val1);
10539 {
10540 if (!wxPyCheckForApp()) SWIG_fail;
10541 PyThreadState* __tstate = wxPyBeginAllowThreads();
10542 result = (wxCursor *)new wxCursor(arg1);
10543 wxPyEndAllowThreads(__tstate);
10544 if (PyErr_Occurred()) SWIG_fail;
10545 }
10546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10547 return resultobj;
10548 fail:
10549 return NULL;
10550 }
10551
10552
10553 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10554 PyObject *resultobj = 0;
10555 wxImage *arg1 = 0 ;
10556 wxCursor *result = 0 ;
10557 void *argp1 = 0 ;
10558 int res1 = 0 ;
10559 PyObject * obj0 = 0 ;
10560 char * kwnames[] = {
10561 (char *) "image", NULL
10562 };
10563
10564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10565 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10566 if (!SWIG_IsOK(res1)) {
10567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10568 }
10569 if (!argp1) {
10570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10571 }
10572 arg1 = reinterpret_cast< wxImage * >(argp1);
10573 {
10574 if (!wxPyCheckForApp()) SWIG_fail;
10575 PyThreadState* __tstate = wxPyBeginAllowThreads();
10576 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10577 wxPyEndAllowThreads(__tstate);
10578 if (PyErr_Occurred()) SWIG_fail;
10579 }
10580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10581 return resultobj;
10582 fail:
10583 return NULL;
10584 }
10585
10586
10587 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10588 PyObject *resultobj = 0;
10589 wxCursor *arg1 = (wxCursor *) 0 ;
10590 long result;
10591 void *argp1 = 0 ;
10592 int res1 = 0 ;
10593 PyObject *swig_obj[1] ;
10594
10595 if (!args) SWIG_fail;
10596 swig_obj[0] = args;
10597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10598 if (!SWIG_IsOK(res1)) {
10599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10600 }
10601 arg1 = reinterpret_cast< wxCursor * >(argp1);
10602 {
10603 PyThreadState* __tstate = wxPyBeginAllowThreads();
10604 result = (long)(arg1)->GetHandle();
10605 wxPyEndAllowThreads(__tstate);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 }
10608 resultobj = SWIG_From_long(static_cast< long >(result));
10609 return resultobj;
10610 fail:
10611 return NULL;
10612 }
10613
10614
10615 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10616 PyObject *resultobj = 0;
10617 wxCursor *arg1 = (wxCursor *) 0 ;
10618 long arg2 ;
10619 void *argp1 = 0 ;
10620 int res1 = 0 ;
10621 long val2 ;
10622 int ecode2 = 0 ;
10623 PyObject * obj0 = 0 ;
10624 PyObject * obj1 = 0 ;
10625 char * kwnames[] = {
10626 (char *) "self",(char *) "handle", NULL
10627 };
10628
10629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10631 if (!SWIG_IsOK(res1)) {
10632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10633 }
10634 arg1 = reinterpret_cast< wxCursor * >(argp1);
10635 ecode2 = SWIG_AsVal_long(obj1, &val2);
10636 if (!SWIG_IsOK(ecode2)) {
10637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10638 }
10639 arg2 = static_cast< long >(val2);
10640 {
10641 PyThreadState* __tstate = wxPyBeginAllowThreads();
10642 wxCursor_SetHandle(arg1,arg2);
10643 wxPyEndAllowThreads(__tstate);
10644 if (PyErr_Occurred()) SWIG_fail;
10645 }
10646 resultobj = SWIG_Py_Void();
10647 return resultobj;
10648 fail:
10649 return NULL;
10650 }
10651
10652
10653 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10654 PyObject *resultobj = 0;
10655 wxCursor *arg1 = (wxCursor *) 0 ;
10656 bool result;
10657 void *argp1 = 0 ;
10658 int res1 = 0 ;
10659 PyObject *swig_obj[1] ;
10660
10661 if (!args) SWIG_fail;
10662 swig_obj[0] = args;
10663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10664 if (!SWIG_IsOK(res1)) {
10665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10666 }
10667 arg1 = reinterpret_cast< wxCursor * >(argp1);
10668 {
10669 PyThreadState* __tstate = wxPyBeginAllowThreads();
10670 result = (bool)(arg1)->IsOk();
10671 wxPyEndAllowThreads(__tstate);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 }
10674 {
10675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10676 }
10677 return resultobj;
10678 fail:
10679 return NULL;
10680 }
10681
10682
10683 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10684 PyObject *resultobj = 0;
10685 wxCursor *arg1 = (wxCursor *) 0 ;
10686 int result;
10687 void *argp1 = 0 ;
10688 int res1 = 0 ;
10689 PyObject *swig_obj[1] ;
10690
10691 if (!args) SWIG_fail;
10692 swig_obj[0] = args;
10693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10694 if (!SWIG_IsOK(res1)) {
10695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10696 }
10697 arg1 = reinterpret_cast< wxCursor * >(argp1);
10698 {
10699 PyThreadState* __tstate = wxPyBeginAllowThreads();
10700 result = (int)(arg1)->GetWidth();
10701 wxPyEndAllowThreads(__tstate);
10702 if (PyErr_Occurred()) SWIG_fail;
10703 }
10704 resultobj = SWIG_From_int(static_cast< int >(result));
10705 return resultobj;
10706 fail:
10707 return NULL;
10708 }
10709
10710
10711 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10712 PyObject *resultobj = 0;
10713 wxCursor *arg1 = (wxCursor *) 0 ;
10714 int result;
10715 void *argp1 = 0 ;
10716 int res1 = 0 ;
10717 PyObject *swig_obj[1] ;
10718
10719 if (!args) SWIG_fail;
10720 swig_obj[0] = args;
10721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10722 if (!SWIG_IsOK(res1)) {
10723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10724 }
10725 arg1 = reinterpret_cast< wxCursor * >(argp1);
10726 {
10727 PyThreadState* __tstate = wxPyBeginAllowThreads();
10728 result = (int)(arg1)->GetHeight();
10729 wxPyEndAllowThreads(__tstate);
10730 if (PyErr_Occurred()) SWIG_fail;
10731 }
10732 resultobj = SWIG_From_int(static_cast< int >(result));
10733 return resultobj;
10734 fail:
10735 return NULL;
10736 }
10737
10738
10739 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10740 PyObject *resultobj = 0;
10741 wxCursor *arg1 = (wxCursor *) 0 ;
10742 int result;
10743 void *argp1 = 0 ;
10744 int res1 = 0 ;
10745 PyObject *swig_obj[1] ;
10746
10747 if (!args) SWIG_fail;
10748 swig_obj[0] = args;
10749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10750 if (!SWIG_IsOK(res1)) {
10751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10752 }
10753 arg1 = reinterpret_cast< wxCursor * >(argp1);
10754 {
10755 PyThreadState* __tstate = wxPyBeginAllowThreads();
10756 result = (int)(arg1)->GetDepth();
10757 wxPyEndAllowThreads(__tstate);
10758 if (PyErr_Occurred()) SWIG_fail;
10759 }
10760 resultobj = SWIG_From_int(static_cast< int >(result));
10761 return resultobj;
10762 fail:
10763 return NULL;
10764 }
10765
10766
10767 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10768 PyObject *resultobj = 0;
10769 wxCursor *arg1 = (wxCursor *) 0 ;
10770 int arg2 ;
10771 void *argp1 = 0 ;
10772 int res1 = 0 ;
10773 int val2 ;
10774 int ecode2 = 0 ;
10775 PyObject * obj0 = 0 ;
10776 PyObject * obj1 = 0 ;
10777 char * kwnames[] = {
10778 (char *) "self",(char *) "w", NULL
10779 };
10780
10781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10783 if (!SWIG_IsOK(res1)) {
10784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10785 }
10786 arg1 = reinterpret_cast< wxCursor * >(argp1);
10787 ecode2 = SWIG_AsVal_int(obj1, &val2);
10788 if (!SWIG_IsOK(ecode2)) {
10789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10790 }
10791 arg2 = static_cast< int >(val2);
10792 {
10793 PyThreadState* __tstate = wxPyBeginAllowThreads();
10794 (arg1)->SetWidth(arg2);
10795 wxPyEndAllowThreads(__tstate);
10796 if (PyErr_Occurred()) SWIG_fail;
10797 }
10798 resultobj = SWIG_Py_Void();
10799 return resultobj;
10800 fail:
10801 return NULL;
10802 }
10803
10804
10805 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10806 PyObject *resultobj = 0;
10807 wxCursor *arg1 = (wxCursor *) 0 ;
10808 int arg2 ;
10809 void *argp1 = 0 ;
10810 int res1 = 0 ;
10811 int val2 ;
10812 int ecode2 = 0 ;
10813 PyObject * obj0 = 0 ;
10814 PyObject * obj1 = 0 ;
10815 char * kwnames[] = {
10816 (char *) "self",(char *) "h", NULL
10817 };
10818
10819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10821 if (!SWIG_IsOK(res1)) {
10822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10823 }
10824 arg1 = reinterpret_cast< wxCursor * >(argp1);
10825 ecode2 = SWIG_AsVal_int(obj1, &val2);
10826 if (!SWIG_IsOK(ecode2)) {
10827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10828 }
10829 arg2 = static_cast< int >(val2);
10830 {
10831 PyThreadState* __tstate = wxPyBeginAllowThreads();
10832 (arg1)->SetHeight(arg2);
10833 wxPyEndAllowThreads(__tstate);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 }
10836 resultobj = SWIG_Py_Void();
10837 return resultobj;
10838 fail:
10839 return NULL;
10840 }
10841
10842
10843 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10844 PyObject *resultobj = 0;
10845 wxCursor *arg1 = (wxCursor *) 0 ;
10846 int arg2 ;
10847 void *argp1 = 0 ;
10848 int res1 = 0 ;
10849 int val2 ;
10850 int ecode2 = 0 ;
10851 PyObject * obj0 = 0 ;
10852 PyObject * obj1 = 0 ;
10853 char * kwnames[] = {
10854 (char *) "self",(char *) "d", NULL
10855 };
10856
10857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10859 if (!SWIG_IsOK(res1)) {
10860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10861 }
10862 arg1 = reinterpret_cast< wxCursor * >(argp1);
10863 ecode2 = SWIG_AsVal_int(obj1, &val2);
10864 if (!SWIG_IsOK(ecode2)) {
10865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10866 }
10867 arg2 = static_cast< int >(val2);
10868 {
10869 PyThreadState* __tstate = wxPyBeginAllowThreads();
10870 (arg1)->SetDepth(arg2);
10871 wxPyEndAllowThreads(__tstate);
10872 if (PyErr_Occurred()) SWIG_fail;
10873 }
10874 resultobj = SWIG_Py_Void();
10875 return resultobj;
10876 fail:
10877 return NULL;
10878 }
10879
10880
10881 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10882 PyObject *resultobj = 0;
10883 wxCursor *arg1 = (wxCursor *) 0 ;
10884 wxSize *arg2 = 0 ;
10885 void *argp1 = 0 ;
10886 int res1 = 0 ;
10887 wxSize temp2 ;
10888 PyObject * obj0 = 0 ;
10889 PyObject * obj1 = 0 ;
10890 char * kwnames[] = {
10891 (char *) "self",(char *) "size", NULL
10892 };
10893
10894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10896 if (!SWIG_IsOK(res1)) {
10897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10898 }
10899 arg1 = reinterpret_cast< wxCursor * >(argp1);
10900 {
10901 arg2 = &temp2;
10902 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10903 }
10904 {
10905 PyThreadState* __tstate = wxPyBeginAllowThreads();
10906 (arg1)->SetSize((wxSize const &)*arg2);
10907 wxPyEndAllowThreads(__tstate);
10908 if (PyErr_Occurred()) SWIG_fail;
10909 }
10910 resultobj = SWIG_Py_Void();
10911 return resultobj;
10912 fail:
10913 return NULL;
10914 }
10915
10916
10917 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10918 PyObject *obj;
10919 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10920 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10921 return SWIG_Py_Void();
10922 }
10923
10924 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10925 return SWIG_Python_InitShadowInstance(args);
10926 }
10927
10928 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10929 PyObject *resultobj = 0;
10930 int arg1 = (int) 0 ;
10931 int arg2 = (int) 0 ;
10932 int arg3 = (int) 0 ;
10933 int arg4 = (int) 0 ;
10934 wxRegion *result = 0 ;
10935 int val1 ;
10936 int ecode1 = 0 ;
10937 int val2 ;
10938 int ecode2 = 0 ;
10939 int val3 ;
10940 int ecode3 = 0 ;
10941 int val4 ;
10942 int ecode4 = 0 ;
10943 PyObject * obj0 = 0 ;
10944 PyObject * obj1 = 0 ;
10945 PyObject * obj2 = 0 ;
10946 PyObject * obj3 = 0 ;
10947 char * kwnames[] = {
10948 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10949 };
10950
10951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10952 if (obj0) {
10953 ecode1 = SWIG_AsVal_int(obj0, &val1);
10954 if (!SWIG_IsOK(ecode1)) {
10955 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10956 }
10957 arg1 = static_cast< int >(val1);
10958 }
10959 if (obj1) {
10960 ecode2 = SWIG_AsVal_int(obj1, &val2);
10961 if (!SWIG_IsOK(ecode2)) {
10962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10963 }
10964 arg2 = static_cast< int >(val2);
10965 }
10966 if (obj2) {
10967 ecode3 = SWIG_AsVal_int(obj2, &val3);
10968 if (!SWIG_IsOK(ecode3)) {
10969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10970 }
10971 arg3 = static_cast< int >(val3);
10972 }
10973 if (obj3) {
10974 ecode4 = SWIG_AsVal_int(obj3, &val4);
10975 if (!SWIG_IsOK(ecode4)) {
10976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10977 }
10978 arg4 = static_cast< int >(val4);
10979 }
10980 {
10981 if (!wxPyCheckForApp()) SWIG_fail;
10982 PyThreadState* __tstate = wxPyBeginAllowThreads();
10983 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10984 wxPyEndAllowThreads(__tstate);
10985 if (PyErr_Occurred()) SWIG_fail;
10986 }
10987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10988 return resultobj;
10989 fail:
10990 return NULL;
10991 }
10992
10993
10994 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10995 PyObject *resultobj = 0;
10996 wxBitmap *arg1 = 0 ;
10997 wxRegion *result = 0 ;
10998 void *argp1 = 0 ;
10999 int res1 = 0 ;
11000 PyObject * obj0 = 0 ;
11001 char * kwnames[] = {
11002 (char *) "bmp", NULL
11003 };
11004
11005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
11006 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11007 if (!SWIG_IsOK(res1)) {
11008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11009 }
11010 if (!argp1) {
11011 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11012 }
11013 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11014 {
11015 if (!wxPyCheckForApp()) SWIG_fail;
11016 PyThreadState* __tstate = wxPyBeginAllowThreads();
11017 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
11018 wxPyEndAllowThreads(__tstate);
11019 if (PyErr_Occurred()) SWIG_fail;
11020 }
11021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11022 return resultobj;
11023 fail:
11024 return NULL;
11025 }
11026
11027
11028 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11029 PyObject *resultobj = 0;
11030 wxBitmap *arg1 = 0 ;
11031 wxColour *arg2 = 0 ;
11032 int arg3 = (int) 0 ;
11033 wxRegion *result = 0 ;
11034 void *argp1 = 0 ;
11035 int res1 = 0 ;
11036 wxColour temp2 ;
11037 int val3 ;
11038 int ecode3 = 0 ;
11039 PyObject * obj0 = 0 ;
11040 PyObject * obj1 = 0 ;
11041 PyObject * obj2 = 0 ;
11042 char * kwnames[] = {
11043 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11044 };
11045
11046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11047 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11048 if (!SWIG_IsOK(res1)) {
11049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11050 }
11051 if (!argp1) {
11052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11053 }
11054 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11055 {
11056 arg2 = &temp2;
11057 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11058 }
11059 if (obj2) {
11060 ecode3 = SWIG_AsVal_int(obj2, &val3);
11061 if (!SWIG_IsOK(ecode3)) {
11062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
11063 }
11064 arg3 = static_cast< int >(val3);
11065 }
11066 {
11067 if (!wxPyCheckForApp()) SWIG_fail;
11068 PyThreadState* __tstate = wxPyBeginAllowThreads();
11069 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
11070 wxPyEndAllowThreads(__tstate);
11071 if (PyErr_Occurred()) SWIG_fail;
11072 }
11073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11074 return resultobj;
11075 fail:
11076 return NULL;
11077 }
11078
11079
11080 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11081 PyObject *resultobj = 0;
11082 int arg1 ;
11083 wxPoint *arg2 = (wxPoint *) 0 ;
11084 int arg3 = (int) wxWINDING_RULE ;
11085 wxRegion *result = 0 ;
11086 int val3 ;
11087 int ecode3 = 0 ;
11088 PyObject * obj0 = 0 ;
11089 PyObject * obj1 = 0 ;
11090 char * kwnames[] = {
11091 (char *) "points",(char *) "fillStyle", NULL
11092 };
11093
11094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
11095 {
11096 arg2 = wxPoint_LIST_helper(obj0, &arg1);
11097 if (arg2 == NULL) SWIG_fail;
11098 }
11099 if (obj1) {
11100 ecode3 = SWIG_AsVal_int(obj1, &val3);
11101 if (!SWIG_IsOK(ecode3)) {
11102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
11103 }
11104 arg3 = static_cast< int >(val3);
11105 }
11106 {
11107 if (!wxPyCheckForApp()) SWIG_fail;
11108 PyThreadState* __tstate = wxPyBeginAllowThreads();
11109 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
11110 wxPyEndAllowThreads(__tstate);
11111 if (PyErr_Occurred()) SWIG_fail;
11112 }
11113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11114 {
11115 if (arg2) delete [] arg2;
11116 }
11117 return resultobj;
11118 fail:
11119 {
11120 if (arg2) delete [] arg2;
11121 }
11122 return NULL;
11123 }
11124
11125
11126 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11127 PyObject *resultobj = 0;
11128 wxRegion *arg1 = (wxRegion *) 0 ;
11129 void *argp1 = 0 ;
11130 int res1 = 0 ;
11131 PyObject *swig_obj[1] ;
11132
11133 if (!args) SWIG_fail;
11134 swig_obj[0] = args;
11135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
11136 if (!SWIG_IsOK(res1)) {
11137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
11138 }
11139 arg1 = reinterpret_cast< wxRegion * >(argp1);
11140 {
11141 PyThreadState* __tstate = wxPyBeginAllowThreads();
11142 delete arg1;
11143
11144 wxPyEndAllowThreads(__tstate);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 }
11147 resultobj = SWIG_Py_Void();
11148 return resultobj;
11149 fail:
11150 return NULL;
11151 }
11152
11153
11154 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11155 PyObject *resultobj = 0;
11156 wxRegion *arg1 = (wxRegion *) 0 ;
11157 void *argp1 = 0 ;
11158 int res1 = 0 ;
11159 PyObject *swig_obj[1] ;
11160
11161 if (!args) SWIG_fail;
11162 swig_obj[0] = args;
11163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11164 if (!SWIG_IsOK(res1)) {
11165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
11166 }
11167 arg1 = reinterpret_cast< wxRegion * >(argp1);
11168 {
11169 PyThreadState* __tstate = wxPyBeginAllowThreads();
11170 (arg1)->Clear();
11171 wxPyEndAllowThreads(__tstate);
11172 if (PyErr_Occurred()) SWIG_fail;
11173 }
11174 resultobj = SWIG_Py_Void();
11175 return resultobj;
11176 fail:
11177 return NULL;
11178 }
11179
11180
11181 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11182 PyObject *resultobj = 0;
11183 wxRegion *arg1 = (wxRegion *) 0 ;
11184 int arg2 ;
11185 int arg3 ;
11186 bool result;
11187 void *argp1 = 0 ;
11188 int res1 = 0 ;
11189 int val2 ;
11190 int ecode2 = 0 ;
11191 int val3 ;
11192 int ecode3 = 0 ;
11193 PyObject * obj0 = 0 ;
11194 PyObject * obj1 = 0 ;
11195 PyObject * obj2 = 0 ;
11196 char * kwnames[] = {
11197 (char *) "self",(char *) "x",(char *) "y", NULL
11198 };
11199
11200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11202 if (!SWIG_IsOK(res1)) {
11203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
11204 }
11205 arg1 = reinterpret_cast< wxRegion * >(argp1);
11206 ecode2 = SWIG_AsVal_int(obj1, &val2);
11207 if (!SWIG_IsOK(ecode2)) {
11208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
11209 }
11210 arg2 = static_cast< int >(val2);
11211 ecode3 = SWIG_AsVal_int(obj2, &val3);
11212 if (!SWIG_IsOK(ecode3)) {
11213 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
11214 }
11215 arg3 = static_cast< int >(val3);
11216 {
11217 PyThreadState* __tstate = wxPyBeginAllowThreads();
11218 result = (bool)(arg1)->Offset(arg2,arg3);
11219 wxPyEndAllowThreads(__tstate);
11220 if (PyErr_Occurred()) SWIG_fail;
11221 }
11222 {
11223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11224 }
11225 return resultobj;
11226 fail:
11227 return NULL;
11228 }
11229
11230
11231 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11232 PyObject *resultobj = 0;
11233 wxRegion *arg1 = (wxRegion *) 0 ;
11234 int arg2 ;
11235 int arg3 ;
11236 wxRegionContain result;
11237 void *argp1 = 0 ;
11238 int res1 = 0 ;
11239 int val2 ;
11240 int ecode2 = 0 ;
11241 int val3 ;
11242 int ecode3 = 0 ;
11243 PyObject * obj0 = 0 ;
11244 PyObject * obj1 = 0 ;
11245 PyObject * obj2 = 0 ;
11246 char * kwnames[] = {
11247 (char *) "self",(char *) "x",(char *) "y", NULL
11248 };
11249
11250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11252 if (!SWIG_IsOK(res1)) {
11253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
11254 }
11255 arg1 = reinterpret_cast< wxRegion * >(argp1);
11256 ecode2 = SWIG_AsVal_int(obj1, &val2);
11257 if (!SWIG_IsOK(ecode2)) {
11258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
11259 }
11260 arg2 = static_cast< int >(val2);
11261 ecode3 = SWIG_AsVal_int(obj2, &val3);
11262 if (!SWIG_IsOK(ecode3)) {
11263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
11264 }
11265 arg3 = static_cast< int >(val3);
11266 {
11267 PyThreadState* __tstate = wxPyBeginAllowThreads();
11268 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
11269 wxPyEndAllowThreads(__tstate);
11270 if (PyErr_Occurred()) SWIG_fail;
11271 }
11272 resultobj = SWIG_From_int(static_cast< int >(result));
11273 return resultobj;
11274 fail:
11275 return NULL;
11276 }
11277
11278
11279 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11280 PyObject *resultobj = 0;
11281 wxRegion *arg1 = (wxRegion *) 0 ;
11282 wxPoint *arg2 = 0 ;
11283 wxRegionContain result;
11284 void *argp1 = 0 ;
11285 int res1 = 0 ;
11286 wxPoint temp2 ;
11287 PyObject * obj0 = 0 ;
11288 PyObject * obj1 = 0 ;
11289 char * kwnames[] = {
11290 (char *) "self",(char *) "pt", NULL
11291 };
11292
11293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
11294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11295 if (!SWIG_IsOK(res1)) {
11296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
11297 }
11298 arg1 = reinterpret_cast< wxRegion * >(argp1);
11299 {
11300 arg2 = &temp2;
11301 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11302 }
11303 {
11304 PyThreadState* __tstate = wxPyBeginAllowThreads();
11305 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
11306 wxPyEndAllowThreads(__tstate);
11307 if (PyErr_Occurred()) SWIG_fail;
11308 }
11309 resultobj = SWIG_From_int(static_cast< int >(result));
11310 return resultobj;
11311 fail:
11312 return NULL;
11313 }
11314
11315
11316 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11317 PyObject *resultobj = 0;
11318 wxRegion *arg1 = (wxRegion *) 0 ;
11319 wxRect *arg2 = 0 ;
11320 wxRegionContain result;
11321 void *argp1 = 0 ;
11322 int res1 = 0 ;
11323 wxRect temp2 ;
11324 PyObject * obj0 = 0 ;
11325 PyObject * obj1 = 0 ;
11326 char * kwnames[] = {
11327 (char *) "self",(char *) "rect", NULL
11328 };
11329
11330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
11331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11332 if (!SWIG_IsOK(res1)) {
11333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11334 }
11335 arg1 = reinterpret_cast< wxRegion * >(argp1);
11336 {
11337 arg2 = &temp2;
11338 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11339 }
11340 {
11341 PyThreadState* __tstate = wxPyBeginAllowThreads();
11342 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11343 wxPyEndAllowThreads(__tstate);
11344 if (PyErr_Occurred()) SWIG_fail;
11345 }
11346 resultobj = SWIG_From_int(static_cast< int >(result));
11347 return resultobj;
11348 fail:
11349 return NULL;
11350 }
11351
11352
11353 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11354 PyObject *resultobj = 0;
11355 wxRegion *arg1 = (wxRegion *) 0 ;
11356 int arg2 ;
11357 int arg3 ;
11358 int arg4 ;
11359 int arg5 ;
11360 wxRegionContain result;
11361 void *argp1 = 0 ;
11362 int res1 = 0 ;
11363 int val2 ;
11364 int ecode2 = 0 ;
11365 int val3 ;
11366 int ecode3 = 0 ;
11367 int val4 ;
11368 int ecode4 = 0 ;
11369 int val5 ;
11370 int ecode5 = 0 ;
11371 PyObject * obj0 = 0 ;
11372 PyObject * obj1 = 0 ;
11373 PyObject * obj2 = 0 ;
11374 PyObject * obj3 = 0 ;
11375 PyObject * obj4 = 0 ;
11376 char * kwnames[] = {
11377 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11378 };
11379
11380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11382 if (!SWIG_IsOK(res1)) {
11383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11384 }
11385 arg1 = reinterpret_cast< wxRegion * >(argp1);
11386 ecode2 = SWIG_AsVal_int(obj1, &val2);
11387 if (!SWIG_IsOK(ecode2)) {
11388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11389 }
11390 arg2 = static_cast< int >(val2);
11391 ecode3 = SWIG_AsVal_int(obj2, &val3);
11392 if (!SWIG_IsOK(ecode3)) {
11393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11394 }
11395 arg3 = static_cast< int >(val3);
11396 ecode4 = SWIG_AsVal_int(obj3, &val4);
11397 if (!SWIG_IsOK(ecode4)) {
11398 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11399 }
11400 arg4 = static_cast< int >(val4);
11401 ecode5 = SWIG_AsVal_int(obj4, &val5);
11402 if (!SWIG_IsOK(ecode5)) {
11403 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11404 }
11405 arg5 = static_cast< int >(val5);
11406 {
11407 PyThreadState* __tstate = wxPyBeginAllowThreads();
11408 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11409 wxPyEndAllowThreads(__tstate);
11410 if (PyErr_Occurred()) SWIG_fail;
11411 }
11412 resultobj = SWIG_From_int(static_cast< int >(result));
11413 return resultobj;
11414 fail:
11415 return NULL;
11416 }
11417
11418
11419 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11420 PyObject *resultobj = 0;
11421 wxRegion *arg1 = (wxRegion *) 0 ;
11422 wxRect result;
11423 void *argp1 = 0 ;
11424 int res1 = 0 ;
11425 PyObject *swig_obj[1] ;
11426
11427 if (!args) SWIG_fail;
11428 swig_obj[0] = args;
11429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11430 if (!SWIG_IsOK(res1)) {
11431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11432 }
11433 arg1 = reinterpret_cast< wxRegion * >(argp1);
11434 {
11435 PyThreadState* __tstate = wxPyBeginAllowThreads();
11436 result = (arg1)->GetBox();
11437 wxPyEndAllowThreads(__tstate);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 }
11440 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11441 return resultobj;
11442 fail:
11443 return NULL;
11444 }
11445
11446
11447 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11448 PyObject *resultobj = 0;
11449 wxRegion *arg1 = (wxRegion *) 0 ;
11450 int arg2 ;
11451 int arg3 ;
11452 int arg4 ;
11453 int arg5 ;
11454 bool result;
11455 void *argp1 = 0 ;
11456 int res1 = 0 ;
11457 int val2 ;
11458 int ecode2 = 0 ;
11459 int val3 ;
11460 int ecode3 = 0 ;
11461 int val4 ;
11462 int ecode4 = 0 ;
11463 int val5 ;
11464 int ecode5 = 0 ;
11465 PyObject * obj0 = 0 ;
11466 PyObject * obj1 = 0 ;
11467 PyObject * obj2 = 0 ;
11468 PyObject * obj3 = 0 ;
11469 PyObject * obj4 = 0 ;
11470 char * kwnames[] = {
11471 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11472 };
11473
11474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11476 if (!SWIG_IsOK(res1)) {
11477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11478 }
11479 arg1 = reinterpret_cast< wxRegion * >(argp1);
11480 ecode2 = SWIG_AsVal_int(obj1, &val2);
11481 if (!SWIG_IsOK(ecode2)) {
11482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11483 }
11484 arg2 = static_cast< int >(val2);
11485 ecode3 = SWIG_AsVal_int(obj2, &val3);
11486 if (!SWIG_IsOK(ecode3)) {
11487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11488 }
11489 arg3 = static_cast< int >(val3);
11490 ecode4 = SWIG_AsVal_int(obj3, &val4);
11491 if (!SWIG_IsOK(ecode4)) {
11492 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11493 }
11494 arg4 = static_cast< int >(val4);
11495 ecode5 = SWIG_AsVal_int(obj4, &val5);
11496 if (!SWIG_IsOK(ecode5)) {
11497 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11498 }
11499 arg5 = static_cast< int >(val5);
11500 {
11501 PyThreadState* __tstate = wxPyBeginAllowThreads();
11502 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11503 wxPyEndAllowThreads(__tstate);
11504 if (PyErr_Occurred()) SWIG_fail;
11505 }
11506 {
11507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11508 }
11509 return resultobj;
11510 fail:
11511 return NULL;
11512 }
11513
11514
11515 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11516 PyObject *resultobj = 0;
11517 wxRegion *arg1 = (wxRegion *) 0 ;
11518 wxRect *arg2 = 0 ;
11519 bool result;
11520 void *argp1 = 0 ;
11521 int res1 = 0 ;
11522 wxRect temp2 ;
11523 PyObject * obj0 = 0 ;
11524 PyObject * obj1 = 0 ;
11525 char * kwnames[] = {
11526 (char *) "self",(char *) "rect", NULL
11527 };
11528
11529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11531 if (!SWIG_IsOK(res1)) {
11532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11533 }
11534 arg1 = reinterpret_cast< wxRegion * >(argp1);
11535 {
11536 arg2 = &temp2;
11537 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11538 }
11539 {
11540 PyThreadState* __tstate = wxPyBeginAllowThreads();
11541 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11542 wxPyEndAllowThreads(__tstate);
11543 if (PyErr_Occurred()) SWIG_fail;
11544 }
11545 {
11546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11547 }
11548 return resultobj;
11549 fail:
11550 return NULL;
11551 }
11552
11553
11554 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11555 PyObject *resultobj = 0;
11556 wxRegion *arg1 = (wxRegion *) 0 ;
11557 wxRegion *arg2 = 0 ;
11558 bool result;
11559 void *argp1 = 0 ;
11560 int res1 = 0 ;
11561 void *argp2 = 0 ;
11562 int res2 = 0 ;
11563 PyObject * obj0 = 0 ;
11564 PyObject * obj1 = 0 ;
11565 char * kwnames[] = {
11566 (char *) "self",(char *) "region", NULL
11567 };
11568
11569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11571 if (!SWIG_IsOK(res1)) {
11572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11573 }
11574 arg1 = reinterpret_cast< wxRegion * >(argp1);
11575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11576 if (!SWIG_IsOK(res2)) {
11577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11578 }
11579 if (!argp2) {
11580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11581 }
11582 arg2 = reinterpret_cast< wxRegion * >(argp2);
11583 {
11584 PyThreadState* __tstate = wxPyBeginAllowThreads();
11585 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11586 wxPyEndAllowThreads(__tstate);
11587 if (PyErr_Occurred()) SWIG_fail;
11588 }
11589 {
11590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11591 }
11592 return resultobj;
11593 fail:
11594 return NULL;
11595 }
11596
11597
11598 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11599 PyObject *resultobj = 0;
11600 wxRegion *arg1 = (wxRegion *) 0 ;
11601 bool result;
11602 void *argp1 = 0 ;
11603 int res1 = 0 ;
11604 PyObject *swig_obj[1] ;
11605
11606 if (!args) SWIG_fail;
11607 swig_obj[0] = args;
11608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11609 if (!SWIG_IsOK(res1)) {
11610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11611 }
11612 arg1 = reinterpret_cast< wxRegion * >(argp1);
11613 {
11614 PyThreadState* __tstate = wxPyBeginAllowThreads();
11615 result = (bool)(arg1)->IsEmpty();
11616 wxPyEndAllowThreads(__tstate);
11617 if (PyErr_Occurred()) SWIG_fail;
11618 }
11619 {
11620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11621 }
11622 return resultobj;
11623 fail:
11624 return NULL;
11625 }
11626
11627
11628 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11629 PyObject *resultobj = 0;
11630 wxRegion *arg1 = (wxRegion *) 0 ;
11631 wxRegion *arg2 = 0 ;
11632 bool result;
11633 void *argp1 = 0 ;
11634 int res1 = 0 ;
11635 void *argp2 = 0 ;
11636 int res2 = 0 ;
11637 PyObject * obj0 = 0 ;
11638 PyObject * obj1 = 0 ;
11639 char * kwnames[] = {
11640 (char *) "self",(char *) "region", NULL
11641 };
11642
11643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11645 if (!SWIG_IsOK(res1)) {
11646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11647 }
11648 arg1 = reinterpret_cast< wxRegion * >(argp1);
11649 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11650 if (!SWIG_IsOK(res2)) {
11651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11652 }
11653 if (!argp2) {
11654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11655 }
11656 arg2 = reinterpret_cast< wxRegion * >(argp2);
11657 {
11658 PyThreadState* __tstate = wxPyBeginAllowThreads();
11659 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11660 wxPyEndAllowThreads(__tstate);
11661 if (PyErr_Occurred()) SWIG_fail;
11662 }
11663 {
11664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11665 }
11666 return resultobj;
11667 fail:
11668 return NULL;
11669 }
11670
11671
11672 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11673 PyObject *resultobj = 0;
11674 wxRegion *arg1 = (wxRegion *) 0 ;
11675 int arg2 ;
11676 int arg3 ;
11677 int arg4 ;
11678 int arg5 ;
11679 bool result;
11680 void *argp1 = 0 ;
11681 int res1 = 0 ;
11682 int val2 ;
11683 int ecode2 = 0 ;
11684 int val3 ;
11685 int ecode3 = 0 ;
11686 int val4 ;
11687 int ecode4 = 0 ;
11688 int val5 ;
11689 int ecode5 = 0 ;
11690 PyObject * obj0 = 0 ;
11691 PyObject * obj1 = 0 ;
11692 PyObject * obj2 = 0 ;
11693 PyObject * obj3 = 0 ;
11694 PyObject * obj4 = 0 ;
11695 char * kwnames[] = {
11696 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11697 };
11698
11699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11701 if (!SWIG_IsOK(res1)) {
11702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11703 }
11704 arg1 = reinterpret_cast< wxRegion * >(argp1);
11705 ecode2 = SWIG_AsVal_int(obj1, &val2);
11706 if (!SWIG_IsOK(ecode2)) {
11707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11708 }
11709 arg2 = static_cast< int >(val2);
11710 ecode3 = SWIG_AsVal_int(obj2, &val3);
11711 if (!SWIG_IsOK(ecode3)) {
11712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11713 }
11714 arg3 = static_cast< int >(val3);
11715 ecode4 = SWIG_AsVal_int(obj3, &val4);
11716 if (!SWIG_IsOK(ecode4)) {
11717 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11718 }
11719 arg4 = static_cast< int >(val4);
11720 ecode5 = SWIG_AsVal_int(obj4, &val5);
11721 if (!SWIG_IsOK(ecode5)) {
11722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11723 }
11724 arg5 = static_cast< int >(val5);
11725 {
11726 PyThreadState* __tstate = wxPyBeginAllowThreads();
11727 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11728 wxPyEndAllowThreads(__tstate);
11729 if (PyErr_Occurred()) SWIG_fail;
11730 }
11731 {
11732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11733 }
11734 return resultobj;
11735 fail:
11736 return NULL;
11737 }
11738
11739
11740 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11741 PyObject *resultobj = 0;
11742 wxRegion *arg1 = (wxRegion *) 0 ;
11743 wxRect *arg2 = 0 ;
11744 bool result;
11745 void *argp1 = 0 ;
11746 int res1 = 0 ;
11747 wxRect temp2 ;
11748 PyObject * obj0 = 0 ;
11749 PyObject * obj1 = 0 ;
11750 char * kwnames[] = {
11751 (char *) "self",(char *) "rect", NULL
11752 };
11753
11754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11756 if (!SWIG_IsOK(res1)) {
11757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11758 }
11759 arg1 = reinterpret_cast< wxRegion * >(argp1);
11760 {
11761 arg2 = &temp2;
11762 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11763 }
11764 {
11765 PyThreadState* __tstate = wxPyBeginAllowThreads();
11766 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11767 wxPyEndAllowThreads(__tstate);
11768 if (PyErr_Occurred()) SWIG_fail;
11769 }
11770 {
11771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11772 }
11773 return resultobj;
11774 fail:
11775 return NULL;
11776 }
11777
11778
11779 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11780 PyObject *resultobj = 0;
11781 wxRegion *arg1 = (wxRegion *) 0 ;
11782 wxRegion *arg2 = 0 ;
11783 bool result;
11784 void *argp1 = 0 ;
11785 int res1 = 0 ;
11786 void *argp2 = 0 ;
11787 int res2 = 0 ;
11788 PyObject * obj0 = 0 ;
11789 PyObject * obj1 = 0 ;
11790 char * kwnames[] = {
11791 (char *) "self",(char *) "region", NULL
11792 };
11793
11794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11796 if (!SWIG_IsOK(res1)) {
11797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11798 }
11799 arg1 = reinterpret_cast< wxRegion * >(argp1);
11800 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11801 if (!SWIG_IsOK(res2)) {
11802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11803 }
11804 if (!argp2) {
11805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11806 }
11807 arg2 = reinterpret_cast< wxRegion * >(argp2);
11808 {
11809 PyThreadState* __tstate = wxPyBeginAllowThreads();
11810 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11811 wxPyEndAllowThreads(__tstate);
11812 if (PyErr_Occurred()) SWIG_fail;
11813 }
11814 {
11815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11816 }
11817 return resultobj;
11818 fail:
11819 return NULL;
11820 }
11821
11822
11823 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11824 PyObject *resultobj = 0;
11825 wxRegion *arg1 = (wxRegion *) 0 ;
11826 int arg2 ;
11827 int arg3 ;
11828 int arg4 ;
11829 int arg5 ;
11830 bool result;
11831 void *argp1 = 0 ;
11832 int res1 = 0 ;
11833 int val2 ;
11834 int ecode2 = 0 ;
11835 int val3 ;
11836 int ecode3 = 0 ;
11837 int val4 ;
11838 int ecode4 = 0 ;
11839 int val5 ;
11840 int ecode5 = 0 ;
11841 PyObject * obj0 = 0 ;
11842 PyObject * obj1 = 0 ;
11843 PyObject * obj2 = 0 ;
11844 PyObject * obj3 = 0 ;
11845 PyObject * obj4 = 0 ;
11846 char * kwnames[] = {
11847 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11848 };
11849
11850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11852 if (!SWIG_IsOK(res1)) {
11853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11854 }
11855 arg1 = reinterpret_cast< wxRegion * >(argp1);
11856 ecode2 = SWIG_AsVal_int(obj1, &val2);
11857 if (!SWIG_IsOK(ecode2)) {
11858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11859 }
11860 arg2 = static_cast< int >(val2);
11861 ecode3 = SWIG_AsVal_int(obj2, &val3);
11862 if (!SWIG_IsOK(ecode3)) {
11863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11864 }
11865 arg3 = static_cast< int >(val3);
11866 ecode4 = SWIG_AsVal_int(obj3, &val4);
11867 if (!SWIG_IsOK(ecode4)) {
11868 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11869 }
11870 arg4 = static_cast< int >(val4);
11871 ecode5 = SWIG_AsVal_int(obj4, &val5);
11872 if (!SWIG_IsOK(ecode5)) {
11873 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11874 }
11875 arg5 = static_cast< int >(val5);
11876 {
11877 PyThreadState* __tstate = wxPyBeginAllowThreads();
11878 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11879 wxPyEndAllowThreads(__tstate);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 }
11882 {
11883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11884 }
11885 return resultobj;
11886 fail:
11887 return NULL;
11888 }
11889
11890
11891 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11892 PyObject *resultobj = 0;
11893 wxRegion *arg1 = (wxRegion *) 0 ;
11894 wxRect *arg2 = 0 ;
11895 bool result;
11896 void *argp1 = 0 ;
11897 int res1 = 0 ;
11898 wxRect temp2 ;
11899 PyObject * obj0 = 0 ;
11900 PyObject * obj1 = 0 ;
11901 char * kwnames[] = {
11902 (char *) "self",(char *) "rect", NULL
11903 };
11904
11905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11907 if (!SWIG_IsOK(res1)) {
11908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11909 }
11910 arg1 = reinterpret_cast< wxRegion * >(argp1);
11911 {
11912 arg2 = &temp2;
11913 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11914 }
11915 {
11916 PyThreadState* __tstate = wxPyBeginAllowThreads();
11917 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11918 wxPyEndAllowThreads(__tstate);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 {
11922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11923 }
11924 return resultobj;
11925 fail:
11926 return NULL;
11927 }
11928
11929
11930 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11931 PyObject *resultobj = 0;
11932 wxRegion *arg1 = (wxRegion *) 0 ;
11933 wxRegion *arg2 = 0 ;
11934 bool result;
11935 void *argp1 = 0 ;
11936 int res1 = 0 ;
11937 void *argp2 = 0 ;
11938 int res2 = 0 ;
11939 PyObject * obj0 = 0 ;
11940 PyObject * obj1 = 0 ;
11941 char * kwnames[] = {
11942 (char *) "self",(char *) "region", NULL
11943 };
11944
11945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11947 if (!SWIG_IsOK(res1)) {
11948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11949 }
11950 arg1 = reinterpret_cast< wxRegion * >(argp1);
11951 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11952 if (!SWIG_IsOK(res2)) {
11953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11954 }
11955 if (!argp2) {
11956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11957 }
11958 arg2 = reinterpret_cast< wxRegion * >(argp2);
11959 {
11960 PyThreadState* __tstate = wxPyBeginAllowThreads();
11961 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11962 wxPyEndAllowThreads(__tstate);
11963 if (PyErr_Occurred()) SWIG_fail;
11964 }
11965 {
11966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11967 }
11968 return resultobj;
11969 fail:
11970 return NULL;
11971 }
11972
11973
11974 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11975 PyObject *resultobj = 0;
11976 wxRegion *arg1 = (wxRegion *) 0 ;
11977 int arg2 ;
11978 int arg3 ;
11979 int arg4 ;
11980 int arg5 ;
11981 bool result;
11982 void *argp1 = 0 ;
11983 int res1 = 0 ;
11984 int val2 ;
11985 int ecode2 = 0 ;
11986 int val3 ;
11987 int ecode3 = 0 ;
11988 int val4 ;
11989 int ecode4 = 0 ;
11990 int val5 ;
11991 int ecode5 = 0 ;
11992 PyObject * obj0 = 0 ;
11993 PyObject * obj1 = 0 ;
11994 PyObject * obj2 = 0 ;
11995 PyObject * obj3 = 0 ;
11996 PyObject * obj4 = 0 ;
11997 char * kwnames[] = {
11998 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11999 };
12000
12001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12003 if (!SWIG_IsOK(res1)) {
12004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
12005 }
12006 arg1 = reinterpret_cast< wxRegion * >(argp1);
12007 ecode2 = SWIG_AsVal_int(obj1, &val2);
12008 if (!SWIG_IsOK(ecode2)) {
12009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
12010 }
12011 arg2 = static_cast< int >(val2);
12012 ecode3 = SWIG_AsVal_int(obj2, &val3);
12013 if (!SWIG_IsOK(ecode3)) {
12014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
12015 }
12016 arg3 = static_cast< int >(val3);
12017 ecode4 = SWIG_AsVal_int(obj3, &val4);
12018 if (!SWIG_IsOK(ecode4)) {
12019 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
12020 }
12021 arg4 = static_cast< int >(val4);
12022 ecode5 = SWIG_AsVal_int(obj4, &val5);
12023 if (!SWIG_IsOK(ecode5)) {
12024 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
12025 }
12026 arg5 = static_cast< int >(val5);
12027 {
12028 PyThreadState* __tstate = wxPyBeginAllowThreads();
12029 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
12030 wxPyEndAllowThreads(__tstate);
12031 if (PyErr_Occurred()) SWIG_fail;
12032 }
12033 {
12034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12035 }
12036 return resultobj;
12037 fail:
12038 return NULL;
12039 }
12040
12041
12042 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12043 PyObject *resultobj = 0;
12044 wxRegion *arg1 = (wxRegion *) 0 ;
12045 wxRect *arg2 = 0 ;
12046 bool result;
12047 void *argp1 = 0 ;
12048 int res1 = 0 ;
12049 wxRect temp2 ;
12050 PyObject * obj0 = 0 ;
12051 PyObject * obj1 = 0 ;
12052 char * kwnames[] = {
12053 (char *) "self",(char *) "rect", NULL
12054 };
12055
12056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
12057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12058 if (!SWIG_IsOK(res1)) {
12059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
12060 }
12061 arg1 = reinterpret_cast< wxRegion * >(argp1);
12062 {
12063 arg2 = &temp2;
12064 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12065 }
12066 {
12067 PyThreadState* __tstate = wxPyBeginAllowThreads();
12068 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
12069 wxPyEndAllowThreads(__tstate);
12070 if (PyErr_Occurred()) SWIG_fail;
12071 }
12072 {
12073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12074 }
12075 return resultobj;
12076 fail:
12077 return NULL;
12078 }
12079
12080
12081 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12082 PyObject *resultobj = 0;
12083 wxRegion *arg1 = (wxRegion *) 0 ;
12084 wxRegion *arg2 = 0 ;
12085 bool result;
12086 void *argp1 = 0 ;
12087 int res1 = 0 ;
12088 void *argp2 = 0 ;
12089 int res2 = 0 ;
12090 PyObject * obj0 = 0 ;
12091 PyObject * obj1 = 0 ;
12092 char * kwnames[] = {
12093 (char *) "self",(char *) "region", NULL
12094 };
12095
12096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
12097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12098 if (!SWIG_IsOK(res1)) {
12099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
12100 }
12101 arg1 = reinterpret_cast< wxRegion * >(argp1);
12102 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
12103 if (!SWIG_IsOK(res2)) {
12104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12105 }
12106 if (!argp2) {
12107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12108 }
12109 arg2 = reinterpret_cast< wxRegion * >(argp2);
12110 {
12111 PyThreadState* __tstate = wxPyBeginAllowThreads();
12112 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
12113 wxPyEndAllowThreads(__tstate);
12114 if (PyErr_Occurred()) SWIG_fail;
12115 }
12116 {
12117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12118 }
12119 return resultobj;
12120 fail:
12121 return NULL;
12122 }
12123
12124
12125 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12126 PyObject *resultobj = 0;
12127 wxRegion *arg1 = (wxRegion *) 0 ;
12128 SwigValueWrapper<wxBitmap > result;
12129 void *argp1 = 0 ;
12130 int res1 = 0 ;
12131 PyObject *swig_obj[1] ;
12132
12133 if (!args) SWIG_fail;
12134 swig_obj[0] = args;
12135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12136 if (!SWIG_IsOK(res1)) {
12137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12138 }
12139 arg1 = reinterpret_cast< wxRegion * >(argp1);
12140 {
12141 PyThreadState* __tstate = wxPyBeginAllowThreads();
12142 result = (arg1)->ConvertToBitmap();
12143 wxPyEndAllowThreads(__tstate);
12144 if (PyErr_Occurred()) SWIG_fail;
12145 }
12146 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
12147 return resultobj;
12148 fail:
12149 return NULL;
12150 }
12151
12152
12153 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12154 PyObject *resultobj = 0;
12155 wxRegion *arg1 = (wxRegion *) 0 ;
12156 wxBitmap *arg2 = 0 ;
12157 bool result;
12158 void *argp1 = 0 ;
12159 int res1 = 0 ;
12160 void *argp2 = 0 ;
12161 int res2 = 0 ;
12162 PyObject * obj0 = 0 ;
12163 PyObject * obj1 = 0 ;
12164 char * kwnames[] = {
12165 (char *) "self",(char *) "bmp", NULL
12166 };
12167
12168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
12169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12170 if (!SWIG_IsOK(res1)) {
12171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12172 }
12173 arg1 = reinterpret_cast< wxRegion * >(argp1);
12174 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12175 if (!SWIG_IsOK(res2)) {
12176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12177 }
12178 if (!argp2) {
12179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12180 }
12181 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12182 {
12183 PyThreadState* __tstate = wxPyBeginAllowThreads();
12184 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
12185 wxPyEndAllowThreads(__tstate);
12186 if (PyErr_Occurred()) SWIG_fail;
12187 }
12188 {
12189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12190 }
12191 return resultobj;
12192 fail:
12193 return NULL;
12194 }
12195
12196
12197 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12198 PyObject *resultobj = 0;
12199 wxRegion *arg1 = (wxRegion *) 0 ;
12200 wxBitmap *arg2 = 0 ;
12201 wxColour *arg3 = 0 ;
12202 int arg4 = (int) 0 ;
12203 bool result;
12204 void *argp1 = 0 ;
12205 int res1 = 0 ;
12206 void *argp2 = 0 ;
12207 int res2 = 0 ;
12208 wxColour temp3 ;
12209 int val4 ;
12210 int ecode4 = 0 ;
12211 PyObject * obj0 = 0 ;
12212 PyObject * obj1 = 0 ;
12213 PyObject * obj2 = 0 ;
12214 PyObject * obj3 = 0 ;
12215 char * kwnames[] = {
12216 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
12217 };
12218
12219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12221 if (!SWIG_IsOK(res1)) {
12222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
12223 }
12224 arg1 = reinterpret_cast< wxRegion * >(argp1);
12225 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12226 if (!SWIG_IsOK(res2)) {
12227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12228 }
12229 if (!argp2) {
12230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12231 }
12232 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12233 {
12234 arg3 = &temp3;
12235 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12236 }
12237 if (obj3) {
12238 ecode4 = SWIG_AsVal_int(obj3, &val4);
12239 if (!SWIG_IsOK(ecode4)) {
12240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
12241 }
12242 arg4 = static_cast< int >(val4);
12243 }
12244 {
12245 PyThreadState* __tstate = wxPyBeginAllowThreads();
12246 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
12247 wxPyEndAllowThreads(__tstate);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 }
12250 {
12251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12252 }
12253 return resultobj;
12254 fail:
12255 return NULL;
12256 }
12257
12258
12259 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12260 PyObject *obj;
12261 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12262 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
12263 return SWIG_Py_Void();
12264 }
12265
12266 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12267 return SWIG_Python_InitShadowInstance(args);
12268 }
12269
12270 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12271 PyObject *resultobj = 0;
12272 wxRegion *arg1 = 0 ;
12273 wxRegionIterator *result = 0 ;
12274 void *argp1 = 0 ;
12275 int res1 = 0 ;
12276 PyObject * obj0 = 0 ;
12277 char * kwnames[] = {
12278 (char *) "region", NULL
12279 };
12280
12281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
12282 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
12283 if (!SWIG_IsOK(res1)) {
12284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12285 }
12286 if (!argp1) {
12287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12288 }
12289 arg1 = reinterpret_cast< wxRegion * >(argp1);
12290 {
12291 if (!wxPyCheckForApp()) SWIG_fail;
12292 PyThreadState* __tstate = wxPyBeginAllowThreads();
12293 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
12294 wxPyEndAllowThreads(__tstate);
12295 if (PyErr_Occurred()) SWIG_fail;
12296 }
12297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
12298 return resultobj;
12299 fail:
12300 return NULL;
12301 }
12302
12303
12304 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12305 PyObject *resultobj = 0;
12306 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12307 void *argp1 = 0 ;
12308 int res1 = 0 ;
12309 PyObject *swig_obj[1] ;
12310
12311 if (!args) SWIG_fail;
12312 swig_obj[0] = args;
12313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
12314 if (!SWIG_IsOK(res1)) {
12315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12316 }
12317 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12318 {
12319 PyThreadState* __tstate = wxPyBeginAllowThreads();
12320 delete arg1;
12321
12322 wxPyEndAllowThreads(__tstate);
12323 if (PyErr_Occurred()) SWIG_fail;
12324 }
12325 resultobj = SWIG_Py_Void();
12326 return resultobj;
12327 fail:
12328 return NULL;
12329 }
12330
12331
12332 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12333 PyObject *resultobj = 0;
12334 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12335 int result;
12336 void *argp1 = 0 ;
12337 int res1 = 0 ;
12338 PyObject *swig_obj[1] ;
12339
12340 if (!args) SWIG_fail;
12341 swig_obj[0] = args;
12342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12343 if (!SWIG_IsOK(res1)) {
12344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12345 }
12346 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12347 {
12348 PyThreadState* __tstate = wxPyBeginAllowThreads();
12349 result = (int)(arg1)->GetX();
12350 wxPyEndAllowThreads(__tstate);
12351 if (PyErr_Occurred()) SWIG_fail;
12352 }
12353 resultobj = SWIG_From_int(static_cast< int >(result));
12354 return resultobj;
12355 fail:
12356 return NULL;
12357 }
12358
12359
12360 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12361 PyObject *resultobj = 0;
12362 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12363 int result;
12364 void *argp1 = 0 ;
12365 int res1 = 0 ;
12366 PyObject *swig_obj[1] ;
12367
12368 if (!args) SWIG_fail;
12369 swig_obj[0] = args;
12370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12371 if (!SWIG_IsOK(res1)) {
12372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12373 }
12374 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12375 {
12376 PyThreadState* __tstate = wxPyBeginAllowThreads();
12377 result = (int)(arg1)->GetY();
12378 wxPyEndAllowThreads(__tstate);
12379 if (PyErr_Occurred()) SWIG_fail;
12380 }
12381 resultobj = SWIG_From_int(static_cast< int >(result));
12382 return resultobj;
12383 fail:
12384 return NULL;
12385 }
12386
12387
12388 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12389 PyObject *resultobj = 0;
12390 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12391 int result;
12392 void *argp1 = 0 ;
12393 int res1 = 0 ;
12394 PyObject *swig_obj[1] ;
12395
12396 if (!args) SWIG_fail;
12397 swig_obj[0] = args;
12398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12399 if (!SWIG_IsOK(res1)) {
12400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12401 }
12402 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12403 {
12404 PyThreadState* __tstate = wxPyBeginAllowThreads();
12405 result = (int)(arg1)->GetW();
12406 wxPyEndAllowThreads(__tstate);
12407 if (PyErr_Occurred()) SWIG_fail;
12408 }
12409 resultobj = SWIG_From_int(static_cast< int >(result));
12410 return resultobj;
12411 fail:
12412 return NULL;
12413 }
12414
12415
12416 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12417 PyObject *resultobj = 0;
12418 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12419 int result;
12420 void *argp1 = 0 ;
12421 int res1 = 0 ;
12422 PyObject *swig_obj[1] ;
12423
12424 if (!args) SWIG_fail;
12425 swig_obj[0] = args;
12426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12427 if (!SWIG_IsOK(res1)) {
12428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12429 }
12430 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12431 {
12432 PyThreadState* __tstate = wxPyBeginAllowThreads();
12433 result = (int)(arg1)->GetWidth();
12434 wxPyEndAllowThreads(__tstate);
12435 if (PyErr_Occurred()) SWIG_fail;
12436 }
12437 resultobj = SWIG_From_int(static_cast< int >(result));
12438 return resultobj;
12439 fail:
12440 return NULL;
12441 }
12442
12443
12444 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12445 PyObject *resultobj = 0;
12446 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12447 int result;
12448 void *argp1 = 0 ;
12449 int res1 = 0 ;
12450 PyObject *swig_obj[1] ;
12451
12452 if (!args) SWIG_fail;
12453 swig_obj[0] = args;
12454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12455 if (!SWIG_IsOK(res1)) {
12456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12457 }
12458 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12459 {
12460 PyThreadState* __tstate = wxPyBeginAllowThreads();
12461 result = (int)(arg1)->GetH();
12462 wxPyEndAllowThreads(__tstate);
12463 if (PyErr_Occurred()) SWIG_fail;
12464 }
12465 resultobj = SWIG_From_int(static_cast< int >(result));
12466 return resultobj;
12467 fail:
12468 return NULL;
12469 }
12470
12471
12472 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12473 PyObject *resultobj = 0;
12474 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12475 int result;
12476 void *argp1 = 0 ;
12477 int res1 = 0 ;
12478 PyObject *swig_obj[1] ;
12479
12480 if (!args) SWIG_fail;
12481 swig_obj[0] = args;
12482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12483 if (!SWIG_IsOK(res1)) {
12484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12485 }
12486 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12487 {
12488 PyThreadState* __tstate = wxPyBeginAllowThreads();
12489 result = (int)(arg1)->GetHeight();
12490 wxPyEndAllowThreads(__tstate);
12491 if (PyErr_Occurred()) SWIG_fail;
12492 }
12493 resultobj = SWIG_From_int(static_cast< int >(result));
12494 return resultobj;
12495 fail:
12496 return NULL;
12497 }
12498
12499
12500 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12501 PyObject *resultobj = 0;
12502 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12503 wxRect result;
12504 void *argp1 = 0 ;
12505 int res1 = 0 ;
12506 PyObject *swig_obj[1] ;
12507
12508 if (!args) SWIG_fail;
12509 swig_obj[0] = args;
12510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12511 if (!SWIG_IsOK(res1)) {
12512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12513 }
12514 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12515 {
12516 PyThreadState* __tstate = wxPyBeginAllowThreads();
12517 result = (arg1)->GetRect();
12518 wxPyEndAllowThreads(__tstate);
12519 if (PyErr_Occurred()) SWIG_fail;
12520 }
12521 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12522 return resultobj;
12523 fail:
12524 return NULL;
12525 }
12526
12527
12528 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12529 PyObject *resultobj = 0;
12530 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12531 bool result;
12532 void *argp1 = 0 ;
12533 int res1 = 0 ;
12534 PyObject *swig_obj[1] ;
12535
12536 if (!args) SWIG_fail;
12537 swig_obj[0] = args;
12538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12539 if (!SWIG_IsOK(res1)) {
12540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12541 }
12542 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12543 {
12544 PyThreadState* __tstate = wxPyBeginAllowThreads();
12545 result = (bool)(arg1)->HaveRects();
12546 wxPyEndAllowThreads(__tstate);
12547 if (PyErr_Occurred()) SWIG_fail;
12548 }
12549 {
12550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12551 }
12552 return resultobj;
12553 fail:
12554 return NULL;
12555 }
12556
12557
12558 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12559 PyObject *resultobj = 0;
12560 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12561 void *argp1 = 0 ;
12562 int res1 = 0 ;
12563 PyObject *swig_obj[1] ;
12564
12565 if (!args) SWIG_fail;
12566 swig_obj[0] = args;
12567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12568 if (!SWIG_IsOK(res1)) {
12569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12570 }
12571 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12572 {
12573 PyThreadState* __tstate = wxPyBeginAllowThreads();
12574 (arg1)->Reset();
12575 wxPyEndAllowThreads(__tstate);
12576 if (PyErr_Occurred()) SWIG_fail;
12577 }
12578 resultobj = SWIG_Py_Void();
12579 return resultobj;
12580 fail:
12581 return NULL;
12582 }
12583
12584
12585 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12586 PyObject *resultobj = 0;
12587 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12588 void *argp1 = 0 ;
12589 int res1 = 0 ;
12590 PyObject *swig_obj[1] ;
12591
12592 if (!args) SWIG_fail;
12593 swig_obj[0] = args;
12594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12595 if (!SWIG_IsOK(res1)) {
12596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12597 }
12598 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12599 {
12600 PyThreadState* __tstate = wxPyBeginAllowThreads();
12601 wxRegionIterator_Next(arg1);
12602 wxPyEndAllowThreads(__tstate);
12603 if (PyErr_Occurred()) SWIG_fail;
12604 }
12605 resultobj = SWIG_Py_Void();
12606 return resultobj;
12607 fail:
12608 return NULL;
12609 }
12610
12611
12612 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12613 PyObject *resultobj = 0;
12614 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12615 bool result;
12616 void *argp1 = 0 ;
12617 int res1 = 0 ;
12618 PyObject *swig_obj[1] ;
12619
12620 if (!args) SWIG_fail;
12621 swig_obj[0] = args;
12622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12623 if (!SWIG_IsOK(res1)) {
12624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12625 }
12626 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12627 {
12628 PyThreadState* __tstate = wxPyBeginAllowThreads();
12629 result = (bool)wxRegionIterator___nonzero__(arg1);
12630 wxPyEndAllowThreads(__tstate);
12631 if (PyErr_Occurred()) SWIG_fail;
12632 }
12633 {
12634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12635 }
12636 return resultobj;
12637 fail:
12638 return NULL;
12639 }
12640
12641
12642 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12643 PyObject *obj;
12644 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12645 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12646 return SWIG_Py_Void();
12647 }
12648
12649 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12650 return SWIG_Python_InitShadowInstance(args);
12651 }
12652
12653 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12654 PyObject *resultobj = 0;
12655 wxNativeFontInfo *result = 0 ;
12656
12657 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12658 {
12659 PyThreadState* __tstate = wxPyBeginAllowThreads();
12660 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12661 wxPyEndAllowThreads(__tstate);
12662 if (PyErr_Occurred()) SWIG_fail;
12663 }
12664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12665 return resultobj;
12666 fail:
12667 return NULL;
12668 }
12669
12670
12671 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12672 PyObject *resultobj = 0;
12673 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12674 void *argp1 = 0 ;
12675 int res1 = 0 ;
12676 PyObject *swig_obj[1] ;
12677
12678 if (!args) SWIG_fail;
12679 swig_obj[0] = args;
12680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12681 if (!SWIG_IsOK(res1)) {
12682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12683 }
12684 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12685 {
12686 PyThreadState* __tstate = wxPyBeginAllowThreads();
12687 delete arg1;
12688
12689 wxPyEndAllowThreads(__tstate);
12690 if (PyErr_Occurred()) SWIG_fail;
12691 }
12692 resultobj = SWIG_Py_Void();
12693 return resultobj;
12694 fail:
12695 return NULL;
12696 }
12697
12698
12699 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12700 PyObject *resultobj = 0;
12701 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12702 void *argp1 = 0 ;
12703 int res1 = 0 ;
12704 PyObject *swig_obj[1] ;
12705
12706 if (!args) SWIG_fail;
12707 swig_obj[0] = args;
12708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12709 if (!SWIG_IsOK(res1)) {
12710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12711 }
12712 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12713 {
12714 PyThreadState* __tstate = wxPyBeginAllowThreads();
12715 (arg1)->Init();
12716 wxPyEndAllowThreads(__tstate);
12717 if (PyErr_Occurred()) SWIG_fail;
12718 }
12719 resultobj = SWIG_Py_Void();
12720 return resultobj;
12721 fail:
12722 return NULL;
12723 }
12724
12725
12726 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12727 PyObject *resultobj = 0;
12728 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12729 wxFont *arg2 = 0 ;
12730 void *argp1 = 0 ;
12731 int res1 = 0 ;
12732 void *argp2 = 0 ;
12733 int res2 = 0 ;
12734 PyObject * obj0 = 0 ;
12735 PyObject * obj1 = 0 ;
12736 char * kwnames[] = {
12737 (char *) "self",(char *) "font", NULL
12738 };
12739
12740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12742 if (!SWIG_IsOK(res1)) {
12743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12744 }
12745 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12746 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12747 if (!SWIG_IsOK(res2)) {
12748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12749 }
12750 if (!argp2) {
12751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12752 }
12753 arg2 = reinterpret_cast< wxFont * >(argp2);
12754 {
12755 PyThreadState* __tstate = wxPyBeginAllowThreads();
12756 (arg1)->InitFromFont((wxFont const &)*arg2);
12757 wxPyEndAllowThreads(__tstate);
12758 if (PyErr_Occurred()) SWIG_fail;
12759 }
12760 resultobj = SWIG_Py_Void();
12761 return resultobj;
12762 fail:
12763 return NULL;
12764 }
12765
12766
12767 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12768 PyObject *resultobj = 0;
12769 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12770 int result;
12771 void *argp1 = 0 ;
12772 int res1 = 0 ;
12773 PyObject *swig_obj[1] ;
12774
12775 if (!args) SWIG_fail;
12776 swig_obj[0] = args;
12777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12778 if (!SWIG_IsOK(res1)) {
12779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12780 }
12781 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12782 {
12783 PyThreadState* __tstate = wxPyBeginAllowThreads();
12784 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12785 wxPyEndAllowThreads(__tstate);
12786 if (PyErr_Occurred()) SWIG_fail;
12787 }
12788 resultobj = SWIG_From_int(static_cast< int >(result));
12789 return resultobj;
12790 fail:
12791 return NULL;
12792 }
12793
12794
12795 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12796 PyObject *resultobj = 0;
12797 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12798 wxSize result;
12799 void *argp1 = 0 ;
12800 int res1 = 0 ;
12801 PyObject *swig_obj[1] ;
12802
12803 if (!args) SWIG_fail;
12804 swig_obj[0] = args;
12805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12806 if (!SWIG_IsOK(res1)) {
12807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12808 }
12809 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12810 {
12811 PyThreadState* __tstate = wxPyBeginAllowThreads();
12812 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12813 wxPyEndAllowThreads(__tstate);
12814 if (PyErr_Occurred()) SWIG_fail;
12815 }
12816 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12817 return resultobj;
12818 fail:
12819 return NULL;
12820 }
12821
12822
12823 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12824 PyObject *resultobj = 0;
12825 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12826 wxFontStyle result;
12827 void *argp1 = 0 ;
12828 int res1 = 0 ;
12829 PyObject *swig_obj[1] ;
12830
12831 if (!args) SWIG_fail;
12832 swig_obj[0] = args;
12833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12834 if (!SWIG_IsOK(res1)) {
12835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12836 }
12837 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12838 {
12839 PyThreadState* __tstate = wxPyBeginAllowThreads();
12840 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12841 wxPyEndAllowThreads(__tstate);
12842 if (PyErr_Occurred()) SWIG_fail;
12843 }
12844 resultobj = SWIG_From_int(static_cast< int >(result));
12845 return resultobj;
12846 fail:
12847 return NULL;
12848 }
12849
12850
12851 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12852 PyObject *resultobj = 0;
12853 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12854 wxFontWeight result;
12855 void *argp1 = 0 ;
12856 int res1 = 0 ;
12857 PyObject *swig_obj[1] ;
12858
12859 if (!args) SWIG_fail;
12860 swig_obj[0] = args;
12861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12862 if (!SWIG_IsOK(res1)) {
12863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12864 }
12865 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12866 {
12867 PyThreadState* __tstate = wxPyBeginAllowThreads();
12868 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12869 wxPyEndAllowThreads(__tstate);
12870 if (PyErr_Occurred()) SWIG_fail;
12871 }
12872 resultobj = SWIG_From_int(static_cast< int >(result));
12873 return resultobj;
12874 fail:
12875 return NULL;
12876 }
12877
12878
12879 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12880 PyObject *resultobj = 0;
12881 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12882 bool result;
12883 void *argp1 = 0 ;
12884 int res1 = 0 ;
12885 PyObject *swig_obj[1] ;
12886
12887 if (!args) SWIG_fail;
12888 swig_obj[0] = args;
12889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12890 if (!SWIG_IsOK(res1)) {
12891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12892 }
12893 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12894 {
12895 PyThreadState* __tstate = wxPyBeginAllowThreads();
12896 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12897 wxPyEndAllowThreads(__tstate);
12898 if (PyErr_Occurred()) SWIG_fail;
12899 }
12900 {
12901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12902 }
12903 return resultobj;
12904 fail:
12905 return NULL;
12906 }
12907
12908
12909 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12910 PyObject *resultobj = 0;
12911 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12912 wxString result;
12913 void *argp1 = 0 ;
12914 int res1 = 0 ;
12915 PyObject *swig_obj[1] ;
12916
12917 if (!args) SWIG_fail;
12918 swig_obj[0] = args;
12919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12920 if (!SWIG_IsOK(res1)) {
12921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12922 }
12923 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12924 {
12925 PyThreadState* __tstate = wxPyBeginAllowThreads();
12926 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12927 wxPyEndAllowThreads(__tstate);
12928 if (PyErr_Occurred()) SWIG_fail;
12929 }
12930 {
12931 #if wxUSE_UNICODE
12932 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12933 #else
12934 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12935 #endif
12936 }
12937 return resultobj;
12938 fail:
12939 return NULL;
12940 }
12941
12942
12943 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12944 PyObject *resultobj = 0;
12945 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12946 wxFontFamily result;
12947 void *argp1 = 0 ;
12948 int res1 = 0 ;
12949 PyObject *swig_obj[1] ;
12950
12951 if (!args) SWIG_fail;
12952 swig_obj[0] = args;
12953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12954 if (!SWIG_IsOK(res1)) {
12955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12956 }
12957 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12958 {
12959 PyThreadState* __tstate = wxPyBeginAllowThreads();
12960 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12961 wxPyEndAllowThreads(__tstate);
12962 if (PyErr_Occurred()) SWIG_fail;
12963 }
12964 resultobj = SWIG_From_int(static_cast< int >(result));
12965 return resultobj;
12966 fail:
12967 return NULL;
12968 }
12969
12970
12971 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12972 PyObject *resultobj = 0;
12973 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12974 wxFontEncoding result;
12975 void *argp1 = 0 ;
12976 int res1 = 0 ;
12977 PyObject *swig_obj[1] ;
12978
12979 if (!args) SWIG_fail;
12980 swig_obj[0] = args;
12981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12982 if (!SWIG_IsOK(res1)) {
12983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12984 }
12985 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12986 {
12987 PyThreadState* __tstate = wxPyBeginAllowThreads();
12988 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12989 wxPyEndAllowThreads(__tstate);
12990 if (PyErr_Occurred()) SWIG_fail;
12991 }
12992 resultobj = SWIG_From_int(static_cast< int >(result));
12993 return resultobj;
12994 fail:
12995 return NULL;
12996 }
12997
12998
12999 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13000 PyObject *resultobj = 0;
13001 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13002 int arg2 ;
13003 void *argp1 = 0 ;
13004 int res1 = 0 ;
13005 int val2 ;
13006 int ecode2 = 0 ;
13007 PyObject * obj0 = 0 ;
13008 PyObject * obj1 = 0 ;
13009 char * kwnames[] = {
13010 (char *) "self",(char *) "pointsize", NULL
13011 };
13012
13013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
13014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13015 if (!SWIG_IsOK(res1)) {
13016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13017 }
13018 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13019 ecode2 = SWIG_AsVal_int(obj1, &val2);
13020 if (!SWIG_IsOK(ecode2)) {
13021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
13022 }
13023 arg2 = static_cast< int >(val2);
13024 {
13025 PyThreadState* __tstate = wxPyBeginAllowThreads();
13026 (arg1)->SetPointSize(arg2);
13027 wxPyEndAllowThreads(__tstate);
13028 if (PyErr_Occurred()) SWIG_fail;
13029 }
13030 resultobj = SWIG_Py_Void();
13031 return resultobj;
13032 fail:
13033 return NULL;
13034 }
13035
13036
13037 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13038 PyObject *resultobj = 0;
13039 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13040 wxSize *arg2 = 0 ;
13041 void *argp1 = 0 ;
13042 int res1 = 0 ;
13043 wxSize temp2 ;
13044 PyObject * obj0 = 0 ;
13045 PyObject * obj1 = 0 ;
13046 char * kwnames[] = {
13047 (char *) "self",(char *) "pixelSize", NULL
13048 };
13049
13050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
13051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13052 if (!SWIG_IsOK(res1)) {
13053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13054 }
13055 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13056 {
13057 arg2 = &temp2;
13058 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13059 }
13060 {
13061 PyThreadState* __tstate = wxPyBeginAllowThreads();
13062 (arg1)->SetPixelSize((wxSize const &)*arg2);
13063 wxPyEndAllowThreads(__tstate);
13064 if (PyErr_Occurred()) SWIG_fail;
13065 }
13066 resultobj = SWIG_Py_Void();
13067 return resultobj;
13068 fail:
13069 return NULL;
13070 }
13071
13072
13073 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13074 PyObject *resultobj = 0;
13075 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13076 wxFontStyle arg2 ;
13077 void *argp1 = 0 ;
13078 int res1 = 0 ;
13079 int val2 ;
13080 int ecode2 = 0 ;
13081 PyObject * obj0 = 0 ;
13082 PyObject * obj1 = 0 ;
13083 char * kwnames[] = {
13084 (char *) "self",(char *) "style", NULL
13085 };
13086
13087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13089 if (!SWIG_IsOK(res1)) {
13090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13091 }
13092 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13093 ecode2 = SWIG_AsVal_int(obj1, &val2);
13094 if (!SWIG_IsOK(ecode2)) {
13095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
13096 }
13097 arg2 = static_cast< wxFontStyle >(val2);
13098 {
13099 PyThreadState* __tstate = wxPyBeginAllowThreads();
13100 (arg1)->SetStyle(arg2);
13101 wxPyEndAllowThreads(__tstate);
13102 if (PyErr_Occurred()) SWIG_fail;
13103 }
13104 resultobj = SWIG_Py_Void();
13105 return resultobj;
13106 fail:
13107 return NULL;
13108 }
13109
13110
13111 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13112 PyObject *resultobj = 0;
13113 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13114 wxFontWeight arg2 ;
13115 void *argp1 = 0 ;
13116 int res1 = 0 ;
13117 int val2 ;
13118 int ecode2 = 0 ;
13119 PyObject * obj0 = 0 ;
13120 PyObject * obj1 = 0 ;
13121 char * kwnames[] = {
13122 (char *) "self",(char *) "weight", NULL
13123 };
13124
13125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
13126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13127 if (!SWIG_IsOK(res1)) {
13128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13129 }
13130 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13131 ecode2 = SWIG_AsVal_int(obj1, &val2);
13132 if (!SWIG_IsOK(ecode2)) {
13133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
13134 }
13135 arg2 = static_cast< wxFontWeight >(val2);
13136 {
13137 PyThreadState* __tstate = wxPyBeginAllowThreads();
13138 (arg1)->SetWeight(arg2);
13139 wxPyEndAllowThreads(__tstate);
13140 if (PyErr_Occurred()) SWIG_fail;
13141 }
13142 resultobj = SWIG_Py_Void();
13143 return resultobj;
13144 fail:
13145 return NULL;
13146 }
13147
13148
13149 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13150 PyObject *resultobj = 0;
13151 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13152 bool arg2 ;
13153 void *argp1 = 0 ;
13154 int res1 = 0 ;
13155 bool val2 ;
13156 int ecode2 = 0 ;
13157 PyObject * obj0 = 0 ;
13158 PyObject * obj1 = 0 ;
13159 char * kwnames[] = {
13160 (char *) "self",(char *) "underlined", NULL
13161 };
13162
13163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
13164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13165 if (!SWIG_IsOK(res1)) {
13166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13167 }
13168 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13169 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13170 if (!SWIG_IsOK(ecode2)) {
13171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
13172 }
13173 arg2 = static_cast< bool >(val2);
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
13176 (arg1)->SetUnderlined(arg2);
13177 wxPyEndAllowThreads(__tstate);
13178 if (PyErr_Occurred()) SWIG_fail;
13179 }
13180 resultobj = SWIG_Py_Void();
13181 return resultobj;
13182 fail:
13183 return NULL;
13184 }
13185
13186
13187 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13188 PyObject *resultobj = 0;
13189 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13190 wxString arg2 ;
13191 bool result;
13192 void *argp1 = 0 ;
13193 int res1 = 0 ;
13194 PyObject * obj0 = 0 ;
13195 PyObject * obj1 = 0 ;
13196 char * kwnames[] = {
13197 (char *) "self",(char *) "facename", NULL
13198 };
13199
13200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
13201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13202 if (!SWIG_IsOK(res1)) {
13203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13204 }
13205 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13206 {
13207 wxString* sptr = wxString_in_helper(obj1);
13208 if (sptr == NULL) SWIG_fail;
13209 arg2 = *sptr;
13210 delete sptr;
13211 }
13212 {
13213 PyThreadState* __tstate = wxPyBeginAllowThreads();
13214 result = (bool)(arg1)->SetFaceName(arg2);
13215 wxPyEndAllowThreads(__tstate);
13216 if (PyErr_Occurred()) SWIG_fail;
13217 }
13218 {
13219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13220 }
13221 return resultobj;
13222 fail:
13223 return NULL;
13224 }
13225
13226
13227 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13228 PyObject *resultobj = 0;
13229 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13230 wxFontFamily arg2 ;
13231 void *argp1 = 0 ;
13232 int res1 = 0 ;
13233 int val2 ;
13234 int ecode2 = 0 ;
13235 PyObject * obj0 = 0 ;
13236 PyObject * obj1 = 0 ;
13237 char * kwnames[] = {
13238 (char *) "self",(char *) "family", NULL
13239 };
13240
13241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
13242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13243 if (!SWIG_IsOK(res1)) {
13244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13245 }
13246 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13247 ecode2 = SWIG_AsVal_int(obj1, &val2);
13248 if (!SWIG_IsOK(ecode2)) {
13249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
13250 }
13251 arg2 = static_cast< wxFontFamily >(val2);
13252 {
13253 PyThreadState* __tstate = wxPyBeginAllowThreads();
13254 (arg1)->SetFamily(arg2);
13255 wxPyEndAllowThreads(__tstate);
13256 if (PyErr_Occurred()) SWIG_fail;
13257 }
13258 resultobj = SWIG_Py_Void();
13259 return resultobj;
13260 fail:
13261 return NULL;
13262 }
13263
13264
13265 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13266 PyObject *resultobj = 0;
13267 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13268 wxFontEncoding arg2 ;
13269 void *argp1 = 0 ;
13270 int res1 = 0 ;
13271 int val2 ;
13272 int ecode2 = 0 ;
13273 PyObject * obj0 = 0 ;
13274 PyObject * obj1 = 0 ;
13275 char * kwnames[] = {
13276 (char *) "self",(char *) "encoding", NULL
13277 };
13278
13279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13281 if (!SWIG_IsOK(res1)) {
13282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13283 }
13284 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13285 ecode2 = SWIG_AsVal_int(obj1, &val2);
13286 if (!SWIG_IsOK(ecode2)) {
13287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13288 }
13289 arg2 = static_cast< wxFontEncoding >(val2);
13290 {
13291 PyThreadState* __tstate = wxPyBeginAllowThreads();
13292 (arg1)->SetEncoding(arg2);
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 resultobj = SWIG_Py_Void();
13297 return resultobj;
13298 fail:
13299 return NULL;
13300 }
13301
13302
13303 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13304 PyObject *resultobj = 0;
13305 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13306 wxString *arg2 = 0 ;
13307 bool result;
13308 void *argp1 = 0 ;
13309 int res1 = 0 ;
13310 bool temp2 = false ;
13311 PyObject * obj0 = 0 ;
13312 PyObject * obj1 = 0 ;
13313 char * kwnames[] = {
13314 (char *) "self",(char *) "s", NULL
13315 };
13316
13317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13319 if (!SWIG_IsOK(res1)) {
13320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13321 }
13322 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13323 {
13324 arg2 = wxString_in_helper(obj1);
13325 if (arg2 == NULL) SWIG_fail;
13326 temp2 = true;
13327 }
13328 {
13329 PyThreadState* __tstate = wxPyBeginAllowThreads();
13330 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13331 wxPyEndAllowThreads(__tstate);
13332 if (PyErr_Occurred()) SWIG_fail;
13333 }
13334 {
13335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13336 }
13337 {
13338 if (temp2)
13339 delete arg2;
13340 }
13341 return resultobj;
13342 fail:
13343 {
13344 if (temp2)
13345 delete arg2;
13346 }
13347 return NULL;
13348 }
13349
13350
13351 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13352 PyObject *resultobj = 0;
13353 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13354 wxString result;
13355 void *argp1 = 0 ;
13356 int res1 = 0 ;
13357 PyObject *swig_obj[1] ;
13358
13359 if (!args) SWIG_fail;
13360 swig_obj[0] = args;
13361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13362 if (!SWIG_IsOK(res1)) {
13363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13364 }
13365 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13366 {
13367 PyThreadState* __tstate = wxPyBeginAllowThreads();
13368 result = ((wxNativeFontInfo const *)arg1)->ToString();
13369 wxPyEndAllowThreads(__tstate);
13370 if (PyErr_Occurred()) SWIG_fail;
13371 }
13372 {
13373 #if wxUSE_UNICODE
13374 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13375 #else
13376 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13377 #endif
13378 }
13379 return resultobj;
13380 fail:
13381 return NULL;
13382 }
13383
13384
13385 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13386 PyObject *resultobj = 0;
13387 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13388 wxString result;
13389 void *argp1 = 0 ;
13390 int res1 = 0 ;
13391 PyObject *swig_obj[1] ;
13392
13393 if (!args) SWIG_fail;
13394 swig_obj[0] = args;
13395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13396 if (!SWIG_IsOK(res1)) {
13397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13398 }
13399 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13400 {
13401 PyThreadState* __tstate = wxPyBeginAllowThreads();
13402 result = wxNativeFontInfo___str__(arg1);
13403 wxPyEndAllowThreads(__tstate);
13404 if (PyErr_Occurred()) SWIG_fail;
13405 }
13406 {
13407 #if wxUSE_UNICODE
13408 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13409 #else
13410 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13411 #endif
13412 }
13413 return resultobj;
13414 fail:
13415 return NULL;
13416 }
13417
13418
13419 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13420 PyObject *resultobj = 0;
13421 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13422 wxString *arg2 = 0 ;
13423 bool result;
13424 void *argp1 = 0 ;
13425 int res1 = 0 ;
13426 bool temp2 = false ;
13427 PyObject * obj0 = 0 ;
13428 PyObject * obj1 = 0 ;
13429 char * kwnames[] = {
13430 (char *) "self",(char *) "s", NULL
13431 };
13432
13433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13435 if (!SWIG_IsOK(res1)) {
13436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13437 }
13438 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13439 {
13440 arg2 = wxString_in_helper(obj1);
13441 if (arg2 == NULL) SWIG_fail;
13442 temp2 = true;
13443 }
13444 {
13445 PyThreadState* __tstate = wxPyBeginAllowThreads();
13446 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13447 wxPyEndAllowThreads(__tstate);
13448 if (PyErr_Occurred()) SWIG_fail;
13449 }
13450 {
13451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13452 }
13453 {
13454 if (temp2)
13455 delete arg2;
13456 }
13457 return resultobj;
13458 fail:
13459 {
13460 if (temp2)
13461 delete arg2;
13462 }
13463 return NULL;
13464 }
13465
13466
13467 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13468 PyObject *resultobj = 0;
13469 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13470 wxString result;
13471 void *argp1 = 0 ;
13472 int res1 = 0 ;
13473 PyObject *swig_obj[1] ;
13474
13475 if (!args) SWIG_fail;
13476 swig_obj[0] = args;
13477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13478 if (!SWIG_IsOK(res1)) {
13479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13480 }
13481 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13482 {
13483 PyThreadState* __tstate = wxPyBeginAllowThreads();
13484 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13485 wxPyEndAllowThreads(__tstate);
13486 if (PyErr_Occurred()) SWIG_fail;
13487 }
13488 {
13489 #if wxUSE_UNICODE
13490 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13491 #else
13492 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13493 #endif
13494 }
13495 return resultobj;
13496 fail:
13497 return NULL;
13498 }
13499
13500
13501 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13502 PyObject *obj;
13503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13504 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13505 return SWIG_Py_Void();
13506 }
13507
13508 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13509 return SWIG_Python_InitShadowInstance(args);
13510 }
13511
13512 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13513 PyObject *resultobj = 0;
13514 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13515 wxString *arg2 = (wxString *) 0 ;
13516 void *argp1 = 0 ;
13517 int res1 = 0 ;
13518 bool temp2 = false ;
13519 PyObject *swig_obj[2] ;
13520
13521 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13523 if (!SWIG_IsOK(res1)) {
13524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13525 }
13526 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13527 {
13528 arg2 = wxString_in_helper(swig_obj[1]);
13529 if (arg2 == NULL) SWIG_fail;
13530 temp2 = true;
13531 }
13532 if (arg1) (arg1)->facename = *arg2;
13533
13534 resultobj = SWIG_Py_Void();
13535 {
13536 if (temp2)
13537 delete arg2;
13538 }
13539 return resultobj;
13540 fail:
13541 {
13542 if (temp2)
13543 delete arg2;
13544 }
13545 return NULL;
13546 }
13547
13548
13549 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13550 PyObject *resultobj = 0;
13551 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13552 wxString *result = 0 ;
13553 void *argp1 = 0 ;
13554 int res1 = 0 ;
13555 PyObject *swig_obj[1] ;
13556
13557 if (!args) SWIG_fail;
13558 swig_obj[0] = args;
13559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13560 if (!SWIG_IsOK(res1)) {
13561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13562 }
13563 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13564 result = (wxString *)& ((arg1)->facename);
13565 {
13566 #if wxUSE_UNICODE
13567 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13568 #else
13569 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13570 #endif
13571 }
13572 return resultobj;
13573 fail:
13574 return NULL;
13575 }
13576
13577
13578 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13579 PyObject *resultobj = 0;
13580 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13581 wxFontEncoding arg2 ;
13582 void *argp1 = 0 ;
13583 int res1 = 0 ;
13584 int val2 ;
13585 int ecode2 = 0 ;
13586 PyObject *swig_obj[2] ;
13587
13588 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13590 if (!SWIG_IsOK(res1)) {
13591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13592 }
13593 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13594 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13595 if (!SWIG_IsOK(ecode2)) {
13596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13597 }
13598 arg2 = static_cast< wxFontEncoding >(val2);
13599 if (arg1) (arg1)->encoding = arg2;
13600
13601 resultobj = SWIG_Py_Void();
13602 return resultobj;
13603 fail:
13604 return NULL;
13605 }
13606
13607
13608 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13609 PyObject *resultobj = 0;
13610 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13611 wxFontEncoding result;
13612 void *argp1 = 0 ;
13613 int res1 = 0 ;
13614 PyObject *swig_obj[1] ;
13615
13616 if (!args) SWIG_fail;
13617 swig_obj[0] = args;
13618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13619 if (!SWIG_IsOK(res1)) {
13620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13621 }
13622 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13623 result = (wxFontEncoding) ((arg1)->encoding);
13624 resultobj = SWIG_From_int(static_cast< int >(result));
13625 return resultobj;
13626 fail:
13627 return NULL;
13628 }
13629
13630
13631 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13632 PyObject *resultobj = 0;
13633 wxNativeEncodingInfo *result = 0 ;
13634
13635 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13636 {
13637 PyThreadState* __tstate = wxPyBeginAllowThreads();
13638 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13639 wxPyEndAllowThreads(__tstate);
13640 if (PyErr_Occurred()) SWIG_fail;
13641 }
13642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13643 return resultobj;
13644 fail:
13645 return NULL;
13646 }
13647
13648
13649 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13650 PyObject *resultobj = 0;
13651 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13652 void *argp1 = 0 ;
13653 int res1 = 0 ;
13654 PyObject *swig_obj[1] ;
13655
13656 if (!args) SWIG_fail;
13657 swig_obj[0] = args;
13658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13659 if (!SWIG_IsOK(res1)) {
13660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13661 }
13662 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13663 {
13664 PyThreadState* __tstate = wxPyBeginAllowThreads();
13665 delete arg1;
13666
13667 wxPyEndAllowThreads(__tstate);
13668 if (PyErr_Occurred()) SWIG_fail;
13669 }
13670 resultobj = SWIG_Py_Void();
13671 return resultobj;
13672 fail:
13673 return NULL;
13674 }
13675
13676
13677 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13678 PyObject *resultobj = 0;
13679 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13680 wxString *arg2 = 0 ;
13681 bool result;
13682 void *argp1 = 0 ;
13683 int res1 = 0 ;
13684 bool temp2 = false ;
13685 PyObject * obj0 = 0 ;
13686 PyObject * obj1 = 0 ;
13687 char * kwnames[] = {
13688 (char *) "self",(char *) "s", NULL
13689 };
13690
13691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13693 if (!SWIG_IsOK(res1)) {
13694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13695 }
13696 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13697 {
13698 arg2 = wxString_in_helper(obj1);
13699 if (arg2 == NULL) SWIG_fail;
13700 temp2 = true;
13701 }
13702 {
13703 PyThreadState* __tstate = wxPyBeginAllowThreads();
13704 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13705 wxPyEndAllowThreads(__tstate);
13706 if (PyErr_Occurred()) SWIG_fail;
13707 }
13708 {
13709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13710 }
13711 {
13712 if (temp2)
13713 delete arg2;
13714 }
13715 return resultobj;
13716 fail:
13717 {
13718 if (temp2)
13719 delete arg2;
13720 }
13721 return NULL;
13722 }
13723
13724
13725 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13726 PyObject *resultobj = 0;
13727 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13728 wxString result;
13729 void *argp1 = 0 ;
13730 int res1 = 0 ;
13731 PyObject *swig_obj[1] ;
13732
13733 if (!args) SWIG_fail;
13734 swig_obj[0] = args;
13735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13736 if (!SWIG_IsOK(res1)) {
13737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13738 }
13739 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13740 {
13741 PyThreadState* __tstate = wxPyBeginAllowThreads();
13742 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13743 wxPyEndAllowThreads(__tstate);
13744 if (PyErr_Occurred()) SWIG_fail;
13745 }
13746 {
13747 #if wxUSE_UNICODE
13748 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13749 #else
13750 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13751 #endif
13752 }
13753 return resultobj;
13754 fail:
13755 return NULL;
13756 }
13757
13758
13759 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13760 PyObject *obj;
13761 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13762 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13763 return SWIG_Py_Void();
13764 }
13765
13766 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13767 return SWIG_Python_InitShadowInstance(args);
13768 }
13769
13770 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13771 PyObject *resultobj = 0;
13772 wxFontEncoding arg1 ;
13773 wxNativeEncodingInfo *result = 0 ;
13774 int val1 ;
13775 int ecode1 = 0 ;
13776 PyObject * obj0 = 0 ;
13777 char * kwnames[] = {
13778 (char *) "encoding", NULL
13779 };
13780
13781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13782 ecode1 = SWIG_AsVal_int(obj0, &val1);
13783 if (!SWIG_IsOK(ecode1)) {
13784 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13785 }
13786 arg1 = static_cast< wxFontEncoding >(val1);
13787 {
13788 PyThreadState* __tstate = wxPyBeginAllowThreads();
13789 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13790 wxPyEndAllowThreads(__tstate);
13791 if (PyErr_Occurred()) SWIG_fail;
13792 }
13793 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13794 return resultobj;
13795 fail:
13796 return NULL;
13797 }
13798
13799
13800 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13801 PyObject *resultobj = 0;
13802 wxNativeEncodingInfo *arg1 = 0 ;
13803 bool result;
13804 void *argp1 = 0 ;
13805 int res1 = 0 ;
13806 PyObject * obj0 = 0 ;
13807 char * kwnames[] = {
13808 (char *) "info", NULL
13809 };
13810
13811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13812 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13813 if (!SWIG_IsOK(res1)) {
13814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13815 }
13816 if (!argp1) {
13817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13818 }
13819 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13820 {
13821 PyThreadState* __tstate = wxPyBeginAllowThreads();
13822 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13823 wxPyEndAllowThreads(__tstate);
13824 if (PyErr_Occurred()) SWIG_fail;
13825 }
13826 {
13827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13828 }
13829 return resultobj;
13830 fail:
13831 return NULL;
13832 }
13833
13834
13835 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13836 PyObject *resultobj = 0;
13837 wxFontMapper *result = 0 ;
13838
13839 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13840 {
13841 PyThreadState* __tstate = wxPyBeginAllowThreads();
13842 result = (wxFontMapper *)new wxFontMapper();
13843 wxPyEndAllowThreads(__tstate);
13844 if (PyErr_Occurred()) SWIG_fail;
13845 }
13846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13847 return resultobj;
13848 fail:
13849 return NULL;
13850 }
13851
13852
13853 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13854 PyObject *resultobj = 0;
13855 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13856 void *argp1 = 0 ;
13857 int res1 = 0 ;
13858 PyObject *swig_obj[1] ;
13859
13860 if (!args) SWIG_fail;
13861 swig_obj[0] = args;
13862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13863 if (!SWIG_IsOK(res1)) {
13864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13865 }
13866 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13867 {
13868 PyThreadState* __tstate = wxPyBeginAllowThreads();
13869 delete arg1;
13870
13871 wxPyEndAllowThreads(__tstate);
13872 if (PyErr_Occurred()) SWIG_fail;
13873 }
13874 resultobj = SWIG_Py_Void();
13875 return resultobj;
13876 fail:
13877 return NULL;
13878 }
13879
13880
13881 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13882 PyObject *resultobj = 0;
13883 wxFontMapper *result = 0 ;
13884
13885 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13886 {
13887 PyThreadState* __tstate = wxPyBeginAllowThreads();
13888 result = (wxFontMapper *)wxFontMapper::Get();
13889 wxPyEndAllowThreads(__tstate);
13890 if (PyErr_Occurred()) SWIG_fail;
13891 }
13892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13893 return resultobj;
13894 fail:
13895 return NULL;
13896 }
13897
13898
13899 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13900 PyObject *resultobj = 0;
13901 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13902 wxFontMapper *result = 0 ;
13903 void *argp1 = 0 ;
13904 int res1 = 0 ;
13905 PyObject * obj0 = 0 ;
13906 char * kwnames[] = {
13907 (char *) "mapper", NULL
13908 };
13909
13910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13912 if (!SWIG_IsOK(res1)) {
13913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13914 }
13915 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13916 {
13917 PyThreadState* __tstate = wxPyBeginAllowThreads();
13918 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13919 wxPyEndAllowThreads(__tstate);
13920 if (PyErr_Occurred()) SWIG_fail;
13921 }
13922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13923 return resultobj;
13924 fail:
13925 return NULL;
13926 }
13927
13928
13929 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13930 PyObject *resultobj = 0;
13931 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13932 wxString *arg2 = 0 ;
13933 bool arg3 = (bool) true ;
13934 wxFontEncoding result;
13935 void *argp1 = 0 ;
13936 int res1 = 0 ;
13937 bool temp2 = false ;
13938 bool val3 ;
13939 int ecode3 = 0 ;
13940 PyObject * obj0 = 0 ;
13941 PyObject * obj1 = 0 ;
13942 PyObject * obj2 = 0 ;
13943 char * kwnames[] = {
13944 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13945 };
13946
13947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13949 if (!SWIG_IsOK(res1)) {
13950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13951 }
13952 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13953 {
13954 arg2 = wxString_in_helper(obj1);
13955 if (arg2 == NULL) SWIG_fail;
13956 temp2 = true;
13957 }
13958 if (obj2) {
13959 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13960 if (!SWIG_IsOK(ecode3)) {
13961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13962 }
13963 arg3 = static_cast< bool >(val3);
13964 }
13965 {
13966 PyThreadState* __tstate = wxPyBeginAllowThreads();
13967 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13968 wxPyEndAllowThreads(__tstate);
13969 if (PyErr_Occurred()) SWIG_fail;
13970 }
13971 resultobj = SWIG_From_int(static_cast< int >(result));
13972 {
13973 if (temp2)
13974 delete arg2;
13975 }
13976 return resultobj;
13977 fail:
13978 {
13979 if (temp2)
13980 delete arg2;
13981 }
13982 return NULL;
13983 }
13984
13985
13986 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13987 PyObject *resultobj = 0;
13988 size_t result;
13989
13990 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13991 {
13992 PyThreadState* __tstate = wxPyBeginAllowThreads();
13993 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13994 wxPyEndAllowThreads(__tstate);
13995 if (PyErr_Occurred()) SWIG_fail;
13996 }
13997 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13998 return resultobj;
13999 fail:
14000 return NULL;
14001 }
14002
14003
14004 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14005 PyObject *resultobj = 0;
14006 size_t arg1 ;
14007 wxFontEncoding result;
14008 size_t val1 ;
14009 int ecode1 = 0 ;
14010 PyObject * obj0 = 0 ;
14011 char * kwnames[] = {
14012 (char *) "n", NULL
14013 };
14014
14015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
14016 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
14017 if (!SWIG_IsOK(ecode1)) {
14018 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
14019 }
14020 arg1 = static_cast< size_t >(val1);
14021 {
14022 PyThreadState* __tstate = wxPyBeginAllowThreads();
14023 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
14024 wxPyEndAllowThreads(__tstate);
14025 if (PyErr_Occurred()) SWIG_fail;
14026 }
14027 resultobj = SWIG_From_int(static_cast< int >(result));
14028 return resultobj;
14029 fail:
14030 return NULL;
14031 }
14032
14033
14034 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14035 PyObject *resultobj = 0;
14036 wxFontEncoding arg1 ;
14037 wxString result;
14038 int val1 ;
14039 int ecode1 = 0 ;
14040 PyObject * obj0 = 0 ;
14041 char * kwnames[] = {
14042 (char *) "encoding", NULL
14043 };
14044
14045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
14046 ecode1 = SWIG_AsVal_int(obj0, &val1);
14047 if (!SWIG_IsOK(ecode1)) {
14048 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14049 }
14050 arg1 = static_cast< wxFontEncoding >(val1);
14051 {
14052 PyThreadState* __tstate = wxPyBeginAllowThreads();
14053 result = wxFontMapper::GetEncodingName(arg1);
14054 wxPyEndAllowThreads(__tstate);
14055 if (PyErr_Occurred()) SWIG_fail;
14056 }
14057 {
14058 #if wxUSE_UNICODE
14059 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14060 #else
14061 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14062 #endif
14063 }
14064 return resultobj;
14065 fail:
14066 return NULL;
14067 }
14068
14069
14070 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14071 PyObject *resultobj = 0;
14072 wxFontEncoding arg1 ;
14073 wxString result;
14074 int val1 ;
14075 int ecode1 = 0 ;
14076 PyObject * obj0 = 0 ;
14077 char * kwnames[] = {
14078 (char *) "encoding", NULL
14079 };
14080
14081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
14082 ecode1 = SWIG_AsVal_int(obj0, &val1);
14083 if (!SWIG_IsOK(ecode1)) {
14084 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14085 }
14086 arg1 = static_cast< wxFontEncoding >(val1);
14087 {
14088 PyThreadState* __tstate = wxPyBeginAllowThreads();
14089 result = wxFontMapper::GetEncodingDescription(arg1);
14090 wxPyEndAllowThreads(__tstate);
14091 if (PyErr_Occurred()) SWIG_fail;
14092 }
14093 {
14094 #if wxUSE_UNICODE
14095 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14096 #else
14097 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14098 #endif
14099 }
14100 return resultobj;
14101 fail:
14102 return NULL;
14103 }
14104
14105
14106 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14107 PyObject *resultobj = 0;
14108 wxString *arg1 = 0 ;
14109 wxFontEncoding result;
14110 bool temp1 = false ;
14111 PyObject * obj0 = 0 ;
14112 char * kwnames[] = {
14113 (char *) "name", NULL
14114 };
14115
14116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
14117 {
14118 arg1 = wxString_in_helper(obj0);
14119 if (arg1 == NULL) SWIG_fail;
14120 temp1 = true;
14121 }
14122 {
14123 PyThreadState* __tstate = wxPyBeginAllowThreads();
14124 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
14125 wxPyEndAllowThreads(__tstate);
14126 if (PyErr_Occurred()) SWIG_fail;
14127 }
14128 resultobj = SWIG_From_int(static_cast< int >(result));
14129 {
14130 if (temp1)
14131 delete arg1;
14132 }
14133 return resultobj;
14134 fail:
14135 {
14136 if (temp1)
14137 delete arg1;
14138 }
14139 return NULL;
14140 }
14141
14142
14143 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14144 PyObject *resultobj = 0;
14145 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14146 wxString *arg2 = 0 ;
14147 void *argp1 = 0 ;
14148 int res1 = 0 ;
14149 bool temp2 = false ;
14150 PyObject * obj0 = 0 ;
14151 PyObject * obj1 = 0 ;
14152 char * kwnames[] = {
14153 (char *) "self",(char *) "prefix", NULL
14154 };
14155
14156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
14157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14158 if (!SWIG_IsOK(res1)) {
14159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14160 }
14161 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14162 {
14163 arg2 = wxString_in_helper(obj1);
14164 if (arg2 == NULL) SWIG_fail;
14165 temp2 = true;
14166 }
14167 {
14168 PyThreadState* __tstate = wxPyBeginAllowThreads();
14169 (arg1)->SetConfigPath((wxString const &)*arg2);
14170 wxPyEndAllowThreads(__tstate);
14171 if (PyErr_Occurred()) SWIG_fail;
14172 }
14173 resultobj = SWIG_Py_Void();
14174 {
14175 if (temp2)
14176 delete arg2;
14177 }
14178 return resultobj;
14179 fail:
14180 {
14181 if (temp2)
14182 delete arg2;
14183 }
14184 return NULL;
14185 }
14186
14187
14188 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14189 PyObject *resultobj = 0;
14190 wxString result;
14191
14192 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
14193 {
14194 PyThreadState* __tstate = wxPyBeginAllowThreads();
14195 result = wxFontMapper::GetDefaultConfigPath();
14196 wxPyEndAllowThreads(__tstate);
14197 if (PyErr_Occurred()) SWIG_fail;
14198 }
14199 {
14200 #if wxUSE_UNICODE
14201 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14202 #else
14203 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14204 #endif
14205 }
14206 return resultobj;
14207 fail:
14208 return NULL;
14209 }
14210
14211
14212 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14213 PyObject *resultobj = 0;
14214 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14215 wxFontEncoding arg2 ;
14216 wxString const &arg3_defvalue = wxPyEmptyString ;
14217 wxString *arg3 = (wxString *) &arg3_defvalue ;
14218 bool arg4 = (bool) true ;
14219 PyObject *result = 0 ;
14220 void *argp1 = 0 ;
14221 int res1 = 0 ;
14222 int val2 ;
14223 int ecode2 = 0 ;
14224 bool temp3 = false ;
14225 bool val4 ;
14226 int ecode4 = 0 ;
14227 PyObject * obj0 = 0 ;
14228 PyObject * obj1 = 0 ;
14229 PyObject * obj2 = 0 ;
14230 PyObject * obj3 = 0 ;
14231 char * kwnames[] = {
14232 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
14233 };
14234
14235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14237 if (!SWIG_IsOK(res1)) {
14238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14239 }
14240 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14241 ecode2 = SWIG_AsVal_int(obj1, &val2);
14242 if (!SWIG_IsOK(ecode2)) {
14243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14244 }
14245 arg2 = static_cast< wxFontEncoding >(val2);
14246 if (obj2) {
14247 {
14248 arg3 = wxString_in_helper(obj2);
14249 if (arg3 == NULL) SWIG_fail;
14250 temp3 = true;
14251 }
14252 }
14253 if (obj3) {
14254 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14255 if (!SWIG_IsOK(ecode4)) {
14256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
14257 }
14258 arg4 = static_cast< bool >(val4);
14259 }
14260 {
14261 PyThreadState* __tstate = wxPyBeginAllowThreads();
14262 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
14263 wxPyEndAllowThreads(__tstate);
14264 if (PyErr_Occurred()) SWIG_fail;
14265 }
14266 resultobj = result;
14267 {
14268 if (temp3)
14269 delete arg3;
14270 }
14271 return resultobj;
14272 fail:
14273 {
14274 if (temp3)
14275 delete arg3;
14276 }
14277 return NULL;
14278 }
14279
14280
14281 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14282 PyObject *resultobj = 0;
14283 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14284 wxFontEncoding arg2 ;
14285 wxString const &arg3_defvalue = wxPyEmptyString ;
14286 wxString *arg3 = (wxString *) &arg3_defvalue ;
14287 bool result;
14288 void *argp1 = 0 ;
14289 int res1 = 0 ;
14290 int val2 ;
14291 int ecode2 = 0 ;
14292 bool temp3 = false ;
14293 PyObject * obj0 = 0 ;
14294 PyObject * obj1 = 0 ;
14295 PyObject * obj2 = 0 ;
14296 char * kwnames[] = {
14297 (char *) "self",(char *) "encoding",(char *) "facename", NULL
14298 };
14299
14300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14302 if (!SWIG_IsOK(res1)) {
14303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14304 }
14305 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14306 ecode2 = SWIG_AsVal_int(obj1, &val2);
14307 if (!SWIG_IsOK(ecode2)) {
14308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14309 }
14310 arg2 = static_cast< wxFontEncoding >(val2);
14311 if (obj2) {
14312 {
14313 arg3 = wxString_in_helper(obj2);
14314 if (arg3 == NULL) SWIG_fail;
14315 temp3 = true;
14316 }
14317 }
14318 {
14319 PyThreadState* __tstate = wxPyBeginAllowThreads();
14320 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
14321 wxPyEndAllowThreads(__tstate);
14322 if (PyErr_Occurred()) SWIG_fail;
14323 }
14324 {
14325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14326 }
14327 {
14328 if (temp3)
14329 delete arg3;
14330 }
14331 return resultobj;
14332 fail:
14333 {
14334 if (temp3)
14335 delete arg3;
14336 }
14337 return NULL;
14338 }
14339
14340
14341 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14342 PyObject *resultobj = 0;
14343 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14344 wxWindow *arg2 = (wxWindow *) 0 ;
14345 void *argp1 = 0 ;
14346 int res1 = 0 ;
14347 void *argp2 = 0 ;
14348 int res2 = 0 ;
14349 PyObject * obj0 = 0 ;
14350 PyObject * obj1 = 0 ;
14351 char * kwnames[] = {
14352 (char *) "self",(char *) "parent", NULL
14353 };
14354
14355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14357 if (!SWIG_IsOK(res1)) {
14358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14359 }
14360 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14361 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14362 if (!SWIG_IsOK(res2)) {
14363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14364 }
14365 arg2 = reinterpret_cast< wxWindow * >(argp2);
14366 {
14367 PyThreadState* __tstate = wxPyBeginAllowThreads();
14368 (arg1)->SetDialogParent(arg2);
14369 wxPyEndAllowThreads(__tstate);
14370 if (PyErr_Occurred()) SWIG_fail;
14371 }
14372 resultobj = SWIG_Py_Void();
14373 return resultobj;
14374 fail:
14375 return NULL;
14376 }
14377
14378
14379 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14380 PyObject *resultobj = 0;
14381 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14382 wxString *arg2 = 0 ;
14383 void *argp1 = 0 ;
14384 int res1 = 0 ;
14385 bool temp2 = false ;
14386 PyObject * obj0 = 0 ;
14387 PyObject * obj1 = 0 ;
14388 char * kwnames[] = {
14389 (char *) "self",(char *) "title", NULL
14390 };
14391
14392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14394 if (!SWIG_IsOK(res1)) {
14395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14396 }
14397 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14398 {
14399 arg2 = wxString_in_helper(obj1);
14400 if (arg2 == NULL) SWIG_fail;
14401 temp2 = true;
14402 }
14403 {
14404 PyThreadState* __tstate = wxPyBeginAllowThreads();
14405 (arg1)->SetDialogTitle((wxString const &)*arg2);
14406 wxPyEndAllowThreads(__tstate);
14407 if (PyErr_Occurred()) SWIG_fail;
14408 }
14409 resultobj = SWIG_Py_Void();
14410 {
14411 if (temp2)
14412 delete arg2;
14413 }
14414 return resultobj;
14415 fail:
14416 {
14417 if (temp2)
14418 delete arg2;
14419 }
14420 return NULL;
14421 }
14422
14423
14424 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14425 PyObject *obj;
14426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14427 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14428 return SWIG_Py_Void();
14429 }
14430
14431 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14432 return SWIG_Python_InitShadowInstance(args);
14433 }
14434
14435 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14436 PyObject *resultobj = 0;
14437 int arg1 ;
14438 int arg2 ;
14439 int arg3 ;
14440 int arg4 ;
14441 bool arg5 = (bool) false ;
14442 wxString const &arg6_defvalue = wxPyEmptyString ;
14443 wxString *arg6 = (wxString *) &arg6_defvalue ;
14444 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14445 wxFont *result = 0 ;
14446 int val1 ;
14447 int ecode1 = 0 ;
14448 int val2 ;
14449 int ecode2 = 0 ;
14450 int val3 ;
14451 int ecode3 = 0 ;
14452 int val4 ;
14453 int ecode4 = 0 ;
14454 bool val5 ;
14455 int ecode5 = 0 ;
14456 bool temp6 = false ;
14457 int val7 ;
14458 int ecode7 = 0 ;
14459 PyObject * obj0 = 0 ;
14460 PyObject * obj1 = 0 ;
14461 PyObject * obj2 = 0 ;
14462 PyObject * obj3 = 0 ;
14463 PyObject * obj4 = 0 ;
14464 PyObject * obj5 = 0 ;
14465 PyObject * obj6 = 0 ;
14466 char * kwnames[] = {
14467 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14468 };
14469
14470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14471 ecode1 = SWIG_AsVal_int(obj0, &val1);
14472 if (!SWIG_IsOK(ecode1)) {
14473 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14474 }
14475 arg1 = static_cast< int >(val1);
14476 ecode2 = SWIG_AsVal_int(obj1, &val2);
14477 if (!SWIG_IsOK(ecode2)) {
14478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14479 }
14480 arg2 = static_cast< int >(val2);
14481 ecode3 = SWIG_AsVal_int(obj2, &val3);
14482 if (!SWIG_IsOK(ecode3)) {
14483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14484 }
14485 arg3 = static_cast< int >(val3);
14486 ecode4 = SWIG_AsVal_int(obj3, &val4);
14487 if (!SWIG_IsOK(ecode4)) {
14488 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14489 }
14490 arg4 = static_cast< int >(val4);
14491 if (obj4) {
14492 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14493 if (!SWIG_IsOK(ecode5)) {
14494 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14495 }
14496 arg5 = static_cast< bool >(val5);
14497 }
14498 if (obj5) {
14499 {
14500 arg6 = wxString_in_helper(obj5);
14501 if (arg6 == NULL) SWIG_fail;
14502 temp6 = true;
14503 }
14504 }
14505 if (obj6) {
14506 ecode7 = SWIG_AsVal_int(obj6, &val7);
14507 if (!SWIG_IsOK(ecode7)) {
14508 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14509 }
14510 arg7 = static_cast< wxFontEncoding >(val7);
14511 }
14512 {
14513 if (!wxPyCheckForApp()) SWIG_fail;
14514 PyThreadState* __tstate = wxPyBeginAllowThreads();
14515 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14516 wxPyEndAllowThreads(__tstate);
14517 if (PyErr_Occurred()) SWIG_fail;
14518 }
14519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14520 {
14521 if (temp6)
14522 delete arg6;
14523 }
14524 return resultobj;
14525 fail:
14526 {
14527 if (temp6)
14528 delete arg6;
14529 }
14530 return NULL;
14531 }
14532
14533
14534 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14535 PyObject *resultobj = 0;
14536 wxFont *arg1 = (wxFont *) 0 ;
14537 void *argp1 = 0 ;
14538 int res1 = 0 ;
14539 PyObject *swig_obj[1] ;
14540
14541 if (!args) SWIG_fail;
14542 swig_obj[0] = args;
14543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14544 if (!SWIG_IsOK(res1)) {
14545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14546 }
14547 arg1 = reinterpret_cast< wxFont * >(argp1);
14548 {
14549 PyThreadState* __tstate = wxPyBeginAllowThreads();
14550 delete arg1;
14551
14552 wxPyEndAllowThreads(__tstate);
14553 if (PyErr_Occurred()) SWIG_fail;
14554 }
14555 resultobj = SWIG_Py_Void();
14556 return resultobj;
14557 fail:
14558 return NULL;
14559 }
14560
14561
14562 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14563 PyObject *resultobj = 0;
14564 wxNativeFontInfo *arg1 = 0 ;
14565 wxFont *result = 0 ;
14566 void *argp1 = 0 ;
14567 int res1 = 0 ;
14568 PyObject * obj0 = 0 ;
14569 char * kwnames[] = {
14570 (char *) "info", NULL
14571 };
14572
14573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14574 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14575 if (!SWIG_IsOK(res1)) {
14576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14577 }
14578 if (!argp1) {
14579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14580 }
14581 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14582 {
14583 if (!wxPyCheckForApp()) SWIG_fail;
14584 PyThreadState* __tstate = wxPyBeginAllowThreads();
14585 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14586 wxPyEndAllowThreads(__tstate);
14587 if (PyErr_Occurred()) SWIG_fail;
14588 }
14589 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14590 return resultobj;
14591 fail:
14592 return NULL;
14593 }
14594
14595
14596 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14597 PyObject *resultobj = 0;
14598 wxString *arg1 = 0 ;
14599 wxFont *result = 0 ;
14600 bool temp1 = false ;
14601 PyObject * obj0 = 0 ;
14602 char * kwnames[] = {
14603 (char *) "info", NULL
14604 };
14605
14606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14607 {
14608 arg1 = wxString_in_helper(obj0);
14609 if (arg1 == NULL) SWIG_fail;
14610 temp1 = true;
14611 }
14612 {
14613 if (!wxPyCheckForApp()) SWIG_fail;
14614 PyThreadState* __tstate = wxPyBeginAllowThreads();
14615 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14616 wxPyEndAllowThreads(__tstate);
14617 if (PyErr_Occurred()) SWIG_fail;
14618 }
14619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14620 {
14621 if (temp1)
14622 delete arg1;
14623 }
14624 return resultobj;
14625 fail:
14626 {
14627 if (temp1)
14628 delete arg1;
14629 }
14630 return NULL;
14631 }
14632
14633
14634 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14635 PyObject *resultobj = 0;
14636 int arg1 ;
14637 wxFontFamily arg2 ;
14638 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14639 wxString const &arg4_defvalue = wxPyEmptyString ;
14640 wxString *arg4 = (wxString *) &arg4_defvalue ;
14641 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14642 wxFont *result = 0 ;
14643 int val1 ;
14644 int ecode1 = 0 ;
14645 int val2 ;
14646 int ecode2 = 0 ;
14647 int val3 ;
14648 int ecode3 = 0 ;
14649 bool temp4 = false ;
14650 int val5 ;
14651 int ecode5 = 0 ;
14652 PyObject * obj0 = 0 ;
14653 PyObject * obj1 = 0 ;
14654 PyObject * obj2 = 0 ;
14655 PyObject * obj3 = 0 ;
14656 PyObject * obj4 = 0 ;
14657 char * kwnames[] = {
14658 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14659 };
14660
14661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14662 ecode1 = SWIG_AsVal_int(obj0, &val1);
14663 if (!SWIG_IsOK(ecode1)) {
14664 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14665 }
14666 arg1 = static_cast< int >(val1);
14667 ecode2 = SWIG_AsVal_int(obj1, &val2);
14668 if (!SWIG_IsOK(ecode2)) {
14669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14670 }
14671 arg2 = static_cast< wxFontFamily >(val2);
14672 if (obj2) {
14673 ecode3 = SWIG_AsVal_int(obj2, &val3);
14674 if (!SWIG_IsOK(ecode3)) {
14675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14676 }
14677 arg3 = static_cast< int >(val3);
14678 }
14679 if (obj3) {
14680 {
14681 arg4 = wxString_in_helper(obj3);
14682 if (arg4 == NULL) SWIG_fail;
14683 temp4 = true;
14684 }
14685 }
14686 if (obj4) {
14687 ecode5 = SWIG_AsVal_int(obj4, &val5);
14688 if (!SWIG_IsOK(ecode5)) {
14689 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14690 }
14691 arg5 = static_cast< wxFontEncoding >(val5);
14692 }
14693 {
14694 if (!wxPyCheckForApp()) SWIG_fail;
14695 PyThreadState* __tstate = wxPyBeginAllowThreads();
14696 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14697 wxPyEndAllowThreads(__tstate);
14698 if (PyErr_Occurred()) SWIG_fail;
14699 }
14700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14701 {
14702 if (temp4)
14703 delete arg4;
14704 }
14705 return resultobj;
14706 fail:
14707 {
14708 if (temp4)
14709 delete arg4;
14710 }
14711 return NULL;
14712 }
14713
14714
14715 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14716 PyObject *resultobj = 0;
14717 wxSize *arg1 = 0 ;
14718 int arg2 ;
14719 int arg3 ;
14720 int arg4 ;
14721 bool arg5 = (bool) false ;
14722 wxString const &arg6_defvalue = wxEmptyString ;
14723 wxString *arg6 = (wxString *) &arg6_defvalue ;
14724 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14725 wxFont *result = 0 ;
14726 wxSize temp1 ;
14727 int val2 ;
14728 int ecode2 = 0 ;
14729 int val3 ;
14730 int ecode3 = 0 ;
14731 int val4 ;
14732 int ecode4 = 0 ;
14733 bool val5 ;
14734 int ecode5 = 0 ;
14735 bool temp6 = false ;
14736 int val7 ;
14737 int ecode7 = 0 ;
14738 PyObject * obj0 = 0 ;
14739 PyObject * obj1 = 0 ;
14740 PyObject * obj2 = 0 ;
14741 PyObject * obj3 = 0 ;
14742 PyObject * obj4 = 0 ;
14743 PyObject * obj5 = 0 ;
14744 PyObject * obj6 = 0 ;
14745 char * kwnames[] = {
14746 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14747 };
14748
14749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14750 {
14751 arg1 = &temp1;
14752 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14753 }
14754 ecode2 = SWIG_AsVal_int(obj1, &val2);
14755 if (!SWIG_IsOK(ecode2)) {
14756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14757 }
14758 arg2 = static_cast< int >(val2);
14759 ecode3 = SWIG_AsVal_int(obj2, &val3);
14760 if (!SWIG_IsOK(ecode3)) {
14761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14762 }
14763 arg3 = static_cast< int >(val3);
14764 ecode4 = SWIG_AsVal_int(obj3, &val4);
14765 if (!SWIG_IsOK(ecode4)) {
14766 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14767 }
14768 arg4 = static_cast< int >(val4);
14769 if (obj4) {
14770 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14771 if (!SWIG_IsOK(ecode5)) {
14772 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14773 }
14774 arg5 = static_cast< bool >(val5);
14775 }
14776 if (obj5) {
14777 {
14778 arg6 = wxString_in_helper(obj5);
14779 if (arg6 == NULL) SWIG_fail;
14780 temp6 = true;
14781 }
14782 }
14783 if (obj6) {
14784 ecode7 = SWIG_AsVal_int(obj6, &val7);
14785 if (!SWIG_IsOK(ecode7)) {
14786 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14787 }
14788 arg7 = static_cast< wxFontEncoding >(val7);
14789 }
14790 {
14791 if (!wxPyCheckForApp()) SWIG_fail;
14792 PyThreadState* __tstate = wxPyBeginAllowThreads();
14793 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14794 wxPyEndAllowThreads(__tstate);
14795 if (PyErr_Occurred()) SWIG_fail;
14796 }
14797 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14798 {
14799 if (temp6)
14800 delete arg6;
14801 }
14802 return resultobj;
14803 fail:
14804 {
14805 if (temp6)
14806 delete arg6;
14807 }
14808 return NULL;
14809 }
14810
14811
14812 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14813 PyObject *resultobj = 0;
14814 wxSize *arg1 = 0 ;
14815 wxFontFamily arg2 ;
14816 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14817 wxString const &arg4_defvalue = wxEmptyString ;
14818 wxString *arg4 = (wxString *) &arg4_defvalue ;
14819 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14820 wxFont *result = 0 ;
14821 wxSize temp1 ;
14822 int val2 ;
14823 int ecode2 = 0 ;
14824 int val3 ;
14825 int ecode3 = 0 ;
14826 bool temp4 = false ;
14827 int val5 ;
14828 int ecode5 = 0 ;
14829 PyObject * obj0 = 0 ;
14830 PyObject * obj1 = 0 ;
14831 PyObject * obj2 = 0 ;
14832 PyObject * obj3 = 0 ;
14833 PyObject * obj4 = 0 ;
14834 char * kwnames[] = {
14835 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14836 };
14837
14838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14839 {
14840 arg1 = &temp1;
14841 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14842 }
14843 ecode2 = SWIG_AsVal_int(obj1, &val2);
14844 if (!SWIG_IsOK(ecode2)) {
14845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14846 }
14847 arg2 = static_cast< wxFontFamily >(val2);
14848 if (obj2) {
14849 ecode3 = SWIG_AsVal_int(obj2, &val3);
14850 if (!SWIG_IsOK(ecode3)) {
14851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14852 }
14853 arg3 = static_cast< int >(val3);
14854 }
14855 if (obj3) {
14856 {
14857 arg4 = wxString_in_helper(obj3);
14858 if (arg4 == NULL) SWIG_fail;
14859 temp4 = true;
14860 }
14861 }
14862 if (obj4) {
14863 ecode5 = SWIG_AsVal_int(obj4, &val5);
14864 if (!SWIG_IsOK(ecode5)) {
14865 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14866 }
14867 arg5 = static_cast< wxFontEncoding >(val5);
14868 }
14869 {
14870 if (!wxPyCheckForApp()) SWIG_fail;
14871 PyThreadState* __tstate = wxPyBeginAllowThreads();
14872 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14873 wxPyEndAllowThreads(__tstate);
14874 if (PyErr_Occurred()) SWIG_fail;
14875 }
14876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14877 {
14878 if (temp4)
14879 delete arg4;
14880 }
14881 return resultobj;
14882 fail:
14883 {
14884 if (temp4)
14885 delete arg4;
14886 }
14887 return NULL;
14888 }
14889
14890
14891 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14892 PyObject *resultobj = 0;
14893 wxFont *arg1 = (wxFont *) 0 ;
14894 bool result;
14895 void *argp1 = 0 ;
14896 int res1 = 0 ;
14897 PyObject *swig_obj[1] ;
14898
14899 if (!args) SWIG_fail;
14900 swig_obj[0] = args;
14901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14902 if (!SWIG_IsOK(res1)) {
14903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14904 }
14905 arg1 = reinterpret_cast< wxFont * >(argp1);
14906 {
14907 PyThreadState* __tstate = wxPyBeginAllowThreads();
14908 result = (bool)((wxFont const *)arg1)->IsOk();
14909 wxPyEndAllowThreads(__tstate);
14910 if (PyErr_Occurred()) SWIG_fail;
14911 }
14912 {
14913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14914 }
14915 return resultobj;
14916 fail:
14917 return NULL;
14918 }
14919
14920
14921 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14922 PyObject *resultobj = 0;
14923 wxFont *arg1 = (wxFont *) 0 ;
14924 wxFont *arg2 = (wxFont *) 0 ;
14925 bool result;
14926 void *argp1 = 0 ;
14927 int res1 = 0 ;
14928 void *argp2 = 0 ;
14929 int res2 = 0 ;
14930 PyObject * obj0 = 0 ;
14931 PyObject * obj1 = 0 ;
14932 char * kwnames[] = {
14933 (char *) "self",(char *) "other", NULL
14934 };
14935
14936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",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___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14940 }
14941 arg1 = reinterpret_cast< wxFont * >(argp1);
14942 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14943 if (!SWIG_IsOK(res2)) {
14944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14945 }
14946 arg2 = reinterpret_cast< wxFont * >(argp2);
14947 {
14948 PyThreadState* __tstate = wxPyBeginAllowThreads();
14949 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14950 wxPyEndAllowThreads(__tstate);
14951 if (PyErr_Occurred()) SWIG_fail;
14952 }
14953 {
14954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14955 }
14956 return resultobj;
14957 fail:
14958 return NULL;
14959 }
14960
14961
14962 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14963 PyObject *resultobj = 0;
14964 wxFont *arg1 = (wxFont *) 0 ;
14965 wxFont *arg2 = (wxFont *) 0 ;
14966 bool result;
14967 void *argp1 = 0 ;
14968 int res1 = 0 ;
14969 void *argp2 = 0 ;
14970 int res2 = 0 ;
14971 PyObject * obj0 = 0 ;
14972 PyObject * obj1 = 0 ;
14973 char * kwnames[] = {
14974 (char *) "self",(char *) "other", NULL
14975 };
14976
14977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14979 if (!SWIG_IsOK(res1)) {
14980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14981 }
14982 arg1 = reinterpret_cast< wxFont * >(argp1);
14983 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14984 if (!SWIG_IsOK(res2)) {
14985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14986 }
14987 arg2 = reinterpret_cast< wxFont * >(argp2);
14988 {
14989 PyThreadState* __tstate = wxPyBeginAllowThreads();
14990 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14991 wxPyEndAllowThreads(__tstate);
14992 if (PyErr_Occurred()) SWIG_fail;
14993 }
14994 {
14995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14996 }
14997 return resultobj;
14998 fail:
14999 return NULL;
15000 }
15001
15002
15003 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15004 PyObject *resultobj = 0;
15005 wxFont *arg1 = (wxFont *) 0 ;
15006 int result;
15007 void *argp1 = 0 ;
15008 int res1 = 0 ;
15009 PyObject *swig_obj[1] ;
15010
15011 if (!args) SWIG_fail;
15012 swig_obj[0] = args;
15013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15014 if (!SWIG_IsOK(res1)) {
15015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15016 }
15017 arg1 = reinterpret_cast< wxFont * >(argp1);
15018 {
15019 PyThreadState* __tstate = wxPyBeginAllowThreads();
15020 result = (int)((wxFont const *)arg1)->GetPointSize();
15021 wxPyEndAllowThreads(__tstate);
15022 if (PyErr_Occurred()) SWIG_fail;
15023 }
15024 resultobj = SWIG_From_int(static_cast< int >(result));
15025 return resultobj;
15026 fail:
15027 return NULL;
15028 }
15029
15030
15031 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15032 PyObject *resultobj = 0;
15033 wxFont *arg1 = (wxFont *) 0 ;
15034 wxSize result;
15035 void *argp1 = 0 ;
15036 int res1 = 0 ;
15037 PyObject *swig_obj[1] ;
15038
15039 if (!args) SWIG_fail;
15040 swig_obj[0] = args;
15041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15042 if (!SWIG_IsOK(res1)) {
15043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15044 }
15045 arg1 = reinterpret_cast< wxFont * >(argp1);
15046 {
15047 PyThreadState* __tstate = wxPyBeginAllowThreads();
15048 result = ((wxFont const *)arg1)->GetPixelSize();
15049 wxPyEndAllowThreads(__tstate);
15050 if (PyErr_Occurred()) SWIG_fail;
15051 }
15052 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
15053 return resultobj;
15054 fail:
15055 return NULL;
15056 }
15057
15058
15059 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15060 PyObject *resultobj = 0;
15061 wxFont *arg1 = (wxFont *) 0 ;
15062 bool result;
15063 void *argp1 = 0 ;
15064 int res1 = 0 ;
15065 PyObject *swig_obj[1] ;
15066
15067 if (!args) SWIG_fail;
15068 swig_obj[0] = args;
15069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15070 if (!SWIG_IsOK(res1)) {
15071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
15072 }
15073 arg1 = reinterpret_cast< wxFont * >(argp1);
15074 {
15075 PyThreadState* __tstate = wxPyBeginAllowThreads();
15076 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
15077 wxPyEndAllowThreads(__tstate);
15078 if (PyErr_Occurred()) SWIG_fail;
15079 }
15080 {
15081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15082 }
15083 return resultobj;
15084 fail:
15085 return NULL;
15086 }
15087
15088
15089 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15090 PyObject *resultobj = 0;
15091 wxFont *arg1 = (wxFont *) 0 ;
15092 int result;
15093 void *argp1 = 0 ;
15094 int res1 = 0 ;
15095 PyObject *swig_obj[1] ;
15096
15097 if (!args) SWIG_fail;
15098 swig_obj[0] = args;
15099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15100 if (!SWIG_IsOK(res1)) {
15101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
15102 }
15103 arg1 = reinterpret_cast< wxFont * >(argp1);
15104 {
15105 PyThreadState* __tstate = wxPyBeginAllowThreads();
15106 result = (int)((wxFont const *)arg1)->GetFamily();
15107 wxPyEndAllowThreads(__tstate);
15108 if (PyErr_Occurred()) SWIG_fail;
15109 }
15110 resultobj = SWIG_From_int(static_cast< int >(result));
15111 return resultobj;
15112 fail:
15113 return NULL;
15114 }
15115
15116
15117 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15118 PyObject *resultobj = 0;
15119 wxFont *arg1 = (wxFont *) 0 ;
15120 int result;
15121 void *argp1 = 0 ;
15122 int res1 = 0 ;
15123 PyObject *swig_obj[1] ;
15124
15125 if (!args) SWIG_fail;
15126 swig_obj[0] = args;
15127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15128 if (!SWIG_IsOK(res1)) {
15129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
15130 }
15131 arg1 = reinterpret_cast< wxFont * >(argp1);
15132 {
15133 PyThreadState* __tstate = wxPyBeginAllowThreads();
15134 result = (int)((wxFont const *)arg1)->GetStyle();
15135 wxPyEndAllowThreads(__tstate);
15136 if (PyErr_Occurred()) SWIG_fail;
15137 }
15138 resultobj = SWIG_From_int(static_cast< int >(result));
15139 return resultobj;
15140 fail:
15141 return NULL;
15142 }
15143
15144
15145 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15146 PyObject *resultobj = 0;
15147 wxFont *arg1 = (wxFont *) 0 ;
15148 int result;
15149 void *argp1 = 0 ;
15150 int res1 = 0 ;
15151 PyObject *swig_obj[1] ;
15152
15153 if (!args) SWIG_fail;
15154 swig_obj[0] = args;
15155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15156 if (!SWIG_IsOK(res1)) {
15157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
15158 }
15159 arg1 = reinterpret_cast< wxFont * >(argp1);
15160 {
15161 PyThreadState* __tstate = wxPyBeginAllowThreads();
15162 result = (int)((wxFont const *)arg1)->GetWeight();
15163 wxPyEndAllowThreads(__tstate);
15164 if (PyErr_Occurred()) SWIG_fail;
15165 }
15166 resultobj = SWIG_From_int(static_cast< int >(result));
15167 return resultobj;
15168 fail:
15169 return NULL;
15170 }
15171
15172
15173 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15174 PyObject *resultobj = 0;
15175 wxFont *arg1 = (wxFont *) 0 ;
15176 bool result;
15177 void *argp1 = 0 ;
15178 int res1 = 0 ;
15179 PyObject *swig_obj[1] ;
15180
15181 if (!args) SWIG_fail;
15182 swig_obj[0] = args;
15183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15184 if (!SWIG_IsOK(res1)) {
15185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
15186 }
15187 arg1 = reinterpret_cast< wxFont * >(argp1);
15188 {
15189 PyThreadState* __tstate = wxPyBeginAllowThreads();
15190 result = (bool)((wxFont const *)arg1)->GetUnderlined();
15191 wxPyEndAllowThreads(__tstate);
15192 if (PyErr_Occurred()) SWIG_fail;
15193 }
15194 {
15195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15196 }
15197 return resultobj;
15198 fail:
15199 return NULL;
15200 }
15201
15202
15203 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15204 PyObject *resultobj = 0;
15205 wxFont *arg1 = (wxFont *) 0 ;
15206 wxString result;
15207 void *argp1 = 0 ;
15208 int res1 = 0 ;
15209 PyObject *swig_obj[1] ;
15210
15211 if (!args) SWIG_fail;
15212 swig_obj[0] = args;
15213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15214 if (!SWIG_IsOK(res1)) {
15215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
15216 }
15217 arg1 = reinterpret_cast< wxFont * >(argp1);
15218 {
15219 PyThreadState* __tstate = wxPyBeginAllowThreads();
15220 result = ((wxFont const *)arg1)->GetFaceName();
15221 wxPyEndAllowThreads(__tstate);
15222 if (PyErr_Occurred()) SWIG_fail;
15223 }
15224 {
15225 #if wxUSE_UNICODE
15226 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15227 #else
15228 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15229 #endif
15230 }
15231 return resultobj;
15232 fail:
15233 return NULL;
15234 }
15235
15236
15237 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15238 PyObject *resultobj = 0;
15239 wxFont *arg1 = (wxFont *) 0 ;
15240 wxFontEncoding result;
15241 void *argp1 = 0 ;
15242 int res1 = 0 ;
15243 PyObject *swig_obj[1] ;
15244
15245 if (!args) SWIG_fail;
15246 swig_obj[0] = args;
15247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15248 if (!SWIG_IsOK(res1)) {
15249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
15250 }
15251 arg1 = reinterpret_cast< wxFont * >(argp1);
15252 {
15253 PyThreadState* __tstate = wxPyBeginAllowThreads();
15254 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
15255 wxPyEndAllowThreads(__tstate);
15256 if (PyErr_Occurred()) SWIG_fail;
15257 }
15258 resultobj = SWIG_From_int(static_cast< int >(result));
15259 return resultobj;
15260 fail:
15261 return NULL;
15262 }
15263
15264
15265 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15266 PyObject *resultobj = 0;
15267 wxFont *arg1 = (wxFont *) 0 ;
15268 wxNativeFontInfo *result = 0 ;
15269 void *argp1 = 0 ;
15270 int res1 = 0 ;
15271 PyObject *swig_obj[1] ;
15272
15273 if (!args) SWIG_fail;
15274 swig_obj[0] = args;
15275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15276 if (!SWIG_IsOK(res1)) {
15277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
15278 }
15279 arg1 = reinterpret_cast< wxFont * >(argp1);
15280 {
15281 PyThreadState* __tstate = wxPyBeginAllowThreads();
15282 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
15283 wxPyEndAllowThreads(__tstate);
15284 if (PyErr_Occurred()) SWIG_fail;
15285 }
15286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
15287 return resultobj;
15288 fail:
15289 return NULL;
15290 }
15291
15292
15293 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15294 PyObject *resultobj = 0;
15295 wxFont *arg1 = (wxFont *) 0 ;
15296 bool result;
15297 void *argp1 = 0 ;
15298 int res1 = 0 ;
15299 PyObject *swig_obj[1] ;
15300
15301 if (!args) SWIG_fail;
15302 swig_obj[0] = args;
15303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15304 if (!SWIG_IsOK(res1)) {
15305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
15306 }
15307 arg1 = reinterpret_cast< wxFont * >(argp1);
15308 {
15309 PyThreadState* __tstate = wxPyBeginAllowThreads();
15310 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
15311 wxPyEndAllowThreads(__tstate);
15312 if (PyErr_Occurred()) SWIG_fail;
15313 }
15314 {
15315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15316 }
15317 return resultobj;
15318 fail:
15319 return NULL;
15320 }
15321
15322
15323 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15324 PyObject *resultobj = 0;
15325 wxFont *arg1 = (wxFont *) 0 ;
15326 wxString result;
15327 void *argp1 = 0 ;
15328 int res1 = 0 ;
15329 PyObject *swig_obj[1] ;
15330
15331 if (!args) SWIG_fail;
15332 swig_obj[0] = args;
15333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15334 if (!SWIG_IsOK(res1)) {
15335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15336 }
15337 arg1 = reinterpret_cast< wxFont * >(argp1);
15338 {
15339 PyThreadState* __tstate = wxPyBeginAllowThreads();
15340 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
15341 wxPyEndAllowThreads(__tstate);
15342 if (PyErr_Occurred()) SWIG_fail;
15343 }
15344 {
15345 #if wxUSE_UNICODE
15346 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15347 #else
15348 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15349 #endif
15350 }
15351 return resultobj;
15352 fail:
15353 return NULL;
15354 }
15355
15356
15357 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15358 PyObject *resultobj = 0;
15359 wxFont *arg1 = (wxFont *) 0 ;
15360 wxString result;
15361 void *argp1 = 0 ;
15362 int res1 = 0 ;
15363 PyObject *swig_obj[1] ;
15364
15365 if (!args) SWIG_fail;
15366 swig_obj[0] = args;
15367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15368 if (!SWIG_IsOK(res1)) {
15369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15370 }
15371 arg1 = reinterpret_cast< wxFont * >(argp1);
15372 {
15373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15374 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15375 wxPyEndAllowThreads(__tstate);
15376 if (PyErr_Occurred()) SWIG_fail;
15377 }
15378 {
15379 #if wxUSE_UNICODE
15380 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15381 #else
15382 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15383 #endif
15384 }
15385 return resultobj;
15386 fail:
15387 return NULL;
15388 }
15389
15390
15391 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15392 PyObject *resultobj = 0;
15393 wxFont *arg1 = (wxFont *) 0 ;
15394 int arg2 ;
15395 void *argp1 = 0 ;
15396 int res1 = 0 ;
15397 int val2 ;
15398 int ecode2 = 0 ;
15399 PyObject * obj0 = 0 ;
15400 PyObject * obj1 = 0 ;
15401 char * kwnames[] = {
15402 (char *) "self",(char *) "pointSize", NULL
15403 };
15404
15405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15407 if (!SWIG_IsOK(res1)) {
15408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15409 }
15410 arg1 = reinterpret_cast< wxFont * >(argp1);
15411 ecode2 = SWIG_AsVal_int(obj1, &val2);
15412 if (!SWIG_IsOK(ecode2)) {
15413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15414 }
15415 arg2 = static_cast< int >(val2);
15416 {
15417 PyThreadState* __tstate = wxPyBeginAllowThreads();
15418 (arg1)->SetPointSize(arg2);
15419 wxPyEndAllowThreads(__tstate);
15420 if (PyErr_Occurred()) SWIG_fail;
15421 }
15422 resultobj = SWIG_Py_Void();
15423 return resultobj;
15424 fail:
15425 return NULL;
15426 }
15427
15428
15429 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15430 PyObject *resultobj = 0;
15431 wxFont *arg1 = (wxFont *) 0 ;
15432 wxSize *arg2 = 0 ;
15433 void *argp1 = 0 ;
15434 int res1 = 0 ;
15435 wxSize temp2 ;
15436 PyObject * obj0 = 0 ;
15437 PyObject * obj1 = 0 ;
15438 char * kwnames[] = {
15439 (char *) "self",(char *) "pixelSize", NULL
15440 };
15441
15442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15444 if (!SWIG_IsOK(res1)) {
15445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15446 }
15447 arg1 = reinterpret_cast< wxFont * >(argp1);
15448 {
15449 arg2 = &temp2;
15450 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15451 }
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 (arg1)->SetPixelSize((wxSize const &)*arg2);
15455 wxPyEndAllowThreads(__tstate);
15456 if (PyErr_Occurred()) SWIG_fail;
15457 }
15458 resultobj = SWIG_Py_Void();
15459 return resultobj;
15460 fail:
15461 return NULL;
15462 }
15463
15464
15465 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15466 PyObject *resultobj = 0;
15467 wxFont *arg1 = (wxFont *) 0 ;
15468 int arg2 ;
15469 void *argp1 = 0 ;
15470 int res1 = 0 ;
15471 int val2 ;
15472 int ecode2 = 0 ;
15473 PyObject * obj0 = 0 ;
15474 PyObject * obj1 = 0 ;
15475 char * kwnames[] = {
15476 (char *) "self",(char *) "family", NULL
15477 };
15478
15479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15481 if (!SWIG_IsOK(res1)) {
15482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15483 }
15484 arg1 = reinterpret_cast< wxFont * >(argp1);
15485 ecode2 = SWIG_AsVal_int(obj1, &val2);
15486 if (!SWIG_IsOK(ecode2)) {
15487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15488 }
15489 arg2 = static_cast< int >(val2);
15490 {
15491 PyThreadState* __tstate = wxPyBeginAllowThreads();
15492 (arg1)->SetFamily(arg2);
15493 wxPyEndAllowThreads(__tstate);
15494 if (PyErr_Occurred()) SWIG_fail;
15495 }
15496 resultobj = SWIG_Py_Void();
15497 return resultobj;
15498 fail:
15499 return NULL;
15500 }
15501
15502
15503 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15504 PyObject *resultobj = 0;
15505 wxFont *arg1 = (wxFont *) 0 ;
15506 int arg2 ;
15507 void *argp1 = 0 ;
15508 int res1 = 0 ;
15509 int val2 ;
15510 int ecode2 = 0 ;
15511 PyObject * obj0 = 0 ;
15512 PyObject * obj1 = 0 ;
15513 char * kwnames[] = {
15514 (char *) "self",(char *) "style", NULL
15515 };
15516
15517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15519 if (!SWIG_IsOK(res1)) {
15520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15521 }
15522 arg1 = reinterpret_cast< wxFont * >(argp1);
15523 ecode2 = SWIG_AsVal_int(obj1, &val2);
15524 if (!SWIG_IsOK(ecode2)) {
15525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15526 }
15527 arg2 = static_cast< int >(val2);
15528 {
15529 PyThreadState* __tstate = wxPyBeginAllowThreads();
15530 (arg1)->SetStyle(arg2);
15531 wxPyEndAllowThreads(__tstate);
15532 if (PyErr_Occurred()) SWIG_fail;
15533 }
15534 resultobj = SWIG_Py_Void();
15535 return resultobj;
15536 fail:
15537 return NULL;
15538 }
15539
15540
15541 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15542 PyObject *resultobj = 0;
15543 wxFont *arg1 = (wxFont *) 0 ;
15544 int arg2 ;
15545 void *argp1 = 0 ;
15546 int res1 = 0 ;
15547 int val2 ;
15548 int ecode2 = 0 ;
15549 PyObject * obj0 = 0 ;
15550 PyObject * obj1 = 0 ;
15551 char * kwnames[] = {
15552 (char *) "self",(char *) "weight", NULL
15553 };
15554
15555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15557 if (!SWIG_IsOK(res1)) {
15558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15559 }
15560 arg1 = reinterpret_cast< wxFont * >(argp1);
15561 ecode2 = SWIG_AsVal_int(obj1, &val2);
15562 if (!SWIG_IsOK(ecode2)) {
15563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15564 }
15565 arg2 = static_cast< int >(val2);
15566 {
15567 PyThreadState* __tstate = wxPyBeginAllowThreads();
15568 (arg1)->SetWeight(arg2);
15569 wxPyEndAllowThreads(__tstate);
15570 if (PyErr_Occurred()) SWIG_fail;
15571 }
15572 resultobj = SWIG_Py_Void();
15573 return resultobj;
15574 fail:
15575 return NULL;
15576 }
15577
15578
15579 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15580 PyObject *resultobj = 0;
15581 wxFont *arg1 = (wxFont *) 0 ;
15582 wxString *arg2 = 0 ;
15583 bool result;
15584 void *argp1 = 0 ;
15585 int res1 = 0 ;
15586 bool temp2 = false ;
15587 PyObject * obj0 = 0 ;
15588 PyObject * obj1 = 0 ;
15589 char * kwnames[] = {
15590 (char *) "self",(char *) "faceName", NULL
15591 };
15592
15593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15595 if (!SWIG_IsOK(res1)) {
15596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15597 }
15598 arg1 = reinterpret_cast< wxFont * >(argp1);
15599 {
15600 arg2 = wxString_in_helper(obj1);
15601 if (arg2 == NULL) SWIG_fail;
15602 temp2 = true;
15603 }
15604 {
15605 PyThreadState* __tstate = wxPyBeginAllowThreads();
15606 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15607 wxPyEndAllowThreads(__tstate);
15608 if (PyErr_Occurred()) SWIG_fail;
15609 }
15610 {
15611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15612 }
15613 {
15614 if (temp2)
15615 delete arg2;
15616 }
15617 return resultobj;
15618 fail:
15619 {
15620 if (temp2)
15621 delete arg2;
15622 }
15623 return NULL;
15624 }
15625
15626
15627 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15628 PyObject *resultobj = 0;
15629 wxFont *arg1 = (wxFont *) 0 ;
15630 bool arg2 ;
15631 void *argp1 = 0 ;
15632 int res1 = 0 ;
15633 bool val2 ;
15634 int ecode2 = 0 ;
15635 PyObject * obj0 = 0 ;
15636 PyObject * obj1 = 0 ;
15637 char * kwnames[] = {
15638 (char *) "self",(char *) "underlined", NULL
15639 };
15640
15641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15643 if (!SWIG_IsOK(res1)) {
15644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15645 }
15646 arg1 = reinterpret_cast< wxFont * >(argp1);
15647 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15648 if (!SWIG_IsOK(ecode2)) {
15649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15650 }
15651 arg2 = static_cast< bool >(val2);
15652 {
15653 PyThreadState* __tstate = wxPyBeginAllowThreads();
15654 (arg1)->SetUnderlined(arg2);
15655 wxPyEndAllowThreads(__tstate);
15656 if (PyErr_Occurred()) SWIG_fail;
15657 }
15658 resultobj = SWIG_Py_Void();
15659 return resultobj;
15660 fail:
15661 return NULL;
15662 }
15663
15664
15665 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15666 PyObject *resultobj = 0;
15667 wxFont *arg1 = (wxFont *) 0 ;
15668 wxFontEncoding arg2 ;
15669 void *argp1 = 0 ;
15670 int res1 = 0 ;
15671 int val2 ;
15672 int ecode2 = 0 ;
15673 PyObject * obj0 = 0 ;
15674 PyObject * obj1 = 0 ;
15675 char * kwnames[] = {
15676 (char *) "self",(char *) "encoding", NULL
15677 };
15678
15679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15681 if (!SWIG_IsOK(res1)) {
15682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15683 }
15684 arg1 = reinterpret_cast< wxFont * >(argp1);
15685 ecode2 = SWIG_AsVal_int(obj1, &val2);
15686 if (!SWIG_IsOK(ecode2)) {
15687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15688 }
15689 arg2 = static_cast< wxFontEncoding >(val2);
15690 {
15691 PyThreadState* __tstate = wxPyBeginAllowThreads();
15692 (arg1)->SetEncoding(arg2);
15693 wxPyEndAllowThreads(__tstate);
15694 if (PyErr_Occurred()) SWIG_fail;
15695 }
15696 resultobj = SWIG_Py_Void();
15697 return resultobj;
15698 fail:
15699 return NULL;
15700 }
15701
15702
15703 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15704 PyObject *resultobj = 0;
15705 wxFont *arg1 = (wxFont *) 0 ;
15706 wxNativeFontInfo *arg2 = 0 ;
15707 void *argp1 = 0 ;
15708 int res1 = 0 ;
15709 void *argp2 = 0 ;
15710 int res2 = 0 ;
15711 PyObject * obj0 = 0 ;
15712 PyObject * obj1 = 0 ;
15713 char * kwnames[] = {
15714 (char *) "self",(char *) "info", NULL
15715 };
15716
15717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15719 if (!SWIG_IsOK(res1)) {
15720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15721 }
15722 arg1 = reinterpret_cast< wxFont * >(argp1);
15723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15724 if (!SWIG_IsOK(res2)) {
15725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15726 }
15727 if (!argp2) {
15728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15729 }
15730 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15731 {
15732 PyThreadState* __tstate = wxPyBeginAllowThreads();
15733 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15734 wxPyEndAllowThreads(__tstate);
15735 if (PyErr_Occurred()) SWIG_fail;
15736 }
15737 resultobj = SWIG_Py_Void();
15738 return resultobj;
15739 fail:
15740 return NULL;
15741 }
15742
15743
15744 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15745 PyObject *resultobj = 0;
15746 wxFont *arg1 = (wxFont *) 0 ;
15747 wxString *arg2 = 0 ;
15748 bool result;
15749 void *argp1 = 0 ;
15750 int res1 = 0 ;
15751 bool temp2 = false ;
15752 PyObject * obj0 = 0 ;
15753 PyObject * obj1 = 0 ;
15754 char * kwnames[] = {
15755 (char *) "self",(char *) "info", NULL
15756 };
15757
15758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15760 if (!SWIG_IsOK(res1)) {
15761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15762 }
15763 arg1 = reinterpret_cast< wxFont * >(argp1);
15764 {
15765 arg2 = wxString_in_helper(obj1);
15766 if (arg2 == NULL) SWIG_fail;
15767 temp2 = true;
15768 }
15769 {
15770 PyThreadState* __tstate = wxPyBeginAllowThreads();
15771 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15772 wxPyEndAllowThreads(__tstate);
15773 if (PyErr_Occurred()) SWIG_fail;
15774 }
15775 {
15776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15777 }
15778 {
15779 if (temp2)
15780 delete arg2;
15781 }
15782 return resultobj;
15783 fail:
15784 {
15785 if (temp2)
15786 delete arg2;
15787 }
15788 return NULL;
15789 }
15790
15791
15792 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15793 PyObject *resultobj = 0;
15794 wxFont *arg1 = (wxFont *) 0 ;
15795 wxString *arg2 = 0 ;
15796 bool result;
15797 void *argp1 = 0 ;
15798 int res1 = 0 ;
15799 bool temp2 = false ;
15800 PyObject * obj0 = 0 ;
15801 PyObject * obj1 = 0 ;
15802 char * kwnames[] = {
15803 (char *) "self",(char *) "info", NULL
15804 };
15805
15806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15808 if (!SWIG_IsOK(res1)) {
15809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15810 }
15811 arg1 = reinterpret_cast< wxFont * >(argp1);
15812 {
15813 arg2 = wxString_in_helper(obj1);
15814 if (arg2 == NULL) SWIG_fail;
15815 temp2 = true;
15816 }
15817 {
15818 PyThreadState* __tstate = wxPyBeginAllowThreads();
15819 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15820 wxPyEndAllowThreads(__tstate);
15821 if (PyErr_Occurred()) SWIG_fail;
15822 }
15823 {
15824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15825 }
15826 {
15827 if (temp2)
15828 delete arg2;
15829 }
15830 return resultobj;
15831 fail:
15832 {
15833 if (temp2)
15834 delete arg2;
15835 }
15836 return NULL;
15837 }
15838
15839
15840 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15841 PyObject *resultobj = 0;
15842 wxFont *arg1 = (wxFont *) 0 ;
15843 wxString result;
15844 void *argp1 = 0 ;
15845 int res1 = 0 ;
15846 PyObject *swig_obj[1] ;
15847
15848 if (!args) SWIG_fail;
15849 swig_obj[0] = args;
15850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15851 if (!SWIG_IsOK(res1)) {
15852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15853 }
15854 arg1 = reinterpret_cast< wxFont * >(argp1);
15855 {
15856 PyThreadState* __tstate = wxPyBeginAllowThreads();
15857 result = ((wxFont const *)arg1)->GetFamilyString();
15858 wxPyEndAllowThreads(__tstate);
15859 if (PyErr_Occurred()) SWIG_fail;
15860 }
15861 {
15862 #if wxUSE_UNICODE
15863 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15864 #else
15865 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15866 #endif
15867 }
15868 return resultobj;
15869 fail:
15870 return NULL;
15871 }
15872
15873
15874 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15875 PyObject *resultobj = 0;
15876 wxFont *arg1 = (wxFont *) 0 ;
15877 wxString result;
15878 void *argp1 = 0 ;
15879 int res1 = 0 ;
15880 PyObject *swig_obj[1] ;
15881
15882 if (!args) SWIG_fail;
15883 swig_obj[0] = args;
15884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15885 if (!SWIG_IsOK(res1)) {
15886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15887 }
15888 arg1 = reinterpret_cast< wxFont * >(argp1);
15889 {
15890 PyThreadState* __tstate = wxPyBeginAllowThreads();
15891 result = ((wxFont const *)arg1)->GetStyleString();
15892 wxPyEndAllowThreads(__tstate);
15893 if (PyErr_Occurred()) SWIG_fail;
15894 }
15895 {
15896 #if wxUSE_UNICODE
15897 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15898 #else
15899 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15900 #endif
15901 }
15902 return resultobj;
15903 fail:
15904 return NULL;
15905 }
15906
15907
15908 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15909 PyObject *resultobj = 0;
15910 wxFont *arg1 = (wxFont *) 0 ;
15911 wxString result;
15912 void *argp1 = 0 ;
15913 int res1 = 0 ;
15914 PyObject *swig_obj[1] ;
15915
15916 if (!args) SWIG_fail;
15917 swig_obj[0] = args;
15918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15919 if (!SWIG_IsOK(res1)) {
15920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15921 }
15922 arg1 = reinterpret_cast< wxFont * >(argp1);
15923 {
15924 PyThreadState* __tstate = wxPyBeginAllowThreads();
15925 result = ((wxFont const *)arg1)->GetWeightString();
15926 wxPyEndAllowThreads(__tstate);
15927 if (PyErr_Occurred()) SWIG_fail;
15928 }
15929 {
15930 #if wxUSE_UNICODE
15931 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15932 #else
15933 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15934 #endif
15935 }
15936 return resultobj;
15937 fail:
15938 return NULL;
15939 }
15940
15941
15942 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15943 PyObject *resultobj = 0;
15944 wxFont *arg1 = (wxFont *) 0 ;
15945 bool arg2 = (bool) true ;
15946 void *argp1 = 0 ;
15947 int res1 = 0 ;
15948 bool val2 ;
15949 int ecode2 = 0 ;
15950 PyObject * obj0 = 0 ;
15951 PyObject * obj1 = 0 ;
15952 char * kwnames[] = {
15953 (char *) "self",(char *) "no", NULL
15954 };
15955
15956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15958 if (!SWIG_IsOK(res1)) {
15959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15960 }
15961 arg1 = reinterpret_cast< wxFont * >(argp1);
15962 if (obj1) {
15963 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15964 if (!SWIG_IsOK(ecode2)) {
15965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15966 }
15967 arg2 = static_cast< bool >(val2);
15968 }
15969 {
15970 PyThreadState* __tstate = wxPyBeginAllowThreads();
15971 (arg1)->SetNoAntiAliasing(arg2);
15972 wxPyEndAllowThreads(__tstate);
15973 if (PyErr_Occurred()) SWIG_fail;
15974 }
15975 resultobj = SWIG_Py_Void();
15976 return resultobj;
15977 fail:
15978 return NULL;
15979 }
15980
15981
15982 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15983 PyObject *resultobj = 0;
15984 wxFont *arg1 = (wxFont *) 0 ;
15985 bool result;
15986 void *argp1 = 0 ;
15987 int res1 = 0 ;
15988 PyObject *swig_obj[1] ;
15989
15990 if (!args) SWIG_fail;
15991 swig_obj[0] = args;
15992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15993 if (!SWIG_IsOK(res1)) {
15994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15995 }
15996 arg1 = reinterpret_cast< wxFont * >(argp1);
15997 {
15998 PyThreadState* __tstate = wxPyBeginAllowThreads();
15999 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
16000 wxPyEndAllowThreads(__tstate);
16001 if (PyErr_Occurred()) SWIG_fail;
16002 }
16003 {
16004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16005 }
16006 return resultobj;
16007 fail:
16008 return NULL;
16009 }
16010
16011
16012 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16013 PyObject *resultobj = 0;
16014 wxFontEncoding result;
16015
16016 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
16017 {
16018 if (!wxPyCheckForApp()) SWIG_fail;
16019 PyThreadState* __tstate = wxPyBeginAllowThreads();
16020 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
16021 wxPyEndAllowThreads(__tstate);
16022 if (PyErr_Occurred()) SWIG_fail;
16023 }
16024 resultobj = SWIG_From_int(static_cast< int >(result));
16025 return resultobj;
16026 fail:
16027 return NULL;
16028 }
16029
16030
16031 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16032 PyObject *resultobj = 0;
16033 wxFontEncoding arg1 ;
16034 int val1 ;
16035 int ecode1 = 0 ;
16036 PyObject * obj0 = 0 ;
16037 char * kwnames[] = {
16038 (char *) "encoding", NULL
16039 };
16040
16041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
16042 ecode1 = SWIG_AsVal_int(obj0, &val1);
16043 if (!SWIG_IsOK(ecode1)) {
16044 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16045 }
16046 arg1 = static_cast< wxFontEncoding >(val1);
16047 {
16048 if (!wxPyCheckForApp()) SWIG_fail;
16049 PyThreadState* __tstate = wxPyBeginAllowThreads();
16050 wxFont::SetDefaultEncoding(arg1);
16051 wxPyEndAllowThreads(__tstate);
16052 if (PyErr_Occurred()) SWIG_fail;
16053 }
16054 resultobj = SWIG_Py_Void();
16055 return resultobj;
16056 fail:
16057 return NULL;
16058 }
16059
16060
16061 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16062 PyObject *obj;
16063 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16064 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
16065 return SWIG_Py_Void();
16066 }
16067
16068 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16069 return SWIG_Python_InitShadowInstance(args);
16070 }
16071
16072 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16073 PyObject *resultobj = 0;
16074 wxPyFontEnumerator *result = 0 ;
16075
16076 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
16077 {
16078 if (!wxPyCheckForApp()) SWIG_fail;
16079 PyThreadState* __tstate = wxPyBeginAllowThreads();
16080 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
16081 wxPyEndAllowThreads(__tstate);
16082 if (PyErr_Occurred()) SWIG_fail;
16083 }
16084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
16085 return resultobj;
16086 fail:
16087 return NULL;
16088 }
16089
16090
16091 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16092 PyObject *resultobj = 0;
16093 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16094 void *argp1 = 0 ;
16095 int res1 = 0 ;
16096 PyObject *swig_obj[1] ;
16097
16098 if (!args) SWIG_fail;
16099 swig_obj[0] = args;
16100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
16101 if (!SWIG_IsOK(res1)) {
16102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16103 }
16104 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16105 {
16106 PyThreadState* __tstate = wxPyBeginAllowThreads();
16107 delete arg1;
16108
16109 wxPyEndAllowThreads(__tstate);
16110 if (PyErr_Occurred()) SWIG_fail;
16111 }
16112 resultobj = SWIG_Py_Void();
16113 return resultobj;
16114 fail:
16115 return NULL;
16116 }
16117
16118
16119 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16120 PyObject *resultobj = 0;
16121 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16122 PyObject *arg2 = (PyObject *) 0 ;
16123 PyObject *arg3 = (PyObject *) 0 ;
16124 int arg4 = (int) 0 ;
16125 void *argp1 = 0 ;
16126 int res1 = 0 ;
16127 int val4 ;
16128 int ecode4 = 0 ;
16129 PyObject * obj0 = 0 ;
16130 PyObject * obj1 = 0 ;
16131 PyObject * obj2 = 0 ;
16132 PyObject * obj3 = 0 ;
16133 char * kwnames[] = {
16134 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
16135 };
16136
16137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16139 if (!SWIG_IsOK(res1)) {
16140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16141 }
16142 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16143 arg2 = obj1;
16144 arg3 = obj2;
16145 if (obj3) {
16146 ecode4 = SWIG_AsVal_int(obj3, &val4);
16147 if (!SWIG_IsOK(ecode4)) {
16148 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
16149 }
16150 arg4 = static_cast< int >(val4);
16151 }
16152 {
16153 PyThreadState* __tstate = wxPyBeginAllowThreads();
16154 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
16155 wxPyEndAllowThreads(__tstate);
16156 if (PyErr_Occurred()) SWIG_fail;
16157 }
16158 resultobj = SWIG_Py_Void();
16159 return resultobj;
16160 fail:
16161 return NULL;
16162 }
16163
16164
16165 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16166 PyObject *resultobj = 0;
16167 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16168 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
16169 bool arg3 = (bool) false ;
16170 bool result;
16171 void *argp1 = 0 ;
16172 int res1 = 0 ;
16173 int val2 ;
16174 int ecode2 = 0 ;
16175 bool val3 ;
16176 int ecode3 = 0 ;
16177 PyObject * obj0 = 0 ;
16178 PyObject * obj1 = 0 ;
16179 PyObject * obj2 = 0 ;
16180 char * kwnames[] = {
16181 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
16182 };
16183
16184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16186 if (!SWIG_IsOK(res1)) {
16187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16188 }
16189 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16190 if (obj1) {
16191 ecode2 = SWIG_AsVal_int(obj1, &val2);
16192 if (!SWIG_IsOK(ecode2)) {
16193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16194 }
16195 arg2 = static_cast< wxFontEncoding >(val2);
16196 }
16197 if (obj2) {
16198 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16199 if (!SWIG_IsOK(ecode3)) {
16200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
16201 }
16202 arg3 = static_cast< bool >(val3);
16203 }
16204 {
16205 PyThreadState* __tstate = wxPyBeginAllowThreads();
16206 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
16207 wxPyEndAllowThreads(__tstate);
16208 if (PyErr_Occurred()) SWIG_fail;
16209 }
16210 {
16211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16212 }
16213 return resultobj;
16214 fail:
16215 return NULL;
16216 }
16217
16218
16219 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16220 PyObject *resultobj = 0;
16221 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16222 wxString const &arg2_defvalue = wxPyEmptyString ;
16223 wxString *arg2 = (wxString *) &arg2_defvalue ;
16224 bool result;
16225 void *argp1 = 0 ;
16226 int res1 = 0 ;
16227 bool temp2 = false ;
16228 PyObject * obj0 = 0 ;
16229 PyObject * obj1 = 0 ;
16230 char * kwnames[] = {
16231 (char *) "self",(char *) "facename", NULL
16232 };
16233
16234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
16235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16236 if (!SWIG_IsOK(res1)) {
16237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16238 }
16239 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16240 if (obj1) {
16241 {
16242 arg2 = wxString_in_helper(obj1);
16243 if (arg2 == NULL) SWIG_fail;
16244 temp2 = true;
16245 }
16246 }
16247 {
16248 PyThreadState* __tstate = wxPyBeginAllowThreads();
16249 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
16250 wxPyEndAllowThreads(__tstate);
16251 if (PyErr_Occurred()) SWIG_fail;
16252 }
16253 {
16254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16255 }
16256 {
16257 if (temp2)
16258 delete arg2;
16259 }
16260 return resultobj;
16261 fail:
16262 {
16263 if (temp2)
16264 delete arg2;
16265 }
16266 return NULL;
16267 }
16268
16269
16270 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16271 PyObject *resultobj = 0;
16272 PyObject *result = 0 ;
16273
16274 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
16275 {
16276 PyThreadState* __tstate = wxPyBeginAllowThreads();
16277 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
16278 wxPyEndAllowThreads(__tstate);
16279 if (PyErr_Occurred()) SWIG_fail;
16280 }
16281 resultobj = result;
16282 return resultobj;
16283 fail:
16284 return NULL;
16285 }
16286
16287
16288 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16289 PyObject *resultobj = 0;
16290 PyObject *result = 0 ;
16291
16292 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
16293 {
16294 PyThreadState* __tstate = wxPyBeginAllowThreads();
16295 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
16296 wxPyEndAllowThreads(__tstate);
16297 if (PyErr_Occurred()) SWIG_fail;
16298 }
16299 resultobj = result;
16300 return resultobj;
16301 fail:
16302 return NULL;
16303 }
16304
16305
16306 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16307 PyObject *resultobj = 0;
16308 wxString *arg1 = 0 ;
16309 bool result;
16310 bool temp1 = false ;
16311 PyObject * obj0 = 0 ;
16312 char * kwnames[] = {
16313 (char *) "str", NULL
16314 };
16315
16316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
16317 {
16318 arg1 = wxString_in_helper(obj0);
16319 if (arg1 == NULL) SWIG_fail;
16320 temp1 = true;
16321 }
16322 {
16323 PyThreadState* __tstate = wxPyBeginAllowThreads();
16324 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
16325 wxPyEndAllowThreads(__tstate);
16326 if (PyErr_Occurred()) SWIG_fail;
16327 }
16328 {
16329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16330 }
16331 {
16332 if (temp1)
16333 delete arg1;
16334 }
16335 return resultobj;
16336 fail:
16337 {
16338 if (temp1)
16339 delete arg1;
16340 }
16341 return NULL;
16342 }
16343
16344
16345 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16346 PyObject *obj;
16347 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16348 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16349 return SWIG_Py_Void();
16350 }
16351
16352 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16353 return SWIG_Python_InitShadowInstance(args);
16354 }
16355
16356 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16357 PyObject *resultobj = 0;
16358 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16359 int arg2 ;
16360 void *argp1 = 0 ;
16361 int res1 = 0 ;
16362 int val2 ;
16363 int ecode2 = 0 ;
16364 PyObject *swig_obj[2] ;
16365
16366 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16368 if (!SWIG_IsOK(res1)) {
16369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16370 }
16371 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16372 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16373 if (!SWIG_IsOK(ecode2)) {
16374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16375 }
16376 arg2 = static_cast< int >(val2);
16377 if (arg1) (arg1)->Language = arg2;
16378
16379 resultobj = SWIG_Py_Void();
16380 return resultobj;
16381 fail:
16382 return NULL;
16383 }
16384
16385
16386 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16387 PyObject *resultobj = 0;
16388 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16389 int result;
16390 void *argp1 = 0 ;
16391 int res1 = 0 ;
16392 PyObject *swig_obj[1] ;
16393
16394 if (!args) SWIG_fail;
16395 swig_obj[0] = args;
16396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16397 if (!SWIG_IsOK(res1)) {
16398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16399 }
16400 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16401 result = (int) ((arg1)->Language);
16402 resultobj = SWIG_From_int(static_cast< int >(result));
16403 return resultobj;
16404 fail:
16405 return NULL;
16406 }
16407
16408
16409 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16410 PyObject *resultobj = 0;
16411 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16412 wxString *arg2 = (wxString *) 0 ;
16413 void *argp1 = 0 ;
16414 int res1 = 0 ;
16415 bool temp2 = false ;
16416 PyObject *swig_obj[2] ;
16417
16418 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16420 if (!SWIG_IsOK(res1)) {
16421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16422 }
16423 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16424 {
16425 arg2 = wxString_in_helper(swig_obj[1]);
16426 if (arg2 == NULL) SWIG_fail;
16427 temp2 = true;
16428 }
16429 if (arg1) (arg1)->CanonicalName = *arg2;
16430
16431 resultobj = SWIG_Py_Void();
16432 {
16433 if (temp2)
16434 delete arg2;
16435 }
16436 return resultobj;
16437 fail:
16438 {
16439 if (temp2)
16440 delete arg2;
16441 }
16442 return NULL;
16443 }
16444
16445
16446 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16447 PyObject *resultobj = 0;
16448 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16449 wxString *result = 0 ;
16450 void *argp1 = 0 ;
16451 int res1 = 0 ;
16452 PyObject *swig_obj[1] ;
16453
16454 if (!args) SWIG_fail;
16455 swig_obj[0] = args;
16456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16457 if (!SWIG_IsOK(res1)) {
16458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16459 }
16460 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16461 result = (wxString *)& ((arg1)->CanonicalName);
16462 {
16463 #if wxUSE_UNICODE
16464 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16465 #else
16466 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16467 #endif
16468 }
16469 return resultobj;
16470 fail:
16471 return NULL;
16472 }
16473
16474
16475 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16476 PyObject *resultobj = 0;
16477 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16478 wxString *arg2 = (wxString *) 0 ;
16479 void *argp1 = 0 ;
16480 int res1 = 0 ;
16481 bool temp2 = false ;
16482 PyObject *swig_obj[2] ;
16483
16484 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16486 if (!SWIG_IsOK(res1)) {
16487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16488 }
16489 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16490 {
16491 arg2 = wxString_in_helper(swig_obj[1]);
16492 if (arg2 == NULL) SWIG_fail;
16493 temp2 = true;
16494 }
16495 if (arg1) (arg1)->Description = *arg2;
16496
16497 resultobj = SWIG_Py_Void();
16498 {
16499 if (temp2)
16500 delete arg2;
16501 }
16502 return resultobj;
16503 fail:
16504 {
16505 if (temp2)
16506 delete arg2;
16507 }
16508 return NULL;
16509 }
16510
16511
16512 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16513 PyObject *resultobj = 0;
16514 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16515 wxString *result = 0 ;
16516 void *argp1 = 0 ;
16517 int res1 = 0 ;
16518 PyObject *swig_obj[1] ;
16519
16520 if (!args) SWIG_fail;
16521 swig_obj[0] = args;
16522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16523 if (!SWIG_IsOK(res1)) {
16524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16525 }
16526 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16527 result = (wxString *)& ((arg1)->Description);
16528 {
16529 #if wxUSE_UNICODE
16530 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16531 #else
16532 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16533 #endif
16534 }
16535 return resultobj;
16536 fail:
16537 return NULL;
16538 }
16539
16540
16541 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16542 PyObject *obj;
16543 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16544 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16545 return SWIG_Py_Void();
16546 }
16547
16548 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16549 PyObject *resultobj = 0;
16550 int arg1 = (int) -1 ;
16551 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16552 wxLocale *result = 0 ;
16553 int val1 ;
16554 int ecode1 = 0 ;
16555 int val2 ;
16556 int ecode2 = 0 ;
16557 PyObject * obj0 = 0 ;
16558 PyObject * obj1 = 0 ;
16559 char * kwnames[] = {
16560 (char *) "language",(char *) "flags", NULL
16561 };
16562
16563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16564 if (obj0) {
16565 ecode1 = SWIG_AsVal_int(obj0, &val1);
16566 if (!SWIG_IsOK(ecode1)) {
16567 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16568 }
16569 arg1 = static_cast< int >(val1);
16570 }
16571 if (obj1) {
16572 ecode2 = SWIG_AsVal_int(obj1, &val2);
16573 if (!SWIG_IsOK(ecode2)) {
16574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16575 }
16576 arg2 = static_cast< int >(val2);
16577 }
16578 {
16579 PyThreadState* __tstate = wxPyBeginAllowThreads();
16580 result = (wxLocale *)new_wxLocale(arg1,arg2);
16581 wxPyEndAllowThreads(__tstate);
16582 if (PyErr_Occurred()) SWIG_fail;
16583 }
16584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16585 return resultobj;
16586 fail:
16587 return NULL;
16588 }
16589
16590
16591 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16592 PyObject *resultobj = 0;
16593 wxLocale *arg1 = (wxLocale *) 0 ;
16594 void *argp1 = 0 ;
16595 int res1 = 0 ;
16596 PyObject *swig_obj[1] ;
16597
16598 if (!args) SWIG_fail;
16599 swig_obj[0] = args;
16600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16601 if (!SWIG_IsOK(res1)) {
16602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16603 }
16604 arg1 = reinterpret_cast< wxLocale * >(argp1);
16605 {
16606 PyThreadState* __tstate = wxPyBeginAllowThreads();
16607 delete arg1;
16608
16609 wxPyEndAllowThreads(__tstate);
16610 if (PyErr_Occurred()) SWIG_fail;
16611 }
16612 resultobj = SWIG_Py_Void();
16613 return resultobj;
16614 fail:
16615 return NULL;
16616 }
16617
16618
16619 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16620 PyObject *resultobj = 0;
16621 wxLocale *arg1 = (wxLocale *) 0 ;
16622 wxString *arg2 = 0 ;
16623 wxString const &arg3_defvalue = wxPyEmptyString ;
16624 wxString *arg3 = (wxString *) &arg3_defvalue ;
16625 wxString const &arg4_defvalue = wxPyEmptyString ;
16626 wxString *arg4 = (wxString *) &arg4_defvalue ;
16627 bool arg5 = (bool) true ;
16628 bool arg6 = (bool) false ;
16629 bool result;
16630 void *argp1 = 0 ;
16631 int res1 = 0 ;
16632 bool temp2 = false ;
16633 bool temp3 = false ;
16634 bool temp4 = false ;
16635 bool val5 ;
16636 int ecode5 = 0 ;
16637 bool val6 ;
16638 int ecode6 = 0 ;
16639 PyObject * obj0 = 0 ;
16640 PyObject * obj1 = 0 ;
16641 PyObject * obj2 = 0 ;
16642 PyObject * obj3 = 0 ;
16643 PyObject * obj4 = 0 ;
16644 PyObject * obj5 = 0 ;
16645 char * kwnames[] = {
16646 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16647 };
16648
16649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16651 if (!SWIG_IsOK(res1)) {
16652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16653 }
16654 arg1 = reinterpret_cast< wxLocale * >(argp1);
16655 {
16656 arg2 = wxString_in_helper(obj1);
16657 if (arg2 == NULL) SWIG_fail;
16658 temp2 = true;
16659 }
16660 if (obj2) {
16661 {
16662 arg3 = wxString_in_helper(obj2);
16663 if (arg3 == NULL) SWIG_fail;
16664 temp3 = true;
16665 }
16666 }
16667 if (obj3) {
16668 {
16669 arg4 = wxString_in_helper(obj3);
16670 if (arg4 == NULL) SWIG_fail;
16671 temp4 = true;
16672 }
16673 }
16674 if (obj4) {
16675 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16676 if (!SWIG_IsOK(ecode5)) {
16677 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16678 }
16679 arg5 = static_cast< bool >(val5);
16680 }
16681 if (obj5) {
16682 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16683 if (!SWIG_IsOK(ecode6)) {
16684 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16685 }
16686 arg6 = static_cast< bool >(val6);
16687 }
16688 {
16689 PyThreadState* __tstate = wxPyBeginAllowThreads();
16690 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16691 wxPyEndAllowThreads(__tstate);
16692 if (PyErr_Occurred()) SWIG_fail;
16693 }
16694 {
16695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16696 }
16697 {
16698 if (temp2)
16699 delete arg2;
16700 }
16701 {
16702 if (temp3)
16703 delete arg3;
16704 }
16705 {
16706 if (temp4)
16707 delete arg4;
16708 }
16709 return resultobj;
16710 fail:
16711 {
16712 if (temp2)
16713 delete arg2;
16714 }
16715 {
16716 if (temp3)
16717 delete arg3;
16718 }
16719 {
16720 if (temp4)
16721 delete arg4;
16722 }
16723 return NULL;
16724 }
16725
16726
16727 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16728 PyObject *resultobj = 0;
16729 wxLocale *arg1 = (wxLocale *) 0 ;
16730 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16731 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16732 bool result;
16733 void *argp1 = 0 ;
16734 int res1 = 0 ;
16735 int val2 ;
16736 int ecode2 = 0 ;
16737 int val3 ;
16738 int ecode3 = 0 ;
16739 PyObject * obj0 = 0 ;
16740 PyObject * obj1 = 0 ;
16741 PyObject * obj2 = 0 ;
16742 char * kwnames[] = {
16743 (char *) "self",(char *) "language",(char *) "flags", NULL
16744 };
16745
16746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16748 if (!SWIG_IsOK(res1)) {
16749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16750 }
16751 arg1 = reinterpret_cast< wxLocale * >(argp1);
16752 if (obj1) {
16753 ecode2 = SWIG_AsVal_int(obj1, &val2);
16754 if (!SWIG_IsOK(ecode2)) {
16755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16756 }
16757 arg2 = static_cast< int >(val2);
16758 }
16759 if (obj2) {
16760 ecode3 = SWIG_AsVal_int(obj2, &val3);
16761 if (!SWIG_IsOK(ecode3)) {
16762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16763 }
16764 arg3 = static_cast< int >(val3);
16765 }
16766 {
16767 PyThreadState* __tstate = wxPyBeginAllowThreads();
16768 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16769 wxPyEndAllowThreads(__tstate);
16770 if (PyErr_Occurred()) SWIG_fail;
16771 }
16772 {
16773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16774 }
16775 return resultobj;
16776 fail:
16777 return NULL;
16778 }
16779
16780
16781 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16782 PyObject *resultobj = 0;
16783 int result;
16784
16785 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16786 {
16787 PyThreadState* __tstate = wxPyBeginAllowThreads();
16788 result = (int)wxLocale::GetSystemLanguage();
16789 wxPyEndAllowThreads(__tstate);
16790 if (PyErr_Occurred()) SWIG_fail;
16791 }
16792 resultobj = SWIG_From_int(static_cast< int >(result));
16793 return resultobj;
16794 fail:
16795 return NULL;
16796 }
16797
16798
16799 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16800 PyObject *resultobj = 0;
16801 wxFontEncoding result;
16802
16803 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16804 {
16805 PyThreadState* __tstate = wxPyBeginAllowThreads();
16806 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16807 wxPyEndAllowThreads(__tstate);
16808 if (PyErr_Occurred()) SWIG_fail;
16809 }
16810 resultobj = SWIG_From_int(static_cast< int >(result));
16811 return resultobj;
16812 fail:
16813 return NULL;
16814 }
16815
16816
16817 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16818 PyObject *resultobj = 0;
16819 wxString result;
16820
16821 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16822 {
16823 PyThreadState* __tstate = wxPyBeginAllowThreads();
16824 result = wxLocale::GetSystemEncodingName();
16825 wxPyEndAllowThreads(__tstate);
16826 if (PyErr_Occurred()) SWIG_fail;
16827 }
16828 {
16829 #if wxUSE_UNICODE
16830 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16831 #else
16832 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16833 #endif
16834 }
16835 return resultobj;
16836 fail:
16837 return NULL;
16838 }
16839
16840
16841 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16842 PyObject *resultobj = 0;
16843 wxLocale *arg1 = (wxLocale *) 0 ;
16844 bool result;
16845 void *argp1 = 0 ;
16846 int res1 = 0 ;
16847 PyObject *swig_obj[1] ;
16848
16849 if (!args) SWIG_fail;
16850 swig_obj[0] = args;
16851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16852 if (!SWIG_IsOK(res1)) {
16853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16854 }
16855 arg1 = reinterpret_cast< wxLocale * >(argp1);
16856 {
16857 PyThreadState* __tstate = wxPyBeginAllowThreads();
16858 result = (bool)((wxLocale const *)arg1)->IsOk();
16859 wxPyEndAllowThreads(__tstate);
16860 if (PyErr_Occurred()) SWIG_fail;
16861 }
16862 {
16863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16864 }
16865 return resultobj;
16866 fail:
16867 return NULL;
16868 }
16869
16870
16871 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16872 PyObject *resultobj = 0;
16873 wxLocale *arg1 = (wxLocale *) 0 ;
16874 wxString result;
16875 void *argp1 = 0 ;
16876 int res1 = 0 ;
16877 PyObject *swig_obj[1] ;
16878
16879 if (!args) SWIG_fail;
16880 swig_obj[0] = args;
16881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16882 if (!SWIG_IsOK(res1)) {
16883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16884 }
16885 arg1 = reinterpret_cast< wxLocale * >(argp1);
16886 {
16887 PyThreadState* __tstate = wxPyBeginAllowThreads();
16888 result = ((wxLocale const *)arg1)->GetLocale();
16889 wxPyEndAllowThreads(__tstate);
16890 if (PyErr_Occurred()) SWIG_fail;
16891 }
16892 {
16893 #if wxUSE_UNICODE
16894 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16895 #else
16896 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16897 #endif
16898 }
16899 return resultobj;
16900 fail:
16901 return NULL;
16902 }
16903
16904
16905 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16906 PyObject *resultobj = 0;
16907 wxLocale *arg1 = (wxLocale *) 0 ;
16908 int result;
16909 void *argp1 = 0 ;
16910 int res1 = 0 ;
16911 PyObject *swig_obj[1] ;
16912
16913 if (!args) SWIG_fail;
16914 swig_obj[0] = args;
16915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16916 if (!SWIG_IsOK(res1)) {
16917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16918 }
16919 arg1 = reinterpret_cast< wxLocale * >(argp1);
16920 {
16921 PyThreadState* __tstate = wxPyBeginAllowThreads();
16922 result = (int)((wxLocale const *)arg1)->GetLanguage();
16923 wxPyEndAllowThreads(__tstate);
16924 if (PyErr_Occurred()) SWIG_fail;
16925 }
16926 resultobj = SWIG_From_int(static_cast< int >(result));
16927 return resultobj;
16928 fail:
16929 return NULL;
16930 }
16931
16932
16933 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16934 PyObject *resultobj = 0;
16935 wxLocale *arg1 = (wxLocale *) 0 ;
16936 wxString result;
16937 void *argp1 = 0 ;
16938 int res1 = 0 ;
16939 PyObject *swig_obj[1] ;
16940
16941 if (!args) SWIG_fail;
16942 swig_obj[0] = args;
16943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16944 if (!SWIG_IsOK(res1)) {
16945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16946 }
16947 arg1 = reinterpret_cast< wxLocale * >(argp1);
16948 {
16949 PyThreadState* __tstate = wxPyBeginAllowThreads();
16950 result = ((wxLocale const *)arg1)->GetSysName();
16951 wxPyEndAllowThreads(__tstate);
16952 if (PyErr_Occurred()) SWIG_fail;
16953 }
16954 {
16955 #if wxUSE_UNICODE
16956 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16957 #else
16958 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16959 #endif
16960 }
16961 return resultobj;
16962 fail:
16963 return NULL;
16964 }
16965
16966
16967 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16968 PyObject *resultobj = 0;
16969 wxLocale *arg1 = (wxLocale *) 0 ;
16970 wxString result;
16971 void *argp1 = 0 ;
16972 int res1 = 0 ;
16973 PyObject *swig_obj[1] ;
16974
16975 if (!args) SWIG_fail;
16976 swig_obj[0] = args;
16977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16978 if (!SWIG_IsOK(res1)) {
16979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16980 }
16981 arg1 = reinterpret_cast< wxLocale * >(argp1);
16982 {
16983 PyThreadState* __tstate = wxPyBeginAllowThreads();
16984 result = ((wxLocale const *)arg1)->GetCanonicalName();
16985 wxPyEndAllowThreads(__tstate);
16986 if (PyErr_Occurred()) SWIG_fail;
16987 }
16988 {
16989 #if wxUSE_UNICODE
16990 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16991 #else
16992 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16993 #endif
16994 }
16995 return resultobj;
16996 fail:
16997 return NULL;
16998 }
16999
17000
17001 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17002 PyObject *resultobj = 0;
17003 wxString *arg1 = 0 ;
17004 bool temp1 = false ;
17005 PyObject * obj0 = 0 ;
17006 char * kwnames[] = {
17007 (char *) "prefix", NULL
17008 };
17009
17010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
17011 {
17012 arg1 = wxString_in_helper(obj0);
17013 if (arg1 == NULL) SWIG_fail;
17014 temp1 = true;
17015 }
17016 {
17017 PyThreadState* __tstate = wxPyBeginAllowThreads();
17018 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
17019 wxPyEndAllowThreads(__tstate);
17020 if (PyErr_Occurred()) SWIG_fail;
17021 }
17022 resultobj = SWIG_Py_Void();
17023 {
17024 if (temp1)
17025 delete arg1;
17026 }
17027 return resultobj;
17028 fail:
17029 {
17030 if (temp1)
17031 delete arg1;
17032 }
17033 return NULL;
17034 }
17035
17036
17037 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17038 PyObject *resultobj = 0;
17039 wxLocale *arg1 = (wxLocale *) 0 ;
17040 wxString *arg2 = 0 ;
17041 bool result;
17042 void *argp1 = 0 ;
17043 int res1 = 0 ;
17044 bool temp2 = false ;
17045 PyObject * obj0 = 0 ;
17046 PyObject * obj1 = 0 ;
17047 char * kwnames[] = {
17048 (char *) "self",(char *) "szDomain", NULL
17049 };
17050
17051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
17052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17053 if (!SWIG_IsOK(res1)) {
17054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
17055 }
17056 arg1 = reinterpret_cast< wxLocale * >(argp1);
17057 {
17058 arg2 = wxString_in_helper(obj1);
17059 if (arg2 == NULL) SWIG_fail;
17060 temp2 = true;
17061 }
17062 {
17063 PyThreadState* __tstate = wxPyBeginAllowThreads();
17064 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
17065 wxPyEndAllowThreads(__tstate);
17066 if (PyErr_Occurred()) SWIG_fail;
17067 }
17068 {
17069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17070 }
17071 {
17072 if (temp2)
17073 delete arg2;
17074 }
17075 return resultobj;
17076 fail:
17077 {
17078 if (temp2)
17079 delete arg2;
17080 }
17081 return NULL;
17082 }
17083
17084
17085 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17086 PyObject *resultobj = 0;
17087 int arg1 ;
17088 bool result;
17089 int val1 ;
17090 int ecode1 = 0 ;
17091 PyObject * obj0 = 0 ;
17092 char * kwnames[] = {
17093 (char *) "lang", NULL
17094 };
17095
17096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
17097 ecode1 = SWIG_AsVal_int(obj0, &val1);
17098 if (!SWIG_IsOK(ecode1)) {
17099 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
17100 }
17101 arg1 = static_cast< int >(val1);
17102 {
17103 PyThreadState* __tstate = wxPyBeginAllowThreads();
17104 result = (bool)wxLocale::IsAvailable(arg1);
17105 wxPyEndAllowThreads(__tstate);
17106 if (PyErr_Occurred()) SWIG_fail;
17107 }
17108 {
17109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17110 }
17111 return resultobj;
17112 fail:
17113 return NULL;
17114 }
17115
17116
17117 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17118 PyObject *resultobj = 0;
17119 wxLocale *arg1 = (wxLocale *) 0 ;
17120 wxString *arg2 = 0 ;
17121 bool result;
17122 void *argp1 = 0 ;
17123 int res1 = 0 ;
17124 bool temp2 = false ;
17125 PyObject * obj0 = 0 ;
17126 PyObject * obj1 = 0 ;
17127 char * kwnames[] = {
17128 (char *) "self",(char *) "szDomain", NULL
17129 };
17130
17131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
17132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17133 if (!SWIG_IsOK(res1)) {
17134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
17135 }
17136 arg1 = reinterpret_cast< wxLocale * >(argp1);
17137 {
17138 arg2 = wxString_in_helper(obj1);
17139 if (arg2 == NULL) SWIG_fail;
17140 temp2 = true;
17141 }
17142 {
17143 PyThreadState* __tstate = wxPyBeginAllowThreads();
17144 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
17145 wxPyEndAllowThreads(__tstate);
17146 if (PyErr_Occurred()) SWIG_fail;
17147 }
17148 {
17149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17150 }
17151 {
17152 if (temp2)
17153 delete arg2;
17154 }
17155 return resultobj;
17156 fail:
17157 {
17158 if (temp2)
17159 delete arg2;
17160 }
17161 return NULL;
17162 }
17163
17164
17165 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17166 PyObject *resultobj = 0;
17167 int arg1 ;
17168 wxLanguageInfo *result = 0 ;
17169 int val1 ;
17170 int ecode1 = 0 ;
17171 PyObject * obj0 = 0 ;
17172 char * kwnames[] = {
17173 (char *) "lang", NULL
17174 };
17175
17176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
17177 ecode1 = SWIG_AsVal_int(obj0, &val1);
17178 if (!SWIG_IsOK(ecode1)) {
17179 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
17180 }
17181 arg1 = static_cast< int >(val1);
17182 {
17183 PyThreadState* __tstate = wxPyBeginAllowThreads();
17184 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
17185 wxPyEndAllowThreads(__tstate);
17186 if (PyErr_Occurred()) SWIG_fail;
17187 }
17188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17189 return resultobj;
17190 fail:
17191 return NULL;
17192 }
17193
17194
17195 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17196 PyObject *resultobj = 0;
17197 int arg1 ;
17198 wxString result;
17199 int val1 ;
17200 int ecode1 = 0 ;
17201 PyObject * obj0 = 0 ;
17202 char * kwnames[] = {
17203 (char *) "lang", NULL
17204 };
17205
17206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
17207 ecode1 = SWIG_AsVal_int(obj0, &val1);
17208 if (!SWIG_IsOK(ecode1)) {
17209 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
17210 }
17211 arg1 = static_cast< int >(val1);
17212 {
17213 PyThreadState* __tstate = wxPyBeginAllowThreads();
17214 result = wxLocale::GetLanguageName(arg1);
17215 wxPyEndAllowThreads(__tstate);
17216 if (PyErr_Occurred()) SWIG_fail;
17217 }
17218 {
17219 #if wxUSE_UNICODE
17220 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17221 #else
17222 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17223 #endif
17224 }
17225 return resultobj;
17226 fail:
17227 return NULL;
17228 }
17229
17230
17231 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17232 PyObject *resultobj = 0;
17233 wxString *arg1 = 0 ;
17234 wxLanguageInfo *result = 0 ;
17235 bool temp1 = false ;
17236 PyObject * obj0 = 0 ;
17237 char * kwnames[] = {
17238 (char *) "locale", NULL
17239 };
17240
17241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
17242 {
17243 arg1 = wxString_in_helper(obj0);
17244 if (arg1 == NULL) SWIG_fail;
17245 temp1 = true;
17246 }
17247 {
17248 PyThreadState* __tstate = wxPyBeginAllowThreads();
17249 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
17250 wxPyEndAllowThreads(__tstate);
17251 if (PyErr_Occurred()) SWIG_fail;
17252 }
17253 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17254 {
17255 if (temp1)
17256 delete arg1;
17257 }
17258 return resultobj;
17259 fail:
17260 {
17261 if (temp1)
17262 delete arg1;
17263 }
17264 return NULL;
17265 }
17266
17267
17268 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17269 PyObject *resultobj = 0;
17270 wxLanguageInfo *arg1 = 0 ;
17271 void *argp1 = 0 ;
17272 int res1 = 0 ;
17273 PyObject * obj0 = 0 ;
17274 char * kwnames[] = {
17275 (char *) "info", NULL
17276 };
17277
17278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
17279 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
17280 if (!SWIG_IsOK(res1)) {
17281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17282 }
17283 if (!argp1) {
17284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17285 }
17286 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
17287 {
17288 PyThreadState* __tstate = wxPyBeginAllowThreads();
17289 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
17290 wxPyEndAllowThreads(__tstate);
17291 if (PyErr_Occurred()) SWIG_fail;
17292 }
17293 resultobj = SWIG_Py_Void();
17294 return resultobj;
17295 fail:
17296 return NULL;
17297 }
17298
17299
17300 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17301 PyObject *resultobj = 0;
17302 wxLocale *arg1 = (wxLocale *) 0 ;
17303 wxString *arg2 = 0 ;
17304 wxString const &arg3_defvalue = wxPyEmptyString ;
17305 wxString *arg3 = (wxString *) &arg3_defvalue ;
17306 wxString result;
17307 void *argp1 = 0 ;
17308 int res1 = 0 ;
17309 bool temp2 = false ;
17310 bool temp3 = false ;
17311 PyObject * obj0 = 0 ;
17312 PyObject * obj1 = 0 ;
17313 PyObject * obj2 = 0 ;
17314 char * kwnames[] = {
17315 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17316 };
17317
17318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17320 if (!SWIG_IsOK(res1)) {
17321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
17322 }
17323 arg1 = reinterpret_cast< wxLocale * >(argp1);
17324 {
17325 arg2 = wxString_in_helper(obj1);
17326 if (arg2 == NULL) SWIG_fail;
17327 temp2 = true;
17328 }
17329 if (obj2) {
17330 {
17331 arg3 = wxString_in_helper(obj2);
17332 if (arg3 == NULL) SWIG_fail;
17333 temp3 = true;
17334 }
17335 }
17336 {
17337 PyThreadState* __tstate = wxPyBeginAllowThreads();
17338 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
17339 wxPyEndAllowThreads(__tstate);
17340 if (PyErr_Occurred()) SWIG_fail;
17341 }
17342 {
17343 #if wxUSE_UNICODE
17344 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17345 #else
17346 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17347 #endif
17348 }
17349 {
17350 if (temp2)
17351 delete arg2;
17352 }
17353 {
17354 if (temp3)
17355 delete arg3;
17356 }
17357 return resultobj;
17358 fail:
17359 {
17360 if (temp2)
17361 delete arg2;
17362 }
17363 {
17364 if (temp3)
17365 delete arg3;
17366 }
17367 return NULL;
17368 }
17369
17370
17371 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17372 PyObject *resultobj = 0;
17373 wxLocale *arg1 = (wxLocale *) 0 ;
17374 wxString *result = 0 ;
17375 void *argp1 = 0 ;
17376 int res1 = 0 ;
17377 PyObject *swig_obj[1] ;
17378
17379 if (!args) SWIG_fail;
17380 swig_obj[0] = args;
17381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17382 if (!SWIG_IsOK(res1)) {
17383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17384 }
17385 arg1 = reinterpret_cast< wxLocale * >(argp1);
17386 {
17387 PyThreadState* __tstate = wxPyBeginAllowThreads();
17388 {
17389 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17390 result = (wxString *) &_result_ref;
17391 }
17392 wxPyEndAllowThreads(__tstate);
17393 if (PyErr_Occurred()) SWIG_fail;
17394 }
17395 {
17396 #if wxUSE_UNICODE
17397 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17398 #else
17399 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17400 #endif
17401 }
17402 return resultobj;
17403 fail:
17404 return NULL;
17405 }
17406
17407
17408 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17409 PyObject *obj;
17410 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17411 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17412 return SWIG_Py_Void();
17413 }
17414
17415 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17416 return SWIG_Python_InitShadowInstance(args);
17417 }
17418
17419 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17420 PyObject *resultobj = 0;
17421 int arg1 = (int) -1 ;
17422 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17423 wxPyLocale *result = 0 ;
17424 int val1 ;
17425 int ecode1 = 0 ;
17426 int val2 ;
17427 int ecode2 = 0 ;
17428 PyObject * obj0 = 0 ;
17429 PyObject * obj1 = 0 ;
17430 char * kwnames[] = {
17431 (char *) "language",(char *) "flags", NULL
17432 };
17433
17434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17435 if (obj0) {
17436 ecode1 = SWIG_AsVal_int(obj0, &val1);
17437 if (!SWIG_IsOK(ecode1)) {
17438 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17439 }
17440 arg1 = static_cast< int >(val1);
17441 }
17442 if (obj1) {
17443 ecode2 = SWIG_AsVal_int(obj1, &val2);
17444 if (!SWIG_IsOK(ecode2)) {
17445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17446 }
17447 arg2 = static_cast< int >(val2);
17448 }
17449 {
17450 PyThreadState* __tstate = wxPyBeginAllowThreads();
17451 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17452 wxPyEndAllowThreads(__tstate);
17453 if (PyErr_Occurred()) SWIG_fail;
17454 }
17455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17456 return resultobj;
17457 fail:
17458 return NULL;
17459 }
17460
17461
17462 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17463 PyObject *resultobj = 0;
17464 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17465 void *argp1 = 0 ;
17466 int res1 = 0 ;
17467 PyObject *swig_obj[1] ;
17468
17469 if (!args) SWIG_fail;
17470 swig_obj[0] = args;
17471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17472 if (!SWIG_IsOK(res1)) {
17473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17474 }
17475 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17476 {
17477 PyThreadState* __tstate = wxPyBeginAllowThreads();
17478 delete arg1;
17479
17480 wxPyEndAllowThreads(__tstate);
17481 if (PyErr_Occurred()) SWIG_fail;
17482 }
17483 resultobj = SWIG_Py_Void();
17484 return resultobj;
17485 fail:
17486 return NULL;
17487 }
17488
17489
17490 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17491 PyObject *resultobj = 0;
17492 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17493 PyObject *arg2 = (PyObject *) 0 ;
17494 PyObject *arg3 = (PyObject *) 0 ;
17495 void *argp1 = 0 ;
17496 int res1 = 0 ;
17497 PyObject * obj0 = 0 ;
17498 PyObject * obj1 = 0 ;
17499 PyObject * obj2 = 0 ;
17500 char * kwnames[] = {
17501 (char *) "self",(char *) "self",(char *) "_class", NULL
17502 };
17503
17504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17506 if (!SWIG_IsOK(res1)) {
17507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17508 }
17509 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17510 arg2 = obj1;
17511 arg3 = obj2;
17512 {
17513 PyThreadState* __tstate = wxPyBeginAllowThreads();
17514 (arg1)->_setCallbackInfo(arg2,arg3);
17515 wxPyEndAllowThreads(__tstate);
17516 if (PyErr_Occurred()) SWIG_fail;
17517 }
17518 resultobj = SWIG_Py_Void();
17519 return resultobj;
17520 fail:
17521 return NULL;
17522 }
17523
17524
17525 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17526 PyObject *resultobj = 0;
17527 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17528 wxChar *arg2 = (wxChar *) 0 ;
17529 wxChar *arg3 = (wxChar *) NULL ;
17530 wxChar *result = 0 ;
17531 void *argp1 = 0 ;
17532 int res1 = 0 ;
17533 void *argp2 = 0 ;
17534 int res2 = 0 ;
17535 void *argp3 = 0 ;
17536 int res3 = 0 ;
17537 PyObject * obj0 = 0 ;
17538 PyObject * obj1 = 0 ;
17539 PyObject * obj2 = 0 ;
17540 char * kwnames[] = {
17541 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17542 };
17543
17544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17546 if (!SWIG_IsOK(res1)) {
17547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17548 }
17549 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17550 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17551 if (!SWIG_IsOK(res2)) {
17552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
17553 }
17554 arg2 = reinterpret_cast< wxChar * >(argp2);
17555 if (obj2) {
17556 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17557 if (!SWIG_IsOK(res3)) {
17558 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
17559 }
17560 arg3 = reinterpret_cast< wxChar * >(argp3);
17561 }
17562 {
17563 PyThreadState* __tstate = wxPyBeginAllowThreads();
17564 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
17565 wxPyEndAllowThreads(__tstate);
17566 if (PyErr_Occurred()) SWIG_fail;
17567 }
17568 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17569 return resultobj;
17570 fail:
17571 return NULL;
17572 }
17573
17574
17575 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17576 PyObject *resultobj = 0;
17577 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17578 wxChar *arg2 = (wxChar *) 0 ;
17579 wxChar *arg3 = (wxChar *) 0 ;
17580 size_t arg4 ;
17581 wxChar *arg5 = (wxChar *) NULL ;
17582 wxChar *result = 0 ;
17583 void *argp1 = 0 ;
17584 int res1 = 0 ;
17585 void *argp2 = 0 ;
17586 int res2 = 0 ;
17587 void *argp3 = 0 ;
17588 int res3 = 0 ;
17589 size_t val4 ;
17590 int ecode4 = 0 ;
17591 void *argp5 = 0 ;
17592 int res5 = 0 ;
17593 PyObject * obj0 = 0 ;
17594 PyObject * obj1 = 0 ;
17595 PyObject * obj2 = 0 ;
17596 PyObject * obj3 = 0 ;
17597 PyObject * obj4 = 0 ;
17598 char * kwnames[] = {
17599 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17600 };
17601
17602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17604 if (!SWIG_IsOK(res1)) {
17605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17606 }
17607 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17608 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17609 if (!SWIG_IsOK(res2)) {
17610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17611 }
17612 arg2 = reinterpret_cast< wxChar * >(argp2);
17613 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17614 if (!SWIG_IsOK(res3)) {
17615 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17616 }
17617 arg3 = reinterpret_cast< wxChar * >(argp3);
17618 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17619 if (!SWIG_IsOK(ecode4)) {
17620 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17621 }
17622 arg4 = static_cast< size_t >(val4);
17623 if (obj4) {
17624 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17625 if (!SWIG_IsOK(res5)) {
17626 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17627 }
17628 arg5 = reinterpret_cast< wxChar * >(argp5);
17629 }
17630 {
17631 PyThreadState* __tstate = wxPyBeginAllowThreads();
17632 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17633 wxPyEndAllowThreads(__tstate);
17634 if (PyErr_Occurred()) SWIG_fail;
17635 }
17636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17637 return resultobj;
17638 fail:
17639 return NULL;
17640 }
17641
17642
17643 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17644 PyObject *obj;
17645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17646 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17647 return SWIG_Py_Void();
17648 }
17649
17650 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17651 return SWIG_Python_InitShadowInstance(args);
17652 }
17653
17654 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17655 PyObject *resultobj = 0;
17656 wxLocale *result = 0 ;
17657
17658 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17659 {
17660 PyThreadState* __tstate = wxPyBeginAllowThreads();
17661 result = (wxLocale *)wxGetLocale();
17662 wxPyEndAllowThreads(__tstate);
17663 if (PyErr_Occurred()) SWIG_fail;
17664 }
17665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17666 return resultobj;
17667 fail:
17668 return NULL;
17669 }
17670
17671
17672 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17673 PyObject *resultobj = 0;
17674 wxString *arg1 = 0 ;
17675 wxString result;
17676 bool temp1 = false ;
17677
17678 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17679 {
17680 arg1 = wxString_in_helper(swig_obj[0]);
17681 if (arg1 == NULL) SWIG_fail;
17682 temp1 = true;
17683 }
17684 {
17685 PyThreadState* __tstate = wxPyBeginAllowThreads();
17686 result = wxGetTranslation((wxString const &)*arg1);
17687 wxPyEndAllowThreads(__tstate);
17688 if (PyErr_Occurred()) SWIG_fail;
17689 }
17690 {
17691 #if wxUSE_UNICODE
17692 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17693 #else
17694 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17695 #endif
17696 }
17697 {
17698 if (temp1)
17699 delete arg1;
17700 }
17701 return resultobj;
17702 fail:
17703 {
17704 if (temp1)
17705 delete arg1;
17706 }
17707 return NULL;
17708 }
17709
17710
17711 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17712 PyObject *resultobj = 0;
17713 wxString *arg1 = 0 ;
17714 wxString *arg2 = 0 ;
17715 wxString result;
17716 bool temp1 = false ;
17717 bool temp2 = false ;
17718
17719 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17720 {
17721 arg1 = wxString_in_helper(swig_obj[0]);
17722 if (arg1 == NULL) SWIG_fail;
17723 temp1 = true;
17724 }
17725 {
17726 arg2 = wxString_in_helper(swig_obj[1]);
17727 if (arg2 == NULL) SWIG_fail;
17728 temp2 = true;
17729 }
17730 {
17731 PyThreadState* __tstate = wxPyBeginAllowThreads();
17732 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17733 wxPyEndAllowThreads(__tstate);
17734 if (PyErr_Occurred()) SWIG_fail;
17735 }
17736 {
17737 #if wxUSE_UNICODE
17738 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17739 #else
17740 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17741 #endif
17742 }
17743 {
17744 if (temp1)
17745 delete arg1;
17746 }
17747 {
17748 if (temp2)
17749 delete arg2;
17750 }
17751 return resultobj;
17752 fail:
17753 {
17754 if (temp1)
17755 delete arg1;
17756 }
17757 {
17758 if (temp2)
17759 delete arg2;
17760 }
17761 return NULL;
17762 }
17763
17764
17765 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17766 PyObject *resultobj = 0;
17767 wxString *arg1 = 0 ;
17768 wxString *arg2 = 0 ;
17769 size_t arg3 ;
17770 wxString result;
17771 bool temp1 = false ;
17772 bool temp2 = false ;
17773 size_t val3 ;
17774 int ecode3 = 0 ;
17775
17776 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17777 {
17778 arg1 = wxString_in_helper(swig_obj[0]);
17779 if (arg1 == NULL) SWIG_fail;
17780 temp1 = true;
17781 }
17782 {
17783 arg2 = wxString_in_helper(swig_obj[1]);
17784 if (arg2 == NULL) SWIG_fail;
17785 temp2 = true;
17786 }
17787 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17788 if (!SWIG_IsOK(ecode3)) {
17789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17790 }
17791 arg3 = static_cast< size_t >(val3);
17792 {
17793 PyThreadState* __tstate = wxPyBeginAllowThreads();
17794 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17795 wxPyEndAllowThreads(__tstate);
17796 if (PyErr_Occurred()) SWIG_fail;
17797 }
17798 {
17799 #if wxUSE_UNICODE
17800 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17801 #else
17802 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17803 #endif
17804 }
17805 {
17806 if (temp1)
17807 delete arg1;
17808 }
17809 {
17810 if (temp2)
17811 delete arg2;
17812 }
17813 return resultobj;
17814 fail:
17815 {
17816 if (temp1)
17817 delete arg1;
17818 }
17819 {
17820 if (temp2)
17821 delete arg2;
17822 }
17823 return NULL;
17824 }
17825
17826
17827 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17828 PyObject *resultobj = 0;
17829 wxString *arg1 = 0 ;
17830 wxString *arg2 = 0 ;
17831 size_t arg3 ;
17832 wxString *arg4 = 0 ;
17833 wxString result;
17834 bool temp1 = false ;
17835 bool temp2 = false ;
17836 size_t val3 ;
17837 int ecode3 = 0 ;
17838 bool temp4 = false ;
17839
17840 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17841 {
17842 arg1 = wxString_in_helper(swig_obj[0]);
17843 if (arg1 == NULL) SWIG_fail;
17844 temp1 = true;
17845 }
17846 {
17847 arg2 = wxString_in_helper(swig_obj[1]);
17848 if (arg2 == NULL) SWIG_fail;
17849 temp2 = true;
17850 }
17851 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17852 if (!SWIG_IsOK(ecode3)) {
17853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17854 }
17855 arg3 = static_cast< size_t >(val3);
17856 {
17857 arg4 = wxString_in_helper(swig_obj[3]);
17858 if (arg4 == NULL) SWIG_fail;
17859 temp4 = true;
17860 }
17861 {
17862 PyThreadState* __tstate = wxPyBeginAllowThreads();
17863 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17864 wxPyEndAllowThreads(__tstate);
17865 if (PyErr_Occurred()) SWIG_fail;
17866 }
17867 {
17868 #if wxUSE_UNICODE
17869 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17870 #else
17871 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17872 #endif
17873 }
17874 {
17875 if (temp1)
17876 delete arg1;
17877 }
17878 {
17879 if (temp2)
17880 delete arg2;
17881 }
17882 {
17883 if (temp4)
17884 delete arg4;
17885 }
17886 return resultobj;
17887 fail:
17888 {
17889 if (temp1)
17890 delete arg1;
17891 }
17892 {
17893 if (temp2)
17894 delete arg2;
17895 }
17896 {
17897 if (temp4)
17898 delete arg4;
17899 }
17900 return NULL;
17901 }
17902
17903
17904 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17905 int argc;
17906 PyObject *argv[5];
17907
17908 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17909 --argc;
17910 if (argc == 1) {
17911 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17912 }
17913 if (argc == 2) {
17914 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17915 }
17916 if (argc == 3) {
17917 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17918 }
17919 if (argc == 4) {
17920 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17921 }
17922
17923 fail:
17924 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17925 return NULL;
17926 }
17927
17928
17929 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17930 PyObject *resultobj = 0;
17931 wxEncodingConverter *result = 0 ;
17932
17933 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17934 {
17935 PyThreadState* __tstate = wxPyBeginAllowThreads();
17936 result = (wxEncodingConverter *)new wxEncodingConverter();
17937 wxPyEndAllowThreads(__tstate);
17938 if (PyErr_Occurred()) SWIG_fail;
17939 }
17940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17941 return resultobj;
17942 fail:
17943 return NULL;
17944 }
17945
17946
17947 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17948 PyObject *resultobj = 0;
17949 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17950 void *argp1 = 0 ;
17951 int res1 = 0 ;
17952 PyObject *swig_obj[1] ;
17953
17954 if (!args) SWIG_fail;
17955 swig_obj[0] = args;
17956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17957 if (!SWIG_IsOK(res1)) {
17958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17959 }
17960 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17961 {
17962 PyThreadState* __tstate = wxPyBeginAllowThreads();
17963 delete arg1;
17964
17965 wxPyEndAllowThreads(__tstate);
17966 if (PyErr_Occurred()) SWIG_fail;
17967 }
17968 resultobj = SWIG_Py_Void();
17969 return resultobj;
17970 fail:
17971 return NULL;
17972 }
17973
17974
17975 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17976 PyObject *resultobj = 0;
17977 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17978 wxFontEncoding arg2 ;
17979 wxFontEncoding arg3 ;
17980 int arg4 = (int) wxCONVERT_STRICT ;
17981 bool result;
17982 void *argp1 = 0 ;
17983 int res1 = 0 ;
17984 int val2 ;
17985 int ecode2 = 0 ;
17986 int val3 ;
17987 int ecode3 = 0 ;
17988 int val4 ;
17989 int ecode4 = 0 ;
17990 PyObject * obj0 = 0 ;
17991 PyObject * obj1 = 0 ;
17992 PyObject * obj2 = 0 ;
17993 PyObject * obj3 = 0 ;
17994 char * kwnames[] = {
17995 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17996 };
17997
17998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18000 if (!SWIG_IsOK(res1)) {
18001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18002 }
18003 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18004 ecode2 = SWIG_AsVal_int(obj1, &val2);
18005 if (!SWIG_IsOK(ecode2)) {
18006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18007 }
18008 arg2 = static_cast< wxFontEncoding >(val2);
18009 ecode3 = SWIG_AsVal_int(obj2, &val3);
18010 if (!SWIG_IsOK(ecode3)) {
18011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
18012 }
18013 arg3 = static_cast< wxFontEncoding >(val3);
18014 if (obj3) {
18015 ecode4 = SWIG_AsVal_int(obj3, &val4);
18016 if (!SWIG_IsOK(ecode4)) {
18017 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
18018 }
18019 arg4 = static_cast< int >(val4);
18020 }
18021 {
18022 PyThreadState* __tstate = wxPyBeginAllowThreads();
18023 result = (bool)(arg1)->Init(arg2,arg3,arg4);
18024 wxPyEndAllowThreads(__tstate);
18025 if (PyErr_Occurred()) SWIG_fail;
18026 }
18027 {
18028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18029 }
18030 return resultobj;
18031 fail:
18032 return NULL;
18033 }
18034
18035
18036 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18037 PyObject *resultobj = 0;
18038 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
18039 wxString *arg2 = 0 ;
18040 wxString result;
18041 void *argp1 = 0 ;
18042 int res1 = 0 ;
18043 bool temp2 = false ;
18044 PyObject * obj0 = 0 ;
18045 PyObject * obj1 = 0 ;
18046 char * kwnames[] = {
18047 (char *) "self",(char *) "input", NULL
18048 };
18049
18050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
18051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18052 if (!SWIG_IsOK(res1)) {
18053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18054 }
18055 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18056 {
18057 arg2 = wxString_in_helper(obj1);
18058 if (arg2 == NULL) SWIG_fail;
18059 temp2 = true;
18060 }
18061 {
18062 PyThreadState* __tstate = wxPyBeginAllowThreads();
18063 result = (arg1)->Convert((wxString const &)*arg2);
18064 wxPyEndAllowThreads(__tstate);
18065 if (PyErr_Occurred()) SWIG_fail;
18066 }
18067 {
18068 #if wxUSE_UNICODE
18069 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18070 #else
18071 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18072 #endif
18073 }
18074 {
18075 if (temp2)
18076 delete arg2;
18077 }
18078 return resultobj;
18079 fail:
18080 {
18081 if (temp2)
18082 delete arg2;
18083 }
18084 return NULL;
18085 }
18086
18087
18088 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18089 PyObject *resultobj = 0;
18090 wxFontEncoding arg1 ;
18091 int arg2 = (int) wxPLATFORM_CURRENT ;
18092 wxFontEncodingArray result;
18093 int val1 ;
18094 int ecode1 = 0 ;
18095 int val2 ;
18096 int ecode2 = 0 ;
18097 PyObject * obj0 = 0 ;
18098 PyObject * obj1 = 0 ;
18099 char * kwnames[] = {
18100 (char *) "enc",(char *) "platform", NULL
18101 };
18102
18103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
18104 ecode1 = SWIG_AsVal_int(obj0, &val1);
18105 if (!SWIG_IsOK(ecode1)) {
18106 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18107 }
18108 arg1 = static_cast< wxFontEncoding >(val1);
18109 if (obj1) {
18110 ecode2 = SWIG_AsVal_int(obj1, &val2);
18111 if (!SWIG_IsOK(ecode2)) {
18112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
18113 }
18114 arg2 = static_cast< int >(val2);
18115 }
18116 {
18117 PyThreadState* __tstate = wxPyBeginAllowThreads();
18118 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
18119 wxPyEndAllowThreads(__tstate);
18120 if (PyErr_Occurred()) SWIG_fail;
18121 }
18122 {
18123 resultobj = PyList_New(0);
18124 for (size_t i=0; i < (&result)->GetCount(); i++) {
18125 PyObject* number = PyInt_FromLong((&result)->Item(i));
18126 PyList_Append(resultobj, number);
18127 Py_DECREF(number);
18128 }
18129 }
18130 return resultobj;
18131 fail:
18132 return NULL;
18133 }
18134
18135
18136 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18137 PyObject *resultobj = 0;
18138 wxFontEncoding arg1 ;
18139 wxFontEncodingArray result;
18140 int val1 ;
18141 int ecode1 = 0 ;
18142 PyObject * obj0 = 0 ;
18143 char * kwnames[] = {
18144 (char *) "enc", NULL
18145 };
18146
18147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
18148 ecode1 = SWIG_AsVal_int(obj0, &val1);
18149 if (!SWIG_IsOK(ecode1)) {
18150 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18151 }
18152 arg1 = static_cast< wxFontEncoding >(val1);
18153 {
18154 PyThreadState* __tstate = wxPyBeginAllowThreads();
18155 result = wxEncodingConverter::GetAllEquivalents(arg1);
18156 wxPyEndAllowThreads(__tstate);
18157 if (PyErr_Occurred()) SWIG_fail;
18158 }
18159 {
18160 resultobj = PyList_New(0);
18161 for (size_t i=0; i < (&result)->GetCount(); i++) {
18162 PyObject* number = PyInt_FromLong((&result)->Item(i));
18163 PyList_Append(resultobj, number);
18164 Py_DECREF(number);
18165 }
18166 }
18167 return resultobj;
18168 fail:
18169 return NULL;
18170 }
18171
18172
18173 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18174 PyObject *resultobj = 0;
18175 wxFontEncoding arg1 ;
18176 wxFontEncoding arg2 ;
18177 bool result;
18178 int val1 ;
18179 int ecode1 = 0 ;
18180 int val2 ;
18181 int ecode2 = 0 ;
18182 PyObject * obj0 = 0 ;
18183 PyObject * obj1 = 0 ;
18184 char * kwnames[] = {
18185 (char *) "encIn",(char *) "encOut", NULL
18186 };
18187
18188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
18189 ecode1 = SWIG_AsVal_int(obj0, &val1);
18190 if (!SWIG_IsOK(ecode1)) {
18191 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18192 }
18193 arg1 = static_cast< wxFontEncoding >(val1);
18194 ecode2 = SWIG_AsVal_int(obj1, &val2);
18195 if (!SWIG_IsOK(ecode2)) {
18196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18197 }
18198 arg2 = static_cast< wxFontEncoding >(val2);
18199 {
18200 PyThreadState* __tstate = wxPyBeginAllowThreads();
18201 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
18202 wxPyEndAllowThreads(__tstate);
18203 if (PyErr_Occurred()) SWIG_fail;
18204 }
18205 {
18206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18207 }
18208 return resultobj;
18209 fail:
18210 return NULL;
18211 }
18212
18213
18214 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18215 PyObject *obj;
18216 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18217 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
18218 return SWIG_Py_Void();
18219 }
18220
18221 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18222 return SWIG_Python_InitShadowInstance(args);
18223 }
18224
18225 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18226 PyObject *resultobj = 0;
18227 wxDC *arg1 = (wxDC *) 0 ;
18228 void *argp1 = 0 ;
18229 int res1 = 0 ;
18230 PyObject *swig_obj[1] ;
18231
18232 if (!args) SWIG_fail;
18233 swig_obj[0] = args;
18234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
18235 if (!SWIG_IsOK(res1)) {
18236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
18237 }
18238 arg1 = reinterpret_cast< wxDC * >(argp1);
18239 {
18240 PyThreadState* __tstate = wxPyBeginAllowThreads();
18241 delete arg1;
18242
18243 wxPyEndAllowThreads(__tstate);
18244 if (PyErr_Occurred()) SWIG_fail;
18245 }
18246 resultobj = SWIG_Py_Void();
18247 return resultobj;
18248 fail:
18249 return NULL;
18250 }
18251
18252
18253 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18254 PyObject *resultobj = 0;
18255 wxDC *arg1 = (wxDC *) 0 ;
18256 int arg2 ;
18257 int arg3 ;
18258 wxColour *arg4 = 0 ;
18259 int arg5 = (int) wxFLOOD_SURFACE ;
18260 bool result;
18261 void *argp1 = 0 ;
18262 int res1 = 0 ;
18263 int val2 ;
18264 int ecode2 = 0 ;
18265 int val3 ;
18266 int ecode3 = 0 ;
18267 wxColour temp4 ;
18268 int val5 ;
18269 int ecode5 = 0 ;
18270 PyObject * obj0 = 0 ;
18271 PyObject * obj1 = 0 ;
18272 PyObject * obj2 = 0 ;
18273 PyObject * obj3 = 0 ;
18274 PyObject * obj4 = 0 ;
18275 char * kwnames[] = {
18276 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
18277 };
18278
18279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18281 if (!SWIG_IsOK(res1)) {
18282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
18283 }
18284 arg1 = reinterpret_cast< wxDC * >(argp1);
18285 ecode2 = SWIG_AsVal_int(obj1, &val2);
18286 if (!SWIG_IsOK(ecode2)) {
18287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
18288 }
18289 arg2 = static_cast< int >(val2);
18290 ecode3 = SWIG_AsVal_int(obj2, &val3);
18291 if (!SWIG_IsOK(ecode3)) {
18292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
18293 }
18294 arg3 = static_cast< int >(val3);
18295 {
18296 arg4 = &temp4;
18297 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18298 }
18299 if (obj4) {
18300 ecode5 = SWIG_AsVal_int(obj4, &val5);
18301 if (!SWIG_IsOK(ecode5)) {
18302 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
18303 }
18304 arg5 = static_cast< int >(val5);
18305 }
18306 {
18307 PyThreadState* __tstate = wxPyBeginAllowThreads();
18308 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
18309 wxPyEndAllowThreads(__tstate);
18310 if (PyErr_Occurred()) SWIG_fail;
18311 }
18312 {
18313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18314 }
18315 return resultobj;
18316 fail:
18317 return NULL;
18318 }
18319
18320
18321 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18322 PyObject *resultobj = 0;
18323 wxDC *arg1 = (wxDC *) 0 ;
18324 wxPoint *arg2 = 0 ;
18325 wxColour *arg3 = 0 ;
18326 int arg4 = (int) wxFLOOD_SURFACE ;
18327 bool result;
18328 void *argp1 = 0 ;
18329 int res1 = 0 ;
18330 wxPoint temp2 ;
18331 wxColour temp3 ;
18332 int val4 ;
18333 int ecode4 = 0 ;
18334 PyObject * obj0 = 0 ;
18335 PyObject * obj1 = 0 ;
18336 PyObject * obj2 = 0 ;
18337 PyObject * obj3 = 0 ;
18338 char * kwnames[] = {
18339 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
18340 };
18341
18342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18344 if (!SWIG_IsOK(res1)) {
18345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18346 }
18347 arg1 = reinterpret_cast< wxDC * >(argp1);
18348 {
18349 arg2 = &temp2;
18350 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18351 }
18352 {
18353 arg3 = &temp3;
18354 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18355 }
18356 if (obj3) {
18357 ecode4 = SWIG_AsVal_int(obj3, &val4);
18358 if (!SWIG_IsOK(ecode4)) {
18359 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18360 }
18361 arg4 = static_cast< int >(val4);
18362 }
18363 {
18364 PyThreadState* __tstate = wxPyBeginAllowThreads();
18365 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18366 wxPyEndAllowThreads(__tstate);
18367 if (PyErr_Occurred()) SWIG_fail;
18368 }
18369 {
18370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18371 }
18372 return resultobj;
18373 fail:
18374 return NULL;
18375 }
18376
18377
18378 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18379 PyObject *resultobj = 0;
18380 wxDC *arg1 = (wxDC *) 0 ;
18381 wxRect *arg2 = 0 ;
18382 wxColour *arg3 = 0 ;
18383 wxColour *arg4 = 0 ;
18384 wxPoint *arg5 = 0 ;
18385 void *argp1 = 0 ;
18386 int res1 = 0 ;
18387 wxRect temp2 ;
18388 wxColour temp3 ;
18389 wxColour temp4 ;
18390 wxPoint temp5 ;
18391 PyObject * obj0 = 0 ;
18392 PyObject * obj1 = 0 ;
18393 PyObject * obj2 = 0 ;
18394 PyObject * obj3 = 0 ;
18395 PyObject * obj4 = 0 ;
18396 char * kwnames[] = {
18397 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18398 };
18399
18400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18402 if (!SWIG_IsOK(res1)) {
18403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18404 }
18405 arg1 = reinterpret_cast< wxDC * >(argp1);
18406 {
18407 arg2 = &temp2;
18408 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18409 }
18410 {
18411 arg3 = &temp3;
18412 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18413 }
18414 {
18415 arg4 = &temp4;
18416 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18417 }
18418 {
18419 arg5 = &temp5;
18420 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18421 }
18422 {
18423 PyThreadState* __tstate = wxPyBeginAllowThreads();
18424 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18425 wxPyEndAllowThreads(__tstate);
18426 if (PyErr_Occurred()) SWIG_fail;
18427 }
18428 resultobj = SWIG_Py_Void();
18429 return resultobj;
18430 fail:
18431 return NULL;
18432 }
18433
18434
18435 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18436 PyObject *resultobj = 0;
18437 wxDC *arg1 = (wxDC *) 0 ;
18438 wxRect *arg2 = 0 ;
18439 wxColour *arg3 = 0 ;
18440 wxColour *arg4 = 0 ;
18441 wxDirection arg5 = (wxDirection) wxEAST ;
18442 void *argp1 = 0 ;
18443 int res1 = 0 ;
18444 wxRect temp2 ;
18445 wxColour temp3 ;
18446 wxColour temp4 ;
18447 int val5 ;
18448 int ecode5 = 0 ;
18449 PyObject * obj0 = 0 ;
18450 PyObject * obj1 = 0 ;
18451 PyObject * obj2 = 0 ;
18452 PyObject * obj3 = 0 ;
18453 PyObject * obj4 = 0 ;
18454 char * kwnames[] = {
18455 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18456 };
18457
18458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18460 if (!SWIG_IsOK(res1)) {
18461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18462 }
18463 arg1 = reinterpret_cast< wxDC * >(argp1);
18464 {
18465 arg2 = &temp2;
18466 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18467 }
18468 {
18469 arg3 = &temp3;
18470 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18471 }
18472 {
18473 arg4 = &temp4;
18474 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18475 }
18476 if (obj4) {
18477 ecode5 = SWIG_AsVal_int(obj4, &val5);
18478 if (!SWIG_IsOK(ecode5)) {
18479 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18480 }
18481 arg5 = static_cast< wxDirection >(val5);
18482 }
18483 {
18484 PyThreadState* __tstate = wxPyBeginAllowThreads();
18485 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18486 wxPyEndAllowThreads(__tstate);
18487 if (PyErr_Occurred()) SWIG_fail;
18488 }
18489 resultobj = SWIG_Py_Void();
18490 return resultobj;
18491 fail:
18492 return NULL;
18493 }
18494
18495
18496 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18497 PyObject *resultobj = 0;
18498 wxDC *arg1 = (wxDC *) 0 ;
18499 int arg2 ;
18500 int arg3 ;
18501 wxColour result;
18502 void *argp1 = 0 ;
18503 int res1 = 0 ;
18504 int val2 ;
18505 int ecode2 = 0 ;
18506 int val3 ;
18507 int ecode3 = 0 ;
18508 PyObject * obj0 = 0 ;
18509 PyObject * obj1 = 0 ;
18510 PyObject * obj2 = 0 ;
18511 char * kwnames[] = {
18512 (char *) "self",(char *) "x",(char *) "y", NULL
18513 };
18514
18515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18517 if (!SWIG_IsOK(res1)) {
18518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18519 }
18520 arg1 = reinterpret_cast< wxDC * >(argp1);
18521 ecode2 = SWIG_AsVal_int(obj1, &val2);
18522 if (!SWIG_IsOK(ecode2)) {
18523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18524 }
18525 arg2 = static_cast< int >(val2);
18526 ecode3 = SWIG_AsVal_int(obj2, &val3);
18527 if (!SWIG_IsOK(ecode3)) {
18528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18529 }
18530 arg3 = static_cast< int >(val3);
18531 {
18532 PyThreadState* __tstate = wxPyBeginAllowThreads();
18533 result = wxDC_GetPixel(arg1,arg2,arg3);
18534 wxPyEndAllowThreads(__tstate);
18535 if (PyErr_Occurred()) SWIG_fail;
18536 }
18537 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18538 return resultobj;
18539 fail:
18540 return NULL;
18541 }
18542
18543
18544 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18545 PyObject *resultobj = 0;
18546 wxDC *arg1 = (wxDC *) 0 ;
18547 wxPoint *arg2 = 0 ;
18548 wxColour result;
18549 void *argp1 = 0 ;
18550 int res1 = 0 ;
18551 wxPoint temp2 ;
18552 PyObject * obj0 = 0 ;
18553 PyObject * obj1 = 0 ;
18554 char * kwnames[] = {
18555 (char *) "self",(char *) "pt", NULL
18556 };
18557
18558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18560 if (!SWIG_IsOK(res1)) {
18561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18562 }
18563 arg1 = reinterpret_cast< wxDC * >(argp1);
18564 {
18565 arg2 = &temp2;
18566 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18567 }
18568 {
18569 PyThreadState* __tstate = wxPyBeginAllowThreads();
18570 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18571 wxPyEndAllowThreads(__tstate);
18572 if (PyErr_Occurred()) SWIG_fail;
18573 }
18574 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18575 return resultobj;
18576 fail:
18577 return NULL;
18578 }
18579
18580
18581 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18582 PyObject *resultobj = 0;
18583 wxDC *arg1 = (wxDC *) 0 ;
18584 int arg2 ;
18585 int arg3 ;
18586 int arg4 ;
18587 int arg5 ;
18588 void *argp1 = 0 ;
18589 int res1 = 0 ;
18590 int val2 ;
18591 int ecode2 = 0 ;
18592 int val3 ;
18593 int ecode3 = 0 ;
18594 int val4 ;
18595 int ecode4 = 0 ;
18596 int val5 ;
18597 int ecode5 = 0 ;
18598 PyObject * obj0 = 0 ;
18599 PyObject * obj1 = 0 ;
18600 PyObject * obj2 = 0 ;
18601 PyObject * obj3 = 0 ;
18602 PyObject * obj4 = 0 ;
18603 char * kwnames[] = {
18604 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18605 };
18606
18607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18609 if (!SWIG_IsOK(res1)) {
18610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18611 }
18612 arg1 = reinterpret_cast< wxDC * >(argp1);
18613 ecode2 = SWIG_AsVal_int(obj1, &val2);
18614 if (!SWIG_IsOK(ecode2)) {
18615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18616 }
18617 arg2 = static_cast< int >(val2);
18618 ecode3 = SWIG_AsVal_int(obj2, &val3);
18619 if (!SWIG_IsOK(ecode3)) {
18620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18621 }
18622 arg3 = static_cast< int >(val3);
18623 ecode4 = SWIG_AsVal_int(obj3, &val4);
18624 if (!SWIG_IsOK(ecode4)) {
18625 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18626 }
18627 arg4 = static_cast< int >(val4);
18628 ecode5 = SWIG_AsVal_int(obj4, &val5);
18629 if (!SWIG_IsOK(ecode5)) {
18630 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18631 }
18632 arg5 = static_cast< int >(val5);
18633 {
18634 PyThreadState* __tstate = wxPyBeginAllowThreads();
18635 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18636 wxPyEndAllowThreads(__tstate);
18637 if (PyErr_Occurred()) SWIG_fail;
18638 }
18639 resultobj = SWIG_Py_Void();
18640 return resultobj;
18641 fail:
18642 return NULL;
18643 }
18644
18645
18646 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18647 PyObject *resultobj = 0;
18648 wxDC *arg1 = (wxDC *) 0 ;
18649 wxPoint *arg2 = 0 ;
18650 wxPoint *arg3 = 0 ;
18651 void *argp1 = 0 ;
18652 int res1 = 0 ;
18653 wxPoint temp2 ;
18654 wxPoint temp3 ;
18655 PyObject * obj0 = 0 ;
18656 PyObject * obj1 = 0 ;
18657 PyObject * obj2 = 0 ;
18658 char * kwnames[] = {
18659 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18660 };
18661
18662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18664 if (!SWIG_IsOK(res1)) {
18665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18666 }
18667 arg1 = reinterpret_cast< wxDC * >(argp1);
18668 {
18669 arg2 = &temp2;
18670 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18671 }
18672 {
18673 arg3 = &temp3;
18674 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18675 }
18676 {
18677 PyThreadState* __tstate = wxPyBeginAllowThreads();
18678 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18679 wxPyEndAllowThreads(__tstate);
18680 if (PyErr_Occurred()) SWIG_fail;
18681 }
18682 resultobj = SWIG_Py_Void();
18683 return resultobj;
18684 fail:
18685 return NULL;
18686 }
18687
18688
18689 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18690 PyObject *resultobj = 0;
18691 wxDC *arg1 = (wxDC *) 0 ;
18692 int arg2 ;
18693 int arg3 ;
18694 void *argp1 = 0 ;
18695 int res1 = 0 ;
18696 int val2 ;
18697 int ecode2 = 0 ;
18698 int val3 ;
18699 int ecode3 = 0 ;
18700 PyObject * obj0 = 0 ;
18701 PyObject * obj1 = 0 ;
18702 PyObject * obj2 = 0 ;
18703 char * kwnames[] = {
18704 (char *) "self",(char *) "x",(char *) "y", NULL
18705 };
18706
18707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18709 if (!SWIG_IsOK(res1)) {
18710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18711 }
18712 arg1 = reinterpret_cast< wxDC * >(argp1);
18713 ecode2 = SWIG_AsVal_int(obj1, &val2);
18714 if (!SWIG_IsOK(ecode2)) {
18715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18716 }
18717 arg2 = static_cast< int >(val2);
18718 ecode3 = SWIG_AsVal_int(obj2, &val3);
18719 if (!SWIG_IsOK(ecode3)) {
18720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18721 }
18722 arg3 = static_cast< int >(val3);
18723 {
18724 PyThreadState* __tstate = wxPyBeginAllowThreads();
18725 (arg1)->CrossHair(arg2,arg3);
18726 wxPyEndAllowThreads(__tstate);
18727 if (PyErr_Occurred()) SWIG_fail;
18728 }
18729 resultobj = SWIG_Py_Void();
18730 return resultobj;
18731 fail:
18732 return NULL;
18733 }
18734
18735
18736 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18737 PyObject *resultobj = 0;
18738 wxDC *arg1 = (wxDC *) 0 ;
18739 wxPoint *arg2 = 0 ;
18740 void *argp1 = 0 ;
18741 int res1 = 0 ;
18742 wxPoint temp2 ;
18743 PyObject * obj0 = 0 ;
18744 PyObject * obj1 = 0 ;
18745 char * kwnames[] = {
18746 (char *) "self",(char *) "pt", NULL
18747 };
18748
18749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18751 if (!SWIG_IsOK(res1)) {
18752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18753 }
18754 arg1 = reinterpret_cast< wxDC * >(argp1);
18755 {
18756 arg2 = &temp2;
18757 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18758 }
18759 {
18760 PyThreadState* __tstate = wxPyBeginAllowThreads();
18761 (arg1)->CrossHair((wxPoint const &)*arg2);
18762 wxPyEndAllowThreads(__tstate);
18763 if (PyErr_Occurred()) SWIG_fail;
18764 }
18765 resultobj = SWIG_Py_Void();
18766 return resultobj;
18767 fail:
18768 return NULL;
18769 }
18770
18771
18772 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18773 PyObject *resultobj = 0;
18774 wxDC *arg1 = (wxDC *) 0 ;
18775 int arg2 ;
18776 int arg3 ;
18777 int arg4 ;
18778 int arg5 ;
18779 int arg6 ;
18780 int arg7 ;
18781 void *argp1 = 0 ;
18782 int res1 = 0 ;
18783 int val2 ;
18784 int ecode2 = 0 ;
18785 int val3 ;
18786 int ecode3 = 0 ;
18787 int val4 ;
18788 int ecode4 = 0 ;
18789 int val5 ;
18790 int ecode5 = 0 ;
18791 int val6 ;
18792 int ecode6 = 0 ;
18793 int val7 ;
18794 int ecode7 = 0 ;
18795 PyObject * obj0 = 0 ;
18796 PyObject * obj1 = 0 ;
18797 PyObject * obj2 = 0 ;
18798 PyObject * obj3 = 0 ;
18799 PyObject * obj4 = 0 ;
18800 PyObject * obj5 = 0 ;
18801 PyObject * obj6 = 0 ;
18802 char * kwnames[] = {
18803 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18804 };
18805
18806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18808 if (!SWIG_IsOK(res1)) {
18809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18810 }
18811 arg1 = reinterpret_cast< wxDC * >(argp1);
18812 ecode2 = SWIG_AsVal_int(obj1, &val2);
18813 if (!SWIG_IsOK(ecode2)) {
18814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18815 }
18816 arg2 = static_cast< int >(val2);
18817 ecode3 = SWIG_AsVal_int(obj2, &val3);
18818 if (!SWIG_IsOK(ecode3)) {
18819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18820 }
18821 arg3 = static_cast< int >(val3);
18822 ecode4 = SWIG_AsVal_int(obj3, &val4);
18823 if (!SWIG_IsOK(ecode4)) {
18824 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18825 }
18826 arg4 = static_cast< int >(val4);
18827 ecode5 = SWIG_AsVal_int(obj4, &val5);
18828 if (!SWIG_IsOK(ecode5)) {
18829 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18830 }
18831 arg5 = static_cast< int >(val5);
18832 ecode6 = SWIG_AsVal_int(obj5, &val6);
18833 if (!SWIG_IsOK(ecode6)) {
18834 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18835 }
18836 arg6 = static_cast< int >(val6);
18837 ecode7 = SWIG_AsVal_int(obj6, &val7);
18838 if (!SWIG_IsOK(ecode7)) {
18839 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18840 }
18841 arg7 = static_cast< int >(val7);
18842 {
18843 PyThreadState* __tstate = wxPyBeginAllowThreads();
18844 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18845 wxPyEndAllowThreads(__tstate);
18846 if (PyErr_Occurred()) SWIG_fail;
18847 }
18848 resultobj = SWIG_Py_Void();
18849 return resultobj;
18850 fail:
18851 return NULL;
18852 }
18853
18854
18855 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18856 PyObject *resultobj = 0;
18857 wxDC *arg1 = (wxDC *) 0 ;
18858 wxPoint *arg2 = 0 ;
18859 wxPoint *arg3 = 0 ;
18860 wxPoint *arg4 = 0 ;
18861 void *argp1 = 0 ;
18862 int res1 = 0 ;
18863 wxPoint temp2 ;
18864 wxPoint temp3 ;
18865 wxPoint temp4 ;
18866 PyObject * obj0 = 0 ;
18867 PyObject * obj1 = 0 ;
18868 PyObject * obj2 = 0 ;
18869 PyObject * obj3 = 0 ;
18870 char * kwnames[] = {
18871 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18872 };
18873
18874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18876 if (!SWIG_IsOK(res1)) {
18877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18878 }
18879 arg1 = reinterpret_cast< wxDC * >(argp1);
18880 {
18881 arg2 = &temp2;
18882 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18883 }
18884 {
18885 arg3 = &temp3;
18886 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18887 }
18888 {
18889 arg4 = &temp4;
18890 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18891 }
18892 {
18893 PyThreadState* __tstate = wxPyBeginAllowThreads();
18894 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18895 wxPyEndAllowThreads(__tstate);
18896 if (PyErr_Occurred()) SWIG_fail;
18897 }
18898 resultobj = SWIG_Py_Void();
18899 return resultobj;
18900 fail:
18901 return NULL;
18902 }
18903
18904
18905 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18906 PyObject *resultobj = 0;
18907 wxDC *arg1 = (wxDC *) 0 ;
18908 int arg2 ;
18909 int arg3 ;
18910 int arg4 ;
18911 int arg5 ;
18912 void *argp1 = 0 ;
18913 int res1 = 0 ;
18914 int val2 ;
18915 int ecode2 = 0 ;
18916 int val3 ;
18917 int ecode3 = 0 ;
18918 int val4 ;
18919 int ecode4 = 0 ;
18920 int val5 ;
18921 int ecode5 = 0 ;
18922 PyObject * obj0 = 0 ;
18923 PyObject * obj1 = 0 ;
18924 PyObject * obj2 = 0 ;
18925 PyObject * obj3 = 0 ;
18926 PyObject * obj4 = 0 ;
18927 char * kwnames[] = {
18928 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18929 };
18930
18931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18933 if (!SWIG_IsOK(res1)) {
18934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18935 }
18936 arg1 = reinterpret_cast< wxDC * >(argp1);
18937 ecode2 = SWIG_AsVal_int(obj1, &val2);
18938 if (!SWIG_IsOK(ecode2)) {
18939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18940 }
18941 arg2 = static_cast< int >(val2);
18942 ecode3 = SWIG_AsVal_int(obj2, &val3);
18943 if (!SWIG_IsOK(ecode3)) {
18944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18945 }
18946 arg3 = static_cast< int >(val3);
18947 ecode4 = SWIG_AsVal_int(obj3, &val4);
18948 if (!SWIG_IsOK(ecode4)) {
18949 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18950 }
18951 arg4 = static_cast< int >(val4);
18952 ecode5 = SWIG_AsVal_int(obj4, &val5);
18953 if (!SWIG_IsOK(ecode5)) {
18954 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18955 }
18956 arg5 = static_cast< int >(val5);
18957 {
18958 PyThreadState* __tstate = wxPyBeginAllowThreads();
18959 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18960 wxPyEndAllowThreads(__tstate);
18961 if (PyErr_Occurred()) SWIG_fail;
18962 }
18963 resultobj = SWIG_Py_Void();
18964 return resultobj;
18965 fail:
18966 return NULL;
18967 }
18968
18969
18970 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18971 PyObject *resultobj = 0;
18972 wxDC *arg1 = (wxDC *) 0 ;
18973 wxRect *arg2 = 0 ;
18974 void *argp1 = 0 ;
18975 int res1 = 0 ;
18976 wxRect temp2 ;
18977 PyObject * obj0 = 0 ;
18978 PyObject * obj1 = 0 ;
18979 char * kwnames[] = {
18980 (char *) "self",(char *) "rect", NULL
18981 };
18982
18983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18985 if (!SWIG_IsOK(res1)) {
18986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18987 }
18988 arg1 = reinterpret_cast< wxDC * >(argp1);
18989 {
18990 arg2 = &temp2;
18991 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18992 }
18993 {
18994 PyThreadState* __tstate = wxPyBeginAllowThreads();
18995 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18996 wxPyEndAllowThreads(__tstate);
18997 if (PyErr_Occurred()) SWIG_fail;
18998 }
18999 resultobj = SWIG_Py_Void();
19000 return resultobj;
19001 fail:
19002 return NULL;
19003 }
19004
19005
19006 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19007 PyObject *resultobj = 0;
19008 wxDC *arg1 = (wxDC *) 0 ;
19009 int arg2 ;
19010 int arg3 ;
19011 int arg4 ;
19012 int arg5 ;
19013 double arg6 ;
19014 double arg7 ;
19015 void *argp1 = 0 ;
19016 int res1 = 0 ;
19017 int val2 ;
19018 int ecode2 = 0 ;
19019 int val3 ;
19020 int ecode3 = 0 ;
19021 int val4 ;
19022 int ecode4 = 0 ;
19023 int val5 ;
19024 int ecode5 = 0 ;
19025 double val6 ;
19026 int ecode6 = 0 ;
19027 double val7 ;
19028 int ecode7 = 0 ;
19029 PyObject * obj0 = 0 ;
19030 PyObject * obj1 = 0 ;
19031 PyObject * obj2 = 0 ;
19032 PyObject * obj3 = 0 ;
19033 PyObject * obj4 = 0 ;
19034 PyObject * obj5 = 0 ;
19035 PyObject * obj6 = 0 ;
19036 char * kwnames[] = {
19037 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
19038 };
19039
19040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
19041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19042 if (!SWIG_IsOK(res1)) {
19043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
19044 }
19045 arg1 = reinterpret_cast< wxDC * >(argp1);
19046 ecode2 = SWIG_AsVal_int(obj1, &val2);
19047 if (!SWIG_IsOK(ecode2)) {
19048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
19049 }
19050 arg2 = static_cast< int >(val2);
19051 ecode3 = SWIG_AsVal_int(obj2, &val3);
19052 if (!SWIG_IsOK(ecode3)) {
19053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
19054 }
19055 arg3 = static_cast< int >(val3);
19056 ecode4 = SWIG_AsVal_int(obj3, &val4);
19057 if (!SWIG_IsOK(ecode4)) {
19058 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
19059 }
19060 arg4 = static_cast< int >(val4);
19061 ecode5 = SWIG_AsVal_int(obj4, &val5);
19062 if (!SWIG_IsOK(ecode5)) {
19063 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
19064 }
19065 arg5 = static_cast< int >(val5);
19066 ecode6 = SWIG_AsVal_double(obj5, &val6);
19067 if (!SWIG_IsOK(ecode6)) {
19068 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
19069 }
19070 arg6 = static_cast< double >(val6);
19071 ecode7 = SWIG_AsVal_double(obj6, &val7);
19072 if (!SWIG_IsOK(ecode7)) {
19073 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
19074 }
19075 arg7 = static_cast< double >(val7);
19076 {
19077 PyThreadState* __tstate = wxPyBeginAllowThreads();
19078 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
19079 wxPyEndAllowThreads(__tstate);
19080 if (PyErr_Occurred()) SWIG_fail;
19081 }
19082 resultobj = SWIG_Py_Void();
19083 return resultobj;
19084 fail:
19085 return NULL;
19086 }
19087
19088
19089 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19090 PyObject *resultobj = 0;
19091 wxDC *arg1 = (wxDC *) 0 ;
19092 wxPoint *arg2 = 0 ;
19093 wxSize *arg3 = 0 ;
19094 double arg4 ;
19095 double arg5 ;
19096 void *argp1 = 0 ;
19097 int res1 = 0 ;
19098 wxPoint temp2 ;
19099 wxSize temp3 ;
19100 double val4 ;
19101 int ecode4 = 0 ;
19102 double val5 ;
19103 int ecode5 = 0 ;
19104 PyObject * obj0 = 0 ;
19105 PyObject * obj1 = 0 ;
19106 PyObject * obj2 = 0 ;
19107 PyObject * obj3 = 0 ;
19108 PyObject * obj4 = 0 ;
19109 char * kwnames[] = {
19110 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
19111 };
19112
19113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19115 if (!SWIG_IsOK(res1)) {
19116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19117 }
19118 arg1 = reinterpret_cast< wxDC * >(argp1);
19119 {
19120 arg2 = &temp2;
19121 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19122 }
19123 {
19124 arg3 = &temp3;
19125 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19126 }
19127 ecode4 = SWIG_AsVal_double(obj3, &val4);
19128 if (!SWIG_IsOK(ecode4)) {
19129 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
19130 }
19131 arg4 = static_cast< double >(val4);
19132 ecode5 = SWIG_AsVal_double(obj4, &val5);
19133 if (!SWIG_IsOK(ecode5)) {
19134 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
19135 }
19136 arg5 = static_cast< double >(val5);
19137 {
19138 PyThreadState* __tstate = wxPyBeginAllowThreads();
19139 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
19140 wxPyEndAllowThreads(__tstate);
19141 if (PyErr_Occurred()) SWIG_fail;
19142 }
19143 resultobj = SWIG_Py_Void();
19144 return resultobj;
19145 fail:
19146 return NULL;
19147 }
19148
19149
19150 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19151 PyObject *resultobj = 0;
19152 wxDC *arg1 = (wxDC *) 0 ;
19153 int arg2 ;
19154 int arg3 ;
19155 void *argp1 = 0 ;
19156 int res1 = 0 ;
19157 int val2 ;
19158 int ecode2 = 0 ;
19159 int val3 ;
19160 int ecode3 = 0 ;
19161 PyObject * obj0 = 0 ;
19162 PyObject * obj1 = 0 ;
19163 PyObject * obj2 = 0 ;
19164 char * kwnames[] = {
19165 (char *) "self",(char *) "x",(char *) "y", NULL
19166 };
19167
19168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19170 if (!SWIG_IsOK(res1)) {
19171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19172 }
19173 arg1 = reinterpret_cast< wxDC * >(argp1);
19174 ecode2 = SWIG_AsVal_int(obj1, &val2);
19175 if (!SWIG_IsOK(ecode2)) {
19176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
19177 }
19178 arg2 = static_cast< int >(val2);
19179 ecode3 = SWIG_AsVal_int(obj2, &val3);
19180 if (!SWIG_IsOK(ecode3)) {
19181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
19182 }
19183 arg3 = static_cast< int >(val3);
19184 {
19185 PyThreadState* __tstate = wxPyBeginAllowThreads();
19186 (arg1)->DrawPoint(arg2,arg3);
19187 wxPyEndAllowThreads(__tstate);
19188 if (PyErr_Occurred()) SWIG_fail;
19189 }
19190 resultobj = SWIG_Py_Void();
19191 return resultobj;
19192 fail:
19193 return NULL;
19194 }
19195
19196
19197 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19198 PyObject *resultobj = 0;
19199 wxDC *arg1 = (wxDC *) 0 ;
19200 wxPoint *arg2 = 0 ;
19201 void *argp1 = 0 ;
19202 int res1 = 0 ;
19203 wxPoint temp2 ;
19204 PyObject * obj0 = 0 ;
19205 PyObject * obj1 = 0 ;
19206 char * kwnames[] = {
19207 (char *) "self",(char *) "pt", NULL
19208 };
19209
19210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19212 if (!SWIG_IsOK(res1)) {
19213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19214 }
19215 arg1 = reinterpret_cast< wxDC * >(argp1);
19216 {
19217 arg2 = &temp2;
19218 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19219 }
19220 {
19221 PyThreadState* __tstate = wxPyBeginAllowThreads();
19222 (arg1)->DrawPoint((wxPoint const &)*arg2);
19223 wxPyEndAllowThreads(__tstate);
19224 if (PyErr_Occurred()) SWIG_fail;
19225 }
19226 resultobj = SWIG_Py_Void();
19227 return resultobj;
19228 fail:
19229 return NULL;
19230 }
19231
19232
19233 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19234 PyObject *resultobj = 0;
19235 wxDC *arg1 = (wxDC *) 0 ;
19236 int arg2 ;
19237 int arg3 ;
19238 int arg4 ;
19239 int arg5 ;
19240 void *argp1 = 0 ;
19241 int res1 = 0 ;
19242 int val2 ;
19243 int ecode2 = 0 ;
19244 int val3 ;
19245 int ecode3 = 0 ;
19246 int val4 ;
19247 int ecode4 = 0 ;
19248 int val5 ;
19249 int ecode5 = 0 ;
19250 PyObject * obj0 = 0 ;
19251 PyObject * obj1 = 0 ;
19252 PyObject * obj2 = 0 ;
19253 PyObject * obj3 = 0 ;
19254 PyObject * obj4 = 0 ;
19255 char * kwnames[] = {
19256 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19257 };
19258
19259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19261 if (!SWIG_IsOK(res1)) {
19262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19263 }
19264 arg1 = reinterpret_cast< wxDC * >(argp1);
19265 ecode2 = SWIG_AsVal_int(obj1, &val2);
19266 if (!SWIG_IsOK(ecode2)) {
19267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
19268 }
19269 arg2 = static_cast< int >(val2);
19270 ecode3 = SWIG_AsVal_int(obj2, &val3);
19271 if (!SWIG_IsOK(ecode3)) {
19272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
19273 }
19274 arg3 = static_cast< int >(val3);
19275 ecode4 = SWIG_AsVal_int(obj3, &val4);
19276 if (!SWIG_IsOK(ecode4)) {
19277 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
19278 }
19279 arg4 = static_cast< int >(val4);
19280 ecode5 = SWIG_AsVal_int(obj4, &val5);
19281 if (!SWIG_IsOK(ecode5)) {
19282 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
19283 }
19284 arg5 = static_cast< int >(val5);
19285 {
19286 PyThreadState* __tstate = wxPyBeginAllowThreads();
19287 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
19288 wxPyEndAllowThreads(__tstate);
19289 if (PyErr_Occurred()) SWIG_fail;
19290 }
19291 resultobj = SWIG_Py_Void();
19292 return resultobj;
19293 fail:
19294 return NULL;
19295 }
19296
19297
19298 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19299 PyObject *resultobj = 0;
19300 wxDC *arg1 = (wxDC *) 0 ;
19301 wxRect *arg2 = 0 ;
19302 void *argp1 = 0 ;
19303 int res1 = 0 ;
19304 wxRect temp2 ;
19305 PyObject * obj0 = 0 ;
19306 PyObject * obj1 = 0 ;
19307 char * kwnames[] = {
19308 (char *) "self",(char *) "rect", NULL
19309 };
19310
19311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
19312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19313 if (!SWIG_IsOK(res1)) {
19314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19315 }
19316 arg1 = reinterpret_cast< wxDC * >(argp1);
19317 {
19318 arg2 = &temp2;
19319 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19320 }
19321 {
19322 PyThreadState* __tstate = wxPyBeginAllowThreads();
19323 (arg1)->DrawRectangle((wxRect const &)*arg2);
19324 wxPyEndAllowThreads(__tstate);
19325 if (PyErr_Occurred()) SWIG_fail;
19326 }
19327 resultobj = SWIG_Py_Void();
19328 return resultobj;
19329 fail:
19330 return NULL;
19331 }
19332
19333
19334 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19335 PyObject *resultobj = 0;
19336 wxDC *arg1 = (wxDC *) 0 ;
19337 wxPoint *arg2 = 0 ;
19338 wxSize *arg3 = 0 ;
19339 void *argp1 = 0 ;
19340 int res1 = 0 ;
19341 wxPoint temp2 ;
19342 wxSize temp3 ;
19343 PyObject * obj0 = 0 ;
19344 PyObject * obj1 = 0 ;
19345 PyObject * obj2 = 0 ;
19346 char * kwnames[] = {
19347 (char *) "self",(char *) "pt",(char *) "sz", NULL
19348 };
19349
19350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19352 if (!SWIG_IsOK(res1)) {
19353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19354 }
19355 arg1 = reinterpret_cast< wxDC * >(argp1);
19356 {
19357 arg2 = &temp2;
19358 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19359 }
19360 {
19361 arg3 = &temp3;
19362 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19363 }
19364 {
19365 PyThreadState* __tstate = wxPyBeginAllowThreads();
19366 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19367 wxPyEndAllowThreads(__tstate);
19368 if (PyErr_Occurred()) SWIG_fail;
19369 }
19370 resultobj = SWIG_Py_Void();
19371 return resultobj;
19372 fail:
19373 return NULL;
19374 }
19375
19376
19377 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19378 PyObject *resultobj = 0;
19379 wxDC *arg1 = (wxDC *) 0 ;
19380 int arg2 ;
19381 int arg3 ;
19382 int arg4 ;
19383 int arg5 ;
19384 double arg6 ;
19385 void *argp1 = 0 ;
19386 int res1 = 0 ;
19387 int val2 ;
19388 int ecode2 = 0 ;
19389 int val3 ;
19390 int ecode3 = 0 ;
19391 int val4 ;
19392 int ecode4 = 0 ;
19393 int val5 ;
19394 int ecode5 = 0 ;
19395 double val6 ;
19396 int ecode6 = 0 ;
19397 PyObject * obj0 = 0 ;
19398 PyObject * obj1 = 0 ;
19399 PyObject * obj2 = 0 ;
19400 PyObject * obj3 = 0 ;
19401 PyObject * obj4 = 0 ;
19402 PyObject * obj5 = 0 ;
19403 char * kwnames[] = {
19404 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19405 };
19406
19407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19409 if (!SWIG_IsOK(res1)) {
19410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19411 }
19412 arg1 = reinterpret_cast< wxDC * >(argp1);
19413 ecode2 = SWIG_AsVal_int(obj1, &val2);
19414 if (!SWIG_IsOK(ecode2)) {
19415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19416 }
19417 arg2 = static_cast< int >(val2);
19418 ecode3 = SWIG_AsVal_int(obj2, &val3);
19419 if (!SWIG_IsOK(ecode3)) {
19420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19421 }
19422 arg3 = static_cast< int >(val3);
19423 ecode4 = SWIG_AsVal_int(obj3, &val4);
19424 if (!SWIG_IsOK(ecode4)) {
19425 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19426 }
19427 arg4 = static_cast< int >(val4);
19428 ecode5 = SWIG_AsVal_int(obj4, &val5);
19429 if (!SWIG_IsOK(ecode5)) {
19430 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19431 }
19432 arg5 = static_cast< int >(val5);
19433 ecode6 = SWIG_AsVal_double(obj5, &val6);
19434 if (!SWIG_IsOK(ecode6)) {
19435 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19436 }
19437 arg6 = static_cast< double >(val6);
19438 {
19439 PyThreadState* __tstate = wxPyBeginAllowThreads();
19440 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19441 wxPyEndAllowThreads(__tstate);
19442 if (PyErr_Occurred()) SWIG_fail;
19443 }
19444 resultobj = SWIG_Py_Void();
19445 return resultobj;
19446 fail:
19447 return NULL;
19448 }
19449
19450
19451 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19452 PyObject *resultobj = 0;
19453 wxDC *arg1 = (wxDC *) 0 ;
19454 wxRect *arg2 = 0 ;
19455 double arg3 ;
19456 void *argp1 = 0 ;
19457 int res1 = 0 ;
19458 wxRect temp2 ;
19459 double val3 ;
19460 int ecode3 = 0 ;
19461 PyObject * obj0 = 0 ;
19462 PyObject * obj1 = 0 ;
19463 PyObject * obj2 = 0 ;
19464 char * kwnames[] = {
19465 (char *) "self",(char *) "r",(char *) "radius", NULL
19466 };
19467
19468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19470 if (!SWIG_IsOK(res1)) {
19471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19472 }
19473 arg1 = reinterpret_cast< wxDC * >(argp1);
19474 {
19475 arg2 = &temp2;
19476 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19477 }
19478 ecode3 = SWIG_AsVal_double(obj2, &val3);
19479 if (!SWIG_IsOK(ecode3)) {
19480 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19481 }
19482 arg3 = static_cast< double >(val3);
19483 {
19484 PyThreadState* __tstate = wxPyBeginAllowThreads();
19485 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19486 wxPyEndAllowThreads(__tstate);
19487 if (PyErr_Occurred()) SWIG_fail;
19488 }
19489 resultobj = SWIG_Py_Void();
19490 return resultobj;
19491 fail:
19492 return NULL;
19493 }
19494
19495
19496 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19497 PyObject *resultobj = 0;
19498 wxDC *arg1 = (wxDC *) 0 ;
19499 wxPoint *arg2 = 0 ;
19500 wxSize *arg3 = 0 ;
19501 double arg4 ;
19502 void *argp1 = 0 ;
19503 int res1 = 0 ;
19504 wxPoint temp2 ;
19505 wxSize temp3 ;
19506 double val4 ;
19507 int ecode4 = 0 ;
19508 PyObject * obj0 = 0 ;
19509 PyObject * obj1 = 0 ;
19510 PyObject * obj2 = 0 ;
19511 PyObject * obj3 = 0 ;
19512 char * kwnames[] = {
19513 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19514 };
19515
19516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19518 if (!SWIG_IsOK(res1)) {
19519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19520 }
19521 arg1 = reinterpret_cast< wxDC * >(argp1);
19522 {
19523 arg2 = &temp2;
19524 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19525 }
19526 {
19527 arg3 = &temp3;
19528 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19529 }
19530 ecode4 = SWIG_AsVal_double(obj3, &val4);
19531 if (!SWIG_IsOK(ecode4)) {
19532 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19533 }
19534 arg4 = static_cast< double >(val4);
19535 {
19536 PyThreadState* __tstate = wxPyBeginAllowThreads();
19537 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19538 wxPyEndAllowThreads(__tstate);
19539 if (PyErr_Occurred()) SWIG_fail;
19540 }
19541 resultobj = SWIG_Py_Void();
19542 return resultobj;
19543 fail:
19544 return NULL;
19545 }
19546
19547
19548 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19549 PyObject *resultobj = 0;
19550 wxDC *arg1 = (wxDC *) 0 ;
19551 int arg2 ;
19552 int arg3 ;
19553 int arg4 ;
19554 void *argp1 = 0 ;
19555 int res1 = 0 ;
19556 int val2 ;
19557 int ecode2 = 0 ;
19558 int val3 ;
19559 int ecode3 = 0 ;
19560 int val4 ;
19561 int ecode4 = 0 ;
19562 PyObject * obj0 = 0 ;
19563 PyObject * obj1 = 0 ;
19564 PyObject * obj2 = 0 ;
19565 PyObject * obj3 = 0 ;
19566 char * kwnames[] = {
19567 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19568 };
19569
19570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19572 if (!SWIG_IsOK(res1)) {
19573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19574 }
19575 arg1 = reinterpret_cast< wxDC * >(argp1);
19576 ecode2 = SWIG_AsVal_int(obj1, &val2);
19577 if (!SWIG_IsOK(ecode2)) {
19578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19579 }
19580 arg2 = static_cast< int >(val2);
19581 ecode3 = SWIG_AsVal_int(obj2, &val3);
19582 if (!SWIG_IsOK(ecode3)) {
19583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19584 }
19585 arg3 = static_cast< int >(val3);
19586 ecode4 = SWIG_AsVal_int(obj3, &val4);
19587 if (!SWIG_IsOK(ecode4)) {
19588 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19589 }
19590 arg4 = static_cast< int >(val4);
19591 {
19592 PyThreadState* __tstate = wxPyBeginAllowThreads();
19593 (arg1)->DrawCircle(arg2,arg3,arg4);
19594 wxPyEndAllowThreads(__tstate);
19595 if (PyErr_Occurred()) SWIG_fail;
19596 }
19597 resultobj = SWIG_Py_Void();
19598 return resultobj;
19599 fail:
19600 return NULL;
19601 }
19602
19603
19604 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19605 PyObject *resultobj = 0;
19606 wxDC *arg1 = (wxDC *) 0 ;
19607 wxPoint *arg2 = 0 ;
19608 int arg3 ;
19609 void *argp1 = 0 ;
19610 int res1 = 0 ;
19611 wxPoint temp2 ;
19612 int val3 ;
19613 int ecode3 = 0 ;
19614 PyObject * obj0 = 0 ;
19615 PyObject * obj1 = 0 ;
19616 PyObject * obj2 = 0 ;
19617 char * kwnames[] = {
19618 (char *) "self",(char *) "pt",(char *) "radius", NULL
19619 };
19620
19621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19623 if (!SWIG_IsOK(res1)) {
19624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19625 }
19626 arg1 = reinterpret_cast< wxDC * >(argp1);
19627 {
19628 arg2 = &temp2;
19629 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19630 }
19631 ecode3 = SWIG_AsVal_int(obj2, &val3);
19632 if (!SWIG_IsOK(ecode3)) {
19633 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19634 }
19635 arg3 = static_cast< int >(val3);
19636 {
19637 PyThreadState* __tstate = wxPyBeginAllowThreads();
19638 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19639 wxPyEndAllowThreads(__tstate);
19640 if (PyErr_Occurred()) SWIG_fail;
19641 }
19642 resultobj = SWIG_Py_Void();
19643 return resultobj;
19644 fail:
19645 return NULL;
19646 }
19647
19648
19649 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19650 PyObject *resultobj = 0;
19651 wxDC *arg1 = (wxDC *) 0 ;
19652 int arg2 ;
19653 int arg3 ;
19654 int arg4 ;
19655 int arg5 ;
19656 void *argp1 = 0 ;
19657 int res1 = 0 ;
19658 int val2 ;
19659 int ecode2 = 0 ;
19660 int val3 ;
19661 int ecode3 = 0 ;
19662 int val4 ;
19663 int ecode4 = 0 ;
19664 int val5 ;
19665 int ecode5 = 0 ;
19666 PyObject * obj0 = 0 ;
19667 PyObject * obj1 = 0 ;
19668 PyObject * obj2 = 0 ;
19669 PyObject * obj3 = 0 ;
19670 PyObject * obj4 = 0 ;
19671 char * kwnames[] = {
19672 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19673 };
19674
19675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19677 if (!SWIG_IsOK(res1)) {
19678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19679 }
19680 arg1 = reinterpret_cast< wxDC * >(argp1);
19681 ecode2 = SWIG_AsVal_int(obj1, &val2);
19682 if (!SWIG_IsOK(ecode2)) {
19683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19684 }
19685 arg2 = static_cast< int >(val2);
19686 ecode3 = SWIG_AsVal_int(obj2, &val3);
19687 if (!SWIG_IsOK(ecode3)) {
19688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19689 }
19690 arg3 = static_cast< int >(val3);
19691 ecode4 = SWIG_AsVal_int(obj3, &val4);
19692 if (!SWIG_IsOK(ecode4)) {
19693 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19694 }
19695 arg4 = static_cast< int >(val4);
19696 ecode5 = SWIG_AsVal_int(obj4, &val5);
19697 if (!SWIG_IsOK(ecode5)) {
19698 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19699 }
19700 arg5 = static_cast< int >(val5);
19701 {
19702 PyThreadState* __tstate = wxPyBeginAllowThreads();
19703 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19704 wxPyEndAllowThreads(__tstate);
19705 if (PyErr_Occurred()) SWIG_fail;
19706 }
19707 resultobj = SWIG_Py_Void();
19708 return resultobj;
19709 fail:
19710 return NULL;
19711 }
19712
19713
19714 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19715 PyObject *resultobj = 0;
19716 wxDC *arg1 = (wxDC *) 0 ;
19717 wxRect *arg2 = 0 ;
19718 void *argp1 = 0 ;
19719 int res1 = 0 ;
19720 wxRect temp2 ;
19721 PyObject * obj0 = 0 ;
19722 PyObject * obj1 = 0 ;
19723 char * kwnames[] = {
19724 (char *) "self",(char *) "rect", NULL
19725 };
19726
19727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19729 if (!SWIG_IsOK(res1)) {
19730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19731 }
19732 arg1 = reinterpret_cast< wxDC * >(argp1);
19733 {
19734 arg2 = &temp2;
19735 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19736 }
19737 {
19738 PyThreadState* __tstate = wxPyBeginAllowThreads();
19739 (arg1)->DrawEllipse((wxRect const &)*arg2);
19740 wxPyEndAllowThreads(__tstate);
19741 if (PyErr_Occurred()) SWIG_fail;
19742 }
19743 resultobj = SWIG_Py_Void();
19744 return resultobj;
19745 fail:
19746 return NULL;
19747 }
19748
19749
19750 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19751 PyObject *resultobj = 0;
19752 wxDC *arg1 = (wxDC *) 0 ;
19753 wxPoint *arg2 = 0 ;
19754 wxSize *arg3 = 0 ;
19755 void *argp1 = 0 ;
19756 int res1 = 0 ;
19757 wxPoint temp2 ;
19758 wxSize temp3 ;
19759 PyObject * obj0 = 0 ;
19760 PyObject * obj1 = 0 ;
19761 PyObject * obj2 = 0 ;
19762 char * kwnames[] = {
19763 (char *) "self",(char *) "pt",(char *) "sz", NULL
19764 };
19765
19766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19768 if (!SWIG_IsOK(res1)) {
19769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19770 }
19771 arg1 = reinterpret_cast< wxDC * >(argp1);
19772 {
19773 arg2 = &temp2;
19774 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19775 }
19776 {
19777 arg3 = &temp3;
19778 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19779 }
19780 {
19781 PyThreadState* __tstate = wxPyBeginAllowThreads();
19782 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19783 wxPyEndAllowThreads(__tstate);
19784 if (PyErr_Occurred()) SWIG_fail;
19785 }
19786 resultobj = SWIG_Py_Void();
19787 return resultobj;
19788 fail:
19789 return NULL;
19790 }
19791
19792
19793 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19794 PyObject *resultobj = 0;
19795 wxDC *arg1 = (wxDC *) 0 ;
19796 wxIcon *arg2 = 0 ;
19797 int arg3 ;
19798 int arg4 ;
19799 void *argp1 = 0 ;
19800 int res1 = 0 ;
19801 void *argp2 = 0 ;
19802 int res2 = 0 ;
19803 int val3 ;
19804 int ecode3 = 0 ;
19805 int val4 ;
19806 int ecode4 = 0 ;
19807 PyObject * obj0 = 0 ;
19808 PyObject * obj1 = 0 ;
19809 PyObject * obj2 = 0 ;
19810 PyObject * obj3 = 0 ;
19811 char * kwnames[] = {
19812 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19813 };
19814
19815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19817 if (!SWIG_IsOK(res1)) {
19818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19819 }
19820 arg1 = reinterpret_cast< wxDC * >(argp1);
19821 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19822 if (!SWIG_IsOK(res2)) {
19823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19824 }
19825 if (!argp2) {
19826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19827 }
19828 arg2 = reinterpret_cast< wxIcon * >(argp2);
19829 ecode3 = SWIG_AsVal_int(obj2, &val3);
19830 if (!SWIG_IsOK(ecode3)) {
19831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19832 }
19833 arg3 = static_cast< int >(val3);
19834 ecode4 = SWIG_AsVal_int(obj3, &val4);
19835 if (!SWIG_IsOK(ecode4)) {
19836 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19837 }
19838 arg4 = static_cast< int >(val4);
19839 {
19840 PyThreadState* __tstate = wxPyBeginAllowThreads();
19841 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19842 wxPyEndAllowThreads(__tstate);
19843 if (PyErr_Occurred()) SWIG_fail;
19844 }
19845 resultobj = SWIG_Py_Void();
19846 return resultobj;
19847 fail:
19848 return NULL;
19849 }
19850
19851
19852 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19853 PyObject *resultobj = 0;
19854 wxDC *arg1 = (wxDC *) 0 ;
19855 wxIcon *arg2 = 0 ;
19856 wxPoint *arg3 = 0 ;
19857 void *argp1 = 0 ;
19858 int res1 = 0 ;
19859 void *argp2 = 0 ;
19860 int res2 = 0 ;
19861 wxPoint temp3 ;
19862 PyObject * obj0 = 0 ;
19863 PyObject * obj1 = 0 ;
19864 PyObject * obj2 = 0 ;
19865 char * kwnames[] = {
19866 (char *) "self",(char *) "icon",(char *) "pt", NULL
19867 };
19868
19869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19871 if (!SWIG_IsOK(res1)) {
19872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19873 }
19874 arg1 = reinterpret_cast< wxDC * >(argp1);
19875 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19876 if (!SWIG_IsOK(res2)) {
19877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19878 }
19879 if (!argp2) {
19880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19881 }
19882 arg2 = reinterpret_cast< wxIcon * >(argp2);
19883 {
19884 arg3 = &temp3;
19885 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19886 }
19887 {
19888 PyThreadState* __tstate = wxPyBeginAllowThreads();
19889 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19890 wxPyEndAllowThreads(__tstate);
19891 if (PyErr_Occurred()) SWIG_fail;
19892 }
19893 resultobj = SWIG_Py_Void();
19894 return resultobj;
19895 fail:
19896 return NULL;
19897 }
19898
19899
19900 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19901 PyObject *resultobj = 0;
19902 wxDC *arg1 = (wxDC *) 0 ;
19903 wxBitmap *arg2 = 0 ;
19904 int arg3 ;
19905 int arg4 ;
19906 bool arg5 = (bool) false ;
19907 void *argp1 = 0 ;
19908 int res1 = 0 ;
19909 void *argp2 = 0 ;
19910 int res2 = 0 ;
19911 int val3 ;
19912 int ecode3 = 0 ;
19913 int val4 ;
19914 int ecode4 = 0 ;
19915 bool val5 ;
19916 int ecode5 = 0 ;
19917 PyObject * obj0 = 0 ;
19918 PyObject * obj1 = 0 ;
19919 PyObject * obj2 = 0 ;
19920 PyObject * obj3 = 0 ;
19921 PyObject * obj4 = 0 ;
19922 char * kwnames[] = {
19923 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19924 };
19925
19926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19928 if (!SWIG_IsOK(res1)) {
19929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19930 }
19931 arg1 = reinterpret_cast< wxDC * >(argp1);
19932 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19933 if (!SWIG_IsOK(res2)) {
19934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19935 }
19936 if (!argp2) {
19937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19938 }
19939 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19940 ecode3 = SWIG_AsVal_int(obj2, &val3);
19941 if (!SWIG_IsOK(ecode3)) {
19942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19943 }
19944 arg3 = static_cast< int >(val3);
19945 ecode4 = SWIG_AsVal_int(obj3, &val4);
19946 if (!SWIG_IsOK(ecode4)) {
19947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19948 }
19949 arg4 = static_cast< int >(val4);
19950 if (obj4) {
19951 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19952 if (!SWIG_IsOK(ecode5)) {
19953 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19954 }
19955 arg5 = static_cast< bool >(val5);
19956 }
19957 {
19958 PyThreadState* __tstate = wxPyBeginAllowThreads();
19959 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19960 wxPyEndAllowThreads(__tstate);
19961 if (PyErr_Occurred()) SWIG_fail;
19962 }
19963 resultobj = SWIG_Py_Void();
19964 return resultobj;
19965 fail:
19966 return NULL;
19967 }
19968
19969
19970 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19971 PyObject *resultobj = 0;
19972 wxDC *arg1 = (wxDC *) 0 ;
19973 wxBitmap *arg2 = 0 ;
19974 wxPoint *arg3 = 0 ;
19975 bool arg4 = (bool) false ;
19976 void *argp1 = 0 ;
19977 int res1 = 0 ;
19978 void *argp2 = 0 ;
19979 int res2 = 0 ;
19980 wxPoint temp3 ;
19981 bool val4 ;
19982 int ecode4 = 0 ;
19983 PyObject * obj0 = 0 ;
19984 PyObject * obj1 = 0 ;
19985 PyObject * obj2 = 0 ;
19986 PyObject * obj3 = 0 ;
19987 char * kwnames[] = {
19988 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19989 };
19990
19991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19993 if (!SWIG_IsOK(res1)) {
19994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19995 }
19996 arg1 = reinterpret_cast< wxDC * >(argp1);
19997 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19998 if (!SWIG_IsOK(res2)) {
19999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20000 }
20001 if (!argp2) {
20002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20003 }
20004 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20005 {
20006 arg3 = &temp3;
20007 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20008 }
20009 if (obj3) {
20010 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20011 if (!SWIG_IsOK(ecode4)) {
20012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
20013 }
20014 arg4 = static_cast< bool >(val4);
20015 }
20016 {
20017 PyThreadState* __tstate = wxPyBeginAllowThreads();
20018 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
20019 wxPyEndAllowThreads(__tstate);
20020 if (PyErr_Occurred()) SWIG_fail;
20021 }
20022 resultobj = SWIG_Py_Void();
20023 return resultobj;
20024 fail:
20025 return NULL;
20026 }
20027
20028
20029 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20030 PyObject *resultobj = 0;
20031 wxDC *arg1 = (wxDC *) 0 ;
20032 wxString *arg2 = 0 ;
20033 int arg3 ;
20034 int arg4 ;
20035 void *argp1 = 0 ;
20036 int res1 = 0 ;
20037 bool temp2 = false ;
20038 int val3 ;
20039 int ecode3 = 0 ;
20040 int val4 ;
20041 int ecode4 = 0 ;
20042 PyObject * obj0 = 0 ;
20043 PyObject * obj1 = 0 ;
20044 PyObject * obj2 = 0 ;
20045 PyObject * obj3 = 0 ;
20046 char * kwnames[] = {
20047 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
20048 };
20049
20050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20052 if (!SWIG_IsOK(res1)) {
20053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
20054 }
20055 arg1 = reinterpret_cast< wxDC * >(argp1);
20056 {
20057 arg2 = wxString_in_helper(obj1);
20058 if (arg2 == NULL) SWIG_fail;
20059 temp2 = true;
20060 }
20061 ecode3 = SWIG_AsVal_int(obj2, &val3);
20062 if (!SWIG_IsOK(ecode3)) {
20063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
20064 }
20065 arg3 = static_cast< int >(val3);
20066 ecode4 = SWIG_AsVal_int(obj3, &val4);
20067 if (!SWIG_IsOK(ecode4)) {
20068 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
20069 }
20070 arg4 = static_cast< int >(val4);
20071 {
20072 PyThreadState* __tstate = wxPyBeginAllowThreads();
20073 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
20074 wxPyEndAllowThreads(__tstate);
20075 if (PyErr_Occurred()) SWIG_fail;
20076 }
20077 resultobj = SWIG_Py_Void();
20078 {
20079 if (temp2)
20080 delete arg2;
20081 }
20082 return resultobj;
20083 fail:
20084 {
20085 if (temp2)
20086 delete arg2;
20087 }
20088 return NULL;
20089 }
20090
20091
20092 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20093 PyObject *resultobj = 0;
20094 wxDC *arg1 = (wxDC *) 0 ;
20095 wxString *arg2 = 0 ;
20096 wxPoint *arg3 = 0 ;
20097 void *argp1 = 0 ;
20098 int res1 = 0 ;
20099 bool temp2 = false ;
20100 wxPoint temp3 ;
20101 PyObject * obj0 = 0 ;
20102 PyObject * obj1 = 0 ;
20103 PyObject * obj2 = 0 ;
20104 char * kwnames[] = {
20105 (char *) "self",(char *) "text",(char *) "pt", NULL
20106 };
20107
20108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20110 if (!SWIG_IsOK(res1)) {
20111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20112 }
20113 arg1 = reinterpret_cast< wxDC * >(argp1);
20114 {
20115 arg2 = wxString_in_helper(obj1);
20116 if (arg2 == NULL) SWIG_fail;
20117 temp2 = true;
20118 }
20119 {
20120 arg3 = &temp3;
20121 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20122 }
20123 {
20124 PyThreadState* __tstate = wxPyBeginAllowThreads();
20125 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
20126 wxPyEndAllowThreads(__tstate);
20127 if (PyErr_Occurred()) SWIG_fail;
20128 }
20129 resultobj = SWIG_Py_Void();
20130 {
20131 if (temp2)
20132 delete arg2;
20133 }
20134 return resultobj;
20135 fail:
20136 {
20137 if (temp2)
20138 delete arg2;
20139 }
20140 return NULL;
20141 }
20142
20143
20144 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20145 PyObject *resultobj = 0;
20146 wxDC *arg1 = (wxDC *) 0 ;
20147 wxString *arg2 = 0 ;
20148 int arg3 ;
20149 int arg4 ;
20150 double arg5 ;
20151 void *argp1 = 0 ;
20152 int res1 = 0 ;
20153 bool temp2 = false ;
20154 int val3 ;
20155 int ecode3 = 0 ;
20156 int val4 ;
20157 int ecode4 = 0 ;
20158 double val5 ;
20159 int ecode5 = 0 ;
20160 PyObject * obj0 = 0 ;
20161 PyObject * obj1 = 0 ;
20162 PyObject * obj2 = 0 ;
20163 PyObject * obj3 = 0 ;
20164 PyObject * obj4 = 0 ;
20165 char * kwnames[] = {
20166 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
20167 };
20168
20169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20171 if (!SWIG_IsOK(res1)) {
20172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
20173 }
20174 arg1 = reinterpret_cast< wxDC * >(argp1);
20175 {
20176 arg2 = wxString_in_helper(obj1);
20177 if (arg2 == NULL) SWIG_fail;
20178 temp2 = true;
20179 }
20180 ecode3 = SWIG_AsVal_int(obj2, &val3);
20181 if (!SWIG_IsOK(ecode3)) {
20182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
20183 }
20184 arg3 = static_cast< int >(val3);
20185 ecode4 = SWIG_AsVal_int(obj3, &val4);
20186 if (!SWIG_IsOK(ecode4)) {
20187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
20188 }
20189 arg4 = static_cast< int >(val4);
20190 ecode5 = SWIG_AsVal_double(obj4, &val5);
20191 if (!SWIG_IsOK(ecode5)) {
20192 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
20193 }
20194 arg5 = static_cast< double >(val5);
20195 {
20196 PyThreadState* __tstate = wxPyBeginAllowThreads();
20197 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
20198 wxPyEndAllowThreads(__tstate);
20199 if (PyErr_Occurred()) SWIG_fail;
20200 }
20201 resultobj = SWIG_Py_Void();
20202 {
20203 if (temp2)
20204 delete arg2;
20205 }
20206 return resultobj;
20207 fail:
20208 {
20209 if (temp2)
20210 delete arg2;
20211 }
20212 return NULL;
20213 }
20214
20215
20216 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20217 PyObject *resultobj = 0;
20218 wxDC *arg1 = (wxDC *) 0 ;
20219 wxString *arg2 = 0 ;
20220 wxPoint *arg3 = 0 ;
20221 double arg4 ;
20222 void *argp1 = 0 ;
20223 int res1 = 0 ;
20224 bool temp2 = false ;
20225 wxPoint temp3 ;
20226 double val4 ;
20227 int ecode4 = 0 ;
20228 PyObject * obj0 = 0 ;
20229 PyObject * obj1 = 0 ;
20230 PyObject * obj2 = 0 ;
20231 PyObject * obj3 = 0 ;
20232 char * kwnames[] = {
20233 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
20234 };
20235
20236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20238 if (!SWIG_IsOK(res1)) {
20239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20240 }
20241 arg1 = reinterpret_cast< wxDC * >(argp1);
20242 {
20243 arg2 = wxString_in_helper(obj1);
20244 if (arg2 == NULL) SWIG_fail;
20245 temp2 = true;
20246 }
20247 {
20248 arg3 = &temp3;
20249 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20250 }
20251 ecode4 = SWIG_AsVal_double(obj3, &val4);
20252 if (!SWIG_IsOK(ecode4)) {
20253 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
20254 }
20255 arg4 = static_cast< double >(val4);
20256 {
20257 PyThreadState* __tstate = wxPyBeginAllowThreads();
20258 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
20259 wxPyEndAllowThreads(__tstate);
20260 if (PyErr_Occurred()) SWIG_fail;
20261 }
20262 resultobj = SWIG_Py_Void();
20263 {
20264 if (temp2)
20265 delete arg2;
20266 }
20267 return resultobj;
20268 fail:
20269 {
20270 if (temp2)
20271 delete arg2;
20272 }
20273 return NULL;
20274 }
20275
20276
20277 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20278 PyObject *resultobj = 0;
20279 wxDC *arg1 = (wxDC *) 0 ;
20280 int arg2 ;
20281 int arg3 ;
20282 int arg4 ;
20283 int arg5 ;
20284 wxDC *arg6 = (wxDC *) 0 ;
20285 int arg7 ;
20286 int arg8 ;
20287 int arg9 = (int) wxCOPY ;
20288 bool arg10 = (bool) false ;
20289 int arg11 = (int) -1 ;
20290 int arg12 = (int) -1 ;
20291 bool result;
20292 void *argp1 = 0 ;
20293 int res1 = 0 ;
20294 int val2 ;
20295 int ecode2 = 0 ;
20296 int val3 ;
20297 int ecode3 = 0 ;
20298 int val4 ;
20299 int ecode4 = 0 ;
20300 int val5 ;
20301 int ecode5 = 0 ;
20302 void *argp6 = 0 ;
20303 int res6 = 0 ;
20304 int val7 ;
20305 int ecode7 = 0 ;
20306 int val8 ;
20307 int ecode8 = 0 ;
20308 int val9 ;
20309 int ecode9 = 0 ;
20310 bool val10 ;
20311 int ecode10 = 0 ;
20312 int val11 ;
20313 int ecode11 = 0 ;
20314 int val12 ;
20315 int ecode12 = 0 ;
20316 PyObject * obj0 = 0 ;
20317 PyObject * obj1 = 0 ;
20318 PyObject * obj2 = 0 ;
20319 PyObject * obj3 = 0 ;
20320 PyObject * obj4 = 0 ;
20321 PyObject * obj5 = 0 ;
20322 PyObject * obj6 = 0 ;
20323 PyObject * obj7 = 0 ;
20324 PyObject * obj8 = 0 ;
20325 PyObject * obj9 = 0 ;
20326 PyObject * obj10 = 0 ;
20327 PyObject * obj11 = 0 ;
20328 char * kwnames[] = {
20329 (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
20330 };
20331
20332 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;
20333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20334 if (!SWIG_IsOK(res1)) {
20335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
20336 }
20337 arg1 = reinterpret_cast< wxDC * >(argp1);
20338 ecode2 = SWIG_AsVal_int(obj1, &val2);
20339 if (!SWIG_IsOK(ecode2)) {
20340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
20341 }
20342 arg2 = static_cast< int >(val2);
20343 ecode3 = SWIG_AsVal_int(obj2, &val3);
20344 if (!SWIG_IsOK(ecode3)) {
20345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20346 }
20347 arg3 = static_cast< int >(val3);
20348 ecode4 = SWIG_AsVal_int(obj3, &val4);
20349 if (!SWIG_IsOK(ecode4)) {
20350 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20351 }
20352 arg4 = static_cast< int >(val4);
20353 ecode5 = SWIG_AsVal_int(obj4, &val5);
20354 if (!SWIG_IsOK(ecode5)) {
20355 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20356 }
20357 arg5 = static_cast< int >(val5);
20358 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20359 if (!SWIG_IsOK(res6)) {
20360 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20361 }
20362 arg6 = reinterpret_cast< wxDC * >(argp6);
20363 ecode7 = SWIG_AsVal_int(obj6, &val7);
20364 if (!SWIG_IsOK(ecode7)) {
20365 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20366 }
20367 arg7 = static_cast< int >(val7);
20368 ecode8 = SWIG_AsVal_int(obj7, &val8);
20369 if (!SWIG_IsOK(ecode8)) {
20370 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20371 }
20372 arg8 = static_cast< int >(val8);
20373 if (obj8) {
20374 ecode9 = SWIG_AsVal_int(obj8, &val9);
20375 if (!SWIG_IsOK(ecode9)) {
20376 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20377 }
20378 arg9 = static_cast< int >(val9);
20379 }
20380 if (obj9) {
20381 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20382 if (!SWIG_IsOK(ecode10)) {
20383 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20384 }
20385 arg10 = static_cast< bool >(val10);
20386 }
20387 if (obj10) {
20388 ecode11 = SWIG_AsVal_int(obj10, &val11);
20389 if (!SWIG_IsOK(ecode11)) {
20390 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20391 }
20392 arg11 = static_cast< int >(val11);
20393 }
20394 if (obj11) {
20395 ecode12 = SWIG_AsVal_int(obj11, &val12);
20396 if (!SWIG_IsOK(ecode12)) {
20397 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20398 }
20399 arg12 = static_cast< int >(val12);
20400 }
20401 {
20402 PyThreadState* __tstate = wxPyBeginAllowThreads();
20403 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20404 wxPyEndAllowThreads(__tstate);
20405 if (PyErr_Occurred()) SWIG_fail;
20406 }
20407 {
20408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20409 }
20410 return resultobj;
20411 fail:
20412 return NULL;
20413 }
20414
20415
20416 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20417 PyObject *resultobj = 0;
20418 wxDC *arg1 = (wxDC *) 0 ;
20419 wxPoint *arg2 = 0 ;
20420 wxSize *arg3 = 0 ;
20421 wxDC *arg4 = (wxDC *) 0 ;
20422 wxPoint *arg5 = 0 ;
20423 int arg6 = (int) wxCOPY ;
20424 bool arg7 = (bool) false ;
20425 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20426 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20427 bool result;
20428 void *argp1 = 0 ;
20429 int res1 = 0 ;
20430 wxPoint temp2 ;
20431 wxSize temp3 ;
20432 void *argp4 = 0 ;
20433 int res4 = 0 ;
20434 wxPoint temp5 ;
20435 int val6 ;
20436 int ecode6 = 0 ;
20437 bool val7 ;
20438 int ecode7 = 0 ;
20439 wxPoint temp8 ;
20440 PyObject * obj0 = 0 ;
20441 PyObject * obj1 = 0 ;
20442 PyObject * obj2 = 0 ;
20443 PyObject * obj3 = 0 ;
20444 PyObject * obj4 = 0 ;
20445 PyObject * obj5 = 0 ;
20446 PyObject * obj6 = 0 ;
20447 PyObject * obj7 = 0 ;
20448 char * kwnames[] = {
20449 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20450 };
20451
20452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20454 if (!SWIG_IsOK(res1)) {
20455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20456 }
20457 arg1 = reinterpret_cast< wxDC * >(argp1);
20458 {
20459 arg2 = &temp2;
20460 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20461 }
20462 {
20463 arg3 = &temp3;
20464 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20465 }
20466 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20467 if (!SWIG_IsOK(res4)) {
20468 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20469 }
20470 arg4 = reinterpret_cast< wxDC * >(argp4);
20471 {
20472 arg5 = &temp5;
20473 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20474 }
20475 if (obj5) {
20476 ecode6 = SWIG_AsVal_int(obj5, &val6);
20477 if (!SWIG_IsOK(ecode6)) {
20478 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20479 }
20480 arg6 = static_cast< int >(val6);
20481 }
20482 if (obj6) {
20483 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20484 if (!SWIG_IsOK(ecode7)) {
20485 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20486 }
20487 arg7 = static_cast< bool >(val7);
20488 }
20489 if (obj7) {
20490 {
20491 arg8 = &temp8;
20492 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20493 }
20494 }
20495 {
20496 PyThreadState* __tstate = wxPyBeginAllowThreads();
20497 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20498 wxPyEndAllowThreads(__tstate);
20499 if (PyErr_Occurred()) SWIG_fail;
20500 }
20501 {
20502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20503 }
20504 return resultobj;
20505 fail:
20506 return NULL;
20507 }
20508
20509
20510 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20511 PyObject *resultobj = 0;
20512 wxDC *arg1 = (wxDC *) 0 ;
20513 wxRect *arg2 = (wxRect *) NULL ;
20514 SwigValueWrapper<wxBitmap > result;
20515 void *argp1 = 0 ;
20516 int res1 = 0 ;
20517 void *argp2 = 0 ;
20518 int res2 = 0 ;
20519 PyObject * obj0 = 0 ;
20520 PyObject * obj1 = 0 ;
20521 char * kwnames[] = {
20522 (char *) "self",(char *) "subrect", NULL
20523 };
20524
20525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
20526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20527 if (!SWIG_IsOK(res1)) {
20528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
20529 }
20530 arg1 = reinterpret_cast< wxDC * >(argp1);
20531 if (obj1) {
20532 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20533 if (!SWIG_IsOK(res2)) {
20534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
20535 }
20536 arg2 = reinterpret_cast< wxRect * >(argp2);
20537 }
20538 {
20539 PyThreadState* __tstate = wxPyBeginAllowThreads();
20540 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
20541 wxPyEndAllowThreads(__tstate);
20542 if (PyErr_Occurred()) SWIG_fail;
20543 }
20544 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20545 return resultobj;
20546 fail:
20547 return NULL;
20548 }
20549
20550
20551 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20552 PyObject *resultobj = 0;
20553 wxDC *arg1 = (wxDC *) 0 ;
20554 int arg2 ;
20555 int arg3 ;
20556 int arg4 ;
20557 int arg5 ;
20558 void *argp1 = 0 ;
20559 int res1 = 0 ;
20560 int val2 ;
20561 int ecode2 = 0 ;
20562 int val3 ;
20563 int ecode3 = 0 ;
20564 int val4 ;
20565 int ecode4 = 0 ;
20566 int val5 ;
20567 int ecode5 = 0 ;
20568 PyObject * obj0 = 0 ;
20569 PyObject * obj1 = 0 ;
20570 PyObject * obj2 = 0 ;
20571 PyObject * obj3 = 0 ;
20572 PyObject * obj4 = 0 ;
20573 char * kwnames[] = {
20574 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20575 };
20576
20577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20579 if (!SWIG_IsOK(res1)) {
20580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20581 }
20582 arg1 = reinterpret_cast< wxDC * >(argp1);
20583 ecode2 = SWIG_AsVal_int(obj1, &val2);
20584 if (!SWIG_IsOK(ecode2)) {
20585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20586 }
20587 arg2 = static_cast< int >(val2);
20588 ecode3 = SWIG_AsVal_int(obj2, &val3);
20589 if (!SWIG_IsOK(ecode3)) {
20590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20591 }
20592 arg3 = static_cast< int >(val3);
20593 ecode4 = SWIG_AsVal_int(obj3, &val4);
20594 if (!SWIG_IsOK(ecode4)) {
20595 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20596 }
20597 arg4 = static_cast< int >(val4);
20598 ecode5 = SWIG_AsVal_int(obj4, &val5);
20599 if (!SWIG_IsOK(ecode5)) {
20600 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20601 }
20602 arg5 = static_cast< int >(val5);
20603 {
20604 PyThreadState* __tstate = wxPyBeginAllowThreads();
20605 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20606 wxPyEndAllowThreads(__tstate);
20607 if (PyErr_Occurred()) SWIG_fail;
20608 }
20609 resultobj = SWIG_Py_Void();
20610 return resultobj;
20611 fail:
20612 return NULL;
20613 }
20614
20615
20616 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20617 PyObject *resultobj = 0;
20618 wxDC *arg1 = (wxDC *) 0 ;
20619 wxPoint *arg2 = 0 ;
20620 wxSize *arg3 = 0 ;
20621 void *argp1 = 0 ;
20622 int res1 = 0 ;
20623 wxPoint temp2 ;
20624 wxSize temp3 ;
20625 PyObject * obj0 = 0 ;
20626 PyObject * obj1 = 0 ;
20627 PyObject * obj2 = 0 ;
20628 char * kwnames[] = {
20629 (char *) "self",(char *) "pt",(char *) "sz", NULL
20630 };
20631
20632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20634 if (!SWIG_IsOK(res1)) {
20635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20636 }
20637 arg1 = reinterpret_cast< wxDC * >(argp1);
20638 {
20639 arg2 = &temp2;
20640 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20641 }
20642 {
20643 arg3 = &temp3;
20644 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20645 }
20646 {
20647 PyThreadState* __tstate = wxPyBeginAllowThreads();
20648 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20649 wxPyEndAllowThreads(__tstate);
20650 if (PyErr_Occurred()) SWIG_fail;
20651 }
20652 resultobj = SWIG_Py_Void();
20653 return resultobj;
20654 fail:
20655 return NULL;
20656 }
20657
20658
20659 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20660 PyObject *resultobj = 0;
20661 wxDC *arg1 = (wxDC *) 0 ;
20662 wxRegion *arg2 = 0 ;
20663 void *argp1 = 0 ;
20664 int res1 = 0 ;
20665 void *argp2 = 0 ;
20666 int res2 = 0 ;
20667 PyObject * obj0 = 0 ;
20668 PyObject * obj1 = 0 ;
20669 char * kwnames[] = {
20670 (char *) "self",(char *) "region", NULL
20671 };
20672
20673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20675 if (!SWIG_IsOK(res1)) {
20676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20677 }
20678 arg1 = reinterpret_cast< wxDC * >(argp1);
20679 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20680 if (!SWIG_IsOK(res2)) {
20681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20682 }
20683 if (!argp2) {
20684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20685 }
20686 arg2 = reinterpret_cast< wxRegion * >(argp2);
20687 {
20688 PyThreadState* __tstate = wxPyBeginAllowThreads();
20689 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20690 wxPyEndAllowThreads(__tstate);
20691 if (PyErr_Occurred()) SWIG_fail;
20692 }
20693 resultobj = SWIG_Py_Void();
20694 return resultobj;
20695 fail:
20696 return NULL;
20697 }
20698
20699
20700 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20701 PyObject *resultobj = 0;
20702 wxDC *arg1 = (wxDC *) 0 ;
20703 wxRect *arg2 = 0 ;
20704 void *argp1 = 0 ;
20705 int res1 = 0 ;
20706 wxRect temp2 ;
20707 PyObject * obj0 = 0 ;
20708 PyObject * obj1 = 0 ;
20709 char * kwnames[] = {
20710 (char *) "self",(char *) "rect", NULL
20711 };
20712
20713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20715 if (!SWIG_IsOK(res1)) {
20716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20717 }
20718 arg1 = reinterpret_cast< wxDC * >(argp1);
20719 {
20720 arg2 = &temp2;
20721 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20722 }
20723 {
20724 PyThreadState* __tstate = wxPyBeginAllowThreads();
20725 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20726 wxPyEndAllowThreads(__tstate);
20727 if (PyErr_Occurred()) SWIG_fail;
20728 }
20729 resultobj = SWIG_Py_Void();
20730 return resultobj;
20731 fail:
20732 return NULL;
20733 }
20734
20735
20736 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20737 PyObject *resultobj = 0;
20738 wxDC *arg1 = (wxDC *) 0 ;
20739 int arg2 ;
20740 wxPoint *arg3 = (wxPoint *) 0 ;
20741 int arg4 = (int) 0 ;
20742 int arg5 = (int) 0 ;
20743 void *argp1 = 0 ;
20744 int res1 = 0 ;
20745 int val4 ;
20746 int ecode4 = 0 ;
20747 int val5 ;
20748 int ecode5 = 0 ;
20749 PyObject * obj0 = 0 ;
20750 PyObject * obj1 = 0 ;
20751 PyObject * obj2 = 0 ;
20752 PyObject * obj3 = 0 ;
20753 char * kwnames[] = {
20754 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20755 };
20756
20757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20759 if (!SWIG_IsOK(res1)) {
20760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20761 }
20762 arg1 = reinterpret_cast< wxDC * >(argp1);
20763 {
20764 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20765 if (arg3 == NULL) SWIG_fail;
20766 }
20767 if (obj2) {
20768 ecode4 = SWIG_AsVal_int(obj2, &val4);
20769 if (!SWIG_IsOK(ecode4)) {
20770 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20771 }
20772 arg4 = static_cast< int >(val4);
20773 }
20774 if (obj3) {
20775 ecode5 = SWIG_AsVal_int(obj3, &val5);
20776 if (!SWIG_IsOK(ecode5)) {
20777 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20778 }
20779 arg5 = static_cast< int >(val5);
20780 }
20781 {
20782 PyThreadState* __tstate = wxPyBeginAllowThreads();
20783 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20784 wxPyEndAllowThreads(__tstate);
20785 if (PyErr_Occurred()) SWIG_fail;
20786 }
20787 resultobj = SWIG_Py_Void();
20788 {
20789 if (arg3) delete [] arg3;
20790 }
20791 return resultobj;
20792 fail:
20793 {
20794 if (arg3) delete [] arg3;
20795 }
20796 return NULL;
20797 }
20798
20799
20800 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20801 PyObject *resultobj = 0;
20802 wxDC *arg1 = (wxDC *) 0 ;
20803 int arg2 ;
20804 wxPoint *arg3 = (wxPoint *) 0 ;
20805 int arg4 = (int) 0 ;
20806 int arg5 = (int) 0 ;
20807 int arg6 = (int) wxODDEVEN_RULE ;
20808 void *argp1 = 0 ;
20809 int res1 = 0 ;
20810 int val4 ;
20811 int ecode4 = 0 ;
20812 int val5 ;
20813 int ecode5 = 0 ;
20814 int val6 ;
20815 int ecode6 = 0 ;
20816 PyObject * obj0 = 0 ;
20817 PyObject * obj1 = 0 ;
20818 PyObject * obj2 = 0 ;
20819 PyObject * obj3 = 0 ;
20820 PyObject * obj4 = 0 ;
20821 char * kwnames[] = {
20822 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20823 };
20824
20825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20827 if (!SWIG_IsOK(res1)) {
20828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20829 }
20830 arg1 = reinterpret_cast< wxDC * >(argp1);
20831 {
20832 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20833 if (arg3 == NULL) SWIG_fail;
20834 }
20835 if (obj2) {
20836 ecode4 = SWIG_AsVal_int(obj2, &val4);
20837 if (!SWIG_IsOK(ecode4)) {
20838 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20839 }
20840 arg4 = static_cast< int >(val4);
20841 }
20842 if (obj3) {
20843 ecode5 = SWIG_AsVal_int(obj3, &val5);
20844 if (!SWIG_IsOK(ecode5)) {
20845 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20846 }
20847 arg5 = static_cast< int >(val5);
20848 }
20849 if (obj4) {
20850 ecode6 = SWIG_AsVal_int(obj4, &val6);
20851 if (!SWIG_IsOK(ecode6)) {
20852 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20853 }
20854 arg6 = static_cast< int >(val6);
20855 }
20856 {
20857 PyThreadState* __tstate = wxPyBeginAllowThreads();
20858 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20859 wxPyEndAllowThreads(__tstate);
20860 if (PyErr_Occurred()) SWIG_fail;
20861 }
20862 resultobj = SWIG_Py_Void();
20863 {
20864 if (arg3) delete [] arg3;
20865 }
20866 return resultobj;
20867 fail:
20868 {
20869 if (arg3) delete [] arg3;
20870 }
20871 return NULL;
20872 }
20873
20874
20875 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20876 PyObject *resultobj = 0;
20877 wxDC *arg1 = (wxDC *) 0 ;
20878 wxString *arg2 = 0 ;
20879 wxRect *arg3 = 0 ;
20880 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20881 int arg5 = (int) -1 ;
20882 void *argp1 = 0 ;
20883 int res1 = 0 ;
20884 bool temp2 = false ;
20885 wxRect temp3 ;
20886 int val4 ;
20887 int ecode4 = 0 ;
20888 int val5 ;
20889 int ecode5 = 0 ;
20890 PyObject * obj0 = 0 ;
20891 PyObject * obj1 = 0 ;
20892 PyObject * obj2 = 0 ;
20893 PyObject * obj3 = 0 ;
20894 PyObject * obj4 = 0 ;
20895 char * kwnames[] = {
20896 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20897 };
20898
20899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20901 if (!SWIG_IsOK(res1)) {
20902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20903 }
20904 arg1 = reinterpret_cast< wxDC * >(argp1);
20905 {
20906 arg2 = wxString_in_helper(obj1);
20907 if (arg2 == NULL) SWIG_fail;
20908 temp2 = true;
20909 }
20910 {
20911 arg3 = &temp3;
20912 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20913 }
20914 if (obj3) {
20915 ecode4 = SWIG_AsVal_int(obj3, &val4);
20916 if (!SWIG_IsOK(ecode4)) {
20917 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20918 }
20919 arg4 = static_cast< int >(val4);
20920 }
20921 if (obj4) {
20922 ecode5 = SWIG_AsVal_int(obj4, &val5);
20923 if (!SWIG_IsOK(ecode5)) {
20924 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20925 }
20926 arg5 = static_cast< int >(val5);
20927 }
20928 {
20929 PyThreadState* __tstate = wxPyBeginAllowThreads();
20930 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20931 wxPyEndAllowThreads(__tstate);
20932 if (PyErr_Occurred()) SWIG_fail;
20933 }
20934 resultobj = SWIG_Py_Void();
20935 {
20936 if (temp2)
20937 delete arg2;
20938 }
20939 return resultobj;
20940 fail:
20941 {
20942 if (temp2)
20943 delete arg2;
20944 }
20945 return NULL;
20946 }
20947
20948
20949 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20950 PyObject *resultobj = 0;
20951 wxDC *arg1 = (wxDC *) 0 ;
20952 wxString *arg2 = 0 ;
20953 wxBitmap *arg3 = 0 ;
20954 wxRect *arg4 = 0 ;
20955 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20956 int arg6 = (int) -1 ;
20957 wxRect result;
20958 void *argp1 = 0 ;
20959 int res1 = 0 ;
20960 bool temp2 = false ;
20961 void *argp3 = 0 ;
20962 int res3 = 0 ;
20963 wxRect temp4 ;
20964 int val5 ;
20965 int ecode5 = 0 ;
20966 int val6 ;
20967 int ecode6 = 0 ;
20968 PyObject * obj0 = 0 ;
20969 PyObject * obj1 = 0 ;
20970 PyObject * obj2 = 0 ;
20971 PyObject * obj3 = 0 ;
20972 PyObject * obj4 = 0 ;
20973 PyObject * obj5 = 0 ;
20974 char * kwnames[] = {
20975 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20976 };
20977
20978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20980 if (!SWIG_IsOK(res1)) {
20981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20982 }
20983 arg1 = reinterpret_cast< wxDC * >(argp1);
20984 {
20985 arg2 = wxString_in_helper(obj1);
20986 if (arg2 == NULL) SWIG_fail;
20987 temp2 = true;
20988 }
20989 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20990 if (!SWIG_IsOK(res3)) {
20991 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20992 }
20993 if (!argp3) {
20994 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20995 }
20996 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20997 {
20998 arg4 = &temp4;
20999 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21000 }
21001 if (obj4) {
21002 ecode5 = SWIG_AsVal_int(obj4, &val5);
21003 if (!SWIG_IsOK(ecode5)) {
21004 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
21005 }
21006 arg5 = static_cast< int >(val5);
21007 }
21008 if (obj5) {
21009 ecode6 = SWIG_AsVal_int(obj5, &val6);
21010 if (!SWIG_IsOK(ecode6)) {
21011 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
21012 }
21013 arg6 = static_cast< int >(val6);
21014 }
21015 {
21016 PyThreadState* __tstate = wxPyBeginAllowThreads();
21017 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
21018 wxPyEndAllowThreads(__tstate);
21019 if (PyErr_Occurred()) SWIG_fail;
21020 }
21021 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21022 {
21023 if (temp2)
21024 delete arg2;
21025 }
21026 return resultobj;
21027 fail:
21028 {
21029 if (temp2)
21030 delete arg2;
21031 }
21032 return NULL;
21033 }
21034
21035
21036 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21037 PyObject *resultobj = 0;
21038 wxDC *arg1 = (wxDC *) 0 ;
21039 int arg2 ;
21040 wxPoint *arg3 = (wxPoint *) 0 ;
21041 void *argp1 = 0 ;
21042 int res1 = 0 ;
21043 PyObject * obj0 = 0 ;
21044 PyObject * obj1 = 0 ;
21045 char * kwnames[] = {
21046 (char *) "self",(char *) "points", NULL
21047 };
21048
21049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
21050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21051 if (!SWIG_IsOK(res1)) {
21052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
21053 }
21054 arg1 = reinterpret_cast< wxDC * >(argp1);
21055 {
21056 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21057 if (arg3 == NULL) SWIG_fail;
21058 }
21059 {
21060 PyThreadState* __tstate = wxPyBeginAllowThreads();
21061 (arg1)->DrawSpline(arg2,arg3);
21062 wxPyEndAllowThreads(__tstate);
21063 if (PyErr_Occurred()) SWIG_fail;
21064 }
21065 resultobj = SWIG_Py_Void();
21066 {
21067 if (arg3) delete [] arg3;
21068 }
21069 return resultobj;
21070 fail:
21071 {
21072 if (arg3) delete [] arg3;
21073 }
21074 return NULL;
21075 }
21076
21077
21078 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21079 PyObject *resultobj = 0;
21080 wxDC *arg1 = (wxDC *) 0 ;
21081 void *argp1 = 0 ;
21082 int res1 = 0 ;
21083 PyObject *swig_obj[1] ;
21084
21085 if (!args) SWIG_fail;
21086 swig_obj[0] = args;
21087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21088 if (!SWIG_IsOK(res1)) {
21089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
21090 }
21091 arg1 = reinterpret_cast< wxDC * >(argp1);
21092 {
21093 PyThreadState* __tstate = wxPyBeginAllowThreads();
21094 (arg1)->Clear();
21095 wxPyEndAllowThreads(__tstate);
21096 if (PyErr_Occurred()) SWIG_fail;
21097 }
21098 resultobj = SWIG_Py_Void();
21099 return resultobj;
21100 fail:
21101 return NULL;
21102 }
21103
21104
21105 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21106 PyObject *resultobj = 0;
21107 wxDC *arg1 = (wxDC *) 0 ;
21108 wxString *arg2 = 0 ;
21109 bool result;
21110 void *argp1 = 0 ;
21111 int res1 = 0 ;
21112 bool temp2 = false ;
21113 PyObject * obj0 = 0 ;
21114 PyObject * obj1 = 0 ;
21115 char * kwnames[] = {
21116 (char *) "self",(char *) "message", NULL
21117 };
21118
21119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
21120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21121 if (!SWIG_IsOK(res1)) {
21122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21123 }
21124 arg1 = reinterpret_cast< wxDC * >(argp1);
21125 {
21126 arg2 = wxString_in_helper(obj1);
21127 if (arg2 == NULL) SWIG_fail;
21128 temp2 = true;
21129 }
21130 {
21131 PyThreadState* __tstate = wxPyBeginAllowThreads();
21132 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
21133 wxPyEndAllowThreads(__tstate);
21134 if (PyErr_Occurred()) SWIG_fail;
21135 }
21136 {
21137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21138 }
21139 {
21140 if (temp2)
21141 delete arg2;
21142 }
21143 return resultobj;
21144 fail:
21145 {
21146 if (temp2)
21147 delete arg2;
21148 }
21149 return NULL;
21150 }
21151
21152
21153 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21154 PyObject *resultobj = 0;
21155 wxDC *arg1 = (wxDC *) 0 ;
21156 void *argp1 = 0 ;
21157 int res1 = 0 ;
21158 PyObject *swig_obj[1] ;
21159
21160 if (!args) SWIG_fail;
21161 swig_obj[0] = args;
21162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21163 if (!SWIG_IsOK(res1)) {
21164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21165 }
21166 arg1 = reinterpret_cast< wxDC * >(argp1);
21167 {
21168 PyThreadState* __tstate = wxPyBeginAllowThreads();
21169 (arg1)->EndDoc();
21170 wxPyEndAllowThreads(__tstate);
21171 if (PyErr_Occurred()) SWIG_fail;
21172 }
21173 resultobj = SWIG_Py_Void();
21174 return resultobj;
21175 fail:
21176 return NULL;
21177 }
21178
21179
21180 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21181 PyObject *resultobj = 0;
21182 wxDC *arg1 = (wxDC *) 0 ;
21183 void *argp1 = 0 ;
21184 int res1 = 0 ;
21185 PyObject *swig_obj[1] ;
21186
21187 if (!args) SWIG_fail;
21188 swig_obj[0] = args;
21189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21190 if (!SWIG_IsOK(res1)) {
21191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
21192 }
21193 arg1 = reinterpret_cast< wxDC * >(argp1);
21194 {
21195 PyThreadState* __tstate = wxPyBeginAllowThreads();
21196 (arg1)->StartPage();
21197 wxPyEndAllowThreads(__tstate);
21198 if (PyErr_Occurred()) SWIG_fail;
21199 }
21200 resultobj = SWIG_Py_Void();
21201 return resultobj;
21202 fail:
21203 return NULL;
21204 }
21205
21206
21207 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21208 PyObject *resultobj = 0;
21209 wxDC *arg1 = (wxDC *) 0 ;
21210 void *argp1 = 0 ;
21211 int res1 = 0 ;
21212 PyObject *swig_obj[1] ;
21213
21214 if (!args) SWIG_fail;
21215 swig_obj[0] = args;
21216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21217 if (!SWIG_IsOK(res1)) {
21218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21219 }
21220 arg1 = reinterpret_cast< wxDC * >(argp1);
21221 {
21222 PyThreadState* __tstate = wxPyBeginAllowThreads();
21223 (arg1)->EndPage();
21224 wxPyEndAllowThreads(__tstate);
21225 if (PyErr_Occurred()) SWIG_fail;
21226 }
21227 resultobj = SWIG_Py_Void();
21228 return resultobj;
21229 fail:
21230 return NULL;
21231 }
21232
21233
21234 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21235 PyObject *resultobj = 0;
21236 wxDC *arg1 = (wxDC *) 0 ;
21237 wxFont *arg2 = 0 ;
21238 void *argp1 = 0 ;
21239 int res1 = 0 ;
21240 void *argp2 = 0 ;
21241 int res2 = 0 ;
21242 PyObject * obj0 = 0 ;
21243 PyObject * obj1 = 0 ;
21244 char * kwnames[] = {
21245 (char *) "self",(char *) "font", NULL
21246 };
21247
21248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21250 if (!SWIG_IsOK(res1)) {
21251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21252 }
21253 arg1 = reinterpret_cast< wxDC * >(argp1);
21254 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21255 if (!SWIG_IsOK(res2)) {
21256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21257 }
21258 if (!argp2) {
21259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21260 }
21261 arg2 = reinterpret_cast< wxFont * >(argp2);
21262 {
21263 PyThreadState* __tstate = wxPyBeginAllowThreads();
21264 (arg1)->SetFont((wxFont const &)*arg2);
21265 wxPyEndAllowThreads(__tstate);
21266 if (PyErr_Occurred()) SWIG_fail;
21267 }
21268 resultobj = SWIG_Py_Void();
21269 return resultobj;
21270 fail:
21271 return NULL;
21272 }
21273
21274
21275 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21276 PyObject *resultobj = 0;
21277 wxDC *arg1 = (wxDC *) 0 ;
21278 wxPen *arg2 = 0 ;
21279 void *argp1 = 0 ;
21280 int res1 = 0 ;
21281 void *argp2 = 0 ;
21282 int res2 = 0 ;
21283 PyObject * obj0 = 0 ;
21284 PyObject * obj1 = 0 ;
21285 char * kwnames[] = {
21286 (char *) "self",(char *) "pen", NULL
21287 };
21288
21289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21291 if (!SWIG_IsOK(res1)) {
21292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21293 }
21294 arg1 = reinterpret_cast< wxDC * >(argp1);
21295 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21296 if (!SWIG_IsOK(res2)) {
21297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21298 }
21299 if (!argp2) {
21300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21301 }
21302 arg2 = reinterpret_cast< wxPen * >(argp2);
21303 {
21304 PyThreadState* __tstate = wxPyBeginAllowThreads();
21305 (arg1)->SetPen((wxPen const &)*arg2);
21306 wxPyEndAllowThreads(__tstate);
21307 if (PyErr_Occurred()) SWIG_fail;
21308 }
21309 resultobj = SWIG_Py_Void();
21310 return resultobj;
21311 fail:
21312 return NULL;
21313 }
21314
21315
21316 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21317 PyObject *resultobj = 0;
21318 wxDC *arg1 = (wxDC *) 0 ;
21319 wxBrush *arg2 = 0 ;
21320 void *argp1 = 0 ;
21321 int res1 = 0 ;
21322 void *argp2 = 0 ;
21323 int res2 = 0 ;
21324 PyObject * obj0 = 0 ;
21325 PyObject * obj1 = 0 ;
21326 char * kwnames[] = {
21327 (char *) "self",(char *) "brush", NULL
21328 };
21329
21330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21332 if (!SWIG_IsOK(res1)) {
21333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21334 }
21335 arg1 = reinterpret_cast< wxDC * >(argp1);
21336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21337 if (!SWIG_IsOK(res2)) {
21338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21339 }
21340 if (!argp2) {
21341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21342 }
21343 arg2 = reinterpret_cast< wxBrush * >(argp2);
21344 {
21345 PyThreadState* __tstate = wxPyBeginAllowThreads();
21346 (arg1)->SetBrush((wxBrush const &)*arg2);
21347 wxPyEndAllowThreads(__tstate);
21348 if (PyErr_Occurred()) SWIG_fail;
21349 }
21350 resultobj = SWIG_Py_Void();
21351 return resultobj;
21352 fail:
21353 return NULL;
21354 }
21355
21356
21357 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21358 PyObject *resultobj = 0;
21359 wxDC *arg1 = (wxDC *) 0 ;
21360 wxBrush *arg2 = 0 ;
21361 void *argp1 = 0 ;
21362 int res1 = 0 ;
21363 void *argp2 = 0 ;
21364 int res2 = 0 ;
21365 PyObject * obj0 = 0 ;
21366 PyObject * obj1 = 0 ;
21367 char * kwnames[] = {
21368 (char *) "self",(char *) "brush", NULL
21369 };
21370
21371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21373 if (!SWIG_IsOK(res1)) {
21374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21375 }
21376 arg1 = reinterpret_cast< wxDC * >(argp1);
21377 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21378 if (!SWIG_IsOK(res2)) {
21379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21380 }
21381 if (!argp2) {
21382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21383 }
21384 arg2 = reinterpret_cast< wxBrush * >(argp2);
21385 {
21386 PyThreadState* __tstate = wxPyBeginAllowThreads();
21387 (arg1)->SetBackground((wxBrush const &)*arg2);
21388 wxPyEndAllowThreads(__tstate);
21389 if (PyErr_Occurred()) SWIG_fail;
21390 }
21391 resultobj = SWIG_Py_Void();
21392 return resultobj;
21393 fail:
21394 return NULL;
21395 }
21396
21397
21398 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21399 PyObject *resultobj = 0;
21400 wxDC *arg1 = (wxDC *) 0 ;
21401 int arg2 ;
21402 void *argp1 = 0 ;
21403 int res1 = 0 ;
21404 int val2 ;
21405 int ecode2 = 0 ;
21406 PyObject * obj0 = 0 ;
21407 PyObject * obj1 = 0 ;
21408 char * kwnames[] = {
21409 (char *) "self",(char *) "mode", NULL
21410 };
21411
21412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21414 if (!SWIG_IsOK(res1)) {
21415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21416 }
21417 arg1 = reinterpret_cast< wxDC * >(argp1);
21418 ecode2 = SWIG_AsVal_int(obj1, &val2);
21419 if (!SWIG_IsOK(ecode2)) {
21420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21421 }
21422 arg2 = static_cast< int >(val2);
21423 {
21424 PyThreadState* __tstate = wxPyBeginAllowThreads();
21425 (arg1)->SetBackgroundMode(arg2);
21426 wxPyEndAllowThreads(__tstate);
21427 if (PyErr_Occurred()) SWIG_fail;
21428 }
21429 resultobj = SWIG_Py_Void();
21430 return resultobj;
21431 fail:
21432 return NULL;
21433 }
21434
21435
21436 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21437 PyObject *resultobj = 0;
21438 wxDC *arg1 = (wxDC *) 0 ;
21439 wxPalette *arg2 = 0 ;
21440 void *argp1 = 0 ;
21441 int res1 = 0 ;
21442 void *argp2 = 0 ;
21443 int res2 = 0 ;
21444 PyObject * obj0 = 0 ;
21445 PyObject * obj1 = 0 ;
21446 char * kwnames[] = {
21447 (char *) "self",(char *) "palette", NULL
21448 };
21449
21450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21452 if (!SWIG_IsOK(res1)) {
21453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21454 }
21455 arg1 = reinterpret_cast< wxDC * >(argp1);
21456 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21457 if (!SWIG_IsOK(res2)) {
21458 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21459 }
21460 if (!argp2) {
21461 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21462 }
21463 arg2 = reinterpret_cast< wxPalette * >(argp2);
21464 {
21465 PyThreadState* __tstate = wxPyBeginAllowThreads();
21466 (arg1)->SetPalette((wxPalette const &)*arg2);
21467 wxPyEndAllowThreads(__tstate);
21468 if (PyErr_Occurred()) SWIG_fail;
21469 }
21470 resultobj = SWIG_Py_Void();
21471 return resultobj;
21472 fail:
21473 return NULL;
21474 }
21475
21476
21477 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21478 PyObject *resultobj = 0;
21479 wxDC *arg1 = (wxDC *) 0 ;
21480 void *argp1 = 0 ;
21481 int res1 = 0 ;
21482 PyObject *swig_obj[1] ;
21483
21484 if (!args) SWIG_fail;
21485 swig_obj[0] = args;
21486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21487 if (!SWIG_IsOK(res1)) {
21488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21489 }
21490 arg1 = reinterpret_cast< wxDC * >(argp1);
21491 {
21492 PyThreadState* __tstate = wxPyBeginAllowThreads();
21493 (arg1)->DestroyClippingRegion();
21494 wxPyEndAllowThreads(__tstate);
21495 if (PyErr_Occurred()) SWIG_fail;
21496 }
21497 resultobj = SWIG_Py_Void();
21498 return resultobj;
21499 fail:
21500 return NULL;
21501 }
21502
21503
21504 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21505 PyObject *resultobj = 0;
21506 wxDC *arg1 = (wxDC *) 0 ;
21507 int *arg2 = (int *) 0 ;
21508 int *arg3 = (int *) 0 ;
21509 int *arg4 = (int *) 0 ;
21510 int *arg5 = (int *) 0 ;
21511 void *argp1 = 0 ;
21512 int res1 = 0 ;
21513 int temp2 ;
21514 int res2 = SWIG_TMPOBJ ;
21515 int temp3 ;
21516 int res3 = SWIG_TMPOBJ ;
21517 int temp4 ;
21518 int res4 = SWIG_TMPOBJ ;
21519 int temp5 ;
21520 int res5 = SWIG_TMPOBJ ;
21521 PyObject *swig_obj[1] ;
21522
21523 arg2 = &temp2;
21524 arg3 = &temp3;
21525 arg4 = &temp4;
21526 arg5 = &temp5;
21527 if (!args) SWIG_fail;
21528 swig_obj[0] = args;
21529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21530 if (!SWIG_IsOK(res1)) {
21531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21532 }
21533 arg1 = reinterpret_cast< wxDC * >(argp1);
21534 {
21535 PyThreadState* __tstate = wxPyBeginAllowThreads();
21536 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21537 wxPyEndAllowThreads(__tstate);
21538 if (PyErr_Occurred()) SWIG_fail;
21539 }
21540 resultobj = SWIG_Py_Void();
21541 if (SWIG_IsTmpObj(res2)) {
21542 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21543 } else {
21544 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21545 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21546 }
21547 if (SWIG_IsTmpObj(res3)) {
21548 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21549 } else {
21550 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21551 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21552 }
21553 if (SWIG_IsTmpObj(res4)) {
21554 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21555 } else {
21556 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21557 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21558 }
21559 if (SWIG_IsTmpObj(res5)) {
21560 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21561 } else {
21562 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21563 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21564 }
21565 return resultobj;
21566 fail:
21567 return NULL;
21568 }
21569
21570
21571 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21572 PyObject *resultobj = 0;
21573 wxDC *arg1 = (wxDC *) 0 ;
21574 wxRect result;
21575 void *argp1 = 0 ;
21576 int res1 = 0 ;
21577 PyObject *swig_obj[1] ;
21578
21579 if (!args) SWIG_fail;
21580 swig_obj[0] = args;
21581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21582 if (!SWIG_IsOK(res1)) {
21583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21584 }
21585 arg1 = reinterpret_cast< wxDC * >(argp1);
21586 {
21587 PyThreadState* __tstate = wxPyBeginAllowThreads();
21588 result = wxDC_GetClippingRect(arg1);
21589 wxPyEndAllowThreads(__tstate);
21590 if (PyErr_Occurred()) SWIG_fail;
21591 }
21592 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21593 return resultobj;
21594 fail:
21595 return NULL;
21596 }
21597
21598
21599 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21600 PyObject *resultobj = 0;
21601 wxDC *arg1 = (wxDC *) 0 ;
21602 int result;
21603 void *argp1 = 0 ;
21604 int res1 = 0 ;
21605 PyObject *swig_obj[1] ;
21606
21607 if (!args) SWIG_fail;
21608 swig_obj[0] = args;
21609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21610 if (!SWIG_IsOK(res1)) {
21611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21612 }
21613 arg1 = reinterpret_cast< wxDC * >(argp1);
21614 {
21615 PyThreadState* __tstate = wxPyBeginAllowThreads();
21616 result = (int)((wxDC const *)arg1)->GetCharHeight();
21617 wxPyEndAllowThreads(__tstate);
21618 if (PyErr_Occurred()) SWIG_fail;
21619 }
21620 resultobj = SWIG_From_int(static_cast< int >(result));
21621 return resultobj;
21622 fail:
21623 return NULL;
21624 }
21625
21626
21627 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21628 PyObject *resultobj = 0;
21629 wxDC *arg1 = (wxDC *) 0 ;
21630 int result;
21631 void *argp1 = 0 ;
21632 int res1 = 0 ;
21633 PyObject *swig_obj[1] ;
21634
21635 if (!args) SWIG_fail;
21636 swig_obj[0] = args;
21637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21638 if (!SWIG_IsOK(res1)) {
21639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21640 }
21641 arg1 = reinterpret_cast< wxDC * >(argp1);
21642 {
21643 PyThreadState* __tstate = wxPyBeginAllowThreads();
21644 result = (int)((wxDC const *)arg1)->GetCharWidth();
21645 wxPyEndAllowThreads(__tstate);
21646 if (PyErr_Occurred()) SWIG_fail;
21647 }
21648 resultobj = SWIG_From_int(static_cast< int >(result));
21649 return resultobj;
21650 fail:
21651 return NULL;
21652 }
21653
21654
21655 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21656 PyObject *resultobj = 0;
21657 wxDC *arg1 = (wxDC *) 0 ;
21658 wxString *arg2 = 0 ;
21659 int *arg3 = (int *) 0 ;
21660 int *arg4 = (int *) 0 ;
21661 void *argp1 = 0 ;
21662 int res1 = 0 ;
21663 bool temp2 = false ;
21664 int temp3 ;
21665 int res3 = SWIG_TMPOBJ ;
21666 int temp4 ;
21667 int res4 = SWIG_TMPOBJ ;
21668 PyObject * obj0 = 0 ;
21669 PyObject * obj1 = 0 ;
21670 char * kwnames[] = {
21671 (char *) "self",(char *) "string", NULL
21672 };
21673
21674 arg3 = &temp3;
21675 arg4 = &temp4;
21676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21678 if (!SWIG_IsOK(res1)) {
21679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21680 }
21681 arg1 = reinterpret_cast< wxDC * >(argp1);
21682 {
21683 arg2 = wxString_in_helper(obj1);
21684 if (arg2 == NULL) SWIG_fail;
21685 temp2 = true;
21686 }
21687 {
21688 PyThreadState* __tstate = wxPyBeginAllowThreads();
21689 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21690 wxPyEndAllowThreads(__tstate);
21691 if (PyErr_Occurred()) SWIG_fail;
21692 }
21693 resultobj = SWIG_Py_Void();
21694 if (SWIG_IsTmpObj(res3)) {
21695 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21696 } else {
21697 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21698 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21699 }
21700 if (SWIG_IsTmpObj(res4)) {
21701 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21702 } else {
21703 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21704 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21705 }
21706 {
21707 if (temp2)
21708 delete arg2;
21709 }
21710 return resultobj;
21711 fail:
21712 {
21713 if (temp2)
21714 delete arg2;
21715 }
21716 return NULL;
21717 }
21718
21719
21720 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21721 PyObject *resultobj = 0;
21722 wxDC *arg1 = (wxDC *) 0 ;
21723 wxString *arg2 = 0 ;
21724 int *arg3 = (int *) 0 ;
21725 int *arg4 = (int *) 0 ;
21726 int *arg5 = (int *) 0 ;
21727 int *arg6 = (int *) 0 ;
21728 wxFont *arg7 = (wxFont *) NULL ;
21729 void *argp1 = 0 ;
21730 int res1 = 0 ;
21731 bool temp2 = false ;
21732 int temp3 ;
21733 int res3 = SWIG_TMPOBJ ;
21734 int temp4 ;
21735 int res4 = SWIG_TMPOBJ ;
21736 int temp5 ;
21737 int res5 = SWIG_TMPOBJ ;
21738 int temp6 ;
21739 int res6 = SWIG_TMPOBJ ;
21740 void *argp7 = 0 ;
21741 int res7 = 0 ;
21742 PyObject * obj0 = 0 ;
21743 PyObject * obj1 = 0 ;
21744 PyObject * obj2 = 0 ;
21745 char * kwnames[] = {
21746 (char *) "self",(char *) "string",(char *) "font", NULL
21747 };
21748
21749 arg3 = &temp3;
21750 arg4 = &temp4;
21751 arg5 = &temp5;
21752 arg6 = &temp6;
21753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21755 if (!SWIG_IsOK(res1)) {
21756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21757 }
21758 arg1 = reinterpret_cast< wxDC * >(argp1);
21759 {
21760 arg2 = wxString_in_helper(obj1);
21761 if (arg2 == NULL) SWIG_fail;
21762 temp2 = true;
21763 }
21764 if (obj2) {
21765 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21766 if (!SWIG_IsOK(res7)) {
21767 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21768 }
21769 arg7 = reinterpret_cast< wxFont * >(argp7);
21770 }
21771 {
21772 PyThreadState* __tstate = wxPyBeginAllowThreads();
21773 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21774 wxPyEndAllowThreads(__tstate);
21775 if (PyErr_Occurred()) SWIG_fail;
21776 }
21777 resultobj = SWIG_Py_Void();
21778 if (SWIG_IsTmpObj(res3)) {
21779 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21780 } else {
21781 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21782 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21783 }
21784 if (SWIG_IsTmpObj(res4)) {
21785 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21786 } else {
21787 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21788 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21789 }
21790 if (SWIG_IsTmpObj(res5)) {
21791 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21792 } else {
21793 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21794 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21795 }
21796 if (SWIG_IsTmpObj(res6)) {
21797 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21798 } else {
21799 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21800 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21801 }
21802 {
21803 if (temp2)
21804 delete arg2;
21805 }
21806 return resultobj;
21807 fail:
21808 {
21809 if (temp2)
21810 delete arg2;
21811 }
21812 return NULL;
21813 }
21814
21815
21816 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21817 PyObject *resultobj = 0;
21818 wxDC *arg1 = (wxDC *) 0 ;
21819 wxString *arg2 = 0 ;
21820 int *arg3 = (int *) 0 ;
21821 int *arg4 = (int *) 0 ;
21822 int *arg5 = (int *) 0 ;
21823 wxFont *arg6 = (wxFont *) NULL ;
21824 void *argp1 = 0 ;
21825 int res1 = 0 ;
21826 bool temp2 = false ;
21827 int temp3 ;
21828 int res3 = SWIG_TMPOBJ ;
21829 int temp4 ;
21830 int res4 = SWIG_TMPOBJ ;
21831 int temp5 ;
21832 int res5 = SWIG_TMPOBJ ;
21833 void *argp6 = 0 ;
21834 int res6 = 0 ;
21835 PyObject * obj0 = 0 ;
21836 PyObject * obj1 = 0 ;
21837 PyObject * obj2 = 0 ;
21838 char * kwnames[] = {
21839 (char *) "self",(char *) "text",(char *) "font", NULL
21840 };
21841
21842 arg3 = &temp3;
21843 arg4 = &temp4;
21844 arg5 = &temp5;
21845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21847 if (!SWIG_IsOK(res1)) {
21848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21849 }
21850 arg1 = reinterpret_cast< wxDC * >(argp1);
21851 {
21852 arg2 = wxString_in_helper(obj1);
21853 if (arg2 == NULL) SWIG_fail;
21854 temp2 = true;
21855 }
21856 if (obj2) {
21857 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21858 if (!SWIG_IsOK(res6)) {
21859 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21860 }
21861 arg6 = reinterpret_cast< wxFont * >(argp6);
21862 }
21863 {
21864 PyThreadState* __tstate = wxPyBeginAllowThreads();
21865 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21866 wxPyEndAllowThreads(__tstate);
21867 if (PyErr_Occurred()) SWIG_fail;
21868 }
21869 resultobj = SWIG_Py_Void();
21870 if (SWIG_IsTmpObj(res3)) {
21871 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21872 } else {
21873 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21874 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21875 }
21876 if (SWIG_IsTmpObj(res4)) {
21877 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21878 } else {
21879 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21880 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21881 }
21882 if (SWIG_IsTmpObj(res5)) {
21883 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21884 } else {
21885 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21886 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21887 }
21888 {
21889 if (temp2)
21890 delete arg2;
21891 }
21892 return resultobj;
21893 fail:
21894 {
21895 if (temp2)
21896 delete arg2;
21897 }
21898 return NULL;
21899 }
21900
21901
21902 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21903 PyObject *resultobj = 0;
21904 wxDC *arg1 = (wxDC *) 0 ;
21905 wxString *arg2 = 0 ;
21906 wxArrayInt result;
21907 void *argp1 = 0 ;
21908 int res1 = 0 ;
21909 bool temp2 = false ;
21910 PyObject * obj0 = 0 ;
21911 PyObject * obj1 = 0 ;
21912 char * kwnames[] = {
21913 (char *) "self",(char *) "text", NULL
21914 };
21915
21916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21918 if (!SWIG_IsOK(res1)) {
21919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21920 }
21921 arg1 = reinterpret_cast< wxDC * >(argp1);
21922 {
21923 arg2 = wxString_in_helper(obj1);
21924 if (arg2 == NULL) SWIG_fail;
21925 temp2 = true;
21926 }
21927 {
21928 PyThreadState* __tstate = wxPyBeginAllowThreads();
21929 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21930 wxPyEndAllowThreads(__tstate);
21931 if (PyErr_Occurred()) SWIG_fail;
21932 }
21933 {
21934 resultobj = wxArrayInt2PyList_helper(result);
21935 }
21936 {
21937 if (temp2)
21938 delete arg2;
21939 }
21940 return resultobj;
21941 fail:
21942 {
21943 if (temp2)
21944 delete arg2;
21945 }
21946 return NULL;
21947 }
21948
21949
21950 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21951 PyObject *resultobj = 0;
21952 wxDC *arg1 = (wxDC *) 0 ;
21953 wxSize result;
21954 void *argp1 = 0 ;
21955 int res1 = 0 ;
21956 PyObject *swig_obj[1] ;
21957
21958 if (!args) SWIG_fail;
21959 swig_obj[0] = args;
21960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21961 if (!SWIG_IsOK(res1)) {
21962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21963 }
21964 arg1 = reinterpret_cast< wxDC * >(argp1);
21965 {
21966 PyThreadState* __tstate = wxPyBeginAllowThreads();
21967 result = (arg1)->GetSize();
21968 wxPyEndAllowThreads(__tstate);
21969 if (PyErr_Occurred()) SWIG_fail;
21970 }
21971 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21972 return resultobj;
21973 fail:
21974 return NULL;
21975 }
21976
21977
21978 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21979 PyObject *resultobj = 0;
21980 wxDC *arg1 = (wxDC *) 0 ;
21981 int *arg2 = (int *) 0 ;
21982 int *arg3 = (int *) 0 ;
21983 void *argp1 = 0 ;
21984 int res1 = 0 ;
21985 int temp2 ;
21986 int res2 = SWIG_TMPOBJ ;
21987 int temp3 ;
21988 int res3 = SWIG_TMPOBJ ;
21989 PyObject *swig_obj[1] ;
21990
21991 arg2 = &temp2;
21992 arg3 = &temp3;
21993 if (!args) SWIG_fail;
21994 swig_obj[0] = args;
21995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21996 if (!SWIG_IsOK(res1)) {
21997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21998 }
21999 arg1 = reinterpret_cast< wxDC * >(argp1);
22000 {
22001 PyThreadState* __tstate = wxPyBeginAllowThreads();
22002 (arg1)->GetSize(arg2,arg3);
22003 wxPyEndAllowThreads(__tstate);
22004 if (PyErr_Occurred()) SWIG_fail;
22005 }
22006 resultobj = SWIG_Py_Void();
22007 if (SWIG_IsTmpObj(res2)) {
22008 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22009 } else {
22010 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22011 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22012 }
22013 if (SWIG_IsTmpObj(res3)) {
22014 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22015 } else {
22016 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22017 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22018 }
22019 return resultobj;
22020 fail:
22021 return NULL;
22022 }
22023
22024
22025 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22026 PyObject *resultobj = 0;
22027 wxDC *arg1 = (wxDC *) 0 ;
22028 wxSize result;
22029 void *argp1 = 0 ;
22030 int res1 = 0 ;
22031 PyObject *swig_obj[1] ;
22032
22033 if (!args) SWIG_fail;
22034 swig_obj[0] = args;
22035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22036 if (!SWIG_IsOK(res1)) {
22037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
22038 }
22039 arg1 = reinterpret_cast< wxDC * >(argp1);
22040 {
22041 PyThreadState* __tstate = wxPyBeginAllowThreads();
22042 result = ((wxDC const *)arg1)->GetSizeMM();
22043 wxPyEndAllowThreads(__tstate);
22044 if (PyErr_Occurred()) SWIG_fail;
22045 }
22046 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22047 return resultobj;
22048 fail:
22049 return NULL;
22050 }
22051
22052
22053 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22054 PyObject *resultobj = 0;
22055 wxDC *arg1 = (wxDC *) 0 ;
22056 int *arg2 = (int *) 0 ;
22057 int *arg3 = (int *) 0 ;
22058 void *argp1 = 0 ;
22059 int res1 = 0 ;
22060 int temp2 ;
22061 int res2 = SWIG_TMPOBJ ;
22062 int temp3 ;
22063 int res3 = SWIG_TMPOBJ ;
22064 PyObject *swig_obj[1] ;
22065
22066 arg2 = &temp2;
22067 arg3 = &temp3;
22068 if (!args) SWIG_fail;
22069 swig_obj[0] = args;
22070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22071 if (!SWIG_IsOK(res1)) {
22072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22073 }
22074 arg1 = reinterpret_cast< wxDC * >(argp1);
22075 {
22076 PyThreadState* __tstate = wxPyBeginAllowThreads();
22077 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
22078 wxPyEndAllowThreads(__tstate);
22079 if (PyErr_Occurred()) SWIG_fail;
22080 }
22081 resultobj = SWIG_Py_Void();
22082 if (SWIG_IsTmpObj(res2)) {
22083 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22084 } else {
22085 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22086 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22087 }
22088 if (SWIG_IsTmpObj(res3)) {
22089 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22090 } else {
22091 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22092 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22093 }
22094 return resultobj;
22095 fail:
22096 return NULL;
22097 }
22098
22099
22100 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22101 PyObject *resultobj = 0;
22102 wxDC *arg1 = (wxDC *) 0 ;
22103 int arg2 ;
22104 int result;
22105 void *argp1 = 0 ;
22106 int res1 = 0 ;
22107 int val2 ;
22108 int ecode2 = 0 ;
22109 PyObject * obj0 = 0 ;
22110 PyObject * obj1 = 0 ;
22111 char * kwnames[] = {
22112 (char *) "self",(char *) "x", NULL
22113 };
22114
22115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
22116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22117 if (!SWIG_IsOK(res1)) {
22118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
22119 }
22120 arg1 = reinterpret_cast< wxDC * >(argp1);
22121 ecode2 = SWIG_AsVal_int(obj1, &val2);
22122 if (!SWIG_IsOK(ecode2)) {
22123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
22124 }
22125 arg2 = static_cast< int >(val2);
22126 {
22127 PyThreadState* __tstate = wxPyBeginAllowThreads();
22128 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
22129 wxPyEndAllowThreads(__tstate);
22130 if (PyErr_Occurred()) SWIG_fail;
22131 }
22132 resultobj = SWIG_From_int(static_cast< int >(result));
22133 return resultobj;
22134 fail:
22135 return NULL;
22136 }
22137
22138
22139 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22140 PyObject *resultobj = 0;
22141 wxDC *arg1 = (wxDC *) 0 ;
22142 int arg2 ;
22143 int result;
22144 void *argp1 = 0 ;
22145 int res1 = 0 ;
22146 int val2 ;
22147 int ecode2 = 0 ;
22148 PyObject * obj0 = 0 ;
22149 PyObject * obj1 = 0 ;
22150 char * kwnames[] = {
22151 (char *) "self",(char *) "y", NULL
22152 };
22153
22154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
22155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22156 if (!SWIG_IsOK(res1)) {
22157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
22158 }
22159 arg1 = reinterpret_cast< wxDC * >(argp1);
22160 ecode2 = SWIG_AsVal_int(obj1, &val2);
22161 if (!SWIG_IsOK(ecode2)) {
22162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
22163 }
22164 arg2 = static_cast< int >(val2);
22165 {
22166 PyThreadState* __tstate = wxPyBeginAllowThreads();
22167 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
22168 wxPyEndAllowThreads(__tstate);
22169 if (PyErr_Occurred()) SWIG_fail;
22170 }
22171 resultobj = SWIG_From_int(static_cast< int >(result));
22172 return resultobj;
22173 fail:
22174 return NULL;
22175 }
22176
22177
22178 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22179 PyObject *resultobj = 0;
22180 wxDC *arg1 = (wxDC *) 0 ;
22181 int arg2 ;
22182 int result;
22183 void *argp1 = 0 ;
22184 int res1 = 0 ;
22185 int val2 ;
22186 int ecode2 = 0 ;
22187 PyObject * obj0 = 0 ;
22188 PyObject * obj1 = 0 ;
22189 char * kwnames[] = {
22190 (char *) "self",(char *) "x", NULL
22191 };
22192
22193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22195 if (!SWIG_IsOK(res1)) {
22196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22197 }
22198 arg1 = reinterpret_cast< wxDC * >(argp1);
22199 ecode2 = SWIG_AsVal_int(obj1, &val2);
22200 if (!SWIG_IsOK(ecode2)) {
22201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
22202 }
22203 arg2 = static_cast< int >(val2);
22204 {
22205 PyThreadState* __tstate = wxPyBeginAllowThreads();
22206 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
22207 wxPyEndAllowThreads(__tstate);
22208 if (PyErr_Occurred()) SWIG_fail;
22209 }
22210 resultobj = SWIG_From_int(static_cast< int >(result));
22211 return resultobj;
22212 fail:
22213 return NULL;
22214 }
22215
22216
22217 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22218 PyObject *resultobj = 0;
22219 wxDC *arg1 = (wxDC *) 0 ;
22220 int arg2 ;
22221 int result;
22222 void *argp1 = 0 ;
22223 int res1 = 0 ;
22224 int val2 ;
22225 int ecode2 = 0 ;
22226 PyObject * obj0 = 0 ;
22227 PyObject * obj1 = 0 ;
22228 char * kwnames[] = {
22229 (char *) "self",(char *) "y", NULL
22230 };
22231
22232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22234 if (!SWIG_IsOK(res1)) {
22235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22236 }
22237 arg1 = reinterpret_cast< wxDC * >(argp1);
22238 ecode2 = SWIG_AsVal_int(obj1, &val2);
22239 if (!SWIG_IsOK(ecode2)) {
22240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22241 }
22242 arg2 = static_cast< int >(val2);
22243 {
22244 PyThreadState* __tstate = wxPyBeginAllowThreads();
22245 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22246 wxPyEndAllowThreads(__tstate);
22247 if (PyErr_Occurred()) SWIG_fail;
22248 }
22249 resultobj = SWIG_From_int(static_cast< int >(result));
22250 return resultobj;
22251 fail:
22252 return NULL;
22253 }
22254
22255
22256 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22257 PyObject *resultobj = 0;
22258 wxDC *arg1 = (wxDC *) 0 ;
22259 int arg2 ;
22260 int result;
22261 void *argp1 = 0 ;
22262 int res1 = 0 ;
22263 int val2 ;
22264 int ecode2 = 0 ;
22265 PyObject * obj0 = 0 ;
22266 PyObject * obj1 = 0 ;
22267 char * kwnames[] = {
22268 (char *) "self",(char *) "x", NULL
22269 };
22270
22271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22273 if (!SWIG_IsOK(res1)) {
22274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22275 }
22276 arg1 = reinterpret_cast< wxDC * >(argp1);
22277 ecode2 = SWIG_AsVal_int(obj1, &val2);
22278 if (!SWIG_IsOK(ecode2)) {
22279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22280 }
22281 arg2 = static_cast< int >(val2);
22282 {
22283 PyThreadState* __tstate = wxPyBeginAllowThreads();
22284 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22285 wxPyEndAllowThreads(__tstate);
22286 if (PyErr_Occurred()) SWIG_fail;
22287 }
22288 resultobj = SWIG_From_int(static_cast< int >(result));
22289 return resultobj;
22290 fail:
22291 return NULL;
22292 }
22293
22294
22295 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22296 PyObject *resultobj = 0;
22297 wxDC *arg1 = (wxDC *) 0 ;
22298 int arg2 ;
22299 int result;
22300 void *argp1 = 0 ;
22301 int res1 = 0 ;
22302 int val2 ;
22303 int ecode2 = 0 ;
22304 PyObject * obj0 = 0 ;
22305 PyObject * obj1 = 0 ;
22306 char * kwnames[] = {
22307 (char *) "self",(char *) "y", NULL
22308 };
22309
22310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22312 if (!SWIG_IsOK(res1)) {
22313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22314 }
22315 arg1 = reinterpret_cast< wxDC * >(argp1);
22316 ecode2 = SWIG_AsVal_int(obj1, &val2);
22317 if (!SWIG_IsOK(ecode2)) {
22318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22319 }
22320 arg2 = static_cast< int >(val2);
22321 {
22322 PyThreadState* __tstate = wxPyBeginAllowThreads();
22323 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22324 wxPyEndAllowThreads(__tstate);
22325 if (PyErr_Occurred()) SWIG_fail;
22326 }
22327 resultobj = SWIG_From_int(static_cast< int >(result));
22328 return resultobj;
22329 fail:
22330 return NULL;
22331 }
22332
22333
22334 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22335 PyObject *resultobj = 0;
22336 wxDC *arg1 = (wxDC *) 0 ;
22337 int arg2 ;
22338 int result;
22339 void *argp1 = 0 ;
22340 int res1 = 0 ;
22341 int val2 ;
22342 int ecode2 = 0 ;
22343 PyObject * obj0 = 0 ;
22344 PyObject * obj1 = 0 ;
22345 char * kwnames[] = {
22346 (char *) "self",(char *) "x", NULL
22347 };
22348
22349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22351 if (!SWIG_IsOK(res1)) {
22352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22353 }
22354 arg1 = reinterpret_cast< wxDC * >(argp1);
22355 ecode2 = SWIG_AsVal_int(obj1, &val2);
22356 if (!SWIG_IsOK(ecode2)) {
22357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22358 }
22359 arg2 = static_cast< int >(val2);
22360 {
22361 PyThreadState* __tstate = wxPyBeginAllowThreads();
22362 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22363 wxPyEndAllowThreads(__tstate);
22364 if (PyErr_Occurred()) SWIG_fail;
22365 }
22366 resultobj = SWIG_From_int(static_cast< int >(result));
22367 return resultobj;
22368 fail:
22369 return NULL;
22370 }
22371
22372
22373 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22374 PyObject *resultobj = 0;
22375 wxDC *arg1 = (wxDC *) 0 ;
22376 int arg2 ;
22377 int result;
22378 void *argp1 = 0 ;
22379 int res1 = 0 ;
22380 int val2 ;
22381 int ecode2 = 0 ;
22382 PyObject * obj0 = 0 ;
22383 PyObject * obj1 = 0 ;
22384 char * kwnames[] = {
22385 (char *) "self",(char *) "y", NULL
22386 };
22387
22388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22390 if (!SWIG_IsOK(res1)) {
22391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22392 }
22393 arg1 = reinterpret_cast< wxDC * >(argp1);
22394 ecode2 = SWIG_AsVal_int(obj1, &val2);
22395 if (!SWIG_IsOK(ecode2)) {
22396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22397 }
22398 arg2 = static_cast< int >(val2);
22399 {
22400 PyThreadState* __tstate = wxPyBeginAllowThreads();
22401 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22402 wxPyEndAllowThreads(__tstate);
22403 if (PyErr_Occurred()) SWIG_fail;
22404 }
22405 resultobj = SWIG_From_int(static_cast< int >(result));
22406 return resultobj;
22407 fail:
22408 return NULL;
22409 }
22410
22411
22412 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22413 PyObject *resultobj = 0;
22414 wxDC *arg1 = (wxDC *) 0 ;
22415 bool result;
22416 void *argp1 = 0 ;
22417 int res1 = 0 ;
22418 PyObject *swig_obj[1] ;
22419
22420 if (!args) SWIG_fail;
22421 swig_obj[0] = args;
22422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22423 if (!SWIG_IsOK(res1)) {
22424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22425 }
22426 arg1 = reinterpret_cast< wxDC * >(argp1);
22427 {
22428 PyThreadState* __tstate = wxPyBeginAllowThreads();
22429 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22430 wxPyEndAllowThreads(__tstate);
22431 if (PyErr_Occurred()) SWIG_fail;
22432 }
22433 {
22434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22435 }
22436 return resultobj;
22437 fail:
22438 return NULL;
22439 }
22440
22441
22442 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22443 PyObject *resultobj = 0;
22444 wxDC *arg1 = (wxDC *) 0 ;
22445 bool result;
22446 void *argp1 = 0 ;
22447 int res1 = 0 ;
22448 PyObject *swig_obj[1] ;
22449
22450 if (!args) SWIG_fail;
22451 swig_obj[0] = args;
22452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22453 if (!SWIG_IsOK(res1)) {
22454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22455 }
22456 arg1 = reinterpret_cast< wxDC * >(argp1);
22457 {
22458 PyThreadState* __tstate = wxPyBeginAllowThreads();
22459 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22460 wxPyEndAllowThreads(__tstate);
22461 if (PyErr_Occurred()) SWIG_fail;
22462 }
22463 {
22464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22465 }
22466 return resultobj;
22467 fail:
22468 return NULL;
22469 }
22470
22471
22472 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22473 PyObject *resultobj = 0;
22474 wxDC *arg1 = (wxDC *) 0 ;
22475 int result;
22476 void *argp1 = 0 ;
22477 int res1 = 0 ;
22478 PyObject *swig_obj[1] ;
22479
22480 if (!args) SWIG_fail;
22481 swig_obj[0] = args;
22482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22483 if (!SWIG_IsOK(res1)) {
22484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22485 }
22486 arg1 = reinterpret_cast< wxDC * >(argp1);
22487 {
22488 PyThreadState* __tstate = wxPyBeginAllowThreads();
22489 result = (int)((wxDC const *)arg1)->GetDepth();
22490 wxPyEndAllowThreads(__tstate);
22491 if (PyErr_Occurred()) SWIG_fail;
22492 }
22493 resultobj = SWIG_From_int(static_cast< int >(result));
22494 return resultobj;
22495 fail:
22496 return NULL;
22497 }
22498
22499
22500 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22501 PyObject *resultobj = 0;
22502 wxDC *arg1 = (wxDC *) 0 ;
22503 wxSize result;
22504 void *argp1 = 0 ;
22505 int res1 = 0 ;
22506 PyObject *swig_obj[1] ;
22507
22508 if (!args) SWIG_fail;
22509 swig_obj[0] = args;
22510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22511 if (!SWIG_IsOK(res1)) {
22512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22513 }
22514 arg1 = reinterpret_cast< wxDC * >(argp1);
22515 {
22516 PyThreadState* __tstate = wxPyBeginAllowThreads();
22517 result = ((wxDC const *)arg1)->GetPPI();
22518 wxPyEndAllowThreads(__tstate);
22519 if (PyErr_Occurred()) SWIG_fail;
22520 }
22521 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22522 return resultobj;
22523 fail:
22524 return NULL;
22525 }
22526
22527
22528 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22529 PyObject *resultobj = 0;
22530 wxDC *arg1 = (wxDC *) 0 ;
22531 bool result;
22532 void *argp1 = 0 ;
22533 int res1 = 0 ;
22534 PyObject *swig_obj[1] ;
22535
22536 if (!args) SWIG_fail;
22537 swig_obj[0] = args;
22538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22539 if (!SWIG_IsOK(res1)) {
22540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
22541 }
22542 arg1 = reinterpret_cast< wxDC * >(argp1);
22543 {
22544 PyThreadState* __tstate = wxPyBeginAllowThreads();
22545 result = (bool)((wxDC const *)arg1)->IsOk();
22546 wxPyEndAllowThreads(__tstate);
22547 if (PyErr_Occurred()) SWIG_fail;
22548 }
22549 {
22550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22551 }
22552 return resultobj;
22553 fail:
22554 return NULL;
22555 }
22556
22557
22558 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22559 PyObject *resultobj = 0;
22560 wxDC *arg1 = (wxDC *) 0 ;
22561 int result;
22562 void *argp1 = 0 ;
22563 int res1 = 0 ;
22564 PyObject *swig_obj[1] ;
22565
22566 if (!args) SWIG_fail;
22567 swig_obj[0] = args;
22568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22569 if (!SWIG_IsOK(res1)) {
22570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22571 }
22572 arg1 = reinterpret_cast< wxDC * >(argp1);
22573 {
22574 PyThreadState* __tstate = wxPyBeginAllowThreads();
22575 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22576 wxPyEndAllowThreads(__tstate);
22577 if (PyErr_Occurred()) SWIG_fail;
22578 }
22579 resultobj = SWIG_From_int(static_cast< int >(result));
22580 return resultobj;
22581 fail:
22582 return NULL;
22583 }
22584
22585
22586 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22587 PyObject *resultobj = 0;
22588 wxDC *arg1 = (wxDC *) 0 ;
22589 wxBrush *result = 0 ;
22590 void *argp1 = 0 ;
22591 int res1 = 0 ;
22592 PyObject *swig_obj[1] ;
22593
22594 if (!args) SWIG_fail;
22595 swig_obj[0] = args;
22596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22597 if (!SWIG_IsOK(res1)) {
22598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22599 }
22600 arg1 = reinterpret_cast< wxDC * >(argp1);
22601 {
22602 PyThreadState* __tstate = wxPyBeginAllowThreads();
22603 {
22604 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22605 result = (wxBrush *) &_result_ref;
22606 }
22607 wxPyEndAllowThreads(__tstate);
22608 if (PyErr_Occurred()) SWIG_fail;
22609 }
22610 {
22611 wxBrush* resultptr = new wxBrush(*result);
22612 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22613 }
22614 return resultobj;
22615 fail:
22616 return NULL;
22617 }
22618
22619
22620 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22621 PyObject *resultobj = 0;
22622 wxDC *arg1 = (wxDC *) 0 ;
22623 wxBrush *result = 0 ;
22624 void *argp1 = 0 ;
22625 int res1 = 0 ;
22626 PyObject *swig_obj[1] ;
22627
22628 if (!args) SWIG_fail;
22629 swig_obj[0] = args;
22630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22631 if (!SWIG_IsOK(res1)) {
22632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22633 }
22634 arg1 = reinterpret_cast< wxDC * >(argp1);
22635 {
22636 PyThreadState* __tstate = wxPyBeginAllowThreads();
22637 {
22638 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22639 result = (wxBrush *) &_result_ref;
22640 }
22641 wxPyEndAllowThreads(__tstate);
22642 if (PyErr_Occurred()) SWIG_fail;
22643 }
22644 {
22645 wxBrush* resultptr = new wxBrush(*result);
22646 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22647 }
22648 return resultobj;
22649 fail:
22650 return NULL;
22651 }
22652
22653
22654 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22655 PyObject *resultobj = 0;
22656 wxDC *arg1 = (wxDC *) 0 ;
22657 wxFont *result = 0 ;
22658 void *argp1 = 0 ;
22659 int res1 = 0 ;
22660 PyObject *swig_obj[1] ;
22661
22662 if (!args) SWIG_fail;
22663 swig_obj[0] = args;
22664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22665 if (!SWIG_IsOK(res1)) {
22666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22667 }
22668 arg1 = reinterpret_cast< wxDC * >(argp1);
22669 {
22670 PyThreadState* __tstate = wxPyBeginAllowThreads();
22671 {
22672 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22673 result = (wxFont *) &_result_ref;
22674 }
22675 wxPyEndAllowThreads(__tstate);
22676 if (PyErr_Occurred()) SWIG_fail;
22677 }
22678 {
22679 wxFont* resultptr = new wxFont(*result);
22680 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22681 }
22682 return resultobj;
22683 fail:
22684 return NULL;
22685 }
22686
22687
22688 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22689 PyObject *resultobj = 0;
22690 wxDC *arg1 = (wxDC *) 0 ;
22691 wxPen *result = 0 ;
22692 void *argp1 = 0 ;
22693 int res1 = 0 ;
22694 PyObject *swig_obj[1] ;
22695
22696 if (!args) SWIG_fail;
22697 swig_obj[0] = args;
22698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22699 if (!SWIG_IsOK(res1)) {
22700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22701 }
22702 arg1 = reinterpret_cast< wxDC * >(argp1);
22703 {
22704 PyThreadState* __tstate = wxPyBeginAllowThreads();
22705 {
22706 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22707 result = (wxPen *) &_result_ref;
22708 }
22709 wxPyEndAllowThreads(__tstate);
22710 if (PyErr_Occurred()) SWIG_fail;
22711 }
22712 {
22713 wxPen* resultptr = new wxPen(*result);
22714 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22715 }
22716 return resultobj;
22717 fail:
22718 return NULL;
22719 }
22720
22721
22722 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22723 PyObject *resultobj = 0;
22724 wxDC *arg1 = (wxDC *) 0 ;
22725 wxColour *result = 0 ;
22726 void *argp1 = 0 ;
22727 int res1 = 0 ;
22728 PyObject *swig_obj[1] ;
22729
22730 if (!args) SWIG_fail;
22731 swig_obj[0] = args;
22732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22733 if (!SWIG_IsOK(res1)) {
22734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22735 }
22736 arg1 = reinterpret_cast< wxDC * >(argp1);
22737 {
22738 PyThreadState* __tstate = wxPyBeginAllowThreads();
22739 {
22740 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22741 result = (wxColour *) &_result_ref;
22742 }
22743 wxPyEndAllowThreads(__tstate);
22744 if (PyErr_Occurred()) SWIG_fail;
22745 }
22746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22747 return resultobj;
22748 fail:
22749 return NULL;
22750 }
22751
22752
22753 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22754 PyObject *resultobj = 0;
22755 wxDC *arg1 = (wxDC *) 0 ;
22756 wxColour *result = 0 ;
22757 void *argp1 = 0 ;
22758 int res1 = 0 ;
22759 PyObject *swig_obj[1] ;
22760
22761 if (!args) SWIG_fail;
22762 swig_obj[0] = args;
22763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22764 if (!SWIG_IsOK(res1)) {
22765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22766 }
22767 arg1 = reinterpret_cast< wxDC * >(argp1);
22768 {
22769 PyThreadState* __tstate = wxPyBeginAllowThreads();
22770 {
22771 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22772 result = (wxColour *) &_result_ref;
22773 }
22774 wxPyEndAllowThreads(__tstate);
22775 if (PyErr_Occurred()) SWIG_fail;
22776 }
22777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22778 return resultobj;
22779 fail:
22780 return NULL;
22781 }
22782
22783
22784 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22785 PyObject *resultobj = 0;
22786 wxDC *arg1 = (wxDC *) 0 ;
22787 wxColour *arg2 = 0 ;
22788 void *argp1 = 0 ;
22789 int res1 = 0 ;
22790 wxColour temp2 ;
22791 PyObject * obj0 = 0 ;
22792 PyObject * obj1 = 0 ;
22793 char * kwnames[] = {
22794 (char *) "self",(char *) "colour", NULL
22795 };
22796
22797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22799 if (!SWIG_IsOK(res1)) {
22800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22801 }
22802 arg1 = reinterpret_cast< wxDC * >(argp1);
22803 {
22804 arg2 = &temp2;
22805 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22806 }
22807 {
22808 PyThreadState* __tstate = wxPyBeginAllowThreads();
22809 (arg1)->SetTextForeground((wxColour const &)*arg2);
22810 wxPyEndAllowThreads(__tstate);
22811 if (PyErr_Occurred()) SWIG_fail;
22812 }
22813 resultobj = SWIG_Py_Void();
22814 return resultobj;
22815 fail:
22816 return NULL;
22817 }
22818
22819
22820 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22821 PyObject *resultobj = 0;
22822 wxDC *arg1 = (wxDC *) 0 ;
22823 wxColour *arg2 = 0 ;
22824 void *argp1 = 0 ;
22825 int res1 = 0 ;
22826 wxColour temp2 ;
22827 PyObject * obj0 = 0 ;
22828 PyObject * obj1 = 0 ;
22829 char * kwnames[] = {
22830 (char *) "self",(char *) "colour", NULL
22831 };
22832
22833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22835 if (!SWIG_IsOK(res1)) {
22836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22837 }
22838 arg1 = reinterpret_cast< wxDC * >(argp1);
22839 {
22840 arg2 = &temp2;
22841 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22842 }
22843 {
22844 PyThreadState* __tstate = wxPyBeginAllowThreads();
22845 (arg1)->SetTextBackground((wxColour const &)*arg2);
22846 wxPyEndAllowThreads(__tstate);
22847 if (PyErr_Occurred()) SWIG_fail;
22848 }
22849 resultobj = SWIG_Py_Void();
22850 return resultobj;
22851 fail:
22852 return NULL;
22853 }
22854
22855
22856 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22857 PyObject *resultobj = 0;
22858 wxDC *arg1 = (wxDC *) 0 ;
22859 int result;
22860 void *argp1 = 0 ;
22861 int res1 = 0 ;
22862 PyObject *swig_obj[1] ;
22863
22864 if (!args) SWIG_fail;
22865 swig_obj[0] = args;
22866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22867 if (!SWIG_IsOK(res1)) {
22868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22869 }
22870 arg1 = reinterpret_cast< wxDC * >(argp1);
22871 {
22872 PyThreadState* __tstate = wxPyBeginAllowThreads();
22873 result = (int)((wxDC const *)arg1)->GetMapMode();
22874 wxPyEndAllowThreads(__tstate);
22875 if (PyErr_Occurred()) SWIG_fail;
22876 }
22877 resultobj = SWIG_From_int(static_cast< int >(result));
22878 return resultobj;
22879 fail:
22880 return NULL;
22881 }
22882
22883
22884 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22885 PyObject *resultobj = 0;
22886 wxDC *arg1 = (wxDC *) 0 ;
22887 int arg2 ;
22888 void *argp1 = 0 ;
22889 int res1 = 0 ;
22890 int val2 ;
22891 int ecode2 = 0 ;
22892 PyObject * obj0 = 0 ;
22893 PyObject * obj1 = 0 ;
22894 char * kwnames[] = {
22895 (char *) "self",(char *) "mode", NULL
22896 };
22897
22898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22900 if (!SWIG_IsOK(res1)) {
22901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22902 }
22903 arg1 = reinterpret_cast< wxDC * >(argp1);
22904 ecode2 = SWIG_AsVal_int(obj1, &val2);
22905 if (!SWIG_IsOK(ecode2)) {
22906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22907 }
22908 arg2 = static_cast< int >(val2);
22909 {
22910 PyThreadState* __tstate = wxPyBeginAllowThreads();
22911 (arg1)->SetMapMode(arg2);
22912 wxPyEndAllowThreads(__tstate);
22913 if (PyErr_Occurred()) SWIG_fail;
22914 }
22915 resultobj = SWIG_Py_Void();
22916 return resultobj;
22917 fail:
22918 return NULL;
22919 }
22920
22921
22922 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22923 PyObject *resultobj = 0;
22924 wxDC *arg1 = (wxDC *) 0 ;
22925 double *arg2 = (double *) 0 ;
22926 double *arg3 = (double *) 0 ;
22927 void *argp1 = 0 ;
22928 int res1 = 0 ;
22929 double temp2 ;
22930 int res2 = SWIG_TMPOBJ ;
22931 double temp3 ;
22932 int res3 = SWIG_TMPOBJ ;
22933 PyObject *swig_obj[1] ;
22934
22935 arg2 = &temp2;
22936 arg3 = &temp3;
22937 if (!args) SWIG_fail;
22938 swig_obj[0] = args;
22939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22940 if (!SWIG_IsOK(res1)) {
22941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22942 }
22943 arg1 = reinterpret_cast< wxDC * >(argp1);
22944 {
22945 PyThreadState* __tstate = wxPyBeginAllowThreads();
22946 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22947 wxPyEndAllowThreads(__tstate);
22948 if (PyErr_Occurred()) SWIG_fail;
22949 }
22950 resultobj = SWIG_Py_Void();
22951 if (SWIG_IsTmpObj(res2)) {
22952 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22953 } else {
22954 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22955 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22956 }
22957 if (SWIG_IsTmpObj(res3)) {
22958 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22959 } else {
22960 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22961 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22962 }
22963 return resultobj;
22964 fail:
22965 return NULL;
22966 }
22967
22968
22969 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22970 PyObject *resultobj = 0;
22971 wxDC *arg1 = (wxDC *) 0 ;
22972 double arg2 ;
22973 double arg3 ;
22974 void *argp1 = 0 ;
22975 int res1 = 0 ;
22976 double val2 ;
22977 int ecode2 = 0 ;
22978 double val3 ;
22979 int ecode3 = 0 ;
22980 PyObject * obj0 = 0 ;
22981 PyObject * obj1 = 0 ;
22982 PyObject * obj2 = 0 ;
22983 char * kwnames[] = {
22984 (char *) "self",(char *) "x",(char *) "y", NULL
22985 };
22986
22987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22989 if (!SWIG_IsOK(res1)) {
22990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22991 }
22992 arg1 = reinterpret_cast< wxDC * >(argp1);
22993 ecode2 = SWIG_AsVal_double(obj1, &val2);
22994 if (!SWIG_IsOK(ecode2)) {
22995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22996 }
22997 arg2 = static_cast< double >(val2);
22998 ecode3 = SWIG_AsVal_double(obj2, &val3);
22999 if (!SWIG_IsOK(ecode3)) {
23000 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
23001 }
23002 arg3 = static_cast< double >(val3);
23003 {
23004 PyThreadState* __tstate = wxPyBeginAllowThreads();
23005 (arg1)->SetUserScale(arg2,arg3);
23006 wxPyEndAllowThreads(__tstate);
23007 if (PyErr_Occurred()) SWIG_fail;
23008 }
23009 resultobj = SWIG_Py_Void();
23010 return resultobj;
23011 fail:
23012 return NULL;
23013 }
23014
23015
23016 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23017 PyObject *resultobj = 0;
23018 wxDC *arg1 = (wxDC *) 0 ;
23019 double *arg2 = (double *) 0 ;
23020 double *arg3 = (double *) 0 ;
23021 void *argp1 = 0 ;
23022 int res1 = 0 ;
23023 double temp2 ;
23024 int res2 = SWIG_TMPOBJ ;
23025 double temp3 ;
23026 int res3 = SWIG_TMPOBJ ;
23027 PyObject *swig_obj[1] ;
23028
23029 arg2 = &temp2;
23030 arg3 = &temp3;
23031 if (!args) SWIG_fail;
23032 swig_obj[0] = args;
23033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23034 if (!SWIG_IsOK(res1)) {
23035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23036 }
23037 arg1 = reinterpret_cast< wxDC * >(argp1);
23038 {
23039 PyThreadState* __tstate = wxPyBeginAllowThreads();
23040 (arg1)->GetLogicalScale(arg2,arg3);
23041 wxPyEndAllowThreads(__tstate);
23042 if (PyErr_Occurred()) SWIG_fail;
23043 }
23044 resultobj = SWIG_Py_Void();
23045 if (SWIG_IsTmpObj(res2)) {
23046 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
23047 } else {
23048 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23049 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
23050 }
23051 if (SWIG_IsTmpObj(res3)) {
23052 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
23053 } else {
23054 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23055 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
23056 }
23057 return resultobj;
23058 fail:
23059 return NULL;
23060 }
23061
23062
23063 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23064 PyObject *resultobj = 0;
23065 wxDC *arg1 = (wxDC *) 0 ;
23066 double arg2 ;
23067 double arg3 ;
23068 void *argp1 = 0 ;
23069 int res1 = 0 ;
23070 double val2 ;
23071 int ecode2 = 0 ;
23072 double val3 ;
23073 int ecode3 = 0 ;
23074 PyObject * obj0 = 0 ;
23075 PyObject * obj1 = 0 ;
23076 PyObject * obj2 = 0 ;
23077 char * kwnames[] = {
23078 (char *) "self",(char *) "x",(char *) "y", NULL
23079 };
23080
23081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23083 if (!SWIG_IsOK(res1)) {
23084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23085 }
23086 arg1 = reinterpret_cast< wxDC * >(argp1);
23087 ecode2 = SWIG_AsVal_double(obj1, &val2);
23088 if (!SWIG_IsOK(ecode2)) {
23089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
23090 }
23091 arg2 = static_cast< double >(val2);
23092 ecode3 = SWIG_AsVal_double(obj2, &val3);
23093 if (!SWIG_IsOK(ecode3)) {
23094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
23095 }
23096 arg3 = static_cast< double >(val3);
23097 {
23098 PyThreadState* __tstate = wxPyBeginAllowThreads();
23099 (arg1)->SetLogicalScale(arg2,arg3);
23100 wxPyEndAllowThreads(__tstate);
23101 if (PyErr_Occurred()) SWIG_fail;
23102 }
23103 resultobj = SWIG_Py_Void();
23104 return resultobj;
23105 fail:
23106 return NULL;
23107 }
23108
23109
23110 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23111 PyObject *resultobj = 0;
23112 wxDC *arg1 = (wxDC *) 0 ;
23113 wxPoint result;
23114 void *argp1 = 0 ;
23115 int res1 = 0 ;
23116 PyObject *swig_obj[1] ;
23117
23118 if (!args) SWIG_fail;
23119 swig_obj[0] = args;
23120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23121 if (!SWIG_IsOK(res1)) {
23122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23123 }
23124 arg1 = reinterpret_cast< wxDC * >(argp1);
23125 {
23126 PyThreadState* __tstate = wxPyBeginAllowThreads();
23127 result = ((wxDC const *)arg1)->GetLogicalOrigin();
23128 wxPyEndAllowThreads(__tstate);
23129 if (PyErr_Occurred()) SWIG_fail;
23130 }
23131 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23132 return resultobj;
23133 fail:
23134 return NULL;
23135 }
23136
23137
23138 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23139 PyObject *resultobj = 0;
23140 wxDC *arg1 = (wxDC *) 0 ;
23141 int *arg2 = (int *) 0 ;
23142 int *arg3 = (int *) 0 ;
23143 void *argp1 = 0 ;
23144 int res1 = 0 ;
23145 int temp2 ;
23146 int res2 = SWIG_TMPOBJ ;
23147 int temp3 ;
23148 int res3 = SWIG_TMPOBJ ;
23149 PyObject *swig_obj[1] ;
23150
23151 arg2 = &temp2;
23152 arg3 = &temp3;
23153 if (!args) SWIG_fail;
23154 swig_obj[0] = args;
23155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23156 if (!SWIG_IsOK(res1)) {
23157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23158 }
23159 arg1 = reinterpret_cast< wxDC * >(argp1);
23160 {
23161 PyThreadState* __tstate = wxPyBeginAllowThreads();
23162 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
23163 wxPyEndAllowThreads(__tstate);
23164 if (PyErr_Occurred()) SWIG_fail;
23165 }
23166 resultobj = SWIG_Py_Void();
23167 if (SWIG_IsTmpObj(res2)) {
23168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23169 } else {
23170 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23172 }
23173 if (SWIG_IsTmpObj(res3)) {
23174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23175 } else {
23176 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23178 }
23179 return resultobj;
23180 fail:
23181 return NULL;
23182 }
23183
23184
23185 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23186 PyObject *resultobj = 0;
23187 wxDC *arg1 = (wxDC *) 0 ;
23188 int arg2 ;
23189 int arg3 ;
23190 void *argp1 = 0 ;
23191 int res1 = 0 ;
23192 int val2 ;
23193 int ecode2 = 0 ;
23194 int val3 ;
23195 int ecode3 = 0 ;
23196 PyObject * obj0 = 0 ;
23197 PyObject * obj1 = 0 ;
23198 PyObject * obj2 = 0 ;
23199 char * kwnames[] = {
23200 (char *) "self",(char *) "x",(char *) "y", NULL
23201 };
23202
23203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23205 if (!SWIG_IsOK(res1)) {
23206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23207 }
23208 arg1 = reinterpret_cast< wxDC * >(argp1);
23209 ecode2 = SWIG_AsVal_int(obj1, &val2);
23210 if (!SWIG_IsOK(ecode2)) {
23211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23212 }
23213 arg2 = static_cast< int >(val2);
23214 ecode3 = SWIG_AsVal_int(obj2, &val3);
23215 if (!SWIG_IsOK(ecode3)) {
23216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23217 }
23218 arg3 = static_cast< int >(val3);
23219 {
23220 PyThreadState* __tstate = wxPyBeginAllowThreads();
23221 (arg1)->SetLogicalOrigin(arg2,arg3);
23222 wxPyEndAllowThreads(__tstate);
23223 if (PyErr_Occurred()) SWIG_fail;
23224 }
23225 resultobj = SWIG_Py_Void();
23226 return resultobj;
23227 fail:
23228 return NULL;
23229 }
23230
23231
23232 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23233 PyObject *resultobj = 0;
23234 wxDC *arg1 = (wxDC *) 0 ;
23235 wxPoint *arg2 = 0 ;
23236 void *argp1 = 0 ;
23237 int res1 = 0 ;
23238 wxPoint temp2 ;
23239 PyObject * obj0 = 0 ;
23240 PyObject * obj1 = 0 ;
23241 char * kwnames[] = {
23242 (char *) "self",(char *) "point", NULL
23243 };
23244
23245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23247 if (!SWIG_IsOK(res1)) {
23248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23249 }
23250 arg1 = reinterpret_cast< wxDC * >(argp1);
23251 {
23252 arg2 = &temp2;
23253 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23254 }
23255 {
23256 PyThreadState* __tstate = wxPyBeginAllowThreads();
23257 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23258 wxPyEndAllowThreads(__tstate);
23259 if (PyErr_Occurred()) SWIG_fail;
23260 }
23261 resultobj = SWIG_Py_Void();
23262 return resultobj;
23263 fail:
23264 return NULL;
23265 }
23266
23267
23268 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23269 PyObject *resultobj = 0;
23270 wxDC *arg1 = (wxDC *) 0 ;
23271 wxPoint result;
23272 void *argp1 = 0 ;
23273 int res1 = 0 ;
23274 PyObject *swig_obj[1] ;
23275
23276 if (!args) SWIG_fail;
23277 swig_obj[0] = args;
23278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23279 if (!SWIG_IsOK(res1)) {
23280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23281 }
23282 arg1 = reinterpret_cast< wxDC * >(argp1);
23283 {
23284 PyThreadState* __tstate = wxPyBeginAllowThreads();
23285 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23286 wxPyEndAllowThreads(__tstate);
23287 if (PyErr_Occurred()) SWIG_fail;
23288 }
23289 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23290 return resultobj;
23291 fail:
23292 return NULL;
23293 }
23294
23295
23296 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23297 PyObject *resultobj = 0;
23298 wxDC *arg1 = (wxDC *) 0 ;
23299 int *arg2 = (int *) 0 ;
23300 int *arg3 = (int *) 0 ;
23301 void *argp1 = 0 ;
23302 int res1 = 0 ;
23303 int temp2 ;
23304 int res2 = SWIG_TMPOBJ ;
23305 int temp3 ;
23306 int res3 = SWIG_TMPOBJ ;
23307 PyObject *swig_obj[1] ;
23308
23309 arg2 = &temp2;
23310 arg3 = &temp3;
23311 if (!args) SWIG_fail;
23312 swig_obj[0] = args;
23313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23314 if (!SWIG_IsOK(res1)) {
23315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23316 }
23317 arg1 = reinterpret_cast< wxDC * >(argp1);
23318 {
23319 PyThreadState* __tstate = wxPyBeginAllowThreads();
23320 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23321 wxPyEndAllowThreads(__tstate);
23322 if (PyErr_Occurred()) SWIG_fail;
23323 }
23324 resultobj = SWIG_Py_Void();
23325 if (SWIG_IsTmpObj(res2)) {
23326 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23327 } else {
23328 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23329 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23330 }
23331 if (SWIG_IsTmpObj(res3)) {
23332 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23333 } else {
23334 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23335 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23336 }
23337 return resultobj;
23338 fail:
23339 return NULL;
23340 }
23341
23342
23343 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23344 PyObject *resultobj = 0;
23345 wxDC *arg1 = (wxDC *) 0 ;
23346 int arg2 ;
23347 int arg3 ;
23348 void *argp1 = 0 ;
23349 int res1 = 0 ;
23350 int val2 ;
23351 int ecode2 = 0 ;
23352 int val3 ;
23353 int ecode3 = 0 ;
23354 PyObject * obj0 = 0 ;
23355 PyObject * obj1 = 0 ;
23356 PyObject * obj2 = 0 ;
23357 char * kwnames[] = {
23358 (char *) "self",(char *) "x",(char *) "y", NULL
23359 };
23360
23361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23363 if (!SWIG_IsOK(res1)) {
23364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23365 }
23366 arg1 = reinterpret_cast< wxDC * >(argp1);
23367 ecode2 = SWIG_AsVal_int(obj1, &val2);
23368 if (!SWIG_IsOK(ecode2)) {
23369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23370 }
23371 arg2 = static_cast< int >(val2);
23372 ecode3 = SWIG_AsVal_int(obj2, &val3);
23373 if (!SWIG_IsOK(ecode3)) {
23374 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23375 }
23376 arg3 = static_cast< int >(val3);
23377 {
23378 PyThreadState* __tstate = wxPyBeginAllowThreads();
23379 (arg1)->SetDeviceOrigin(arg2,arg3);
23380 wxPyEndAllowThreads(__tstate);
23381 if (PyErr_Occurred()) SWIG_fail;
23382 }
23383 resultobj = SWIG_Py_Void();
23384 return resultobj;
23385 fail:
23386 return NULL;
23387 }
23388
23389
23390 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23391 PyObject *resultobj = 0;
23392 wxDC *arg1 = (wxDC *) 0 ;
23393 wxPoint *arg2 = 0 ;
23394 void *argp1 = 0 ;
23395 int res1 = 0 ;
23396 wxPoint temp2 ;
23397 PyObject * obj0 = 0 ;
23398 PyObject * obj1 = 0 ;
23399 char * kwnames[] = {
23400 (char *) "self",(char *) "point", NULL
23401 };
23402
23403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23405 if (!SWIG_IsOK(res1)) {
23406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23407 }
23408 arg1 = reinterpret_cast< wxDC * >(argp1);
23409 {
23410 arg2 = &temp2;
23411 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23412 }
23413 {
23414 PyThreadState* __tstate = wxPyBeginAllowThreads();
23415 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23416 wxPyEndAllowThreads(__tstate);
23417 if (PyErr_Occurred()) SWIG_fail;
23418 }
23419 resultobj = SWIG_Py_Void();
23420 return resultobj;
23421 fail:
23422 return NULL;
23423 }
23424
23425
23426 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23427 PyObject *resultobj = 0;
23428 wxDC *arg1 = (wxDC *) 0 ;
23429 bool arg2 ;
23430 bool arg3 ;
23431 void *argp1 = 0 ;
23432 int res1 = 0 ;
23433 bool val2 ;
23434 int ecode2 = 0 ;
23435 bool val3 ;
23436 int ecode3 = 0 ;
23437 PyObject * obj0 = 0 ;
23438 PyObject * obj1 = 0 ;
23439 PyObject * obj2 = 0 ;
23440 char * kwnames[] = {
23441 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23442 };
23443
23444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23446 if (!SWIG_IsOK(res1)) {
23447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23448 }
23449 arg1 = reinterpret_cast< wxDC * >(argp1);
23450 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23451 if (!SWIG_IsOK(ecode2)) {
23452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23453 }
23454 arg2 = static_cast< bool >(val2);
23455 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23456 if (!SWIG_IsOK(ecode3)) {
23457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23458 }
23459 arg3 = static_cast< bool >(val3);
23460 {
23461 PyThreadState* __tstate = wxPyBeginAllowThreads();
23462 (arg1)->SetAxisOrientation(arg2,arg3);
23463 wxPyEndAllowThreads(__tstate);
23464 if (PyErr_Occurred()) SWIG_fail;
23465 }
23466 resultobj = SWIG_Py_Void();
23467 return resultobj;
23468 fail:
23469 return NULL;
23470 }
23471
23472
23473 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23474 PyObject *resultobj = 0;
23475 wxDC *arg1 = (wxDC *) 0 ;
23476 int result;
23477 void *argp1 = 0 ;
23478 int res1 = 0 ;
23479 PyObject *swig_obj[1] ;
23480
23481 if (!args) SWIG_fail;
23482 swig_obj[0] = args;
23483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23484 if (!SWIG_IsOK(res1)) {
23485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23486 }
23487 arg1 = reinterpret_cast< wxDC * >(argp1);
23488 {
23489 PyThreadState* __tstate = wxPyBeginAllowThreads();
23490 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23491 wxPyEndAllowThreads(__tstate);
23492 if (PyErr_Occurred()) SWIG_fail;
23493 }
23494 resultobj = SWIG_From_int(static_cast< int >(result));
23495 return resultobj;
23496 fail:
23497 return NULL;
23498 }
23499
23500
23501 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23502 PyObject *resultobj = 0;
23503 wxDC *arg1 = (wxDC *) 0 ;
23504 int arg2 ;
23505 void *argp1 = 0 ;
23506 int res1 = 0 ;
23507 int val2 ;
23508 int ecode2 = 0 ;
23509 PyObject * obj0 = 0 ;
23510 PyObject * obj1 = 0 ;
23511 char * kwnames[] = {
23512 (char *) "self",(char *) "function", NULL
23513 };
23514
23515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23517 if (!SWIG_IsOK(res1)) {
23518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23519 }
23520 arg1 = reinterpret_cast< wxDC * >(argp1);
23521 ecode2 = SWIG_AsVal_int(obj1, &val2);
23522 if (!SWIG_IsOK(ecode2)) {
23523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23524 }
23525 arg2 = static_cast< int >(val2);
23526 {
23527 PyThreadState* __tstate = wxPyBeginAllowThreads();
23528 (arg1)->SetLogicalFunction(arg2);
23529 wxPyEndAllowThreads(__tstate);
23530 if (PyErr_Occurred()) SWIG_fail;
23531 }
23532 resultobj = SWIG_Py_Void();
23533 return resultobj;
23534 fail:
23535 return NULL;
23536 }
23537
23538
23539 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23540 PyObject *resultobj = 0;
23541 wxDC *arg1 = (wxDC *) 0 ;
23542 void *argp1 = 0 ;
23543 int res1 = 0 ;
23544 PyObject *swig_obj[1] ;
23545
23546 if (!args) SWIG_fail;
23547 swig_obj[0] = args;
23548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23549 if (!SWIG_IsOK(res1)) {
23550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23551 }
23552 arg1 = reinterpret_cast< wxDC * >(argp1);
23553 {
23554 PyThreadState* __tstate = wxPyBeginAllowThreads();
23555 (arg1)->ComputeScaleAndOrigin();
23556 wxPyEndAllowThreads(__tstate);
23557 if (PyErr_Occurred()) SWIG_fail;
23558 }
23559 resultobj = SWIG_Py_Void();
23560 return resultobj;
23561 fail:
23562 return NULL;
23563 }
23564
23565
23566 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23567 PyObject *resultobj = 0;
23568 wxDC *arg1 = (wxDC *) 0 ;
23569 int arg2 ;
23570 int arg3 ;
23571 void *argp1 = 0 ;
23572 int res1 = 0 ;
23573 int val2 ;
23574 int ecode2 = 0 ;
23575 int val3 ;
23576 int ecode3 = 0 ;
23577 PyObject * obj0 = 0 ;
23578 PyObject * obj1 = 0 ;
23579 PyObject * obj2 = 0 ;
23580 char * kwnames[] = {
23581 (char *) "self",(char *) "x",(char *) "y", NULL
23582 };
23583
23584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23586 if (!SWIG_IsOK(res1)) {
23587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23588 }
23589 arg1 = reinterpret_cast< wxDC * >(argp1);
23590 ecode2 = SWIG_AsVal_int(obj1, &val2);
23591 if (!SWIG_IsOK(ecode2)) {
23592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23593 }
23594 arg2 = static_cast< int >(val2);
23595 ecode3 = SWIG_AsVal_int(obj2, &val3);
23596 if (!SWIG_IsOK(ecode3)) {
23597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23598 }
23599 arg3 = static_cast< int >(val3);
23600 {
23601 PyThreadState* __tstate = wxPyBeginAllowThreads();
23602 (arg1)->CalcBoundingBox(arg2,arg3);
23603 wxPyEndAllowThreads(__tstate);
23604 if (PyErr_Occurred()) SWIG_fail;
23605 }
23606 resultobj = SWIG_Py_Void();
23607 return resultobj;
23608 fail:
23609 return NULL;
23610 }
23611
23612
23613 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23614 PyObject *resultobj = 0;
23615 wxDC *arg1 = (wxDC *) 0 ;
23616 wxPoint *arg2 = 0 ;
23617 void *argp1 = 0 ;
23618 int res1 = 0 ;
23619 wxPoint temp2 ;
23620 PyObject * obj0 = 0 ;
23621 PyObject * obj1 = 0 ;
23622 char * kwnames[] = {
23623 (char *) "self",(char *) "point", NULL
23624 };
23625
23626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23628 if (!SWIG_IsOK(res1)) {
23629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23630 }
23631 arg1 = reinterpret_cast< wxDC * >(argp1);
23632 {
23633 arg2 = &temp2;
23634 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23635 }
23636 {
23637 PyThreadState* __tstate = wxPyBeginAllowThreads();
23638 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23639 wxPyEndAllowThreads(__tstate);
23640 if (PyErr_Occurred()) SWIG_fail;
23641 }
23642 resultobj = SWIG_Py_Void();
23643 return resultobj;
23644 fail:
23645 return NULL;
23646 }
23647
23648
23649 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23650 PyObject *resultobj = 0;
23651 wxDC *arg1 = (wxDC *) 0 ;
23652 void *argp1 = 0 ;
23653 int res1 = 0 ;
23654 PyObject *swig_obj[1] ;
23655
23656 if (!args) SWIG_fail;
23657 swig_obj[0] = args;
23658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23659 if (!SWIG_IsOK(res1)) {
23660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23661 }
23662 arg1 = reinterpret_cast< wxDC * >(argp1);
23663 {
23664 PyThreadState* __tstate = wxPyBeginAllowThreads();
23665 (arg1)->ResetBoundingBox();
23666 wxPyEndAllowThreads(__tstate);
23667 if (PyErr_Occurred()) SWIG_fail;
23668 }
23669 resultobj = SWIG_Py_Void();
23670 return resultobj;
23671 fail:
23672 return NULL;
23673 }
23674
23675
23676 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23677 PyObject *resultobj = 0;
23678 wxDC *arg1 = (wxDC *) 0 ;
23679 int result;
23680 void *argp1 = 0 ;
23681 int res1 = 0 ;
23682 PyObject *swig_obj[1] ;
23683
23684 if (!args) SWIG_fail;
23685 swig_obj[0] = args;
23686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23687 if (!SWIG_IsOK(res1)) {
23688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23689 }
23690 arg1 = reinterpret_cast< wxDC * >(argp1);
23691 {
23692 PyThreadState* __tstate = wxPyBeginAllowThreads();
23693 result = (int)((wxDC const *)arg1)->MinX();
23694 wxPyEndAllowThreads(__tstate);
23695 if (PyErr_Occurred()) SWIG_fail;
23696 }
23697 resultobj = SWIG_From_int(static_cast< int >(result));
23698 return resultobj;
23699 fail:
23700 return NULL;
23701 }
23702
23703
23704 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23705 PyObject *resultobj = 0;
23706 wxDC *arg1 = (wxDC *) 0 ;
23707 int result;
23708 void *argp1 = 0 ;
23709 int res1 = 0 ;
23710 PyObject *swig_obj[1] ;
23711
23712 if (!args) SWIG_fail;
23713 swig_obj[0] = args;
23714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23715 if (!SWIG_IsOK(res1)) {
23716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23717 }
23718 arg1 = reinterpret_cast< wxDC * >(argp1);
23719 {
23720 PyThreadState* __tstate = wxPyBeginAllowThreads();
23721 result = (int)((wxDC const *)arg1)->MaxX();
23722 wxPyEndAllowThreads(__tstate);
23723 if (PyErr_Occurred()) SWIG_fail;
23724 }
23725 resultobj = SWIG_From_int(static_cast< int >(result));
23726 return resultobj;
23727 fail:
23728 return NULL;
23729 }
23730
23731
23732 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23733 PyObject *resultobj = 0;
23734 wxDC *arg1 = (wxDC *) 0 ;
23735 int result;
23736 void *argp1 = 0 ;
23737 int res1 = 0 ;
23738 PyObject *swig_obj[1] ;
23739
23740 if (!args) SWIG_fail;
23741 swig_obj[0] = args;
23742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23743 if (!SWIG_IsOK(res1)) {
23744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23745 }
23746 arg1 = reinterpret_cast< wxDC * >(argp1);
23747 {
23748 PyThreadState* __tstate = wxPyBeginAllowThreads();
23749 result = (int)((wxDC const *)arg1)->MinY();
23750 wxPyEndAllowThreads(__tstate);
23751 if (PyErr_Occurred()) SWIG_fail;
23752 }
23753 resultobj = SWIG_From_int(static_cast< int >(result));
23754 return resultobj;
23755 fail:
23756 return NULL;
23757 }
23758
23759
23760 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23761 PyObject *resultobj = 0;
23762 wxDC *arg1 = (wxDC *) 0 ;
23763 int result;
23764 void *argp1 = 0 ;
23765 int res1 = 0 ;
23766 PyObject *swig_obj[1] ;
23767
23768 if (!args) SWIG_fail;
23769 swig_obj[0] = args;
23770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23771 if (!SWIG_IsOK(res1)) {
23772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23773 }
23774 arg1 = reinterpret_cast< wxDC * >(argp1);
23775 {
23776 PyThreadState* __tstate = wxPyBeginAllowThreads();
23777 result = (int)((wxDC const *)arg1)->MaxY();
23778 wxPyEndAllowThreads(__tstate);
23779 if (PyErr_Occurred()) SWIG_fail;
23780 }
23781 resultobj = SWIG_From_int(static_cast< int >(result));
23782 return resultobj;
23783 fail:
23784 return NULL;
23785 }
23786
23787
23788 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23789 PyObject *resultobj = 0;
23790 wxDC *arg1 = (wxDC *) 0 ;
23791 int *arg2 = (int *) 0 ;
23792 int *arg3 = (int *) 0 ;
23793 int *arg4 = (int *) 0 ;
23794 int *arg5 = (int *) 0 ;
23795 void *argp1 = 0 ;
23796 int res1 = 0 ;
23797 int temp2 ;
23798 int res2 = SWIG_TMPOBJ ;
23799 int temp3 ;
23800 int res3 = SWIG_TMPOBJ ;
23801 int temp4 ;
23802 int res4 = SWIG_TMPOBJ ;
23803 int temp5 ;
23804 int res5 = SWIG_TMPOBJ ;
23805 PyObject *swig_obj[1] ;
23806
23807 arg2 = &temp2;
23808 arg3 = &temp3;
23809 arg4 = &temp4;
23810 arg5 = &temp5;
23811 if (!args) SWIG_fail;
23812 swig_obj[0] = args;
23813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23814 if (!SWIG_IsOK(res1)) {
23815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23816 }
23817 arg1 = reinterpret_cast< wxDC * >(argp1);
23818 {
23819 PyThreadState* __tstate = wxPyBeginAllowThreads();
23820 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23821 wxPyEndAllowThreads(__tstate);
23822 if (PyErr_Occurred()) SWIG_fail;
23823 }
23824 resultobj = SWIG_Py_Void();
23825 if (SWIG_IsTmpObj(res2)) {
23826 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23827 } else {
23828 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23829 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23830 }
23831 if (SWIG_IsTmpObj(res3)) {
23832 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23833 } else {
23834 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23835 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23836 }
23837 if (SWIG_IsTmpObj(res4)) {
23838 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23839 } else {
23840 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23841 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23842 }
23843 if (SWIG_IsTmpObj(res5)) {
23844 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23845 } else {
23846 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23847 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23848 }
23849 return resultobj;
23850 fail:
23851 return NULL;
23852 }
23853
23854
23855 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23856 PyObject *resultobj = 0;
23857 wxDC *arg1 = (wxDC *) 0 ;
23858 wxLayoutDirection result;
23859 void *argp1 = 0 ;
23860 int res1 = 0 ;
23861 PyObject *swig_obj[1] ;
23862
23863 if (!args) SWIG_fail;
23864 swig_obj[0] = args;
23865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23866 if (!SWIG_IsOK(res1)) {
23867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23868 }
23869 arg1 = reinterpret_cast< wxDC * >(argp1);
23870 {
23871 PyThreadState* __tstate = wxPyBeginAllowThreads();
23872 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23873 wxPyEndAllowThreads(__tstate);
23874 if (PyErr_Occurred()) SWIG_fail;
23875 }
23876 resultobj = SWIG_From_int(static_cast< int >(result));
23877 return resultobj;
23878 fail:
23879 return NULL;
23880 }
23881
23882
23883 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23884 PyObject *resultobj = 0;
23885 wxDC *arg1 = (wxDC *) 0 ;
23886 wxLayoutDirection arg2 ;
23887 void *argp1 = 0 ;
23888 int res1 = 0 ;
23889 int val2 ;
23890 int ecode2 = 0 ;
23891 PyObject * obj0 = 0 ;
23892 PyObject * obj1 = 0 ;
23893 char * kwnames[] = {
23894 (char *) "self",(char *) "dir", NULL
23895 };
23896
23897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23899 if (!SWIG_IsOK(res1)) {
23900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23901 }
23902 arg1 = reinterpret_cast< wxDC * >(argp1);
23903 ecode2 = SWIG_AsVal_int(obj1, &val2);
23904 if (!SWIG_IsOK(ecode2)) {
23905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23906 }
23907 arg2 = static_cast< wxLayoutDirection >(val2);
23908 {
23909 PyThreadState* __tstate = wxPyBeginAllowThreads();
23910 (arg1)->SetLayoutDirection(arg2);
23911 wxPyEndAllowThreads(__tstate);
23912 if (PyErr_Occurred()) SWIG_fail;
23913 }
23914 resultobj = SWIG_Py_Void();
23915 return resultobj;
23916 fail:
23917 return NULL;
23918 }
23919
23920
23921 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23922 PyObject *resultobj = 0;
23923 wxDC *arg1 = (wxDC *) 0 ;
23924 long result;
23925 void *argp1 = 0 ;
23926 int res1 = 0 ;
23927 PyObject *swig_obj[1] ;
23928
23929 if (!args) SWIG_fail;
23930 swig_obj[0] = args;
23931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23932 if (!SWIG_IsOK(res1)) {
23933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23934 }
23935 arg1 = reinterpret_cast< wxDC * >(argp1);
23936 {
23937 PyThreadState* __tstate = wxPyBeginAllowThreads();
23938 result = (long)(arg1)->GetHDC();
23939 wxPyEndAllowThreads(__tstate);
23940 if (PyErr_Occurred()) SWIG_fail;
23941 }
23942 resultobj = SWIG_From_long(static_cast< long >(result));
23943 return resultobj;
23944 fail:
23945 return NULL;
23946 }
23947
23948
23949 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23950 PyObject *resultobj = 0;
23951 wxDC *arg1 = (wxDC *) 0 ;
23952 PyObject *arg2 = (PyObject *) 0 ;
23953 PyObject *arg3 = (PyObject *) 0 ;
23954 PyObject *arg4 = (PyObject *) 0 ;
23955 PyObject *result = 0 ;
23956 void *argp1 = 0 ;
23957 int res1 = 0 ;
23958 PyObject * obj0 = 0 ;
23959 PyObject * obj1 = 0 ;
23960 PyObject * obj2 = 0 ;
23961 PyObject * obj3 = 0 ;
23962 char * kwnames[] = {
23963 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23964 };
23965
23966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23968 if (!SWIG_IsOK(res1)) {
23969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23970 }
23971 arg1 = reinterpret_cast< wxDC * >(argp1);
23972 arg2 = obj1;
23973 arg3 = obj2;
23974 arg4 = obj3;
23975 {
23976 PyThreadState* __tstate = wxPyBeginAllowThreads();
23977 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23978 wxPyEndAllowThreads(__tstate);
23979 if (PyErr_Occurred()) SWIG_fail;
23980 }
23981 resultobj = result;
23982 return resultobj;
23983 fail:
23984 return NULL;
23985 }
23986
23987
23988 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23989 PyObject *resultobj = 0;
23990 wxDC *arg1 = (wxDC *) 0 ;
23991 PyObject *arg2 = (PyObject *) 0 ;
23992 PyObject *arg3 = (PyObject *) 0 ;
23993 PyObject *arg4 = (PyObject *) 0 ;
23994 PyObject *result = 0 ;
23995 void *argp1 = 0 ;
23996 int res1 = 0 ;
23997 PyObject * obj0 = 0 ;
23998 PyObject * obj1 = 0 ;
23999 PyObject * obj2 = 0 ;
24000 PyObject * obj3 = 0 ;
24001 char * kwnames[] = {
24002 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24003 };
24004
24005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24007 if (!SWIG_IsOK(res1)) {
24008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
24009 }
24010 arg1 = reinterpret_cast< wxDC * >(argp1);
24011 arg2 = obj1;
24012 arg3 = obj2;
24013 arg4 = obj3;
24014 {
24015 PyThreadState* __tstate = wxPyBeginAllowThreads();
24016 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
24017 wxPyEndAllowThreads(__tstate);
24018 if (PyErr_Occurred()) SWIG_fail;
24019 }
24020 resultobj = result;
24021 return resultobj;
24022 fail:
24023 return NULL;
24024 }
24025
24026
24027 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24028 PyObject *resultobj = 0;
24029 wxDC *arg1 = (wxDC *) 0 ;
24030 PyObject *arg2 = (PyObject *) 0 ;
24031 PyObject *arg3 = (PyObject *) 0 ;
24032 PyObject *arg4 = (PyObject *) 0 ;
24033 PyObject *result = 0 ;
24034 void *argp1 = 0 ;
24035 int res1 = 0 ;
24036 PyObject * obj0 = 0 ;
24037 PyObject * obj1 = 0 ;
24038 PyObject * obj2 = 0 ;
24039 PyObject * obj3 = 0 ;
24040 char * kwnames[] = {
24041 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24042 };
24043
24044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24046 if (!SWIG_IsOK(res1)) {
24047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
24048 }
24049 arg1 = reinterpret_cast< wxDC * >(argp1);
24050 arg2 = obj1;
24051 arg3 = obj2;
24052 arg4 = obj3;
24053 {
24054 PyThreadState* __tstate = wxPyBeginAllowThreads();
24055 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
24056 wxPyEndAllowThreads(__tstate);
24057 if (PyErr_Occurred()) SWIG_fail;
24058 }
24059 resultobj = result;
24060 return resultobj;
24061 fail:
24062 return NULL;
24063 }
24064
24065
24066 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24067 PyObject *resultobj = 0;
24068 wxDC *arg1 = (wxDC *) 0 ;
24069 PyObject *arg2 = (PyObject *) 0 ;
24070 PyObject *arg3 = (PyObject *) 0 ;
24071 PyObject *arg4 = (PyObject *) 0 ;
24072 PyObject *result = 0 ;
24073 void *argp1 = 0 ;
24074 int res1 = 0 ;
24075 PyObject * obj0 = 0 ;
24076 PyObject * obj1 = 0 ;
24077 PyObject * obj2 = 0 ;
24078 PyObject * obj3 = 0 ;
24079 char * kwnames[] = {
24080 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24081 };
24082
24083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24085 if (!SWIG_IsOK(res1)) {
24086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
24087 }
24088 arg1 = reinterpret_cast< wxDC * >(argp1);
24089 arg2 = obj1;
24090 arg3 = obj2;
24091 arg4 = obj3;
24092 {
24093 PyThreadState* __tstate = wxPyBeginAllowThreads();
24094 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
24095 wxPyEndAllowThreads(__tstate);
24096 if (PyErr_Occurred()) SWIG_fail;
24097 }
24098 resultobj = result;
24099 return resultobj;
24100 fail:
24101 return NULL;
24102 }
24103
24104
24105 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24106 PyObject *resultobj = 0;
24107 wxDC *arg1 = (wxDC *) 0 ;
24108 PyObject *arg2 = (PyObject *) 0 ;
24109 PyObject *arg3 = (PyObject *) 0 ;
24110 PyObject *arg4 = (PyObject *) 0 ;
24111 PyObject *result = 0 ;
24112 void *argp1 = 0 ;
24113 int res1 = 0 ;
24114 PyObject * obj0 = 0 ;
24115 PyObject * obj1 = 0 ;
24116 PyObject * obj2 = 0 ;
24117 PyObject * obj3 = 0 ;
24118 char * kwnames[] = {
24119 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24120 };
24121
24122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24124 if (!SWIG_IsOK(res1)) {
24125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
24126 }
24127 arg1 = reinterpret_cast< wxDC * >(argp1);
24128 arg2 = obj1;
24129 arg3 = obj2;
24130 arg4 = obj3;
24131 {
24132 PyThreadState* __tstate = wxPyBeginAllowThreads();
24133 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
24134 wxPyEndAllowThreads(__tstate);
24135 if (PyErr_Occurred()) SWIG_fail;
24136 }
24137 resultobj = result;
24138 return resultobj;
24139 fail:
24140 return NULL;
24141 }
24142
24143
24144 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24145 PyObject *resultobj = 0;
24146 wxDC *arg1 = (wxDC *) 0 ;
24147 PyObject *arg2 = (PyObject *) 0 ;
24148 PyObject *arg3 = (PyObject *) 0 ;
24149 PyObject *arg4 = (PyObject *) 0 ;
24150 PyObject *arg5 = (PyObject *) 0 ;
24151 PyObject *result = 0 ;
24152 void *argp1 = 0 ;
24153 int res1 = 0 ;
24154 PyObject * obj0 = 0 ;
24155 PyObject * obj1 = 0 ;
24156 PyObject * obj2 = 0 ;
24157 PyObject * obj3 = 0 ;
24158 PyObject * obj4 = 0 ;
24159 char * kwnames[] = {
24160 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
24161 };
24162
24163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24165 if (!SWIG_IsOK(res1)) {
24166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
24167 }
24168 arg1 = reinterpret_cast< wxDC * >(argp1);
24169 arg2 = obj1;
24170 arg3 = obj2;
24171 arg4 = obj3;
24172 arg5 = obj4;
24173 {
24174 PyThreadState* __tstate = wxPyBeginAllowThreads();
24175 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
24176 wxPyEndAllowThreads(__tstate);
24177 if (PyErr_Occurred()) SWIG_fail;
24178 }
24179 resultobj = result;
24180 return resultobj;
24181 fail:
24182 return NULL;
24183 }
24184
24185
24186 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24187 PyObject *obj;
24188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24189 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
24190 return SWIG_Py_Void();
24191 }
24192
24193 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24194 PyObject *resultobj = 0;
24195 wxDC *arg1 = 0 ;
24196 wxColour *arg2 = 0 ;
24197 wxDCTextColourChanger *result = 0 ;
24198 void *argp1 = 0 ;
24199 int res1 = 0 ;
24200 wxColour temp2 ;
24201 PyObject * obj0 = 0 ;
24202 PyObject * obj1 = 0 ;
24203 char * kwnames[] = {
24204 (char *) "dc",(char *) "col", NULL
24205 };
24206
24207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24208 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24209 if (!SWIG_IsOK(res1)) {
24210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24211 }
24212 if (!argp1) {
24213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24214 }
24215 arg1 = reinterpret_cast< wxDC * >(argp1);
24216 {
24217 arg2 = &temp2;
24218 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24219 }
24220 {
24221 PyThreadState* __tstate = wxPyBeginAllowThreads();
24222 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24223 wxPyEndAllowThreads(__tstate);
24224 if (PyErr_Occurred()) SWIG_fail;
24225 }
24226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24227 return resultobj;
24228 fail:
24229 return NULL;
24230 }
24231
24232
24233 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24234 PyObject *resultobj = 0;
24235 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24236 void *argp1 = 0 ;
24237 int res1 = 0 ;
24238 PyObject *swig_obj[1] ;
24239
24240 if (!args) SWIG_fail;
24241 swig_obj[0] = args;
24242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24243 if (!SWIG_IsOK(res1)) {
24244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24245 }
24246 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24247 {
24248 PyThreadState* __tstate = wxPyBeginAllowThreads();
24249 delete arg1;
24250
24251 wxPyEndAllowThreads(__tstate);
24252 if (PyErr_Occurred()) SWIG_fail;
24253 }
24254 resultobj = SWIG_Py_Void();
24255 return resultobj;
24256 fail:
24257 return NULL;
24258 }
24259
24260
24261 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24262 PyObject *obj;
24263 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24264 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24265 return SWIG_Py_Void();
24266 }
24267
24268 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24269 return SWIG_Python_InitShadowInstance(args);
24270 }
24271
24272 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24273 PyObject *resultobj = 0;
24274 wxDC *arg1 = 0 ;
24275 wxPen *arg2 = 0 ;
24276 wxDCPenChanger *result = 0 ;
24277 void *argp1 = 0 ;
24278 int res1 = 0 ;
24279 void *argp2 = 0 ;
24280 int res2 = 0 ;
24281 PyObject * obj0 = 0 ;
24282 PyObject * obj1 = 0 ;
24283 char * kwnames[] = {
24284 (char *) "dc",(char *) "pen", NULL
24285 };
24286
24287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24288 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24289 if (!SWIG_IsOK(res1)) {
24290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24291 }
24292 if (!argp1) {
24293 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24294 }
24295 arg1 = reinterpret_cast< wxDC * >(argp1);
24296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24297 if (!SWIG_IsOK(res2)) {
24298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24299 }
24300 if (!argp2) {
24301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24302 }
24303 arg2 = reinterpret_cast< wxPen * >(argp2);
24304 {
24305 PyThreadState* __tstate = wxPyBeginAllowThreads();
24306 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24307 wxPyEndAllowThreads(__tstate);
24308 if (PyErr_Occurred()) SWIG_fail;
24309 }
24310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24311 return resultobj;
24312 fail:
24313 return NULL;
24314 }
24315
24316
24317 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24318 PyObject *resultobj = 0;
24319 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24320 void *argp1 = 0 ;
24321 int res1 = 0 ;
24322 PyObject *swig_obj[1] ;
24323
24324 if (!args) SWIG_fail;
24325 swig_obj[0] = args;
24326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24327 if (!SWIG_IsOK(res1)) {
24328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24329 }
24330 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24331 {
24332 PyThreadState* __tstate = wxPyBeginAllowThreads();
24333 delete arg1;
24334
24335 wxPyEndAllowThreads(__tstate);
24336 if (PyErr_Occurred()) SWIG_fail;
24337 }
24338 resultobj = SWIG_Py_Void();
24339 return resultobj;
24340 fail:
24341 return NULL;
24342 }
24343
24344
24345 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24346 PyObject *obj;
24347 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24348 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24349 return SWIG_Py_Void();
24350 }
24351
24352 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24353 return SWIG_Python_InitShadowInstance(args);
24354 }
24355
24356 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24357 PyObject *resultobj = 0;
24358 wxDC *arg1 = 0 ;
24359 wxBrush *arg2 = 0 ;
24360 wxDCBrushChanger *result = 0 ;
24361 void *argp1 = 0 ;
24362 int res1 = 0 ;
24363 void *argp2 = 0 ;
24364 int res2 = 0 ;
24365 PyObject * obj0 = 0 ;
24366 PyObject * obj1 = 0 ;
24367 char * kwnames[] = {
24368 (char *) "dc",(char *) "brush", NULL
24369 };
24370
24371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24372 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24373 if (!SWIG_IsOK(res1)) {
24374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24375 }
24376 if (!argp1) {
24377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24378 }
24379 arg1 = reinterpret_cast< wxDC * >(argp1);
24380 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24381 if (!SWIG_IsOK(res2)) {
24382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24383 }
24384 if (!argp2) {
24385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24386 }
24387 arg2 = reinterpret_cast< wxBrush * >(argp2);
24388 {
24389 PyThreadState* __tstate = wxPyBeginAllowThreads();
24390 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24391 wxPyEndAllowThreads(__tstate);
24392 if (PyErr_Occurred()) SWIG_fail;
24393 }
24394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24395 return resultobj;
24396 fail:
24397 return NULL;
24398 }
24399
24400
24401 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24402 PyObject *resultobj = 0;
24403 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24404 void *argp1 = 0 ;
24405 int res1 = 0 ;
24406 PyObject *swig_obj[1] ;
24407
24408 if (!args) SWIG_fail;
24409 swig_obj[0] = args;
24410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24411 if (!SWIG_IsOK(res1)) {
24412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24413 }
24414 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24415 {
24416 PyThreadState* __tstate = wxPyBeginAllowThreads();
24417 delete arg1;
24418
24419 wxPyEndAllowThreads(__tstate);
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 *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24430 PyObject *obj;
24431 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24432 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24433 return SWIG_Py_Void();
24434 }
24435
24436 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24437 return SWIG_Python_InitShadowInstance(args);
24438 }
24439
24440 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24441 PyObject *resultobj = 0;
24442 wxDC *arg1 = 0 ;
24443 wxRegion *arg2 = 0 ;
24444 wxDCClipper *result = 0 ;
24445 void *argp1 = 0 ;
24446 int res1 = 0 ;
24447 void *argp2 = 0 ;
24448 int res2 = 0 ;
24449
24450 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24452 if (!SWIG_IsOK(res1)) {
24453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24454 }
24455 if (!argp1) {
24456 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24457 }
24458 arg1 = reinterpret_cast< wxDC * >(argp1);
24459 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24460 if (!SWIG_IsOK(res2)) {
24461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24462 }
24463 if (!argp2) {
24464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24465 }
24466 arg2 = reinterpret_cast< wxRegion * >(argp2);
24467 {
24468 PyThreadState* __tstate = wxPyBeginAllowThreads();
24469 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24470 wxPyEndAllowThreads(__tstate);
24471 if (PyErr_Occurred()) SWIG_fail;
24472 }
24473 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24474 return resultobj;
24475 fail:
24476 return NULL;
24477 }
24478
24479
24480 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24481 PyObject *resultobj = 0;
24482 wxDC *arg1 = 0 ;
24483 wxRect *arg2 = 0 ;
24484 wxDCClipper *result = 0 ;
24485 void *argp1 = 0 ;
24486 int res1 = 0 ;
24487 wxRect temp2 ;
24488
24489 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24491 if (!SWIG_IsOK(res1)) {
24492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24493 }
24494 if (!argp1) {
24495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24496 }
24497 arg1 = reinterpret_cast< wxDC * >(argp1);
24498 {
24499 arg2 = &temp2;
24500 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24501 }
24502 {
24503 PyThreadState* __tstate = wxPyBeginAllowThreads();
24504 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24505 wxPyEndAllowThreads(__tstate);
24506 if (PyErr_Occurred()) SWIG_fail;
24507 }
24508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24509 return resultobj;
24510 fail:
24511 return NULL;
24512 }
24513
24514
24515 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24516 PyObject *resultobj = 0;
24517 wxDC *arg1 = 0 ;
24518 int arg2 ;
24519 int arg3 ;
24520 int arg4 ;
24521 int arg5 ;
24522 wxDCClipper *result = 0 ;
24523 void *argp1 = 0 ;
24524 int res1 = 0 ;
24525 int val2 ;
24526 int ecode2 = 0 ;
24527 int val3 ;
24528 int ecode3 = 0 ;
24529 int val4 ;
24530 int ecode4 = 0 ;
24531 int val5 ;
24532 int ecode5 = 0 ;
24533
24534 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24536 if (!SWIG_IsOK(res1)) {
24537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24538 }
24539 if (!argp1) {
24540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24541 }
24542 arg1 = reinterpret_cast< wxDC * >(argp1);
24543 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24544 if (!SWIG_IsOK(ecode2)) {
24545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24546 }
24547 arg2 = static_cast< int >(val2);
24548 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24549 if (!SWIG_IsOK(ecode3)) {
24550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24551 }
24552 arg3 = static_cast< int >(val3);
24553 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24554 if (!SWIG_IsOK(ecode4)) {
24555 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24556 }
24557 arg4 = static_cast< int >(val4);
24558 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24559 if (!SWIG_IsOK(ecode5)) {
24560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24561 }
24562 arg5 = static_cast< int >(val5);
24563 {
24564 PyThreadState* __tstate = wxPyBeginAllowThreads();
24565 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24566 wxPyEndAllowThreads(__tstate);
24567 if (PyErr_Occurred()) SWIG_fail;
24568 }
24569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24570 return resultobj;
24571 fail:
24572 return NULL;
24573 }
24574
24575
24576 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24577 int argc;
24578 PyObject *argv[6];
24579
24580 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24581 --argc;
24582 if (argc == 2) {
24583 int _v = 0;
24584 {
24585 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24586 _v = SWIG_CheckState(res);
24587 }
24588 if (!_v) goto check_1;
24589 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24590 }
24591 check_1:
24592
24593 if (argc == 2) {
24594 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24595 }
24596 if (argc == 5) {
24597 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24598 }
24599
24600 fail:
24601 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24602 return NULL;
24603 }
24604
24605
24606 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24607 PyObject *resultobj = 0;
24608 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24609 void *argp1 = 0 ;
24610 int res1 = 0 ;
24611 PyObject *swig_obj[1] ;
24612
24613 if (!args) SWIG_fail;
24614 swig_obj[0] = args;
24615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24616 if (!SWIG_IsOK(res1)) {
24617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24618 }
24619 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24620 {
24621 PyThreadState* __tstate = wxPyBeginAllowThreads();
24622 delete arg1;
24623
24624 wxPyEndAllowThreads(__tstate);
24625 if (PyErr_Occurred()) SWIG_fail;
24626 }
24627 resultobj = SWIG_Py_Void();
24628 return resultobj;
24629 fail:
24630 return NULL;
24631 }
24632
24633
24634 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24635 PyObject *obj;
24636 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24637 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24638 return SWIG_Py_Void();
24639 }
24640
24641 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24642 return SWIG_Python_InitShadowInstance(args);
24643 }
24644
24645 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24646 PyObject *resultobj = 0;
24647 wxScreenDC *result = 0 ;
24648
24649 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24650 {
24651 if (!wxPyCheckForApp()) SWIG_fail;
24652 PyThreadState* __tstate = wxPyBeginAllowThreads();
24653 result = (wxScreenDC *)new wxScreenDC();
24654 wxPyEndAllowThreads(__tstate);
24655 if (PyErr_Occurred()) SWIG_fail;
24656 }
24657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24658 return resultobj;
24659 fail:
24660 return NULL;
24661 }
24662
24663
24664 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24665 PyObject *resultobj = 0;
24666 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24667 wxWindow *arg2 = (wxWindow *) 0 ;
24668 bool result;
24669 void *argp1 = 0 ;
24670 int res1 = 0 ;
24671 void *argp2 = 0 ;
24672 int res2 = 0 ;
24673 PyObject * obj0 = 0 ;
24674 PyObject * obj1 = 0 ;
24675 char * kwnames[] = {
24676 (char *) "self",(char *) "window", NULL
24677 };
24678
24679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24681 if (!SWIG_IsOK(res1)) {
24682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24683 }
24684 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24685 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24686 if (!SWIG_IsOK(res2)) {
24687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24688 }
24689 arg2 = reinterpret_cast< wxWindow * >(argp2);
24690 {
24691 PyThreadState* __tstate = wxPyBeginAllowThreads();
24692 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24693 wxPyEndAllowThreads(__tstate);
24694 if (PyErr_Occurred()) SWIG_fail;
24695 }
24696 {
24697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24698 }
24699 return resultobj;
24700 fail:
24701 return NULL;
24702 }
24703
24704
24705 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24706 PyObject *resultobj = 0;
24707 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24708 wxRect *arg2 = (wxRect *) NULL ;
24709 bool result;
24710 void *argp1 = 0 ;
24711 int res1 = 0 ;
24712 void *argp2 = 0 ;
24713 int res2 = 0 ;
24714 PyObject * obj0 = 0 ;
24715 PyObject * obj1 = 0 ;
24716 char * kwnames[] = {
24717 (char *) "self",(char *) "rect", NULL
24718 };
24719
24720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24722 if (!SWIG_IsOK(res1)) {
24723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24724 }
24725 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24726 if (obj1) {
24727 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24728 if (!SWIG_IsOK(res2)) {
24729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24730 }
24731 arg2 = reinterpret_cast< wxRect * >(argp2);
24732 }
24733 {
24734 PyThreadState* __tstate = wxPyBeginAllowThreads();
24735 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24736 wxPyEndAllowThreads(__tstate);
24737 if (PyErr_Occurred()) SWIG_fail;
24738 }
24739 {
24740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24741 }
24742 return resultobj;
24743 fail:
24744 return NULL;
24745 }
24746
24747
24748 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24749 PyObject *resultobj = 0;
24750 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24751 bool result;
24752 void *argp1 = 0 ;
24753 int res1 = 0 ;
24754 PyObject *swig_obj[1] ;
24755
24756 if (!args) SWIG_fail;
24757 swig_obj[0] = args;
24758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24759 if (!SWIG_IsOK(res1)) {
24760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24761 }
24762 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24763 {
24764 PyThreadState* __tstate = wxPyBeginAllowThreads();
24765 result = (bool)(arg1)->EndDrawingOnTop();
24766 wxPyEndAllowThreads(__tstate);
24767 if (PyErr_Occurred()) SWIG_fail;
24768 }
24769 {
24770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24771 }
24772 return resultobj;
24773 fail:
24774 return NULL;
24775 }
24776
24777
24778 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24779 PyObject *obj;
24780 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24781 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24782 return SWIG_Py_Void();
24783 }
24784
24785 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24786 return SWIG_Python_InitShadowInstance(args);
24787 }
24788
24789 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24790 PyObject *resultobj = 0;
24791 wxWindow *arg1 = (wxWindow *) 0 ;
24792 wxWindowDC *result = 0 ;
24793 void *argp1 = 0 ;
24794 int res1 = 0 ;
24795 PyObject * obj0 = 0 ;
24796 char * kwnames[] = {
24797 (char *) "win", NULL
24798 };
24799
24800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24802 if (!SWIG_IsOK(res1)) {
24803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24804 }
24805 arg1 = reinterpret_cast< wxWindow * >(argp1);
24806 {
24807 if (!wxPyCheckForApp()) SWIG_fail;
24808 PyThreadState* __tstate = wxPyBeginAllowThreads();
24809 result = (wxWindowDC *)new wxWindowDC(arg1);
24810 wxPyEndAllowThreads(__tstate);
24811 if (PyErr_Occurred()) SWIG_fail;
24812 }
24813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24814 return resultobj;
24815 fail:
24816 return NULL;
24817 }
24818
24819
24820 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24821 PyObject *obj;
24822 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24823 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24824 return SWIG_Py_Void();
24825 }
24826
24827 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24828 return SWIG_Python_InitShadowInstance(args);
24829 }
24830
24831 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24832 PyObject *resultobj = 0;
24833 wxWindow *arg1 = (wxWindow *) 0 ;
24834 wxClientDC *result = 0 ;
24835 void *argp1 = 0 ;
24836 int res1 = 0 ;
24837 PyObject * obj0 = 0 ;
24838 char * kwnames[] = {
24839 (char *) "win", NULL
24840 };
24841
24842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24844 if (!SWIG_IsOK(res1)) {
24845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24846 }
24847 arg1 = reinterpret_cast< wxWindow * >(argp1);
24848 {
24849 if (!wxPyCheckForApp()) SWIG_fail;
24850 PyThreadState* __tstate = wxPyBeginAllowThreads();
24851 result = (wxClientDC *)new wxClientDC(arg1);
24852 wxPyEndAllowThreads(__tstate);
24853 if (PyErr_Occurred()) SWIG_fail;
24854 }
24855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24856 return resultobj;
24857 fail:
24858 return NULL;
24859 }
24860
24861
24862 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24863 PyObject *obj;
24864 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24865 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24866 return SWIG_Py_Void();
24867 }
24868
24869 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24870 return SWIG_Python_InitShadowInstance(args);
24871 }
24872
24873 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24874 PyObject *resultobj = 0;
24875 wxWindow *arg1 = (wxWindow *) 0 ;
24876 wxPaintDC *result = 0 ;
24877 void *argp1 = 0 ;
24878 int res1 = 0 ;
24879 PyObject * obj0 = 0 ;
24880 char * kwnames[] = {
24881 (char *) "win", NULL
24882 };
24883
24884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24886 if (!SWIG_IsOK(res1)) {
24887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24888 }
24889 arg1 = reinterpret_cast< wxWindow * >(argp1);
24890 {
24891 if (!wxPyCheckForApp()) SWIG_fail;
24892 PyThreadState* __tstate = wxPyBeginAllowThreads();
24893 result = (wxPaintDC *)new wxPaintDC(arg1);
24894 wxPyEndAllowThreads(__tstate);
24895 if (PyErr_Occurred()) SWIG_fail;
24896 }
24897 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24898 return resultobj;
24899 fail:
24900 return NULL;
24901 }
24902
24903
24904 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24905 PyObject *obj;
24906 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24907 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24908 return SWIG_Py_Void();
24909 }
24910
24911 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24912 return SWIG_Python_InitShadowInstance(args);
24913 }
24914
24915 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24916 PyObject *resultobj = 0;
24917 wxBitmap &arg1_defvalue = wxNullBitmap ;
24918 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24919 wxMemoryDC *result = 0 ;
24920 void *argp1 = 0 ;
24921 int res1 = 0 ;
24922 PyObject * obj0 = 0 ;
24923 char * kwnames[] = {
24924 (char *) "bitmap", NULL
24925 };
24926
24927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24928 if (obj0) {
24929 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24930 if (!SWIG_IsOK(res1)) {
24931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24932 }
24933 if (!argp1) {
24934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24935 }
24936 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24937 }
24938 {
24939 if (!wxPyCheckForApp()) SWIG_fail;
24940 PyThreadState* __tstate = wxPyBeginAllowThreads();
24941 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24942 wxPyEndAllowThreads(__tstate);
24943 if (PyErr_Occurred()) SWIG_fail;
24944 }
24945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24946 return resultobj;
24947 fail:
24948 return NULL;
24949 }
24950
24951
24952 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24953 PyObject *resultobj = 0;
24954 wxDC *arg1 = (wxDC *) 0 ;
24955 wxMemoryDC *result = 0 ;
24956 void *argp1 = 0 ;
24957 int res1 = 0 ;
24958 PyObject * obj0 = 0 ;
24959 char * kwnames[] = {
24960 (char *) "oldDC", NULL
24961 };
24962
24963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24965 if (!SWIG_IsOK(res1)) {
24966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24967 }
24968 arg1 = reinterpret_cast< wxDC * >(argp1);
24969 {
24970 if (!wxPyCheckForApp()) SWIG_fail;
24971 PyThreadState* __tstate = wxPyBeginAllowThreads();
24972 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24973 wxPyEndAllowThreads(__tstate);
24974 if (PyErr_Occurred()) SWIG_fail;
24975 }
24976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24977 return resultobj;
24978 fail:
24979 return NULL;
24980 }
24981
24982
24983 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24984 PyObject *resultobj = 0;
24985 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24986 wxBitmap *arg2 = 0 ;
24987 void *argp1 = 0 ;
24988 int res1 = 0 ;
24989 void *argp2 = 0 ;
24990 int res2 = 0 ;
24991 PyObject * obj0 = 0 ;
24992 PyObject * obj1 = 0 ;
24993 char * kwnames[] = {
24994 (char *) "self",(char *) "bitmap", NULL
24995 };
24996
24997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24999 if (!SWIG_IsOK(res1)) {
25000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
25001 }
25002 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25003 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25004 if (!SWIG_IsOK(res2)) {
25005 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
25006 }
25007 if (!argp2) {
25008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
25009 }
25010 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25011 {
25012 PyThreadState* __tstate = wxPyBeginAllowThreads();
25013 (arg1)->SelectObject(*arg2);
25014 wxPyEndAllowThreads(__tstate);
25015 if (PyErr_Occurred()) SWIG_fail;
25016 }
25017 resultobj = SWIG_Py_Void();
25018 return resultobj;
25019 fail:
25020 return NULL;
25021 }
25022
25023
25024 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25025 PyObject *resultobj = 0;
25026 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
25027 wxBitmap *arg2 = 0 ;
25028 void *argp1 = 0 ;
25029 int res1 = 0 ;
25030 void *argp2 = 0 ;
25031 int res2 = 0 ;
25032 PyObject * obj0 = 0 ;
25033 PyObject * obj1 = 0 ;
25034 char * kwnames[] = {
25035 (char *) "self",(char *) "bmp", NULL
25036 };
25037
25038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
25039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
25040 if (!SWIG_IsOK(res1)) {
25041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
25042 }
25043 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25044 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25045 if (!SWIG_IsOK(res2)) {
25046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25047 }
25048 if (!argp2) {
25049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25050 }
25051 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25052 {
25053 PyThreadState* __tstate = wxPyBeginAllowThreads();
25054 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
25055 wxPyEndAllowThreads(__tstate);
25056 if (PyErr_Occurred()) SWIG_fail;
25057 }
25058 resultobj = SWIG_Py_Void();
25059 return resultobj;
25060 fail:
25061 return NULL;
25062 }
25063
25064
25065 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25066 PyObject *obj;
25067 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25068 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
25069 return SWIG_Py_Void();
25070 }
25071
25072 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25073 return SWIG_Python_InitShadowInstance(args);
25074 }
25075
25076 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25077 PyObject *resultobj = 0;
25078 wxDC *arg1 = (wxDC *) 0 ;
25079 wxBitmap &arg2_defvalue = wxNullBitmap ;
25080 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25081 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25082 wxBufferedDC *result = 0 ;
25083 void *argp1 = 0 ;
25084 int res1 = 0 ;
25085 void *argp2 = 0 ;
25086 int res2 = 0 ;
25087 int val3 ;
25088 int ecode3 = 0 ;
25089
25090 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
25091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25092 if (!SWIG_IsOK(res1)) {
25093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25094 }
25095 arg1 = reinterpret_cast< wxDC * >(argp1);
25096 if (swig_obj[1]) {
25097 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
25098 if (!SWIG_IsOK(res2)) {
25099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25100 }
25101 if (!argp2) {
25102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25103 }
25104 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25105 }
25106 if (swig_obj[2]) {
25107 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25108 if (!SWIG_IsOK(ecode3)) {
25109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25110 }
25111 arg3 = static_cast< int >(val3);
25112 }
25113 {
25114 if (!wxPyCheckForApp()) SWIG_fail;
25115 PyThreadState* __tstate = wxPyBeginAllowThreads();
25116 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
25117 wxPyEndAllowThreads(__tstate);
25118 if (PyErr_Occurred()) SWIG_fail;
25119 }
25120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25121 return resultobj;
25122 fail:
25123 return NULL;
25124 }
25125
25126
25127 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25128 PyObject *resultobj = 0;
25129 wxDC *arg1 = (wxDC *) 0 ;
25130 wxSize *arg2 = 0 ;
25131 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25132 wxBufferedDC *result = 0 ;
25133 void *argp1 = 0 ;
25134 int res1 = 0 ;
25135 wxSize temp2 ;
25136 int val3 ;
25137 int ecode3 = 0 ;
25138
25139 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
25140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25141 if (!SWIG_IsOK(res1)) {
25142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25143 }
25144 arg1 = reinterpret_cast< wxDC * >(argp1);
25145 {
25146 arg2 = &temp2;
25147 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
25148 }
25149 if (swig_obj[2]) {
25150 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25151 if (!SWIG_IsOK(ecode3)) {
25152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25153 }
25154 arg3 = static_cast< int >(val3);
25155 }
25156 {
25157 if (!wxPyCheckForApp()) SWIG_fail;
25158 PyThreadState* __tstate = wxPyBeginAllowThreads();
25159 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
25160 wxPyEndAllowThreads(__tstate);
25161 if (PyErr_Occurred()) SWIG_fail;
25162 }
25163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25164 return resultobj;
25165 fail:
25166 return NULL;
25167 }
25168
25169
25170 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
25171 int argc;
25172 PyObject *argv[4];
25173
25174 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
25175 --argc;
25176 if ((argc >= 1) && (argc <= 3)) {
25177 int _v = 0;
25178 if (argc > 1) {
25179 {
25180 void *vptr = 0;
25181 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
25182 _v = SWIG_CheckState(res);
25183 }
25184 if (!_v) goto check_1;
25185 }
25186 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
25187 }
25188 check_1:
25189
25190 if ((argc >= 2) && (argc <= 3)) {
25191 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
25192 }
25193
25194 fail:
25195 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
25196 return NULL;
25197 }
25198
25199
25200 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25201 PyObject *resultobj = 0;
25202 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25203 void *argp1 = 0 ;
25204 int res1 = 0 ;
25205 PyObject *swig_obj[1] ;
25206
25207 if (!args) SWIG_fail;
25208 swig_obj[0] = args;
25209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
25210 if (!SWIG_IsOK(res1)) {
25211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25212 }
25213 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25214 {
25215 PyThreadState* __tstate = wxPyBeginAllowThreads();
25216 delete arg1;
25217
25218 wxPyEndAllowThreads(__tstate);
25219 if (PyErr_Occurred()) SWIG_fail;
25220 }
25221 resultobj = SWIG_Py_Void();
25222 return resultobj;
25223 fail:
25224 return NULL;
25225 }
25226
25227
25228 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25229 PyObject *resultobj = 0;
25230 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25231 void *argp1 = 0 ;
25232 int res1 = 0 ;
25233 PyObject *swig_obj[1] ;
25234
25235 if (!args) SWIG_fail;
25236 swig_obj[0] = args;
25237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25238 if (!SWIG_IsOK(res1)) {
25239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25240 }
25241 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25242 {
25243 PyThreadState* __tstate = wxPyBeginAllowThreads();
25244 (arg1)->UnMask();
25245 wxPyEndAllowThreads(__tstate);
25246 if (PyErr_Occurred()) SWIG_fail;
25247 }
25248 resultobj = SWIG_Py_Void();
25249 return resultobj;
25250 fail:
25251 return NULL;
25252 }
25253
25254
25255 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25256 PyObject *resultobj = 0;
25257 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25258 int arg2 ;
25259 void *argp1 = 0 ;
25260 int res1 = 0 ;
25261 int val2 ;
25262 int ecode2 = 0 ;
25263 PyObject * obj0 = 0 ;
25264 PyObject * obj1 = 0 ;
25265 char * kwnames[] = {
25266 (char *) "self",(char *) "style", NULL
25267 };
25268
25269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
25270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25271 if (!SWIG_IsOK(res1)) {
25272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25273 }
25274 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25275 ecode2 = SWIG_AsVal_int(obj1, &val2);
25276 if (!SWIG_IsOK(ecode2)) {
25277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
25278 }
25279 arg2 = static_cast< int >(val2);
25280 {
25281 PyThreadState* __tstate = wxPyBeginAllowThreads();
25282 (arg1)->SetStyle(arg2);
25283 wxPyEndAllowThreads(__tstate);
25284 if (PyErr_Occurred()) SWIG_fail;
25285 }
25286 resultobj = SWIG_Py_Void();
25287 return resultobj;
25288 fail:
25289 return NULL;
25290 }
25291
25292
25293 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25294 PyObject *resultobj = 0;
25295 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25296 int result;
25297 void *argp1 = 0 ;
25298 int res1 = 0 ;
25299 PyObject *swig_obj[1] ;
25300
25301 if (!args) SWIG_fail;
25302 swig_obj[0] = args;
25303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25304 if (!SWIG_IsOK(res1)) {
25305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
25306 }
25307 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25308 {
25309 PyThreadState* __tstate = wxPyBeginAllowThreads();
25310 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
25311 wxPyEndAllowThreads(__tstate);
25312 if (PyErr_Occurred()) SWIG_fail;
25313 }
25314 resultobj = SWIG_From_int(static_cast< int >(result));
25315 return resultobj;
25316 fail:
25317 return NULL;
25318 }
25319
25320
25321 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25322 PyObject *obj;
25323 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25324 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25325 return SWIG_Py_Void();
25326 }
25327
25328 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25329 return SWIG_Python_InitShadowInstance(args);
25330 }
25331
25332 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25333 PyObject *resultobj = 0;
25334 wxWindow *arg1 = (wxWindow *) 0 ;
25335 wxBitmap &arg2_defvalue = wxNullBitmap ;
25336 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25337 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25338 wxBufferedPaintDC *result = 0 ;
25339 void *argp1 = 0 ;
25340 int res1 = 0 ;
25341 void *argp2 = 0 ;
25342 int res2 = 0 ;
25343 int val3 ;
25344 int ecode3 = 0 ;
25345 PyObject * obj0 = 0 ;
25346 PyObject * obj1 = 0 ;
25347 PyObject * obj2 = 0 ;
25348 char * kwnames[] = {
25349 (char *) "window",(char *) "buffer",(char *) "style", NULL
25350 };
25351
25352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25354 if (!SWIG_IsOK(res1)) {
25355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25356 }
25357 arg1 = reinterpret_cast< wxWindow * >(argp1);
25358 if (obj1) {
25359 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25360 if (!SWIG_IsOK(res2)) {
25361 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25362 }
25363 if (!argp2) {
25364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25365 }
25366 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25367 }
25368 if (obj2) {
25369 ecode3 = SWIG_AsVal_int(obj2, &val3);
25370 if (!SWIG_IsOK(ecode3)) {
25371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25372 }
25373 arg3 = static_cast< int >(val3);
25374 }
25375 {
25376 if (!wxPyCheckForApp()) SWIG_fail;
25377 PyThreadState* __tstate = wxPyBeginAllowThreads();
25378 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
25379 wxPyEndAllowThreads(__tstate);
25380 if (PyErr_Occurred()) SWIG_fail;
25381 }
25382 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25383 return resultobj;
25384 fail:
25385 return NULL;
25386 }
25387
25388
25389 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25390 PyObject *obj;
25391 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25392 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25393 return SWIG_Py_Void();
25394 }
25395
25396 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25397 return SWIG_Python_InitShadowInstance(args);
25398 }
25399
25400 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25401 PyObject *resultobj = 0;
25402 wxWindow *arg1 = (wxWindow *) 0 ;
25403 wxAutoBufferedPaintDC *result = 0 ;
25404 void *argp1 = 0 ;
25405 int res1 = 0 ;
25406 PyObject * obj0 = 0 ;
25407 char * kwnames[] = {
25408 (char *) "win", NULL
25409 };
25410
25411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
25412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25413 if (!SWIG_IsOK(res1)) {
25414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25415 }
25416 arg1 = reinterpret_cast< wxWindow * >(argp1);
25417 {
25418 PyThreadState* __tstate = wxPyBeginAllowThreads();
25419 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
25420 wxPyEndAllowThreads(__tstate);
25421 if (PyErr_Occurred()) SWIG_fail;
25422 }
25423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25424 return resultobj;
25425 fail:
25426 return NULL;
25427 }
25428
25429
25430 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25431 PyObject *obj;
25432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25433 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
25434 return SWIG_Py_Void();
25435 }
25436
25437 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25438 return SWIG_Python_InitShadowInstance(args);
25439 }
25440
25441 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25442 PyObject *resultobj = 0;
25443 wxWindow *arg1 = (wxWindow *) 0 ;
25444 wxDC *result = 0 ;
25445 void *argp1 = 0 ;
25446 int res1 = 0 ;
25447 PyObject * obj0 = 0 ;
25448 char * kwnames[] = {
25449 (char *) "window", NULL
25450 };
25451
25452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25454 if (!SWIG_IsOK(res1)) {
25455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25456 }
25457 arg1 = reinterpret_cast< wxWindow * >(argp1);
25458 {
25459 PyThreadState* __tstate = wxPyBeginAllowThreads();
25460 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25461 wxPyEndAllowThreads(__tstate);
25462 if (PyErr_Occurred()) SWIG_fail;
25463 }
25464 {
25465 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25466 }
25467 return resultobj;
25468 fail:
25469 return NULL;
25470 }
25471
25472
25473 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25474 PyObject *resultobj = 0;
25475 wxDC *arg1 = 0 ;
25476 bool arg2 ;
25477 wxMirrorDC *result = 0 ;
25478 void *argp1 = 0 ;
25479 int res1 = 0 ;
25480 bool val2 ;
25481 int ecode2 = 0 ;
25482 PyObject * obj0 = 0 ;
25483 PyObject * obj1 = 0 ;
25484 char * kwnames[] = {
25485 (char *) "dc",(char *) "mirror", NULL
25486 };
25487
25488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25489 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25490 if (!SWIG_IsOK(res1)) {
25491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25492 }
25493 if (!argp1) {
25494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25495 }
25496 arg1 = reinterpret_cast< wxDC * >(argp1);
25497 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25498 if (!SWIG_IsOK(ecode2)) {
25499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25500 }
25501 arg2 = static_cast< bool >(val2);
25502 {
25503 if (!wxPyCheckForApp()) SWIG_fail;
25504 PyThreadState* __tstate = wxPyBeginAllowThreads();
25505 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25506 wxPyEndAllowThreads(__tstate);
25507 if (PyErr_Occurred()) SWIG_fail;
25508 }
25509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25510 return resultobj;
25511 fail:
25512 return NULL;
25513 }
25514
25515
25516 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25517 PyObject *obj;
25518 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25519 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25520 return SWIG_Py_Void();
25521 }
25522
25523 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25524 return SWIG_Python_InitShadowInstance(args);
25525 }
25526
25527 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25528 PyObject *resultobj = 0;
25529 wxPrintData *arg1 = 0 ;
25530 wxPostScriptDC *result = 0 ;
25531 void *argp1 = 0 ;
25532 int res1 = 0 ;
25533 PyObject * obj0 = 0 ;
25534 char * kwnames[] = {
25535 (char *) "printData", NULL
25536 };
25537
25538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25539 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25540 if (!SWIG_IsOK(res1)) {
25541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25542 }
25543 if (!argp1) {
25544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25545 }
25546 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25547 {
25548 if (!wxPyCheckForApp()) SWIG_fail;
25549 PyThreadState* __tstate = wxPyBeginAllowThreads();
25550 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25551 wxPyEndAllowThreads(__tstate);
25552 if (PyErr_Occurred()) SWIG_fail;
25553 }
25554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25555 return resultobj;
25556 fail:
25557 return NULL;
25558 }
25559
25560
25561 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25562 PyObject *resultobj = 0;
25563 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25564 wxPrintData *result = 0 ;
25565 void *argp1 = 0 ;
25566 int res1 = 0 ;
25567 PyObject *swig_obj[1] ;
25568
25569 if (!args) SWIG_fail;
25570 swig_obj[0] = args;
25571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25572 if (!SWIG_IsOK(res1)) {
25573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25574 }
25575 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25576 {
25577 PyThreadState* __tstate = wxPyBeginAllowThreads();
25578 {
25579 wxPrintData &_result_ref = (arg1)->GetPrintData();
25580 result = (wxPrintData *) &_result_ref;
25581 }
25582 wxPyEndAllowThreads(__tstate);
25583 if (PyErr_Occurred()) SWIG_fail;
25584 }
25585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25586 return resultobj;
25587 fail:
25588 return NULL;
25589 }
25590
25591
25592 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25593 PyObject *resultobj = 0;
25594 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25595 wxPrintData *arg2 = 0 ;
25596 void *argp1 = 0 ;
25597 int res1 = 0 ;
25598 void *argp2 = 0 ;
25599 int res2 = 0 ;
25600 PyObject * obj0 = 0 ;
25601 PyObject * obj1 = 0 ;
25602 char * kwnames[] = {
25603 (char *) "self",(char *) "data", NULL
25604 };
25605
25606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25608 if (!SWIG_IsOK(res1)) {
25609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25610 }
25611 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25612 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25613 if (!SWIG_IsOK(res2)) {
25614 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25615 }
25616 if (!argp2) {
25617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25618 }
25619 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25620 {
25621 PyThreadState* __tstate = wxPyBeginAllowThreads();
25622 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25623 wxPyEndAllowThreads(__tstate);
25624 if (PyErr_Occurred()) SWIG_fail;
25625 }
25626 resultobj = SWIG_Py_Void();
25627 return resultobj;
25628 fail:
25629 return NULL;
25630 }
25631
25632
25633 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25634 PyObject *resultobj = 0;
25635 int arg1 ;
25636 int val1 ;
25637 int ecode1 = 0 ;
25638 PyObject * obj0 = 0 ;
25639 char * kwnames[] = {
25640 (char *) "ppi", NULL
25641 };
25642
25643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25644 ecode1 = SWIG_AsVal_int(obj0, &val1);
25645 if (!SWIG_IsOK(ecode1)) {
25646 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25647 }
25648 arg1 = static_cast< int >(val1);
25649 {
25650 PyThreadState* __tstate = wxPyBeginAllowThreads();
25651 wxPostScriptDC::SetResolution(arg1);
25652 wxPyEndAllowThreads(__tstate);
25653 if (PyErr_Occurred()) SWIG_fail;
25654 }
25655 resultobj = SWIG_Py_Void();
25656 return resultobj;
25657 fail:
25658 return NULL;
25659 }
25660
25661
25662 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25663 PyObject *resultobj = 0;
25664 int result;
25665
25666 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25667 {
25668 PyThreadState* __tstate = wxPyBeginAllowThreads();
25669 result = (int)wxPostScriptDC::GetResolution();
25670 wxPyEndAllowThreads(__tstate);
25671 if (PyErr_Occurred()) SWIG_fail;
25672 }
25673 resultobj = SWIG_From_int(static_cast< int >(result));
25674 return resultobj;
25675 fail:
25676 return NULL;
25677 }
25678
25679
25680 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25681 PyObject *obj;
25682 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25683 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25684 return SWIG_Py_Void();
25685 }
25686
25687 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25688 return SWIG_Python_InitShadowInstance(args);
25689 }
25690
25691 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25692 PyObject *resultobj = 0;
25693 wxString const &arg1_defvalue = wxPyEmptyString ;
25694 wxString *arg1 = (wxString *) &arg1_defvalue ;
25695 wxMetaFile *result = 0 ;
25696 bool temp1 = false ;
25697 PyObject * obj0 = 0 ;
25698 char * kwnames[] = {
25699 (char *) "filename", NULL
25700 };
25701
25702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25703 if (obj0) {
25704 {
25705 arg1 = wxString_in_helper(obj0);
25706 if (arg1 == NULL) SWIG_fail;
25707 temp1 = true;
25708 }
25709 }
25710 {
25711 if (!wxPyCheckForApp()) SWIG_fail;
25712 PyThreadState* __tstate = wxPyBeginAllowThreads();
25713 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25714 wxPyEndAllowThreads(__tstate);
25715 if (PyErr_Occurred()) SWIG_fail;
25716 }
25717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25718 {
25719 if (temp1)
25720 delete arg1;
25721 }
25722 return resultobj;
25723 fail:
25724 {
25725 if (temp1)
25726 delete arg1;
25727 }
25728 return NULL;
25729 }
25730
25731
25732 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25733 PyObject *resultobj = 0;
25734 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25735 void *argp1 = 0 ;
25736 int res1 = 0 ;
25737 PyObject *swig_obj[1] ;
25738
25739 if (!args) SWIG_fail;
25740 swig_obj[0] = args;
25741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25742 if (!SWIG_IsOK(res1)) {
25743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25744 }
25745 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25746 {
25747 PyThreadState* __tstate = wxPyBeginAllowThreads();
25748 delete arg1;
25749
25750 wxPyEndAllowThreads(__tstate);
25751 if (PyErr_Occurred()) SWIG_fail;
25752 }
25753 resultobj = SWIG_Py_Void();
25754 return resultobj;
25755 fail:
25756 return NULL;
25757 }
25758
25759
25760 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25761 PyObject *resultobj = 0;
25762 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25763 bool result;
25764 void *argp1 = 0 ;
25765 int res1 = 0 ;
25766 PyObject *swig_obj[1] ;
25767
25768 if (!args) SWIG_fail;
25769 swig_obj[0] = args;
25770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25771 if (!SWIG_IsOK(res1)) {
25772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25773 }
25774 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25775 {
25776 PyThreadState* __tstate = wxPyBeginAllowThreads();
25777 result = (bool)(arg1)->IsOk();
25778 wxPyEndAllowThreads(__tstate);
25779 if (PyErr_Occurred()) SWIG_fail;
25780 }
25781 {
25782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25783 }
25784 return resultobj;
25785 fail:
25786 return NULL;
25787 }
25788
25789
25790 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25791 PyObject *resultobj = 0;
25792 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25793 int arg2 = (int) 0 ;
25794 int arg3 = (int) 0 ;
25795 bool result;
25796 void *argp1 = 0 ;
25797 int res1 = 0 ;
25798 int val2 ;
25799 int ecode2 = 0 ;
25800 int val3 ;
25801 int ecode3 = 0 ;
25802 PyObject * obj0 = 0 ;
25803 PyObject * obj1 = 0 ;
25804 PyObject * obj2 = 0 ;
25805 char * kwnames[] = {
25806 (char *) "self",(char *) "width",(char *) "height", NULL
25807 };
25808
25809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25811 if (!SWIG_IsOK(res1)) {
25812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25813 }
25814 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25815 if (obj1) {
25816 ecode2 = SWIG_AsVal_int(obj1, &val2);
25817 if (!SWIG_IsOK(ecode2)) {
25818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25819 }
25820 arg2 = static_cast< int >(val2);
25821 }
25822 if (obj2) {
25823 ecode3 = SWIG_AsVal_int(obj2, &val3);
25824 if (!SWIG_IsOK(ecode3)) {
25825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25826 }
25827 arg3 = static_cast< int >(val3);
25828 }
25829 {
25830 PyThreadState* __tstate = wxPyBeginAllowThreads();
25831 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25832 wxPyEndAllowThreads(__tstate);
25833 if (PyErr_Occurred()) SWIG_fail;
25834 }
25835 {
25836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25837 }
25838 return resultobj;
25839 fail:
25840 return NULL;
25841 }
25842
25843
25844 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25845 PyObject *resultobj = 0;
25846 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25847 wxSize result;
25848 void *argp1 = 0 ;
25849 int res1 = 0 ;
25850 PyObject *swig_obj[1] ;
25851
25852 if (!args) SWIG_fail;
25853 swig_obj[0] = args;
25854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25855 if (!SWIG_IsOK(res1)) {
25856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25857 }
25858 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25859 {
25860 PyThreadState* __tstate = wxPyBeginAllowThreads();
25861 result = (arg1)->GetSize();
25862 wxPyEndAllowThreads(__tstate);
25863 if (PyErr_Occurred()) SWIG_fail;
25864 }
25865 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25866 return resultobj;
25867 fail:
25868 return NULL;
25869 }
25870
25871
25872 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25873 PyObject *resultobj = 0;
25874 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25875 int result;
25876 void *argp1 = 0 ;
25877 int res1 = 0 ;
25878 PyObject *swig_obj[1] ;
25879
25880 if (!args) SWIG_fail;
25881 swig_obj[0] = args;
25882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25883 if (!SWIG_IsOK(res1)) {
25884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25885 }
25886 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25887 {
25888 PyThreadState* __tstate = wxPyBeginAllowThreads();
25889 result = (int)(arg1)->GetWidth();
25890 wxPyEndAllowThreads(__tstate);
25891 if (PyErr_Occurred()) SWIG_fail;
25892 }
25893 resultobj = SWIG_From_int(static_cast< int >(result));
25894 return resultobj;
25895 fail:
25896 return NULL;
25897 }
25898
25899
25900 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25901 PyObject *resultobj = 0;
25902 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25903 int result;
25904 void *argp1 = 0 ;
25905 int res1 = 0 ;
25906 PyObject *swig_obj[1] ;
25907
25908 if (!args) SWIG_fail;
25909 swig_obj[0] = args;
25910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25911 if (!SWIG_IsOK(res1)) {
25912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25913 }
25914 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25915 {
25916 PyThreadState* __tstate = wxPyBeginAllowThreads();
25917 result = (int)(arg1)->GetHeight();
25918 wxPyEndAllowThreads(__tstate);
25919 if (PyErr_Occurred()) SWIG_fail;
25920 }
25921 resultobj = SWIG_From_int(static_cast< int >(result));
25922 return resultobj;
25923 fail:
25924 return NULL;
25925 }
25926
25927
25928 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25929 PyObject *resultobj = 0;
25930 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25931 wxString *result = 0 ;
25932 void *argp1 = 0 ;
25933 int res1 = 0 ;
25934 PyObject *swig_obj[1] ;
25935
25936 if (!args) SWIG_fail;
25937 swig_obj[0] = args;
25938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25939 if (!SWIG_IsOK(res1)) {
25940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
25941 }
25942 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25943 {
25944 PyThreadState* __tstate = wxPyBeginAllowThreads();
25945 {
25946 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
25947 result = (wxString *) &_result_ref;
25948 }
25949 wxPyEndAllowThreads(__tstate);
25950 if (PyErr_Occurred()) SWIG_fail;
25951 }
25952 {
25953 #if wxUSE_UNICODE
25954 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25955 #else
25956 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25957 #endif
25958 }
25959 return resultobj;
25960 fail:
25961 return NULL;
25962 }
25963
25964
25965 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25966 PyObject *obj;
25967 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25968 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25969 return SWIG_Py_Void();
25970 }
25971
25972 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25973 return SWIG_Python_InitShadowInstance(args);
25974 }
25975
25976 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25977 PyObject *resultobj = 0;
25978 wxString const &arg1_defvalue = wxPyEmptyString ;
25979 wxString *arg1 = (wxString *) &arg1_defvalue ;
25980 int arg2 = (int) 0 ;
25981 int arg3 = (int) 0 ;
25982 wxString const &arg4_defvalue = wxPyEmptyString ;
25983 wxString *arg4 = (wxString *) &arg4_defvalue ;
25984 wxMetaFileDC *result = 0 ;
25985 bool temp1 = false ;
25986 int val2 ;
25987 int ecode2 = 0 ;
25988 int val3 ;
25989 int ecode3 = 0 ;
25990 bool temp4 = false ;
25991 PyObject * obj0 = 0 ;
25992 PyObject * obj1 = 0 ;
25993 PyObject * obj2 = 0 ;
25994 PyObject * obj3 = 0 ;
25995 char * kwnames[] = {
25996 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25997 };
25998
25999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26000 if (obj0) {
26001 {
26002 arg1 = wxString_in_helper(obj0);
26003 if (arg1 == NULL) SWIG_fail;
26004 temp1 = true;
26005 }
26006 }
26007 if (obj1) {
26008 ecode2 = SWIG_AsVal_int(obj1, &val2);
26009 if (!SWIG_IsOK(ecode2)) {
26010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
26011 }
26012 arg2 = static_cast< int >(val2);
26013 }
26014 if (obj2) {
26015 ecode3 = SWIG_AsVal_int(obj2, &val3);
26016 if (!SWIG_IsOK(ecode3)) {
26017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
26018 }
26019 arg3 = static_cast< int >(val3);
26020 }
26021 if (obj3) {
26022 {
26023 arg4 = wxString_in_helper(obj3);
26024 if (arg4 == NULL) SWIG_fail;
26025 temp4 = true;
26026 }
26027 }
26028 {
26029 if (!wxPyCheckForApp()) SWIG_fail;
26030 PyThreadState* __tstate = wxPyBeginAllowThreads();
26031 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
26032 wxPyEndAllowThreads(__tstate);
26033 if (PyErr_Occurred()) SWIG_fail;
26034 }
26035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
26036 {
26037 if (temp1)
26038 delete arg1;
26039 }
26040 {
26041 if (temp4)
26042 delete arg4;
26043 }
26044 return resultobj;
26045 fail:
26046 {
26047 if (temp1)
26048 delete arg1;
26049 }
26050 {
26051 if (temp4)
26052 delete arg4;
26053 }
26054 return NULL;
26055 }
26056
26057
26058 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26059 PyObject *resultobj = 0;
26060 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
26061 wxMetaFile *result = 0 ;
26062 void *argp1 = 0 ;
26063 int res1 = 0 ;
26064 PyObject *swig_obj[1] ;
26065
26066 if (!args) SWIG_fail;
26067 swig_obj[0] = args;
26068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
26069 if (!SWIG_IsOK(res1)) {
26070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
26071 }
26072 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
26073 {
26074 PyThreadState* __tstate = wxPyBeginAllowThreads();
26075 result = (wxMetaFile *)(arg1)->Close();
26076 wxPyEndAllowThreads(__tstate);
26077 if (PyErr_Occurred()) SWIG_fail;
26078 }
26079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
26080 return resultobj;
26081 fail:
26082 return NULL;
26083 }
26084
26085
26086 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26087 PyObject *obj;
26088 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26089 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
26090 return SWIG_Py_Void();
26091 }
26092
26093 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26094 return SWIG_Python_InitShadowInstance(args);
26095 }
26096
26097 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26098 PyObject *resultobj = 0;
26099 wxPrintData *arg1 = 0 ;
26100 wxPrinterDC *result = 0 ;
26101 void *argp1 = 0 ;
26102 int res1 = 0 ;
26103 PyObject * obj0 = 0 ;
26104 char * kwnames[] = {
26105 (char *) "printData", NULL
26106 };
26107
26108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
26109 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
26110 if (!SWIG_IsOK(res1)) {
26111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26112 }
26113 if (!argp1) {
26114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26115 }
26116 arg1 = reinterpret_cast< wxPrintData * >(argp1);
26117 {
26118 if (!wxPyCheckForApp()) SWIG_fail;
26119 PyThreadState* __tstate = wxPyBeginAllowThreads();
26120 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
26121 wxPyEndAllowThreads(__tstate);
26122 if (PyErr_Occurred()) SWIG_fail;
26123 }
26124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
26125 return resultobj;
26126 fail:
26127 return NULL;
26128 }
26129
26130
26131 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26132 PyObject *obj;
26133 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26134 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
26135 return SWIG_Py_Void();
26136 }
26137
26138 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26139 return SWIG_Python_InitShadowInstance(args);
26140 }
26141
26142 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26143 PyObject *resultobj = 0;
26144 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
26145 wxGraphicsObject *result = 0 ;
26146 void *argp1 = 0 ;
26147 int res1 = 0 ;
26148 PyObject * obj0 = 0 ;
26149 char * kwnames[] = {
26150 (char *) "renderer", NULL
26151 };
26152
26153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
26154 if (obj0) {
26155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26156 if (!SWIG_IsOK(res1)) {
26157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
26158 }
26159 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
26160 }
26161 {
26162 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
26163 if (PyErr_Occurred()) SWIG_fail;
26164 }
26165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
26166 return resultobj;
26167 fail:
26168 return NULL;
26169 }
26170
26171
26172 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26173 PyObject *resultobj = 0;
26174 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26175 void *argp1 = 0 ;
26176 int res1 = 0 ;
26177 PyObject *swig_obj[1] ;
26178
26179 if (!args) SWIG_fail;
26180 swig_obj[0] = args;
26181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
26182 if (!SWIG_IsOK(res1)) {
26183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
26184 }
26185 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26186 {
26187 delete arg1;
26188
26189 if (PyErr_Occurred()) SWIG_fail;
26190 }
26191 resultobj = SWIG_Py_Void();
26192 return resultobj;
26193 fail:
26194 return NULL;
26195 }
26196
26197
26198 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26199 PyObject *resultobj = 0;
26200 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26201 bool result;
26202 void *argp1 = 0 ;
26203 int res1 = 0 ;
26204 PyObject *swig_obj[1] ;
26205
26206 if (!args) SWIG_fail;
26207 swig_obj[0] = args;
26208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26209 if (!SWIG_IsOK(res1)) {
26210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26211 }
26212 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26213 {
26214 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
26215 if (PyErr_Occurred()) SWIG_fail;
26216 }
26217 {
26218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26219 }
26220 return resultobj;
26221 fail:
26222 return NULL;
26223 }
26224
26225
26226 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26227 PyObject *resultobj = 0;
26228 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26229 wxGraphicsRenderer *result = 0 ;
26230 void *argp1 = 0 ;
26231 int res1 = 0 ;
26232 PyObject *swig_obj[1] ;
26233
26234 if (!args) SWIG_fail;
26235 swig_obj[0] = args;
26236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26237 if (!SWIG_IsOK(res1)) {
26238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26239 }
26240 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26241 {
26242 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
26243 if (PyErr_Occurred()) SWIG_fail;
26244 }
26245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26246 return resultobj;
26247 fail:
26248 return NULL;
26249 }
26250
26251
26252 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26253 PyObject *obj;
26254 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26255 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
26256 return SWIG_Py_Void();
26257 }
26258
26259 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26260 return SWIG_Python_InitShadowInstance(args);
26261 }
26262
26263 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26264 PyObject *resultobj = 0;
26265 wxGraphicsPen *result = 0 ;
26266
26267 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
26268 {
26269 result = (wxGraphicsPen *)new wxGraphicsPen();
26270 if (PyErr_Occurred()) SWIG_fail;
26271 }
26272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
26273 return resultobj;
26274 fail:
26275 return NULL;
26276 }
26277
26278
26279 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26280 PyObject *resultobj = 0;
26281 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
26282 void *argp1 = 0 ;
26283 int res1 = 0 ;
26284 PyObject *swig_obj[1] ;
26285
26286 if (!args) SWIG_fail;
26287 swig_obj[0] = args;
26288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
26289 if (!SWIG_IsOK(res1)) {
26290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
26291 }
26292 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
26293 {
26294 delete arg1;
26295
26296 if (PyErr_Occurred()) SWIG_fail;
26297 }
26298 resultobj = SWIG_Py_Void();
26299 return resultobj;
26300 fail:
26301 return NULL;
26302 }
26303
26304
26305 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26306 PyObject *obj;
26307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26308 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
26309 return SWIG_Py_Void();
26310 }
26311
26312 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26313 return SWIG_Python_InitShadowInstance(args);
26314 }
26315
26316 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26317 PyObject *resultobj = 0;
26318 wxGraphicsBrush *result = 0 ;
26319
26320 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26321 {
26322 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26323 if (PyErr_Occurred()) SWIG_fail;
26324 }
26325 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26326 return resultobj;
26327 fail:
26328 return NULL;
26329 }
26330
26331
26332 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26333 PyObject *resultobj = 0;
26334 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26335 void *argp1 = 0 ;
26336 int res1 = 0 ;
26337 PyObject *swig_obj[1] ;
26338
26339 if (!args) SWIG_fail;
26340 swig_obj[0] = args;
26341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26342 if (!SWIG_IsOK(res1)) {
26343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26344 }
26345 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26346 {
26347 delete arg1;
26348
26349 if (PyErr_Occurred()) SWIG_fail;
26350 }
26351 resultobj = SWIG_Py_Void();
26352 return resultobj;
26353 fail:
26354 return NULL;
26355 }
26356
26357
26358 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26359 PyObject *obj;
26360 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26361 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26362 return SWIG_Py_Void();
26363 }
26364
26365 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26366 return SWIG_Python_InitShadowInstance(args);
26367 }
26368
26369 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26370 PyObject *resultobj = 0;
26371 wxGraphicsFont *result = 0 ;
26372
26373 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26374 {
26375 result = (wxGraphicsFont *)new wxGraphicsFont();
26376 if (PyErr_Occurred()) SWIG_fail;
26377 }
26378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26379 return resultobj;
26380 fail:
26381 return NULL;
26382 }
26383
26384
26385 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26386 PyObject *resultobj = 0;
26387 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26388 void *argp1 = 0 ;
26389 int res1 = 0 ;
26390 PyObject *swig_obj[1] ;
26391
26392 if (!args) SWIG_fail;
26393 swig_obj[0] = args;
26394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26395 if (!SWIG_IsOK(res1)) {
26396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26397 }
26398 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26399 {
26400 delete arg1;
26401
26402 if (PyErr_Occurred()) SWIG_fail;
26403 }
26404 resultobj = SWIG_Py_Void();
26405 return resultobj;
26406 fail:
26407 return NULL;
26408 }
26409
26410
26411 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26412 PyObject *obj;
26413 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26414 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26415 return SWIG_Py_Void();
26416 }
26417
26418 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26419 return SWIG_Python_InitShadowInstance(args);
26420 }
26421
26422 SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26423 PyObject *resultobj = 0;
26424 wxGraphicsMatrix *result = 0 ;
26425
26426 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
26427 {
26428 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
26429 if (PyErr_Occurred()) SWIG_fail;
26430 }
26431 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
26432 return resultobj;
26433 fail:
26434 return NULL;
26435 }
26436
26437
26438 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26439 PyObject *resultobj = 0;
26440 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26441 void *argp1 = 0 ;
26442 int res1 = 0 ;
26443 PyObject *swig_obj[1] ;
26444
26445 if (!args) SWIG_fail;
26446 swig_obj[0] = args;
26447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
26448 if (!SWIG_IsOK(res1)) {
26449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26450 }
26451 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26452 {
26453 delete arg1;
26454
26455 if (PyErr_Occurred()) SWIG_fail;
26456 }
26457 resultobj = SWIG_Py_Void();
26458 return resultobj;
26459 fail:
26460 return NULL;
26461 }
26462
26463
26464 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26465 PyObject *resultobj = 0;
26466 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26467 wxGraphicsMatrix *arg2 = 0 ;
26468 void *argp1 = 0 ;
26469 int res1 = 0 ;
26470 void *argp2 = 0 ;
26471 int res2 = 0 ;
26472 PyObject * obj0 = 0 ;
26473 PyObject * obj1 = 0 ;
26474 char * kwnames[] = {
26475 (char *) "self",(char *) "t", NULL
26476 };
26477
26478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26480 if (!SWIG_IsOK(res1)) {
26481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26482 }
26483 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26484 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26485 if (!SWIG_IsOK(res2)) {
26486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26487 }
26488 if (!argp2) {
26489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26490 }
26491 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26492 {
26493 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
26494 if (PyErr_Occurred()) SWIG_fail;
26495 }
26496 resultobj = SWIG_Py_Void();
26497 return resultobj;
26498 fail:
26499 return NULL;
26500 }
26501
26502
26503 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26504 PyObject *resultobj = 0;
26505 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26506 wxDouble arg2 = (wxDouble) 1.0 ;
26507 wxDouble arg3 = (wxDouble) 0.0 ;
26508 wxDouble arg4 = (wxDouble) 0.0 ;
26509 wxDouble arg5 = (wxDouble) 1.0 ;
26510 wxDouble arg6 = (wxDouble) 0.0 ;
26511 wxDouble arg7 = (wxDouble) 0.0 ;
26512 void *argp1 = 0 ;
26513 int res1 = 0 ;
26514 double val2 ;
26515 int ecode2 = 0 ;
26516 double val3 ;
26517 int ecode3 = 0 ;
26518 double val4 ;
26519 int ecode4 = 0 ;
26520 double val5 ;
26521 int ecode5 = 0 ;
26522 double val6 ;
26523 int ecode6 = 0 ;
26524 double val7 ;
26525 int ecode7 = 0 ;
26526 PyObject * obj0 = 0 ;
26527 PyObject * obj1 = 0 ;
26528 PyObject * obj2 = 0 ;
26529 PyObject * obj3 = 0 ;
26530 PyObject * obj4 = 0 ;
26531 PyObject * obj5 = 0 ;
26532 PyObject * obj6 = 0 ;
26533 char * kwnames[] = {
26534 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26535 };
26536
26537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26539 if (!SWIG_IsOK(res1)) {
26540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26541 }
26542 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26543 if (obj1) {
26544 ecode2 = SWIG_AsVal_double(obj1, &val2);
26545 if (!SWIG_IsOK(ecode2)) {
26546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26547 }
26548 arg2 = static_cast< wxDouble >(val2);
26549 }
26550 if (obj2) {
26551 ecode3 = SWIG_AsVal_double(obj2, &val3);
26552 if (!SWIG_IsOK(ecode3)) {
26553 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26554 }
26555 arg3 = static_cast< wxDouble >(val3);
26556 }
26557 if (obj3) {
26558 ecode4 = SWIG_AsVal_double(obj3, &val4);
26559 if (!SWIG_IsOK(ecode4)) {
26560 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26561 }
26562 arg4 = static_cast< wxDouble >(val4);
26563 }
26564 if (obj4) {
26565 ecode5 = SWIG_AsVal_double(obj4, &val5);
26566 if (!SWIG_IsOK(ecode5)) {
26567 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26568 }
26569 arg5 = static_cast< wxDouble >(val5);
26570 }
26571 if (obj5) {
26572 ecode6 = SWIG_AsVal_double(obj5, &val6);
26573 if (!SWIG_IsOK(ecode6)) {
26574 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26575 }
26576 arg6 = static_cast< wxDouble >(val6);
26577 }
26578 if (obj6) {
26579 ecode7 = SWIG_AsVal_double(obj6, &val7);
26580 if (!SWIG_IsOK(ecode7)) {
26581 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26582 }
26583 arg7 = static_cast< wxDouble >(val7);
26584 }
26585 {
26586 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
26587 if (PyErr_Occurred()) SWIG_fail;
26588 }
26589 resultobj = SWIG_Py_Void();
26590 return resultobj;
26591 fail:
26592 return NULL;
26593 }
26594
26595
26596 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26597 PyObject *resultobj = 0;
26598 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26599 wxDouble *arg2 = (wxDouble *) 0 ;
26600 wxDouble *arg3 = (wxDouble *) 0 ;
26601 wxDouble *arg4 = (wxDouble *) 0 ;
26602 wxDouble *arg5 = (wxDouble *) 0 ;
26603 wxDouble *arg6 = (wxDouble *) 0 ;
26604 wxDouble *arg7 = (wxDouble *) 0 ;
26605 void *argp1 = 0 ;
26606 int res1 = 0 ;
26607 wxDouble temp2 ;
26608 int res2 = SWIG_TMPOBJ ;
26609 wxDouble temp3 ;
26610 int res3 = SWIG_TMPOBJ ;
26611 wxDouble temp4 ;
26612 int res4 = SWIG_TMPOBJ ;
26613 wxDouble temp5 ;
26614 int res5 = SWIG_TMPOBJ ;
26615 wxDouble temp6 ;
26616 int res6 = SWIG_TMPOBJ ;
26617 wxDouble temp7 ;
26618 int res7 = SWIG_TMPOBJ ;
26619 PyObject *swig_obj[1] ;
26620
26621 arg2 = &temp2;
26622 arg3 = &temp3;
26623 arg4 = &temp4;
26624 arg5 = &temp5;
26625 arg6 = &temp6;
26626 arg7 = &temp7;
26627 if (!args) SWIG_fail;
26628 swig_obj[0] = args;
26629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26630 if (!SWIG_IsOK(res1)) {
26631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26632 }
26633 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26634 {
26635 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
26636 if (PyErr_Occurred()) SWIG_fail;
26637 }
26638 resultobj = SWIG_Py_Void();
26639 if (SWIG_IsTmpObj(res2)) {
26640 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26641 } else {
26642 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26643 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26644 }
26645 if (SWIG_IsTmpObj(res3)) {
26646 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26647 } else {
26648 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26649 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26650 }
26651 if (SWIG_IsTmpObj(res4)) {
26652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26653 } else {
26654 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26656 }
26657 if (SWIG_IsTmpObj(res5)) {
26658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26659 } else {
26660 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26662 }
26663 if (SWIG_IsTmpObj(res6)) {
26664 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26665 } else {
26666 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26667 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26668 }
26669 if (SWIG_IsTmpObj(res7)) {
26670 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
26671 } else {
26672 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26673 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
26674 }
26675 return resultobj;
26676 fail:
26677 return NULL;
26678 }
26679
26680
26681 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26682 PyObject *resultobj = 0;
26683 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26684 void *argp1 = 0 ;
26685 int res1 = 0 ;
26686 PyObject *swig_obj[1] ;
26687
26688 if (!args) SWIG_fail;
26689 swig_obj[0] = args;
26690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26691 if (!SWIG_IsOK(res1)) {
26692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26693 }
26694 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26695 {
26696 (arg1)->Invert();
26697 if (PyErr_Occurred()) SWIG_fail;
26698 }
26699 resultobj = SWIG_Py_Void();
26700 return resultobj;
26701 fail:
26702 return NULL;
26703 }
26704
26705
26706 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26707 PyObject *resultobj = 0;
26708 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26709 wxGraphicsMatrix *arg2 = 0 ;
26710 bool result;
26711 void *argp1 = 0 ;
26712 int res1 = 0 ;
26713 void *argp2 = 0 ;
26714 int res2 = 0 ;
26715 PyObject * obj0 = 0 ;
26716 PyObject * obj1 = 0 ;
26717 char * kwnames[] = {
26718 (char *) "self",(char *) "t", NULL
26719 };
26720
26721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26723 if (!SWIG_IsOK(res1)) {
26724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26725 }
26726 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26727 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26728 if (!SWIG_IsOK(res2)) {
26729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26730 }
26731 if (!argp2) {
26732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26733 }
26734 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26735 {
26736 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
26737 if (PyErr_Occurred()) SWIG_fail;
26738 }
26739 {
26740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26741 }
26742 return resultobj;
26743 fail:
26744 return NULL;
26745 }
26746
26747
26748 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26749 PyObject *resultobj = 0;
26750 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26751 bool result;
26752 void *argp1 = 0 ;
26753 int res1 = 0 ;
26754 PyObject *swig_obj[1] ;
26755
26756 if (!args) SWIG_fail;
26757 swig_obj[0] = args;
26758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26759 if (!SWIG_IsOK(res1)) {
26760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26761 }
26762 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26763 {
26764 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
26765 if (PyErr_Occurred()) SWIG_fail;
26766 }
26767 {
26768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26769 }
26770 return resultobj;
26771 fail:
26772 return NULL;
26773 }
26774
26775
26776 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26777 PyObject *resultobj = 0;
26778 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26779 wxDouble arg2 ;
26780 wxDouble arg3 ;
26781 void *argp1 = 0 ;
26782 int res1 = 0 ;
26783 double val2 ;
26784 int ecode2 = 0 ;
26785 double val3 ;
26786 int ecode3 = 0 ;
26787 PyObject * obj0 = 0 ;
26788 PyObject * obj1 = 0 ;
26789 PyObject * obj2 = 0 ;
26790 char * kwnames[] = {
26791 (char *) "self",(char *) "dx",(char *) "dy", NULL
26792 };
26793
26794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26796 if (!SWIG_IsOK(res1)) {
26797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26798 }
26799 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26800 ecode2 = SWIG_AsVal_double(obj1, &val2);
26801 if (!SWIG_IsOK(ecode2)) {
26802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26803 }
26804 arg2 = static_cast< wxDouble >(val2);
26805 ecode3 = SWIG_AsVal_double(obj2, &val3);
26806 if (!SWIG_IsOK(ecode3)) {
26807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26808 }
26809 arg3 = static_cast< wxDouble >(val3);
26810 {
26811 (arg1)->Translate(arg2,arg3);
26812 if (PyErr_Occurred()) SWIG_fail;
26813 }
26814 resultobj = SWIG_Py_Void();
26815 return resultobj;
26816 fail:
26817 return NULL;
26818 }
26819
26820
26821 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26822 PyObject *resultobj = 0;
26823 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26824 wxDouble arg2 ;
26825 wxDouble arg3 ;
26826 void *argp1 = 0 ;
26827 int res1 = 0 ;
26828 double val2 ;
26829 int ecode2 = 0 ;
26830 double val3 ;
26831 int ecode3 = 0 ;
26832 PyObject * obj0 = 0 ;
26833 PyObject * obj1 = 0 ;
26834 PyObject * obj2 = 0 ;
26835 char * kwnames[] = {
26836 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26837 };
26838
26839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26841 if (!SWIG_IsOK(res1)) {
26842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26843 }
26844 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26845 ecode2 = SWIG_AsVal_double(obj1, &val2);
26846 if (!SWIG_IsOK(ecode2)) {
26847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26848 }
26849 arg2 = static_cast< wxDouble >(val2);
26850 ecode3 = SWIG_AsVal_double(obj2, &val3);
26851 if (!SWIG_IsOK(ecode3)) {
26852 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26853 }
26854 arg3 = static_cast< wxDouble >(val3);
26855 {
26856 (arg1)->Scale(arg2,arg3);
26857 if (PyErr_Occurred()) SWIG_fail;
26858 }
26859 resultobj = SWIG_Py_Void();
26860 return resultobj;
26861 fail:
26862 return NULL;
26863 }
26864
26865
26866 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26867 PyObject *resultobj = 0;
26868 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26869 wxDouble arg2 ;
26870 void *argp1 = 0 ;
26871 int res1 = 0 ;
26872 double val2 ;
26873 int ecode2 = 0 ;
26874 PyObject * obj0 = 0 ;
26875 PyObject * obj1 = 0 ;
26876 char * kwnames[] = {
26877 (char *) "self",(char *) "angle", NULL
26878 };
26879
26880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26882 if (!SWIG_IsOK(res1)) {
26883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26884 }
26885 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26886 ecode2 = SWIG_AsVal_double(obj1, &val2);
26887 if (!SWIG_IsOK(ecode2)) {
26888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26889 }
26890 arg2 = static_cast< wxDouble >(val2);
26891 {
26892 (arg1)->Rotate(arg2);
26893 if (PyErr_Occurred()) SWIG_fail;
26894 }
26895 resultobj = SWIG_Py_Void();
26896 return resultobj;
26897 fail:
26898 return NULL;
26899 }
26900
26901
26902 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26903 PyObject *resultobj = 0;
26904 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26905 wxDouble *arg2 = (wxDouble *) 0 ;
26906 wxDouble *arg3 = (wxDouble *) 0 ;
26907 void *argp1 = 0 ;
26908 int res1 = 0 ;
26909 wxDouble temp2 ;
26910 int res2 = 0 ;
26911 wxDouble temp3 ;
26912 int res3 = 0 ;
26913 PyObject * obj0 = 0 ;
26914 PyObject * obj1 = 0 ;
26915 PyObject * obj2 = 0 ;
26916 char * kwnames[] = {
26917 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26918 };
26919
26920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26922 if (!SWIG_IsOK(res1)) {
26923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26924 }
26925 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26926 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26927 double val;
26928 int ecode = SWIG_AsVal_double(obj1, &val);
26929 if (!SWIG_IsOK(ecode)) {
26930 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26931 }
26932 temp2 = static_cast< wxDouble >(val);
26933 arg2 = &temp2;
26934 res2 = SWIG_AddTmpMask(ecode);
26935 }
26936 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26937 double val;
26938 int ecode = SWIG_AsVal_double(obj2, &val);
26939 if (!SWIG_IsOK(ecode)) {
26940 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26941 }
26942 temp3 = static_cast< wxDouble >(val);
26943 arg3 = &temp3;
26944 res3 = SWIG_AddTmpMask(ecode);
26945 }
26946 {
26947 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
26948 if (PyErr_Occurred()) SWIG_fail;
26949 }
26950 resultobj = SWIG_Py_Void();
26951 if (SWIG_IsTmpObj(res2)) {
26952 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26953 } else {
26954 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26955 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26956 }
26957 if (SWIG_IsTmpObj(res3)) {
26958 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26959 } else {
26960 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26961 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26962 }
26963 return resultobj;
26964 fail:
26965 return NULL;
26966 }
26967
26968
26969 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26970 PyObject *resultobj = 0;
26971 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26972 wxDouble *arg2 = (wxDouble *) 0 ;
26973 wxDouble *arg3 = (wxDouble *) 0 ;
26974 void *argp1 = 0 ;
26975 int res1 = 0 ;
26976 wxDouble temp2 ;
26977 int res2 = 0 ;
26978 wxDouble temp3 ;
26979 int res3 = 0 ;
26980 PyObject * obj0 = 0 ;
26981 PyObject * obj1 = 0 ;
26982 PyObject * obj2 = 0 ;
26983 char * kwnames[] = {
26984 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26985 };
26986
26987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26989 if (!SWIG_IsOK(res1)) {
26990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26991 }
26992 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26993 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26994 double val;
26995 int ecode = SWIG_AsVal_double(obj1, &val);
26996 if (!SWIG_IsOK(ecode)) {
26997 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26998 }
26999 temp2 = static_cast< wxDouble >(val);
27000 arg2 = &temp2;
27001 res2 = SWIG_AddTmpMask(ecode);
27002 }
27003 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
27004 double val;
27005 int ecode = SWIG_AsVal_double(obj2, &val);
27006 if (!SWIG_IsOK(ecode)) {
27007 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
27008 }
27009 temp3 = static_cast< wxDouble >(val);
27010 arg3 = &temp3;
27011 res3 = SWIG_AddTmpMask(ecode);
27012 }
27013 {
27014 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
27015 if (PyErr_Occurred()) SWIG_fail;
27016 }
27017 resultobj = SWIG_Py_Void();
27018 if (SWIG_IsTmpObj(res2)) {
27019 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27020 } else {
27021 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27022 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27023 }
27024 if (SWIG_IsTmpObj(res3)) {
27025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27026 } else {
27027 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27029 }
27030 return resultobj;
27031 fail:
27032 return NULL;
27033 }
27034
27035
27036 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27037 PyObject *resultobj = 0;
27038 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27039 void *result = 0 ;
27040 void *argp1 = 0 ;
27041 int res1 = 0 ;
27042 PyObject *swig_obj[1] ;
27043
27044 if (!args) SWIG_fail;
27045 swig_obj[0] = args;
27046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27047 if (!SWIG_IsOK(res1)) {
27048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27049 }
27050 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27051 {
27052 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
27053 if (PyErr_Occurred()) SWIG_fail;
27054 }
27055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27056 return resultobj;
27057 fail:
27058 return NULL;
27059 }
27060
27061
27062 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27063 PyObject *obj;
27064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27065 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
27066 return SWIG_Py_Void();
27067 }
27068
27069 SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27070 return SWIG_Python_InitShadowInstance(args);
27071 }
27072
27073 SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27074 PyObject *resultobj = 0;
27075 wxGraphicsPath *result = 0 ;
27076
27077 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
27078 {
27079 if (!wxPyCheckForApp()) SWIG_fail;
27080 PyThreadState* __tstate = wxPyBeginAllowThreads();
27081 result = (wxGraphicsPath *)new wxGraphicsPath();
27082 wxPyEndAllowThreads(__tstate);
27083 if (PyErr_Occurred()) SWIG_fail;
27084 }
27085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
27086 return resultobj;
27087 fail:
27088 return NULL;
27089 }
27090
27091
27092 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27093 PyObject *resultobj = 0;
27094 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27095 void *argp1 = 0 ;
27096 int res1 = 0 ;
27097 PyObject *swig_obj[1] ;
27098
27099 if (!args) SWIG_fail;
27100 swig_obj[0] = args;
27101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
27102 if (!SWIG_IsOK(res1)) {
27103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27104 }
27105 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27106 {
27107 delete arg1;
27108
27109 if (PyErr_Occurred()) SWIG_fail;
27110 }
27111 resultobj = SWIG_Py_Void();
27112 return resultobj;
27113 fail:
27114 return NULL;
27115 }
27116
27117
27118 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27119 PyObject *resultobj = 0;
27120 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27121 wxDouble arg2 ;
27122 wxDouble arg3 ;
27123 void *argp1 = 0 ;
27124 int res1 = 0 ;
27125 double val2 ;
27126 int ecode2 = 0 ;
27127 double val3 ;
27128 int ecode3 = 0 ;
27129
27130 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27132 if (!SWIG_IsOK(res1)) {
27133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27134 }
27135 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27136 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27137 if (!SWIG_IsOK(ecode2)) {
27138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27139 }
27140 arg2 = static_cast< wxDouble >(val2);
27141 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27142 if (!SWIG_IsOK(ecode3)) {
27143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27144 }
27145 arg3 = static_cast< wxDouble >(val3);
27146 {
27147 (arg1)->MoveToPoint(arg2,arg3);
27148 if (PyErr_Occurred()) SWIG_fail;
27149 }
27150 resultobj = SWIG_Py_Void();
27151 return resultobj;
27152 fail:
27153 return NULL;
27154 }
27155
27156
27157 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27158 PyObject *resultobj = 0;
27159 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27160 wxPoint2D *arg2 = 0 ;
27161 void *argp1 = 0 ;
27162 int res1 = 0 ;
27163 wxPoint2D temp2 ;
27164
27165 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27167 if (!SWIG_IsOK(res1)) {
27168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27169 }
27170 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27171 {
27172 arg2 = &temp2;
27173 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27174 }
27175 {
27176 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
27177 if (PyErr_Occurred()) SWIG_fail;
27178 }
27179 resultobj = SWIG_Py_Void();
27180 return resultobj;
27181 fail:
27182 return NULL;
27183 }
27184
27185
27186 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
27187 int argc;
27188 PyObject *argv[4];
27189
27190 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
27191 --argc;
27192 if (argc == 2) {
27193 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
27194 }
27195 if (argc == 3) {
27196 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
27197 }
27198
27199 fail:
27200 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
27201 return NULL;
27202 }
27203
27204
27205 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27206 PyObject *resultobj = 0;
27207 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27208 wxDouble arg2 ;
27209 wxDouble arg3 ;
27210 void *argp1 = 0 ;
27211 int res1 = 0 ;
27212 double val2 ;
27213 int ecode2 = 0 ;
27214 double val3 ;
27215 int ecode3 = 0 ;
27216
27217 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27219 if (!SWIG_IsOK(res1)) {
27220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27221 }
27222 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27223 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27224 if (!SWIG_IsOK(ecode2)) {
27225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27226 }
27227 arg2 = static_cast< wxDouble >(val2);
27228 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27229 if (!SWIG_IsOK(ecode3)) {
27230 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27231 }
27232 arg3 = static_cast< wxDouble >(val3);
27233 {
27234 (arg1)->AddLineToPoint(arg2,arg3);
27235 if (PyErr_Occurred()) SWIG_fail;
27236 }
27237 resultobj = SWIG_Py_Void();
27238 return resultobj;
27239 fail:
27240 return NULL;
27241 }
27242
27243
27244 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27245 PyObject *resultobj = 0;
27246 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27247 wxPoint2D *arg2 = 0 ;
27248 void *argp1 = 0 ;
27249 int res1 = 0 ;
27250 wxPoint2D temp2 ;
27251
27252 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27254 if (!SWIG_IsOK(res1)) {
27255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27256 }
27257 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27258 {
27259 arg2 = &temp2;
27260 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27261 }
27262 {
27263 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
27264 if (PyErr_Occurred()) SWIG_fail;
27265 }
27266 resultobj = SWIG_Py_Void();
27267 return resultobj;
27268 fail:
27269 return NULL;
27270 }
27271
27272
27273 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
27274 int argc;
27275 PyObject *argv[4];
27276
27277 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
27278 --argc;
27279 if (argc == 2) {
27280 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
27281 }
27282 if (argc == 3) {
27283 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
27284 }
27285
27286 fail:
27287 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
27288 return NULL;
27289 }
27290
27291
27292 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27293 PyObject *resultobj = 0;
27294 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27295 wxDouble arg2 ;
27296 wxDouble arg3 ;
27297 wxDouble arg4 ;
27298 wxDouble arg5 ;
27299 wxDouble arg6 ;
27300 wxDouble arg7 ;
27301 void *argp1 = 0 ;
27302 int res1 = 0 ;
27303 double val2 ;
27304 int ecode2 = 0 ;
27305 double val3 ;
27306 int ecode3 = 0 ;
27307 double val4 ;
27308 int ecode4 = 0 ;
27309 double val5 ;
27310 int ecode5 = 0 ;
27311 double val6 ;
27312 int ecode6 = 0 ;
27313 double val7 ;
27314 int ecode7 = 0 ;
27315
27316 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27318 if (!SWIG_IsOK(res1)) {
27319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27320 }
27321 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27322 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27323 if (!SWIG_IsOK(ecode2)) {
27324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27325 }
27326 arg2 = static_cast< wxDouble >(val2);
27327 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27328 if (!SWIG_IsOK(ecode3)) {
27329 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27330 }
27331 arg3 = static_cast< wxDouble >(val3);
27332 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27333 if (!SWIG_IsOK(ecode4)) {
27334 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27335 }
27336 arg4 = static_cast< wxDouble >(val4);
27337 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27338 if (!SWIG_IsOK(ecode5)) {
27339 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27340 }
27341 arg5 = static_cast< wxDouble >(val5);
27342 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27343 if (!SWIG_IsOK(ecode6)) {
27344 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27345 }
27346 arg6 = static_cast< wxDouble >(val6);
27347 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
27348 if (!SWIG_IsOK(ecode7)) {
27349 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
27350 }
27351 arg7 = static_cast< wxDouble >(val7);
27352 {
27353 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
27354 if (PyErr_Occurred()) SWIG_fail;
27355 }
27356 resultobj = SWIG_Py_Void();
27357 return resultobj;
27358 fail:
27359 return NULL;
27360 }
27361
27362
27363 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27364 PyObject *resultobj = 0;
27365 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27366 wxPoint2D *arg2 = 0 ;
27367 wxPoint2D *arg3 = 0 ;
27368 wxPoint2D *arg4 = 0 ;
27369 void *argp1 = 0 ;
27370 int res1 = 0 ;
27371 wxPoint2D temp2 ;
27372 wxPoint2D temp3 ;
27373 wxPoint2D temp4 ;
27374
27375 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
27376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27377 if (!SWIG_IsOK(res1)) {
27378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27379 }
27380 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27381 {
27382 arg2 = &temp2;
27383 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27384 }
27385 {
27386 arg3 = &temp3;
27387 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
27388 }
27389 {
27390 arg4 = &temp4;
27391 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
27392 }
27393 {
27394 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
27395 if (PyErr_Occurred()) SWIG_fail;
27396 }
27397 resultobj = SWIG_Py_Void();
27398 return resultobj;
27399 fail:
27400 return NULL;
27401 }
27402
27403
27404 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
27405 int argc;
27406 PyObject *argv[8];
27407
27408 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
27409 --argc;
27410 if (argc == 4) {
27411 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
27412 }
27413 if (argc == 7) {
27414 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
27415 }
27416
27417 fail:
27418 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
27419 return NULL;
27420 }
27421
27422
27423 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27424 PyObject *resultobj = 0;
27425 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27426 wxGraphicsPath *arg2 = 0 ;
27427 void *argp1 = 0 ;
27428 int res1 = 0 ;
27429 void *argp2 = 0 ;
27430 int res2 = 0 ;
27431 PyObject * obj0 = 0 ;
27432 PyObject * obj1 = 0 ;
27433 char * kwnames[] = {
27434 (char *) "self",(char *) "path", NULL
27435 };
27436
27437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
27438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27439 if (!SWIG_IsOK(res1)) {
27440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27441 }
27442 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27443 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
27444 if (!SWIG_IsOK(res2)) {
27445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27446 }
27447 if (!argp2) {
27448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27449 }
27450 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
27451 {
27452 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
27453 if (PyErr_Occurred()) SWIG_fail;
27454 }
27455 resultobj = SWIG_Py_Void();
27456 return resultobj;
27457 fail:
27458 return NULL;
27459 }
27460
27461
27462 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27463 PyObject *resultobj = 0;
27464 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27465 void *argp1 = 0 ;
27466 int res1 = 0 ;
27467 PyObject *swig_obj[1] ;
27468
27469 if (!args) SWIG_fail;
27470 swig_obj[0] = args;
27471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27472 if (!SWIG_IsOK(res1)) {
27473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27474 }
27475 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27476 {
27477 (arg1)->CloseSubpath();
27478 if (PyErr_Occurred()) SWIG_fail;
27479 }
27480 resultobj = SWIG_Py_Void();
27481 return resultobj;
27482 fail:
27483 return NULL;
27484 }
27485
27486
27487 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27488 PyObject *resultobj = 0;
27489 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27490 wxPoint2D result;
27491 void *argp1 = 0 ;
27492 int res1 = 0 ;
27493 PyObject *swig_obj[1] ;
27494
27495 if (!args) SWIG_fail;
27496 swig_obj[0] = args;
27497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27498 if (!SWIG_IsOK(res1)) {
27499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27500 }
27501 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27502 {
27503 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
27504 if (PyErr_Occurred()) SWIG_fail;
27505 }
27506 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
27507 return resultobj;
27508 fail:
27509 return NULL;
27510 }
27511
27512
27513 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27514 PyObject *resultobj = 0;
27515 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27516 wxDouble arg2 ;
27517 wxDouble arg3 ;
27518 wxDouble arg4 ;
27519 wxDouble arg5 ;
27520 wxDouble arg6 ;
27521 bool arg7 = (bool) true ;
27522 void *argp1 = 0 ;
27523 int res1 = 0 ;
27524 double val2 ;
27525 int ecode2 = 0 ;
27526 double val3 ;
27527 int ecode3 = 0 ;
27528 double val4 ;
27529 int ecode4 = 0 ;
27530 double val5 ;
27531 int ecode5 = 0 ;
27532 double val6 ;
27533 int ecode6 = 0 ;
27534 bool val7 ;
27535 int ecode7 = 0 ;
27536
27537 if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
27538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27539 if (!SWIG_IsOK(res1)) {
27540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27541 }
27542 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27543 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27544 if (!SWIG_IsOK(ecode2)) {
27545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
27546 }
27547 arg2 = static_cast< wxDouble >(val2);
27548 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27549 if (!SWIG_IsOK(ecode3)) {
27550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27551 }
27552 arg3 = static_cast< wxDouble >(val3);
27553 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27554 if (!SWIG_IsOK(ecode4)) {
27555 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27556 }
27557 arg4 = static_cast< wxDouble >(val4);
27558 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27559 if (!SWIG_IsOK(ecode5)) {
27560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27561 }
27562 arg5 = static_cast< wxDouble >(val5);
27563 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27564 if (!SWIG_IsOK(ecode6)) {
27565 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
27566 }
27567 arg6 = static_cast< wxDouble >(val6);
27568 if (swig_obj[6]) {
27569 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
27570 if (!SWIG_IsOK(ecode7)) {
27571 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
27572 }
27573 arg7 = static_cast< bool >(val7);
27574 }
27575 {
27576 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
27577 if (PyErr_Occurred()) SWIG_fail;
27578 }
27579 resultobj = SWIG_Py_Void();
27580 return resultobj;
27581 fail:
27582 return NULL;
27583 }
27584
27585
27586 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27587 PyObject *resultobj = 0;
27588 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27589 wxPoint2D *arg2 = 0 ;
27590 wxDouble arg3 ;
27591 wxDouble arg4 ;
27592 wxDouble arg5 ;
27593 bool arg6 = (bool) true ;
27594 void *argp1 = 0 ;
27595 int res1 = 0 ;
27596 wxPoint2D temp2 ;
27597 double val3 ;
27598 int ecode3 = 0 ;
27599 double val4 ;
27600 int ecode4 = 0 ;
27601 double val5 ;
27602 int ecode5 = 0 ;
27603 bool val6 ;
27604 int ecode6 = 0 ;
27605
27606 if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
27607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27608 if (!SWIG_IsOK(res1)) {
27609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27610 }
27611 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27612 {
27613 arg2 = &temp2;
27614 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27615 }
27616 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27617 if (!SWIG_IsOK(ecode3)) {
27618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27619 }
27620 arg3 = static_cast< wxDouble >(val3);
27621 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27622 if (!SWIG_IsOK(ecode4)) {
27623 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27624 }
27625 arg4 = static_cast< wxDouble >(val4);
27626 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27627 if (!SWIG_IsOK(ecode5)) {
27628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27629 }
27630 arg5 = static_cast< wxDouble >(val5);
27631 if (swig_obj[5]) {
27632 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
27633 if (!SWIG_IsOK(ecode6)) {
27634 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
27635 }
27636 arg6 = static_cast< bool >(val6);
27637 }
27638 {
27639 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
27640 if (PyErr_Occurred()) SWIG_fail;
27641 }
27642 resultobj = SWIG_Py_Void();
27643 return resultobj;
27644 fail:
27645 return NULL;
27646 }
27647
27648
27649 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
27650 int argc;
27651 PyObject *argv[8];
27652
27653 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
27654 --argc;
27655 if ((argc >= 5) && (argc <= 6)) {
27656 int _v = 0;
27657 {
27658 {
27659 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
27660 }
27661 }
27662 if (!_v) goto check_1;
27663 if (argc > 5) {
27664 {
27665 {
27666 int res = SWIG_AsVal_bool(argv[5], NULL);
27667 _v = SWIG_CheckState(res);
27668 }
27669 }
27670 if (!_v) goto check_1;
27671 }
27672 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
27673 }
27674 check_1:
27675
27676 if ((argc >= 6) && (argc <= 7)) {
27677 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
27678 }
27679
27680 fail:
27681 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
27682 return NULL;
27683 }
27684
27685
27686 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27687 PyObject *resultobj = 0;
27688 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27689 wxDouble arg2 ;
27690 wxDouble arg3 ;
27691 wxDouble arg4 ;
27692 wxDouble arg5 ;
27693 void *argp1 = 0 ;
27694 int res1 = 0 ;
27695 double val2 ;
27696 int ecode2 = 0 ;
27697 double val3 ;
27698 int ecode3 = 0 ;
27699 double val4 ;
27700 int ecode4 = 0 ;
27701 double val5 ;
27702 int ecode5 = 0 ;
27703 PyObject * obj0 = 0 ;
27704 PyObject * obj1 = 0 ;
27705 PyObject * obj2 = 0 ;
27706 PyObject * obj3 = 0 ;
27707 PyObject * obj4 = 0 ;
27708 char * kwnames[] = {
27709 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27710 };
27711
27712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27714 if (!SWIG_IsOK(res1)) {
27715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27716 }
27717 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27718 ecode2 = SWIG_AsVal_double(obj1, &val2);
27719 if (!SWIG_IsOK(ecode2)) {
27720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27721 }
27722 arg2 = static_cast< wxDouble >(val2);
27723 ecode3 = SWIG_AsVal_double(obj2, &val3);
27724 if (!SWIG_IsOK(ecode3)) {
27725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27726 }
27727 arg3 = static_cast< wxDouble >(val3);
27728 ecode4 = SWIG_AsVal_double(obj3, &val4);
27729 if (!SWIG_IsOK(ecode4)) {
27730 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27731 }
27732 arg4 = static_cast< wxDouble >(val4);
27733 ecode5 = SWIG_AsVal_double(obj4, &val5);
27734 if (!SWIG_IsOK(ecode5)) {
27735 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27736 }
27737 arg5 = static_cast< wxDouble >(val5);
27738 {
27739 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
27740 if (PyErr_Occurred()) SWIG_fail;
27741 }
27742 resultobj = SWIG_Py_Void();
27743 return resultobj;
27744 fail:
27745 return NULL;
27746 }
27747
27748
27749 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27750 PyObject *resultobj = 0;
27751 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27752 wxDouble arg2 ;
27753 wxDouble arg3 ;
27754 wxDouble arg4 ;
27755 wxDouble arg5 ;
27756 void *argp1 = 0 ;
27757 int res1 = 0 ;
27758 double val2 ;
27759 int ecode2 = 0 ;
27760 double val3 ;
27761 int ecode3 = 0 ;
27762 double val4 ;
27763 int ecode4 = 0 ;
27764 double val5 ;
27765 int ecode5 = 0 ;
27766 PyObject * obj0 = 0 ;
27767 PyObject * obj1 = 0 ;
27768 PyObject * obj2 = 0 ;
27769 PyObject * obj3 = 0 ;
27770 PyObject * obj4 = 0 ;
27771 char * kwnames[] = {
27772 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27773 };
27774
27775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27777 if (!SWIG_IsOK(res1)) {
27778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27779 }
27780 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27781 ecode2 = SWIG_AsVal_double(obj1, &val2);
27782 if (!SWIG_IsOK(ecode2)) {
27783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27784 }
27785 arg2 = static_cast< wxDouble >(val2);
27786 ecode3 = SWIG_AsVal_double(obj2, &val3);
27787 if (!SWIG_IsOK(ecode3)) {
27788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27789 }
27790 arg3 = static_cast< wxDouble >(val3);
27791 ecode4 = SWIG_AsVal_double(obj3, &val4);
27792 if (!SWIG_IsOK(ecode4)) {
27793 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27794 }
27795 arg4 = static_cast< wxDouble >(val4);
27796 ecode5 = SWIG_AsVal_double(obj4, &val5);
27797 if (!SWIG_IsOK(ecode5)) {
27798 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27799 }
27800 arg5 = static_cast< wxDouble >(val5);
27801 {
27802 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
27803 if (PyErr_Occurred()) SWIG_fail;
27804 }
27805 resultobj = SWIG_Py_Void();
27806 return resultobj;
27807 fail:
27808 return NULL;
27809 }
27810
27811
27812 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27813 PyObject *resultobj = 0;
27814 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27815 wxDouble arg2 ;
27816 wxDouble arg3 ;
27817 wxDouble arg4 ;
27818 void *argp1 = 0 ;
27819 int res1 = 0 ;
27820 double val2 ;
27821 int ecode2 = 0 ;
27822 double val3 ;
27823 int ecode3 = 0 ;
27824 double val4 ;
27825 int ecode4 = 0 ;
27826 PyObject * obj0 = 0 ;
27827 PyObject * obj1 = 0 ;
27828 PyObject * obj2 = 0 ;
27829 PyObject * obj3 = 0 ;
27830 char * kwnames[] = {
27831 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
27832 };
27833
27834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27836 if (!SWIG_IsOK(res1)) {
27837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27838 }
27839 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27840 ecode2 = SWIG_AsVal_double(obj1, &val2);
27841 if (!SWIG_IsOK(ecode2)) {
27842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27843 }
27844 arg2 = static_cast< wxDouble >(val2);
27845 ecode3 = SWIG_AsVal_double(obj2, &val3);
27846 if (!SWIG_IsOK(ecode3)) {
27847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27848 }
27849 arg3 = static_cast< wxDouble >(val3);
27850 ecode4 = SWIG_AsVal_double(obj3, &val4);
27851 if (!SWIG_IsOK(ecode4)) {
27852 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27853 }
27854 arg4 = static_cast< wxDouble >(val4);
27855 {
27856 (arg1)->AddCircle(arg2,arg3,arg4);
27857 if (PyErr_Occurred()) SWIG_fail;
27858 }
27859 resultobj = SWIG_Py_Void();
27860 return resultobj;
27861 fail:
27862 return NULL;
27863 }
27864
27865
27866 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27867 PyObject *resultobj = 0;
27868 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27869 wxDouble arg2 ;
27870 wxDouble arg3 ;
27871 wxDouble arg4 ;
27872 wxDouble arg5 ;
27873 wxDouble arg6 ;
27874 void *argp1 = 0 ;
27875 int res1 = 0 ;
27876 double val2 ;
27877 int ecode2 = 0 ;
27878 double val3 ;
27879 int ecode3 = 0 ;
27880 double val4 ;
27881 int ecode4 = 0 ;
27882 double val5 ;
27883 int ecode5 = 0 ;
27884 double val6 ;
27885 int ecode6 = 0 ;
27886 PyObject * obj0 = 0 ;
27887 PyObject * obj1 = 0 ;
27888 PyObject * obj2 = 0 ;
27889 PyObject * obj3 = 0 ;
27890 PyObject * obj4 = 0 ;
27891 PyObject * obj5 = 0 ;
27892 char * kwnames[] = {
27893 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
27894 };
27895
27896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27898 if (!SWIG_IsOK(res1)) {
27899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27900 }
27901 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27902 ecode2 = SWIG_AsVal_double(obj1, &val2);
27903 if (!SWIG_IsOK(ecode2)) {
27904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27905 }
27906 arg2 = static_cast< wxDouble >(val2);
27907 ecode3 = SWIG_AsVal_double(obj2, &val3);
27908 if (!SWIG_IsOK(ecode3)) {
27909 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27910 }
27911 arg3 = static_cast< wxDouble >(val3);
27912 ecode4 = SWIG_AsVal_double(obj3, &val4);
27913 if (!SWIG_IsOK(ecode4)) {
27914 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27915 }
27916 arg4 = static_cast< wxDouble >(val4);
27917 ecode5 = SWIG_AsVal_double(obj4, &val5);
27918 if (!SWIG_IsOK(ecode5)) {
27919 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27920 }
27921 arg5 = static_cast< wxDouble >(val5);
27922 ecode6 = SWIG_AsVal_double(obj5, &val6);
27923 if (!SWIG_IsOK(ecode6)) {
27924 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27925 }
27926 arg6 = static_cast< wxDouble >(val6);
27927 {
27928 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
27929 if (PyErr_Occurred()) SWIG_fail;
27930 }
27931 resultobj = SWIG_Py_Void();
27932 return resultobj;
27933 fail:
27934 return NULL;
27935 }
27936
27937
27938 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27939 PyObject *resultobj = 0;
27940 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27941 wxDouble arg2 ;
27942 wxDouble arg3 ;
27943 wxDouble arg4 ;
27944 wxDouble arg5 ;
27945 void *argp1 = 0 ;
27946 int res1 = 0 ;
27947 double val2 ;
27948 int ecode2 = 0 ;
27949 double val3 ;
27950 int ecode3 = 0 ;
27951 double val4 ;
27952 int ecode4 = 0 ;
27953 double val5 ;
27954 int ecode5 = 0 ;
27955 PyObject * obj0 = 0 ;
27956 PyObject * obj1 = 0 ;
27957 PyObject * obj2 = 0 ;
27958 PyObject * obj3 = 0 ;
27959 PyObject * obj4 = 0 ;
27960 char * kwnames[] = {
27961 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27962 };
27963
27964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27966 if (!SWIG_IsOK(res1)) {
27967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27968 }
27969 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27970 ecode2 = SWIG_AsVal_double(obj1, &val2);
27971 if (!SWIG_IsOK(ecode2)) {
27972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27973 }
27974 arg2 = static_cast< wxDouble >(val2);
27975 ecode3 = SWIG_AsVal_double(obj2, &val3);
27976 if (!SWIG_IsOK(ecode3)) {
27977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27978 }
27979 arg3 = static_cast< wxDouble >(val3);
27980 ecode4 = SWIG_AsVal_double(obj3, &val4);
27981 if (!SWIG_IsOK(ecode4)) {
27982 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27983 }
27984 arg4 = static_cast< wxDouble >(val4);
27985 ecode5 = SWIG_AsVal_double(obj4, &val5);
27986 if (!SWIG_IsOK(ecode5)) {
27987 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27988 }
27989 arg5 = static_cast< wxDouble >(val5);
27990 {
27991 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
27992 if (PyErr_Occurred()) SWIG_fail;
27993 }
27994 resultobj = SWIG_Py_Void();
27995 return resultobj;
27996 fail:
27997 return NULL;
27998 }
27999
28000
28001 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28002 PyObject *resultobj = 0;
28003 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28004 wxDouble arg2 ;
28005 wxDouble arg3 ;
28006 wxDouble arg4 ;
28007 wxDouble arg5 ;
28008 wxDouble arg6 ;
28009 void *argp1 = 0 ;
28010 int res1 = 0 ;
28011 double val2 ;
28012 int ecode2 = 0 ;
28013 double val3 ;
28014 int ecode3 = 0 ;
28015 double val4 ;
28016 int ecode4 = 0 ;
28017 double val5 ;
28018 int ecode5 = 0 ;
28019 double val6 ;
28020 int ecode6 = 0 ;
28021 PyObject * obj0 = 0 ;
28022 PyObject * obj1 = 0 ;
28023 PyObject * obj2 = 0 ;
28024 PyObject * obj3 = 0 ;
28025 PyObject * obj4 = 0 ;
28026 PyObject * obj5 = 0 ;
28027 char * kwnames[] = {
28028 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
28029 };
28030
28031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28033 if (!SWIG_IsOK(res1)) {
28034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28035 }
28036 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28037 ecode2 = SWIG_AsVal_double(obj1, &val2);
28038 if (!SWIG_IsOK(ecode2)) {
28039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
28040 }
28041 arg2 = static_cast< wxDouble >(val2);
28042 ecode3 = SWIG_AsVal_double(obj2, &val3);
28043 if (!SWIG_IsOK(ecode3)) {
28044 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
28045 }
28046 arg3 = static_cast< wxDouble >(val3);
28047 ecode4 = SWIG_AsVal_double(obj3, &val4);
28048 if (!SWIG_IsOK(ecode4)) {
28049 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
28050 }
28051 arg4 = static_cast< wxDouble >(val4);
28052 ecode5 = SWIG_AsVal_double(obj4, &val5);
28053 if (!SWIG_IsOK(ecode5)) {
28054 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
28055 }
28056 arg5 = static_cast< wxDouble >(val5);
28057 ecode6 = SWIG_AsVal_double(obj5, &val6);
28058 if (!SWIG_IsOK(ecode6)) {
28059 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
28060 }
28061 arg6 = static_cast< wxDouble >(val6);
28062 {
28063 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
28064 if (PyErr_Occurred()) SWIG_fail;
28065 }
28066 resultobj = SWIG_Py_Void();
28067 return resultobj;
28068 fail:
28069 return NULL;
28070 }
28071
28072
28073 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28074 PyObject *resultobj = 0;
28075 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28076 void *result = 0 ;
28077 void *argp1 = 0 ;
28078 int res1 = 0 ;
28079 PyObject *swig_obj[1] ;
28080
28081 if (!args) SWIG_fail;
28082 swig_obj[0] = args;
28083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28084 if (!SWIG_IsOK(res1)) {
28085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28086 }
28087 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28088 {
28089 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
28090 if (PyErr_Occurred()) SWIG_fail;
28091 }
28092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28093 return resultobj;
28094 fail:
28095 return NULL;
28096 }
28097
28098
28099 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28100 PyObject *resultobj = 0;
28101 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28102 void *arg2 = (void *) 0 ;
28103 void *argp1 = 0 ;
28104 int res1 = 0 ;
28105 int res2 ;
28106 PyObject * obj0 = 0 ;
28107 PyObject * obj1 = 0 ;
28108 char * kwnames[] = {
28109 (char *) "self",(char *) "p", NULL
28110 };
28111
28112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
28113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28114 if (!SWIG_IsOK(res1)) {
28115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28116 }
28117 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28118 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
28119 if (!SWIG_IsOK(res2)) {
28120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
28121 }
28122 {
28123 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
28124 if (PyErr_Occurred()) SWIG_fail;
28125 }
28126 resultobj = SWIG_Py_Void();
28127 return resultobj;
28128 fail:
28129 return NULL;
28130 }
28131
28132
28133 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28134 PyObject *resultobj = 0;
28135 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28136 wxGraphicsMatrix *arg2 = 0 ;
28137 void *argp1 = 0 ;
28138 int res1 = 0 ;
28139 void *argp2 = 0 ;
28140 int res2 = 0 ;
28141 PyObject * obj0 = 0 ;
28142 PyObject * obj1 = 0 ;
28143 char * kwnames[] = {
28144 (char *) "self",(char *) "matrix", NULL
28145 };
28146
28147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
28148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28149 if (!SWIG_IsOK(res1)) {
28150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28151 }
28152 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28153 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28154 if (!SWIG_IsOK(res2)) {
28155 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28156 }
28157 if (!argp2) {
28158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28159 }
28160 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28161 {
28162 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
28163 if (PyErr_Occurred()) SWIG_fail;
28164 }
28165 resultobj = SWIG_Py_Void();
28166 return resultobj;
28167 fail:
28168 return NULL;
28169 }
28170
28171
28172 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28173 PyObject *resultobj = 0;
28174 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28175 wxRect2D result;
28176 void *argp1 = 0 ;
28177 int res1 = 0 ;
28178 PyObject *swig_obj[1] ;
28179
28180 if (!args) SWIG_fail;
28181 swig_obj[0] = args;
28182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28183 if (!SWIG_IsOK(res1)) {
28184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28185 }
28186 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28187 {
28188 result = ((wxGraphicsPath const *)arg1)->GetBox();
28189 if (PyErr_Occurred()) SWIG_fail;
28190 }
28191 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
28192 return resultobj;
28193 fail:
28194 return NULL;
28195 }
28196
28197
28198 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28199 PyObject *resultobj = 0;
28200 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28201 wxDouble arg2 ;
28202 wxDouble arg3 ;
28203 int arg4 = (int) wxODDEVEN_RULE ;
28204 bool result;
28205 void *argp1 = 0 ;
28206 int res1 = 0 ;
28207 double val2 ;
28208 int ecode2 = 0 ;
28209 double val3 ;
28210 int ecode3 = 0 ;
28211 int val4 ;
28212 int ecode4 = 0 ;
28213
28214 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
28215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28216 if (!SWIG_IsOK(res1)) {
28217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28218 }
28219 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28220 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28221 if (!SWIG_IsOK(ecode2)) {
28222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
28223 }
28224 arg2 = static_cast< wxDouble >(val2);
28225 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28226 if (!SWIG_IsOK(ecode3)) {
28227 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
28228 }
28229 arg3 = static_cast< wxDouble >(val3);
28230 if (swig_obj[3]) {
28231 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
28232 if (!SWIG_IsOK(ecode4)) {
28233 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
28234 }
28235 arg4 = static_cast< int >(val4);
28236 }
28237 {
28238 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
28239 if (PyErr_Occurred()) SWIG_fail;
28240 }
28241 {
28242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28243 }
28244 return resultobj;
28245 fail:
28246 return NULL;
28247 }
28248
28249
28250 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28251 PyObject *resultobj = 0;
28252 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28253 wxPoint2D *arg2 = 0 ;
28254 int arg3 = (int) wxODDEVEN_RULE ;
28255 bool result;
28256 void *argp1 = 0 ;
28257 int res1 = 0 ;
28258 wxPoint2D temp2 ;
28259 int val3 ;
28260 int ecode3 = 0 ;
28261
28262 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28264 if (!SWIG_IsOK(res1)) {
28265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28266 }
28267 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28268 {
28269 arg2 = &temp2;
28270 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
28271 }
28272 if (swig_obj[2]) {
28273 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
28274 if (!SWIG_IsOK(ecode3)) {
28275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
28276 }
28277 arg3 = static_cast< int >(val3);
28278 }
28279 {
28280 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3);
28281 if (PyErr_Occurred()) SWIG_fail;
28282 }
28283 {
28284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28285 }
28286 return resultobj;
28287 fail:
28288 return NULL;
28289 }
28290
28291
28292 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
28293 int argc;
28294 PyObject *argv[5];
28295
28296 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
28297 --argc;
28298 if ((argc >= 2) && (argc <= 3)) {
28299 int _v = 0;
28300 {
28301 {
28302 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
28303 }
28304 }
28305 if (!_v) goto check_1;
28306 if (argc > 2) {
28307 {
28308 {
28309 int res = SWIG_AsVal_int(argv[2], NULL);
28310 _v = SWIG_CheckState(res);
28311 }
28312 }
28313 if (!_v) goto check_1;
28314 }
28315 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
28316 }
28317 check_1:
28318
28319 if ((argc >= 3) && (argc <= 4)) {
28320 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
28321 }
28322
28323 fail:
28324 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
28325 return NULL;
28326 }
28327
28328
28329 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28330 PyObject *obj;
28331 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28332 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
28333 return SWIG_Py_Void();
28334 }
28335
28336 SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28337 return SWIG_Python_InitShadowInstance(args);
28338 }
28339
28340 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
28341 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
28342 return 1;
28343 }
28344
28345
28346 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
28347 PyObject *pyobj = 0;
28348
28349 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
28350 return pyobj;
28351 }
28352
28353
28354 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
28355 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
28356 return 1;
28357 }
28358
28359
28360 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
28361 PyObject *pyobj = 0;
28362
28363 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
28364 return pyobj;
28365 }
28366
28367
28368 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
28369 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
28370 return 1;
28371 }
28372
28373
28374 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
28375 PyObject *pyobj = 0;
28376
28377 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
28378 return pyobj;
28379 }
28380
28381
28382 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
28383 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
28384 return 1;
28385 }
28386
28387
28388 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
28389 PyObject *pyobj = 0;
28390
28391 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
28392 return pyobj;
28393 }
28394
28395
28396 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
28397 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
28398 return 1;
28399 }
28400
28401
28402 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
28403 PyObject *pyobj = 0;
28404
28405 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
28406 return pyobj;
28407 }
28408
28409
28410 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28411 PyObject *resultobj = 0;
28412 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28413 void *argp1 = 0 ;
28414 int res1 = 0 ;
28415 PyObject *swig_obj[1] ;
28416
28417 if (!args) SWIG_fail;
28418 swig_obj[0] = args;
28419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
28420 if (!SWIG_IsOK(res1)) {
28421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28422 }
28423 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28424 {
28425 delete arg1;
28426
28427 if (PyErr_Occurred()) SWIG_fail;
28428 }
28429 resultobj = SWIG_Py_Void();
28430 return resultobj;
28431 fail:
28432 return NULL;
28433 }
28434
28435
28436 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28437 PyObject *resultobj = 0;
28438 wxWindowDC *arg1 = 0 ;
28439 wxGraphicsContext *result = 0 ;
28440 void *argp1 = 0 ;
28441 int res1 = 0 ;
28442
28443 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28445 if (!SWIG_IsOK(res1)) {
28446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28447 }
28448 if (!argp1) {
28449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28450 }
28451 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28452 {
28453 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28454 if (PyErr_Occurred()) SWIG_fail;
28455 }
28456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28457 return resultobj;
28458 fail:
28459 return NULL;
28460 }
28461
28462
28463 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28464 PyObject *resultobj = 0;
28465 wxWindow *arg1 = (wxWindow *) 0 ;
28466 wxGraphicsContext *result = 0 ;
28467 void *argp1 = 0 ;
28468 int res1 = 0 ;
28469
28470 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28472 if (!SWIG_IsOK(res1)) {
28473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28474 }
28475 arg1 = reinterpret_cast< wxWindow * >(argp1);
28476 {
28477 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28478 if (PyErr_Occurred()) SWIG_fail;
28479 }
28480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28481 return resultobj;
28482 fail:
28483 return NULL;
28484 }
28485
28486
28487 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28488 int argc;
28489 PyObject *argv[2];
28490
28491 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28492 --argc;
28493 if (argc == 1) {
28494 int _v = 0;
28495 {
28496 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28497 _v = SWIG_CheckState(res);
28498 }
28499 if (!_v) goto check_1;
28500 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28501 }
28502 check_1:
28503
28504 if (argc == 1) {
28505 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28506 }
28507
28508 fail:
28509 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28510 return NULL;
28511 }
28512
28513
28514 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28515 PyObject *resultobj = 0;
28516 wxGraphicsContext *result = 0 ;
28517
28518 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
28519 {
28520 result = (wxGraphicsContext *)wxGraphicsContext::Create();
28521 if (PyErr_Occurred()) SWIG_fail;
28522 }
28523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28524 return resultobj;
28525 fail:
28526 return NULL;
28527 }
28528
28529
28530 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28531 PyObject *resultobj = 0;
28532 void *arg1 = (void *) 0 ;
28533 wxGraphicsContext *result = 0 ;
28534 int res1 ;
28535 PyObject * obj0 = 0 ;
28536 char * kwnames[] = {
28537 (char *) "context", NULL
28538 };
28539
28540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28541 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28542 if (!SWIG_IsOK(res1)) {
28543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28544 }
28545 {
28546 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28547 if (PyErr_Occurred()) SWIG_fail;
28548 }
28549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28550 return resultobj;
28551 fail:
28552 return NULL;
28553 }
28554
28555
28556 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28557 PyObject *resultobj = 0;
28558 void *arg1 = (void *) 0 ;
28559 wxGraphicsContext *result = 0 ;
28560 int res1 ;
28561 PyObject * obj0 = 0 ;
28562 char * kwnames[] = {
28563 (char *) "window", NULL
28564 };
28565
28566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28567 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28568 if (!SWIG_IsOK(res1)) {
28569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28570 }
28571 {
28572 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28573 if (PyErr_Occurred()) SWIG_fail;
28574 }
28575 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28576 return resultobj;
28577 fail:
28578 return NULL;
28579 }
28580
28581
28582 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28583 PyObject *resultobj = 0;
28584 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28585 wxGraphicsPath result;
28586 void *argp1 = 0 ;
28587 int res1 = 0 ;
28588 PyObject *swig_obj[1] ;
28589
28590 if (!args) SWIG_fail;
28591 swig_obj[0] = args;
28592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28593 if (!SWIG_IsOK(res1)) {
28594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28595 }
28596 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28597 {
28598 result = (arg1)->CreatePath();
28599 if (PyErr_Occurred()) SWIG_fail;
28600 }
28601 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
28602 return resultobj;
28603 fail:
28604 return NULL;
28605 }
28606
28607
28608 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28609 PyObject *resultobj = 0;
28610 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28611 wxPen *arg2 = 0 ;
28612 wxGraphicsPen result;
28613 void *argp1 = 0 ;
28614 int res1 = 0 ;
28615 void *argp2 = 0 ;
28616 int res2 = 0 ;
28617 PyObject * obj0 = 0 ;
28618 PyObject * obj1 = 0 ;
28619 char * kwnames[] = {
28620 (char *) "self",(char *) "pen", NULL
28621 };
28622
28623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28625 if (!SWIG_IsOK(res1)) {
28626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28627 }
28628 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28629 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28630 if (!SWIG_IsOK(res2)) {
28631 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28632 }
28633 if (!argp2) {
28634 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28635 }
28636 arg2 = reinterpret_cast< wxPen * >(argp2);
28637 {
28638 result = (arg1)->CreatePen((wxPen const &)*arg2);
28639 if (PyErr_Occurred()) SWIG_fail;
28640 }
28641 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
28642 return resultobj;
28643 fail:
28644 return NULL;
28645 }
28646
28647
28648 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28649 PyObject *resultobj = 0;
28650 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28651 wxBrush *arg2 = 0 ;
28652 wxGraphicsBrush result;
28653 void *argp1 = 0 ;
28654 int res1 = 0 ;
28655 void *argp2 = 0 ;
28656 int res2 = 0 ;
28657 PyObject * obj0 = 0 ;
28658 PyObject * obj1 = 0 ;
28659 char * kwnames[] = {
28660 (char *) "self",(char *) "brush", NULL
28661 };
28662
28663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28665 if (!SWIG_IsOK(res1)) {
28666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28667 }
28668 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28669 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28670 if (!SWIG_IsOK(res2)) {
28671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28672 }
28673 if (!argp2) {
28674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28675 }
28676 arg2 = reinterpret_cast< wxBrush * >(argp2);
28677 {
28678 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
28679 if (PyErr_Occurred()) SWIG_fail;
28680 }
28681 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28682 return resultobj;
28683 fail:
28684 return NULL;
28685 }
28686
28687
28688 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28689 PyObject *resultobj = 0;
28690 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28691 wxDouble arg2 ;
28692 wxDouble arg3 ;
28693 wxDouble arg4 ;
28694 wxDouble arg5 ;
28695 wxColour *arg6 = 0 ;
28696 wxColour *arg7 = 0 ;
28697 wxGraphicsBrush result;
28698 void *argp1 = 0 ;
28699 int res1 = 0 ;
28700 double val2 ;
28701 int ecode2 = 0 ;
28702 double val3 ;
28703 int ecode3 = 0 ;
28704 double val4 ;
28705 int ecode4 = 0 ;
28706 double val5 ;
28707 int ecode5 = 0 ;
28708 wxColour temp6 ;
28709 wxColour temp7 ;
28710 PyObject * obj0 = 0 ;
28711 PyObject * obj1 = 0 ;
28712 PyObject * obj2 = 0 ;
28713 PyObject * obj3 = 0 ;
28714 PyObject * obj4 = 0 ;
28715 PyObject * obj5 = 0 ;
28716 PyObject * obj6 = 0 ;
28717 char * kwnames[] = {
28718 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
28719 };
28720
28721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28723 if (!SWIG_IsOK(res1)) {
28724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28725 }
28726 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28727 ecode2 = SWIG_AsVal_double(obj1, &val2);
28728 if (!SWIG_IsOK(ecode2)) {
28729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28730 }
28731 arg2 = static_cast< wxDouble >(val2);
28732 ecode3 = SWIG_AsVal_double(obj2, &val3);
28733 if (!SWIG_IsOK(ecode3)) {
28734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28735 }
28736 arg3 = static_cast< wxDouble >(val3);
28737 ecode4 = SWIG_AsVal_double(obj3, &val4);
28738 if (!SWIG_IsOK(ecode4)) {
28739 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28740 }
28741 arg4 = static_cast< wxDouble >(val4);
28742 ecode5 = SWIG_AsVal_double(obj4, &val5);
28743 if (!SWIG_IsOK(ecode5)) {
28744 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28745 }
28746 arg5 = static_cast< wxDouble >(val5);
28747 {
28748 arg6 = &temp6;
28749 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
28750 }
28751 {
28752 arg7 = &temp7;
28753 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28754 }
28755 {
28756 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
28757 if (PyErr_Occurred()) SWIG_fail;
28758 }
28759 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28760 return resultobj;
28761 fail:
28762 return NULL;
28763 }
28764
28765
28766 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28767 PyObject *resultobj = 0;
28768 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28769 wxDouble arg2 ;
28770 wxDouble arg3 ;
28771 wxDouble arg4 ;
28772 wxDouble arg5 ;
28773 wxDouble arg6 ;
28774 wxColour *arg7 = 0 ;
28775 wxColour *arg8 = 0 ;
28776 wxGraphicsBrush result;
28777 void *argp1 = 0 ;
28778 int res1 = 0 ;
28779 double val2 ;
28780 int ecode2 = 0 ;
28781 double val3 ;
28782 int ecode3 = 0 ;
28783 double val4 ;
28784 int ecode4 = 0 ;
28785 double val5 ;
28786 int ecode5 = 0 ;
28787 double val6 ;
28788 int ecode6 = 0 ;
28789 wxColour temp7 ;
28790 wxColour temp8 ;
28791 PyObject * obj0 = 0 ;
28792 PyObject * obj1 = 0 ;
28793 PyObject * obj2 = 0 ;
28794 PyObject * obj3 = 0 ;
28795 PyObject * obj4 = 0 ;
28796 PyObject * obj5 = 0 ;
28797 PyObject * obj6 = 0 ;
28798 PyObject * obj7 = 0 ;
28799 char * kwnames[] = {
28800 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
28801 };
28802
28803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28805 if (!SWIG_IsOK(res1)) {
28806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28807 }
28808 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28809 ecode2 = SWIG_AsVal_double(obj1, &val2);
28810 if (!SWIG_IsOK(ecode2)) {
28811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28812 }
28813 arg2 = static_cast< wxDouble >(val2);
28814 ecode3 = SWIG_AsVal_double(obj2, &val3);
28815 if (!SWIG_IsOK(ecode3)) {
28816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28817 }
28818 arg3 = static_cast< wxDouble >(val3);
28819 ecode4 = SWIG_AsVal_double(obj3, &val4);
28820 if (!SWIG_IsOK(ecode4)) {
28821 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28822 }
28823 arg4 = static_cast< wxDouble >(val4);
28824 ecode5 = SWIG_AsVal_double(obj4, &val5);
28825 if (!SWIG_IsOK(ecode5)) {
28826 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28827 }
28828 arg5 = static_cast< wxDouble >(val5);
28829 ecode6 = SWIG_AsVal_double(obj5, &val6);
28830 if (!SWIG_IsOK(ecode6)) {
28831 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
28832 }
28833 arg6 = static_cast< wxDouble >(val6);
28834 {
28835 arg7 = &temp7;
28836 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28837 }
28838 {
28839 arg8 = &temp8;
28840 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28841 }
28842 {
28843 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
28844 if (PyErr_Occurred()) SWIG_fail;
28845 }
28846 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28847 return resultobj;
28848 fail:
28849 return NULL;
28850 }
28851
28852
28853 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28854 PyObject *resultobj = 0;
28855 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28856 wxFont *arg2 = 0 ;
28857 wxColour const &arg3_defvalue = *wxBLACK ;
28858 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28859 wxGraphicsFont result;
28860 void *argp1 = 0 ;
28861 int res1 = 0 ;
28862 void *argp2 = 0 ;
28863 int res2 = 0 ;
28864 wxColour temp3 ;
28865 PyObject * obj0 = 0 ;
28866 PyObject * obj1 = 0 ;
28867 PyObject * obj2 = 0 ;
28868 char * kwnames[] = {
28869 (char *) "self",(char *) "font",(char *) "col", NULL
28870 };
28871
28872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28874 if (!SWIG_IsOK(res1)) {
28875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28876 }
28877 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28878 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28879 if (!SWIG_IsOK(res2)) {
28880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28881 }
28882 if (!argp2) {
28883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28884 }
28885 arg2 = reinterpret_cast< wxFont * >(argp2);
28886 if (obj2) {
28887 {
28888 arg3 = &temp3;
28889 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28890 }
28891 }
28892 {
28893 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28894 if (PyErr_Occurred()) SWIG_fail;
28895 }
28896 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
28897 return resultobj;
28898 fail:
28899 return NULL;
28900 }
28901
28902
28903 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28904 PyObject *resultobj = 0;
28905 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28906 wxDouble arg2 = (wxDouble) 1.0 ;
28907 wxDouble arg3 = (wxDouble) 0.0 ;
28908 wxDouble arg4 = (wxDouble) 0.0 ;
28909 wxDouble arg5 = (wxDouble) 1.0 ;
28910 wxDouble arg6 = (wxDouble) 0.0 ;
28911 wxDouble arg7 = (wxDouble) 0.0 ;
28912 wxGraphicsMatrix result;
28913 void *argp1 = 0 ;
28914 int res1 = 0 ;
28915 double val2 ;
28916 int ecode2 = 0 ;
28917 double val3 ;
28918 int ecode3 = 0 ;
28919 double val4 ;
28920 int ecode4 = 0 ;
28921 double val5 ;
28922 int ecode5 = 0 ;
28923 double val6 ;
28924 int ecode6 = 0 ;
28925 double val7 ;
28926 int ecode7 = 0 ;
28927 PyObject * obj0 = 0 ;
28928 PyObject * obj1 = 0 ;
28929 PyObject * obj2 = 0 ;
28930 PyObject * obj3 = 0 ;
28931 PyObject * obj4 = 0 ;
28932 PyObject * obj5 = 0 ;
28933 PyObject * obj6 = 0 ;
28934 char * kwnames[] = {
28935 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28936 };
28937
28938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28940 if (!SWIG_IsOK(res1)) {
28941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28942 }
28943 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28944 if (obj1) {
28945 ecode2 = SWIG_AsVal_double(obj1, &val2);
28946 if (!SWIG_IsOK(ecode2)) {
28947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28948 }
28949 arg2 = static_cast< wxDouble >(val2);
28950 }
28951 if (obj2) {
28952 ecode3 = SWIG_AsVal_double(obj2, &val3);
28953 if (!SWIG_IsOK(ecode3)) {
28954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28955 }
28956 arg3 = static_cast< wxDouble >(val3);
28957 }
28958 if (obj3) {
28959 ecode4 = SWIG_AsVal_double(obj3, &val4);
28960 if (!SWIG_IsOK(ecode4)) {
28961 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28962 }
28963 arg4 = static_cast< wxDouble >(val4);
28964 }
28965 if (obj4) {
28966 ecode5 = SWIG_AsVal_double(obj4, &val5);
28967 if (!SWIG_IsOK(ecode5)) {
28968 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28969 }
28970 arg5 = static_cast< wxDouble >(val5);
28971 }
28972 if (obj5) {
28973 ecode6 = SWIG_AsVal_double(obj5, &val6);
28974 if (!SWIG_IsOK(ecode6)) {
28975 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28976 }
28977 arg6 = static_cast< wxDouble >(val6);
28978 }
28979 if (obj6) {
28980 ecode7 = SWIG_AsVal_double(obj6, &val7);
28981 if (!SWIG_IsOK(ecode7)) {
28982 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28983 }
28984 arg7 = static_cast< wxDouble >(val7);
28985 }
28986 {
28987 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
28988 if (PyErr_Occurred()) SWIG_fail;
28989 }
28990 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28991 return resultobj;
28992 fail:
28993 return NULL;
28994 }
28995
28996
28997 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28998 PyObject *resultobj = 0;
28999 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29000 void *argp1 = 0 ;
29001 int res1 = 0 ;
29002 PyObject *swig_obj[1] ;
29003
29004 if (!args) SWIG_fail;
29005 swig_obj[0] = args;
29006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29007 if (!SWIG_IsOK(res1)) {
29008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29009 }
29010 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29011 {
29012 (arg1)->PushState();
29013 if (PyErr_Occurred()) SWIG_fail;
29014 }
29015 resultobj = SWIG_Py_Void();
29016 return resultobj;
29017 fail:
29018 return NULL;
29019 }
29020
29021
29022 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29023 PyObject *resultobj = 0;
29024 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29025 void *argp1 = 0 ;
29026 int res1 = 0 ;
29027 PyObject *swig_obj[1] ;
29028
29029 if (!args) SWIG_fail;
29030 swig_obj[0] = args;
29031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29032 if (!SWIG_IsOK(res1)) {
29033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29034 }
29035 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29036 {
29037 (arg1)->PopState();
29038 if (PyErr_Occurred()) SWIG_fail;
29039 }
29040 resultobj = SWIG_Py_Void();
29041 return resultobj;
29042 fail:
29043 return NULL;
29044 }
29045
29046
29047 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29048 PyObject *resultobj = 0;
29049 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29050 wxRegion *arg2 = 0 ;
29051 void *argp1 = 0 ;
29052 int res1 = 0 ;
29053 void *argp2 = 0 ;
29054 int res2 = 0 ;
29055 PyObject * obj0 = 0 ;
29056 PyObject * obj1 = 0 ;
29057 char * kwnames[] = {
29058 (char *) "self",(char *) "region", NULL
29059 };
29060
29061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
29062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29063 if (!SWIG_IsOK(res1)) {
29064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29065 }
29066 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29067 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
29068 if (!SWIG_IsOK(res2)) {
29069 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
29070 }
29071 if (!argp2) {
29072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
29073 }
29074 arg2 = reinterpret_cast< wxRegion * >(argp2);
29075 {
29076 (arg1)->Clip((wxRegion const &)*arg2);
29077 if (PyErr_Occurred()) SWIG_fail;
29078 }
29079 resultobj = SWIG_Py_Void();
29080 return resultobj;
29081 fail:
29082 return NULL;
29083 }
29084
29085
29086 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29087 PyObject *resultobj = 0;
29088 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29089 wxDouble arg2 ;
29090 wxDouble arg3 ;
29091 wxDouble arg4 ;
29092 wxDouble arg5 ;
29093 void *argp1 = 0 ;
29094 int res1 = 0 ;
29095 double val2 ;
29096 int ecode2 = 0 ;
29097 double val3 ;
29098 int ecode3 = 0 ;
29099 double val4 ;
29100 int ecode4 = 0 ;
29101 double val5 ;
29102 int ecode5 = 0 ;
29103 PyObject * obj0 = 0 ;
29104 PyObject * obj1 = 0 ;
29105 PyObject * obj2 = 0 ;
29106 PyObject * obj3 = 0 ;
29107 PyObject * obj4 = 0 ;
29108 char * kwnames[] = {
29109 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29110 };
29111
29112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29114 if (!SWIG_IsOK(res1)) {
29115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29116 }
29117 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29118 ecode2 = SWIG_AsVal_double(obj1, &val2);
29119 if (!SWIG_IsOK(ecode2)) {
29120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
29121 }
29122 arg2 = static_cast< wxDouble >(val2);
29123 ecode3 = SWIG_AsVal_double(obj2, &val3);
29124 if (!SWIG_IsOK(ecode3)) {
29125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
29126 }
29127 arg3 = static_cast< wxDouble >(val3);
29128 ecode4 = SWIG_AsVal_double(obj3, &val4);
29129 if (!SWIG_IsOK(ecode4)) {
29130 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
29131 }
29132 arg4 = static_cast< wxDouble >(val4);
29133 ecode5 = SWIG_AsVal_double(obj4, &val5);
29134 if (!SWIG_IsOK(ecode5)) {
29135 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
29136 }
29137 arg5 = static_cast< wxDouble >(val5);
29138 {
29139 (arg1)->Clip(arg2,arg3,arg4,arg5);
29140 if (PyErr_Occurred()) SWIG_fail;
29141 }
29142 resultobj = SWIG_Py_Void();
29143 return resultobj;
29144 fail:
29145 return NULL;
29146 }
29147
29148
29149 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29150 PyObject *resultobj = 0;
29151 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29152 void *argp1 = 0 ;
29153 int res1 = 0 ;
29154 PyObject *swig_obj[1] ;
29155
29156 if (!args) SWIG_fail;
29157 swig_obj[0] = args;
29158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29159 if (!SWIG_IsOK(res1)) {
29160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29161 }
29162 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29163 {
29164 (arg1)->ResetClip();
29165 if (PyErr_Occurred()) SWIG_fail;
29166 }
29167 resultobj = SWIG_Py_Void();
29168 return resultobj;
29169 fail:
29170 return NULL;
29171 }
29172
29173
29174 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29175 PyObject *resultobj = 0;
29176 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29177 void *result = 0 ;
29178 void *argp1 = 0 ;
29179 int res1 = 0 ;
29180 PyObject *swig_obj[1] ;
29181
29182 if (!args) SWIG_fail;
29183 swig_obj[0] = args;
29184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29185 if (!SWIG_IsOK(res1)) {
29186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29187 }
29188 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29189 {
29190 result = (void *)(arg1)->GetNativeContext();
29191 if (PyErr_Occurred()) SWIG_fail;
29192 }
29193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
29194 return resultobj;
29195 fail:
29196 return NULL;
29197 }
29198
29199
29200 SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29201 PyObject *resultobj = 0;
29202 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29203 int result;
29204 void *argp1 = 0 ;
29205 int res1 = 0 ;
29206 PyObject *swig_obj[1] ;
29207
29208 if (!args) SWIG_fail;
29209 swig_obj[0] = args;
29210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29211 if (!SWIG_IsOK(res1)) {
29212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29213 }
29214 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29215 {
29216 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
29217 if (PyErr_Occurred()) SWIG_fail;
29218 }
29219 resultobj = SWIG_From_int(static_cast< int >(result));
29220 return resultobj;
29221 fail:
29222 return NULL;
29223 }
29224
29225
29226 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29227 PyObject *resultobj = 0;
29228 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29229 int arg2 ;
29230 bool result;
29231 void *argp1 = 0 ;
29232 int res1 = 0 ;
29233 int val2 ;
29234 int ecode2 = 0 ;
29235 PyObject * obj0 = 0 ;
29236 PyObject * obj1 = 0 ;
29237 char * kwnames[] = {
29238 (char *) "self",(char *) "function", NULL
29239 };
29240
29241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
29242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29243 if (!SWIG_IsOK(res1)) {
29244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29245 }
29246 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29247 ecode2 = SWIG_AsVal_int(obj1, &val2);
29248 if (!SWIG_IsOK(ecode2)) {
29249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
29250 }
29251 arg2 = static_cast< int >(val2);
29252 {
29253 result = (bool)(arg1)->SetLogicalFunction(arg2);
29254 if (PyErr_Occurred()) SWIG_fail;
29255 }
29256 {
29257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29258 }
29259 return resultobj;
29260 fail:
29261 return NULL;
29262 }
29263
29264
29265 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29266 PyObject *resultobj = 0;
29267 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29268 wxDouble arg2 ;
29269 wxDouble arg3 ;
29270 void *argp1 = 0 ;
29271 int res1 = 0 ;
29272 double val2 ;
29273 int ecode2 = 0 ;
29274 double val3 ;
29275 int ecode3 = 0 ;
29276 PyObject * obj0 = 0 ;
29277 PyObject * obj1 = 0 ;
29278 PyObject * obj2 = 0 ;
29279 char * kwnames[] = {
29280 (char *) "self",(char *) "dx",(char *) "dy", NULL
29281 };
29282
29283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29285 if (!SWIG_IsOK(res1)) {
29286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29287 }
29288 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29289 ecode2 = SWIG_AsVal_double(obj1, &val2);
29290 if (!SWIG_IsOK(ecode2)) {
29291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
29292 }
29293 arg2 = static_cast< wxDouble >(val2);
29294 ecode3 = SWIG_AsVal_double(obj2, &val3);
29295 if (!SWIG_IsOK(ecode3)) {
29296 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
29297 }
29298 arg3 = static_cast< wxDouble >(val3);
29299 {
29300 (arg1)->Translate(arg2,arg3);
29301 if (PyErr_Occurred()) SWIG_fail;
29302 }
29303 resultobj = SWIG_Py_Void();
29304 return resultobj;
29305 fail:
29306 return NULL;
29307 }
29308
29309
29310 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29311 PyObject *resultobj = 0;
29312 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29313 wxDouble arg2 ;
29314 wxDouble arg3 ;
29315 void *argp1 = 0 ;
29316 int res1 = 0 ;
29317 double val2 ;
29318 int ecode2 = 0 ;
29319 double val3 ;
29320 int ecode3 = 0 ;
29321 PyObject * obj0 = 0 ;
29322 PyObject * obj1 = 0 ;
29323 PyObject * obj2 = 0 ;
29324 char * kwnames[] = {
29325 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
29326 };
29327
29328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29330 if (!SWIG_IsOK(res1)) {
29331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29332 }
29333 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29334 ecode2 = SWIG_AsVal_double(obj1, &val2);
29335 if (!SWIG_IsOK(ecode2)) {
29336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
29337 }
29338 arg2 = static_cast< wxDouble >(val2);
29339 ecode3 = SWIG_AsVal_double(obj2, &val3);
29340 if (!SWIG_IsOK(ecode3)) {
29341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
29342 }
29343 arg3 = static_cast< wxDouble >(val3);
29344 {
29345 (arg1)->Scale(arg2,arg3);
29346 if (PyErr_Occurred()) SWIG_fail;
29347 }
29348 resultobj = SWIG_Py_Void();
29349 return resultobj;
29350 fail:
29351 return NULL;
29352 }
29353
29354
29355 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29356 PyObject *resultobj = 0;
29357 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29358 wxDouble arg2 ;
29359 void *argp1 = 0 ;
29360 int res1 = 0 ;
29361 double val2 ;
29362 int ecode2 = 0 ;
29363 PyObject * obj0 = 0 ;
29364 PyObject * obj1 = 0 ;
29365 char * kwnames[] = {
29366 (char *) "self",(char *) "angle", NULL
29367 };
29368
29369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
29370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29371 if (!SWIG_IsOK(res1)) {
29372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29373 }
29374 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29375 ecode2 = SWIG_AsVal_double(obj1, &val2);
29376 if (!SWIG_IsOK(ecode2)) {
29377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
29378 }
29379 arg2 = static_cast< wxDouble >(val2);
29380 {
29381 (arg1)->Rotate(arg2);
29382 if (PyErr_Occurred()) SWIG_fail;
29383 }
29384 resultobj = SWIG_Py_Void();
29385 return resultobj;
29386 fail:
29387 return NULL;
29388 }
29389
29390
29391 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29392 PyObject *resultobj = 0;
29393 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29394 wxGraphicsMatrix *arg2 = 0 ;
29395 void *argp1 = 0 ;
29396 int res1 = 0 ;
29397 void *argp2 = 0 ;
29398 int res2 = 0 ;
29399 PyObject * obj0 = 0 ;
29400 PyObject * obj1 = 0 ;
29401 char * kwnames[] = {
29402 (char *) "self",(char *) "matrix", NULL
29403 };
29404
29405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29407 if (!SWIG_IsOK(res1)) {
29408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29409 }
29410 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29411 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29412 if (!SWIG_IsOK(res2)) {
29413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29414 }
29415 if (!argp2) {
29416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29417 }
29418 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29419 {
29420 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
29421 if (PyErr_Occurred()) SWIG_fail;
29422 }
29423 resultobj = SWIG_Py_Void();
29424 return resultobj;
29425 fail:
29426 return NULL;
29427 }
29428
29429
29430 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29431 PyObject *resultobj = 0;
29432 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29433 wxGraphicsMatrix *arg2 = 0 ;
29434 void *argp1 = 0 ;
29435 int res1 = 0 ;
29436 void *argp2 = 0 ;
29437 int res2 = 0 ;
29438 PyObject * obj0 = 0 ;
29439 PyObject * obj1 = 0 ;
29440 char * kwnames[] = {
29441 (char *) "self",(char *) "matrix", NULL
29442 };
29443
29444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29446 if (!SWIG_IsOK(res1)) {
29447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29448 }
29449 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29450 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29451 if (!SWIG_IsOK(res2)) {
29452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29453 }
29454 if (!argp2) {
29455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29456 }
29457 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29458 {
29459 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
29460 if (PyErr_Occurred()) SWIG_fail;
29461 }
29462 resultobj = SWIG_Py_Void();
29463 return resultobj;
29464 fail:
29465 return NULL;
29466 }
29467
29468
29469 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29470 PyObject *resultobj = 0;
29471 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29472 wxGraphicsMatrix result;
29473 void *argp1 = 0 ;
29474 int res1 = 0 ;
29475 PyObject *swig_obj[1] ;
29476
29477 if (!args) SWIG_fail;
29478 swig_obj[0] = args;
29479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29480 if (!SWIG_IsOK(res1)) {
29481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29482 }
29483 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29484 {
29485 result = ((wxGraphicsContext const *)arg1)->GetTransform();
29486 if (PyErr_Occurred()) SWIG_fail;
29487 }
29488 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29489 return resultobj;
29490 fail:
29491 return NULL;
29492 }
29493
29494
29495 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29496 PyObject *resultobj = 0;
29497 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29498 wxGraphicsPen *arg2 = 0 ;
29499 void *argp1 = 0 ;
29500 int res1 = 0 ;
29501 void *argp2 = 0 ;
29502 int res2 = 0 ;
29503
29504 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29506 if (!SWIG_IsOK(res1)) {
29507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29508 }
29509 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29510 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29511 if (!SWIG_IsOK(res2)) {
29512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29513 }
29514 if (!argp2) {
29515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29516 }
29517 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29518 {
29519 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29520 if (PyErr_Occurred()) SWIG_fail;
29521 }
29522 resultobj = SWIG_Py_Void();
29523 return resultobj;
29524 fail:
29525 return NULL;
29526 }
29527
29528
29529 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29530 PyObject *resultobj = 0;
29531 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29532 wxPen *arg2 = 0 ;
29533 void *argp1 = 0 ;
29534 int res1 = 0 ;
29535 void *argp2 = 0 ;
29536 int res2 = 0 ;
29537
29538 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29540 if (!SWIG_IsOK(res1)) {
29541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29542 }
29543 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29544 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29545 if (!SWIG_IsOK(res2)) {
29546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29547 }
29548 if (!argp2) {
29549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29550 }
29551 arg2 = reinterpret_cast< wxPen * >(argp2);
29552 {
29553 (arg1)->SetPen((wxPen const &)*arg2);
29554 if (PyErr_Occurred()) SWIG_fail;
29555 }
29556 resultobj = SWIG_Py_Void();
29557 return resultobj;
29558 fail:
29559 return NULL;
29560 }
29561
29562
29563 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
29564 int argc;
29565 PyObject *argv[3];
29566
29567 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
29568 --argc;
29569 if (argc == 2) {
29570 int _v = 0;
29571 {
29572 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
29573 _v = SWIG_CheckState(res);
29574 }
29575 if (!_v) goto check_1;
29576 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
29577 }
29578 check_1:
29579
29580 if (argc == 2) {
29581 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
29582 }
29583
29584 fail:
29585 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
29586 return NULL;
29587 }
29588
29589
29590 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29591 PyObject *resultobj = 0;
29592 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29593 wxGraphicsBrush *arg2 = 0 ;
29594 void *argp1 = 0 ;
29595 int res1 = 0 ;
29596 void *argp2 = 0 ;
29597 int res2 = 0 ;
29598
29599 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29601 if (!SWIG_IsOK(res1)) {
29602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29603 }
29604 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29605 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29606 if (!SWIG_IsOK(res2)) {
29607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29608 }
29609 if (!argp2) {
29610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29611 }
29612 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29613 {
29614 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
29615 if (PyErr_Occurred()) SWIG_fail;
29616 }
29617 resultobj = SWIG_Py_Void();
29618 return resultobj;
29619 fail:
29620 return NULL;
29621 }
29622
29623
29624 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29625 PyObject *resultobj = 0;
29626 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29627 wxBrush *arg2 = 0 ;
29628 void *argp1 = 0 ;
29629 int res1 = 0 ;
29630 void *argp2 = 0 ;
29631 int res2 = 0 ;
29632
29633 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29635 if (!SWIG_IsOK(res1)) {
29636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29637 }
29638 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29639 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
29640 if (!SWIG_IsOK(res2)) {
29641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29642 }
29643 if (!argp2) {
29644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29645 }
29646 arg2 = reinterpret_cast< wxBrush * >(argp2);
29647 {
29648 (arg1)->SetBrush((wxBrush const &)*arg2);
29649 if (PyErr_Occurred()) SWIG_fail;
29650 }
29651 resultobj = SWIG_Py_Void();
29652 return resultobj;
29653 fail:
29654 return NULL;
29655 }
29656
29657
29658 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29659 int argc;
29660 PyObject *argv[3];
29661
29662 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29663 --argc;
29664 if (argc == 2) {
29665 int _v = 0;
29666 {
29667 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29668 _v = SWIG_CheckState(res);
29669 }
29670 if (!_v) goto check_1;
29671 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
29672 }
29673 check_1:
29674
29675 if (argc == 2) {
29676 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
29677 }
29678
29679 fail:
29680 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
29681 return NULL;
29682 }
29683
29684
29685 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29686 PyObject *resultobj = 0;
29687 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29688 wxGraphicsFont *arg2 = 0 ;
29689 void *argp1 = 0 ;
29690 int res1 = 0 ;
29691 void *argp2 = 0 ;
29692 int res2 = 0 ;
29693
29694 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29696 if (!SWIG_IsOK(res1)) {
29697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29698 }
29699 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29700 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29701 if (!SWIG_IsOK(res2)) {
29702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29703 }
29704 if (!argp2) {
29705 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29706 }
29707 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
29708 {
29709 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
29710 if (PyErr_Occurred()) SWIG_fail;
29711 }
29712 resultobj = SWIG_Py_Void();
29713 return resultobj;
29714 fail:
29715 return NULL;
29716 }
29717
29718
29719 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29720 PyObject *resultobj = 0;
29721 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29722 wxFont *arg2 = 0 ;
29723 wxColour const &arg3_defvalue = *wxBLACK ;
29724 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
29725 void *argp1 = 0 ;
29726 int res1 = 0 ;
29727 void *argp2 = 0 ;
29728 int res2 = 0 ;
29729 wxColour temp3 ;
29730
29731 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29733 if (!SWIG_IsOK(res1)) {
29734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29735 }
29736 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29737 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
29738 if (!SWIG_IsOK(res2)) {
29739 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29740 }
29741 if (!argp2) {
29742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29743 }
29744 arg2 = reinterpret_cast< wxFont * >(argp2);
29745 if (swig_obj[2]) {
29746 {
29747 arg3 = &temp3;
29748 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29749 }
29750 }
29751 {
29752 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
29753 if (PyErr_Occurred()) SWIG_fail;
29754 }
29755 resultobj = SWIG_Py_Void();
29756 return resultobj;
29757 fail:
29758 return NULL;
29759 }
29760
29761
29762 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29763 int argc;
29764 PyObject *argv[4];
29765
29766 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29767 --argc;
29768 if (argc == 2) {
29769 int _v = 0;
29770 {
29771 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29772 _v = SWIG_CheckState(res);
29773 }
29774 if (!_v) goto check_1;
29775 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
29776 }
29777 check_1:
29778
29779 if ((argc >= 2) && (argc <= 3)) {
29780 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
29781 }
29782
29783 fail:
29784 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
29785 return NULL;
29786 }
29787
29788
29789 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29790 PyObject *resultobj = 0;
29791 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29792 wxGraphicsPath *arg2 = 0 ;
29793 void *argp1 = 0 ;
29794 int res1 = 0 ;
29795 void *argp2 = 0 ;
29796 int res2 = 0 ;
29797 PyObject * obj0 = 0 ;
29798 PyObject * obj1 = 0 ;
29799 char * kwnames[] = {
29800 (char *) "self",(char *) "path", NULL
29801 };
29802
29803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29805 if (!SWIG_IsOK(res1)) {
29806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29807 }
29808 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29809 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29810 if (!SWIG_IsOK(res2)) {
29811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29812 }
29813 if (!argp2) {
29814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29815 }
29816 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29817 {
29818 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
29819 if (PyErr_Occurred()) SWIG_fail;
29820 }
29821 resultobj = SWIG_Py_Void();
29822 return resultobj;
29823 fail:
29824 return NULL;
29825 }
29826
29827
29828 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29829 PyObject *resultobj = 0;
29830 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29831 wxGraphicsPath *arg2 = 0 ;
29832 int arg3 = (int) wxODDEVEN_RULE ;
29833 void *argp1 = 0 ;
29834 int res1 = 0 ;
29835 void *argp2 = 0 ;
29836 int res2 = 0 ;
29837 int val3 ;
29838 int ecode3 = 0 ;
29839 PyObject * obj0 = 0 ;
29840 PyObject * obj1 = 0 ;
29841 PyObject * obj2 = 0 ;
29842 char * kwnames[] = {
29843 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29844 };
29845
29846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29848 if (!SWIG_IsOK(res1)) {
29849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29850 }
29851 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29852 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29853 if (!SWIG_IsOK(res2)) {
29854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29855 }
29856 if (!argp2) {
29857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29858 }
29859 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29860 if (obj2) {
29861 ecode3 = SWIG_AsVal_int(obj2, &val3);
29862 if (!SWIG_IsOK(ecode3)) {
29863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29864 }
29865 arg3 = static_cast< int >(val3);
29866 }
29867 {
29868 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
29869 if (PyErr_Occurred()) SWIG_fail;
29870 }
29871 resultobj = SWIG_Py_Void();
29872 return resultobj;
29873 fail:
29874 return NULL;
29875 }
29876
29877
29878 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29879 PyObject *resultobj = 0;
29880 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29881 wxGraphicsPath *arg2 = 0 ;
29882 int arg3 = (int) wxODDEVEN_RULE ;
29883 void *argp1 = 0 ;
29884 int res1 = 0 ;
29885 void *argp2 = 0 ;
29886 int res2 = 0 ;
29887 int val3 ;
29888 int ecode3 = 0 ;
29889 PyObject * obj0 = 0 ;
29890 PyObject * obj1 = 0 ;
29891 PyObject * obj2 = 0 ;
29892 char * kwnames[] = {
29893 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29894 };
29895
29896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29898 if (!SWIG_IsOK(res1)) {
29899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29900 }
29901 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29902 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29903 if (!SWIG_IsOK(res2)) {
29904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29905 }
29906 if (!argp2) {
29907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29908 }
29909 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29910 if (obj2) {
29911 ecode3 = SWIG_AsVal_int(obj2, &val3);
29912 if (!SWIG_IsOK(ecode3)) {
29913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29914 }
29915 arg3 = static_cast< int >(val3);
29916 }
29917 {
29918 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
29919 if (PyErr_Occurred()) SWIG_fail;
29920 }
29921 resultobj = SWIG_Py_Void();
29922 return resultobj;
29923 fail:
29924 return NULL;
29925 }
29926
29927
29928 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29929 PyObject *resultobj = 0;
29930 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29931 wxString *arg2 = 0 ;
29932 wxDouble arg3 ;
29933 wxDouble arg4 ;
29934 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29935 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
29936 void *argp1 = 0 ;
29937 int res1 = 0 ;
29938 bool temp2 = false ;
29939 double val3 ;
29940 int ecode3 = 0 ;
29941 double val4 ;
29942 int ecode4 = 0 ;
29943 void *argp5 = 0 ;
29944 int res5 = 0 ;
29945 PyObject * obj0 = 0 ;
29946 PyObject * obj1 = 0 ;
29947 PyObject * obj2 = 0 ;
29948 PyObject * obj3 = 0 ;
29949 PyObject * obj4 = 0 ;
29950 char * kwnames[] = {
29951 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
29952 };
29953
29954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29956 if (!SWIG_IsOK(res1)) {
29957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29958 }
29959 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29960 {
29961 arg2 = wxString_in_helper(obj1);
29962 if (arg2 == NULL) SWIG_fail;
29963 temp2 = true;
29964 }
29965 ecode3 = SWIG_AsVal_double(obj2, &val3);
29966 if (!SWIG_IsOK(ecode3)) {
29967 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29968 }
29969 arg3 = static_cast< wxDouble >(val3);
29970 ecode4 = SWIG_AsVal_double(obj3, &val4);
29971 if (!SWIG_IsOK(ecode4)) {
29972 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29973 }
29974 arg4 = static_cast< wxDouble >(val4);
29975 if (obj4) {
29976 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29977 if (!SWIG_IsOK(res5)) {
29978 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29979 }
29980 if (!argp5) {
29981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29982 }
29983 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29984 }
29985 {
29986 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
29987 if (PyErr_Occurred()) SWIG_fail;
29988 }
29989 resultobj = SWIG_Py_Void();
29990 {
29991 if (temp2)
29992 delete arg2;
29993 }
29994 return resultobj;
29995 fail:
29996 {
29997 if (temp2)
29998 delete arg2;
29999 }
30000 return NULL;
30001 }
30002
30003
30004 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30005 PyObject *resultobj = 0;
30006 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30007 wxString *arg2 = 0 ;
30008 wxDouble arg3 ;
30009 wxDouble arg4 ;
30010 wxDouble arg5 ;
30011 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
30012 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
30013 void *argp1 = 0 ;
30014 int res1 = 0 ;
30015 bool temp2 = false ;
30016 double val3 ;
30017 int ecode3 = 0 ;
30018 double val4 ;
30019 int ecode4 = 0 ;
30020 double val5 ;
30021 int ecode5 = 0 ;
30022 void *argp6 = 0 ;
30023 int res6 = 0 ;
30024 PyObject * obj0 = 0 ;
30025 PyObject * obj1 = 0 ;
30026 PyObject * obj2 = 0 ;
30027 PyObject * obj3 = 0 ;
30028 PyObject * obj4 = 0 ;
30029 PyObject * obj5 = 0 ;
30030 char * kwnames[] = {
30031 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
30032 };
30033
30034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30036 if (!SWIG_IsOK(res1)) {
30037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30038 }
30039 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30040 {
30041 arg2 = wxString_in_helper(obj1);
30042 if (arg2 == NULL) SWIG_fail;
30043 temp2 = true;
30044 }
30045 ecode3 = SWIG_AsVal_double(obj2, &val3);
30046 if (!SWIG_IsOK(ecode3)) {
30047 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
30048 }
30049 arg3 = static_cast< wxDouble >(val3);
30050 ecode4 = SWIG_AsVal_double(obj3, &val4);
30051 if (!SWIG_IsOK(ecode4)) {
30052 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
30053 }
30054 arg4 = static_cast< wxDouble >(val4);
30055 ecode5 = SWIG_AsVal_double(obj4, &val5);
30056 if (!SWIG_IsOK(ecode5)) {
30057 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
30058 }
30059 arg5 = static_cast< wxDouble >(val5);
30060 if (obj5) {
30061 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
30062 if (!SWIG_IsOK(res6)) {
30063 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
30064 }
30065 if (!argp6) {
30066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
30067 }
30068 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
30069 }
30070 {
30071 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
30072 if (PyErr_Occurred()) SWIG_fail;
30073 }
30074 resultobj = SWIG_Py_Void();
30075 {
30076 if (temp2)
30077 delete arg2;
30078 }
30079 return resultobj;
30080 fail:
30081 {
30082 if (temp2)
30083 delete arg2;
30084 }
30085 return NULL;
30086 }
30087
30088
30089 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30090 PyObject *resultobj = 0;
30091 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30092 wxString *arg2 = 0 ;
30093 wxDouble *arg3 = (wxDouble *) 0 ;
30094 wxDouble *arg4 = (wxDouble *) 0 ;
30095 wxDouble *arg5 = (wxDouble *) 0 ;
30096 wxDouble *arg6 = (wxDouble *) 0 ;
30097 void *argp1 = 0 ;
30098 int res1 = 0 ;
30099 bool temp2 = false ;
30100 wxDouble temp3 ;
30101 int res3 = SWIG_TMPOBJ ;
30102 wxDouble temp4 ;
30103 int res4 = SWIG_TMPOBJ ;
30104 wxDouble temp5 ;
30105 int res5 = SWIG_TMPOBJ ;
30106 wxDouble temp6 ;
30107 int res6 = SWIG_TMPOBJ ;
30108 PyObject * obj0 = 0 ;
30109 PyObject * obj1 = 0 ;
30110 char * kwnames[] = {
30111 (char *) "self",(char *) "text", NULL
30112 };
30113
30114 arg3 = &temp3;
30115 arg4 = &temp4;
30116 arg5 = &temp5;
30117 arg6 = &temp6;
30118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
30119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30120 if (!SWIG_IsOK(res1)) {
30121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
30122 }
30123 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30124 {
30125 arg2 = wxString_in_helper(obj1);
30126 if (arg2 == NULL) SWIG_fail;
30127 temp2 = true;
30128 }
30129 {
30130 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
30131 if (PyErr_Occurred()) SWIG_fail;
30132 }
30133 resultobj = SWIG_Py_Void();
30134 if (SWIG_IsTmpObj(res3)) {
30135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
30136 } else {
30137 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
30139 }
30140 if (SWIG_IsTmpObj(res4)) {
30141 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
30142 } else {
30143 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
30145 }
30146 if (SWIG_IsTmpObj(res5)) {
30147 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
30148 } else {
30149 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30150 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
30151 }
30152 if (SWIG_IsTmpObj(res6)) {
30153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
30154 } else {
30155 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
30157 }
30158 {
30159 if (temp2)
30160 delete arg2;
30161 }
30162 return resultobj;
30163 fail:
30164 {
30165 if (temp2)
30166 delete arg2;
30167 }
30168 return NULL;
30169 }
30170
30171
30172 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30173 PyObject *resultobj = 0;
30174 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30175 wxString *arg2 = 0 ;
30176 PyObject *result = 0 ;
30177 void *argp1 = 0 ;
30178 int res1 = 0 ;
30179 bool temp2 = false ;
30180 PyObject * obj0 = 0 ;
30181 PyObject * obj1 = 0 ;
30182 char * kwnames[] = {
30183 (char *) "self",(char *) "text", NULL
30184 };
30185
30186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
30187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30188 if (!SWIG_IsOK(res1)) {
30189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30190 }
30191 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30192 {
30193 arg2 = wxString_in_helper(obj1);
30194 if (arg2 == NULL) SWIG_fail;
30195 temp2 = true;
30196 }
30197 {
30198 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
30199 if (PyErr_Occurred()) SWIG_fail;
30200 }
30201 resultobj = result;
30202 {
30203 if (temp2)
30204 delete arg2;
30205 }
30206 return resultobj;
30207 fail:
30208 {
30209 if (temp2)
30210 delete arg2;
30211 }
30212 return NULL;
30213 }
30214
30215
30216 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30217 PyObject *resultobj = 0;
30218 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30219 wxString *arg2 = 0 ;
30220 wxArrayDouble result;
30221 void *argp1 = 0 ;
30222 int res1 = 0 ;
30223 bool temp2 = false ;
30224 PyObject * obj0 = 0 ;
30225 PyObject * obj1 = 0 ;
30226 char * kwnames[] = {
30227 (char *) "self",(char *) "text", NULL
30228 };
30229
30230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
30231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30232 if (!SWIG_IsOK(res1)) {
30233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30234 }
30235 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30236 {
30237 arg2 = wxString_in_helper(obj1);
30238 if (arg2 == NULL) SWIG_fail;
30239 temp2 = true;
30240 }
30241 {
30242 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
30243 if (PyErr_Occurred()) SWIG_fail;
30244 }
30245 {
30246 resultobj = wxArrayDouble2PyList_helper(result);
30247 }
30248 {
30249 if (temp2)
30250 delete arg2;
30251 }
30252 return resultobj;
30253 fail:
30254 {
30255 if (temp2)
30256 delete arg2;
30257 }
30258 return NULL;
30259 }
30260
30261
30262 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30263 PyObject *resultobj = 0;
30264 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30265 wxBitmap *arg2 = 0 ;
30266 wxDouble arg3 ;
30267 wxDouble arg4 ;
30268 wxDouble arg5 ;
30269 wxDouble arg6 ;
30270 void *argp1 = 0 ;
30271 int res1 = 0 ;
30272 void *argp2 = 0 ;
30273 int res2 = 0 ;
30274 double val3 ;
30275 int ecode3 = 0 ;
30276 double val4 ;
30277 int ecode4 = 0 ;
30278 double val5 ;
30279 int ecode5 = 0 ;
30280 double val6 ;
30281 int ecode6 = 0 ;
30282 PyObject * obj0 = 0 ;
30283 PyObject * obj1 = 0 ;
30284 PyObject * obj2 = 0 ;
30285 PyObject * obj3 = 0 ;
30286 PyObject * obj4 = 0 ;
30287 PyObject * obj5 = 0 ;
30288 char * kwnames[] = {
30289 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30290 };
30291
30292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30294 if (!SWIG_IsOK(res1)) {
30295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30296 }
30297 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30299 if (!SWIG_IsOK(res2)) {
30300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30301 }
30302 if (!argp2) {
30303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30304 }
30305 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30306 ecode3 = SWIG_AsVal_double(obj2, &val3);
30307 if (!SWIG_IsOK(ecode3)) {
30308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
30309 }
30310 arg3 = static_cast< wxDouble >(val3);
30311 ecode4 = SWIG_AsVal_double(obj3, &val4);
30312 if (!SWIG_IsOK(ecode4)) {
30313 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
30314 }
30315 arg4 = static_cast< wxDouble >(val4);
30316 ecode5 = SWIG_AsVal_double(obj4, &val5);
30317 if (!SWIG_IsOK(ecode5)) {
30318 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
30319 }
30320 arg5 = static_cast< wxDouble >(val5);
30321 ecode6 = SWIG_AsVal_double(obj5, &val6);
30322 if (!SWIG_IsOK(ecode6)) {
30323 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
30324 }
30325 arg6 = static_cast< wxDouble >(val6);
30326 {
30327 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
30328 if (PyErr_Occurred()) SWIG_fail;
30329 }
30330 resultobj = SWIG_Py_Void();
30331 return resultobj;
30332 fail:
30333 return NULL;
30334 }
30335
30336
30337 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30338 PyObject *resultobj = 0;
30339 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30340 wxIcon *arg2 = 0 ;
30341 wxDouble arg3 ;
30342 wxDouble arg4 ;
30343 wxDouble arg5 ;
30344 wxDouble arg6 ;
30345 void *argp1 = 0 ;
30346 int res1 = 0 ;
30347 void *argp2 = 0 ;
30348 int res2 = 0 ;
30349 double val3 ;
30350 int ecode3 = 0 ;
30351 double val4 ;
30352 int ecode4 = 0 ;
30353 double val5 ;
30354 int ecode5 = 0 ;
30355 double val6 ;
30356 int ecode6 = 0 ;
30357 PyObject * obj0 = 0 ;
30358 PyObject * obj1 = 0 ;
30359 PyObject * obj2 = 0 ;
30360 PyObject * obj3 = 0 ;
30361 PyObject * obj4 = 0 ;
30362 PyObject * obj5 = 0 ;
30363 char * kwnames[] = {
30364 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30365 };
30366
30367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30369 if (!SWIG_IsOK(res1)) {
30370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30371 }
30372 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30373 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30374 if (!SWIG_IsOK(res2)) {
30375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30376 }
30377 if (!argp2) {
30378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30379 }
30380 arg2 = reinterpret_cast< wxIcon * >(argp2);
30381 ecode3 = SWIG_AsVal_double(obj2, &val3);
30382 if (!SWIG_IsOK(ecode3)) {
30383 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
30384 }
30385 arg3 = static_cast< wxDouble >(val3);
30386 ecode4 = SWIG_AsVal_double(obj3, &val4);
30387 if (!SWIG_IsOK(ecode4)) {
30388 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
30389 }
30390 arg4 = static_cast< wxDouble >(val4);
30391 ecode5 = SWIG_AsVal_double(obj4, &val5);
30392 if (!SWIG_IsOK(ecode5)) {
30393 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
30394 }
30395 arg5 = static_cast< wxDouble >(val5);
30396 ecode6 = SWIG_AsVal_double(obj5, &val6);
30397 if (!SWIG_IsOK(ecode6)) {
30398 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
30399 }
30400 arg6 = static_cast< wxDouble >(val6);
30401 {
30402 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
30403 if (PyErr_Occurred()) SWIG_fail;
30404 }
30405 resultobj = SWIG_Py_Void();
30406 return resultobj;
30407 fail:
30408 return NULL;
30409 }
30410
30411
30412 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30413 PyObject *resultobj = 0;
30414 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30415 wxDouble arg2 ;
30416 wxDouble arg3 ;
30417 wxDouble arg4 ;
30418 wxDouble arg5 ;
30419 void *argp1 = 0 ;
30420 int res1 = 0 ;
30421 double val2 ;
30422 int ecode2 = 0 ;
30423 double val3 ;
30424 int ecode3 = 0 ;
30425 double val4 ;
30426 int ecode4 = 0 ;
30427 double val5 ;
30428 int ecode5 = 0 ;
30429 PyObject * obj0 = 0 ;
30430 PyObject * obj1 = 0 ;
30431 PyObject * obj2 = 0 ;
30432 PyObject * obj3 = 0 ;
30433 PyObject * obj4 = 0 ;
30434 char * kwnames[] = {
30435 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
30436 };
30437
30438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30440 if (!SWIG_IsOK(res1)) {
30441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30442 }
30443 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30444 ecode2 = SWIG_AsVal_double(obj1, &val2);
30445 if (!SWIG_IsOK(ecode2)) {
30446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
30447 }
30448 arg2 = static_cast< wxDouble >(val2);
30449 ecode3 = SWIG_AsVal_double(obj2, &val3);
30450 if (!SWIG_IsOK(ecode3)) {
30451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
30452 }
30453 arg3 = static_cast< wxDouble >(val3);
30454 ecode4 = SWIG_AsVal_double(obj3, &val4);
30455 if (!SWIG_IsOK(ecode4)) {
30456 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
30457 }
30458 arg4 = static_cast< wxDouble >(val4);
30459 ecode5 = SWIG_AsVal_double(obj4, &val5);
30460 if (!SWIG_IsOK(ecode5)) {
30461 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
30462 }
30463 arg5 = static_cast< wxDouble >(val5);
30464 {
30465 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
30466 if (PyErr_Occurred()) SWIG_fail;
30467 }
30468 resultobj = SWIG_Py_Void();
30469 return resultobj;
30470 fail:
30471 return NULL;
30472 }
30473
30474
30475 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30476 PyObject *resultobj = 0;
30477 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30478 size_t arg2 ;
30479 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30480 void *argp1 = 0 ;
30481 int res1 = 0 ;
30482 PyObject * obj0 = 0 ;
30483 PyObject * obj1 = 0 ;
30484 char * kwnames[] = {
30485 (char *) "self",(char *) "points", NULL
30486 };
30487
30488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
30489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30490 if (!SWIG_IsOK(res1)) {
30491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30492 }
30493 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30494 {
30495 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30496 if (arg3 == NULL) SWIG_fail;
30497 }
30498 {
30499 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
30500 if (PyErr_Occurred()) SWIG_fail;
30501 }
30502 resultobj = SWIG_Py_Void();
30503 {
30504 if (arg3) delete [] arg3;
30505 }
30506 return resultobj;
30507 fail:
30508 {
30509 if (arg3) delete [] arg3;
30510 }
30511 return NULL;
30512 }
30513
30514
30515 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30516 PyObject *resultobj = 0;
30517 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30518 PyObject *arg2 = (PyObject *) 0 ;
30519 PyObject *arg3 = (PyObject *) 0 ;
30520 void *argp1 = 0 ;
30521 int res1 = 0 ;
30522 PyObject * obj0 = 0 ;
30523 PyObject * obj1 = 0 ;
30524 PyObject * obj2 = 0 ;
30525 char * kwnames[] = {
30526 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30527 };
30528
30529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30531 if (!SWIG_IsOK(res1)) {
30532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30533 }
30534 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30535 arg2 = obj1;
30536 arg3 = obj2;
30537 {
30538 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30539 if (PyErr_Occurred()) SWIG_fail;
30540 }
30541 resultobj = SWIG_Py_Void();
30542 return resultobj;
30543 fail:
30544 return NULL;
30545 }
30546
30547
30548 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30549 PyObject *resultobj = 0;
30550 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30551 size_t arg2 ;
30552 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30553 int arg4 = (int) wxODDEVEN_RULE ;
30554 void *argp1 = 0 ;
30555 int res1 = 0 ;
30556 int val4 ;
30557 int ecode4 = 0 ;
30558 PyObject * obj0 = 0 ;
30559 PyObject * obj1 = 0 ;
30560 PyObject * obj2 = 0 ;
30561 char * kwnames[] = {
30562 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
30563 };
30564
30565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30567 if (!SWIG_IsOK(res1)) {
30568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30569 }
30570 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30571 {
30572 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30573 if (arg3 == NULL) SWIG_fail;
30574 }
30575 if (obj2) {
30576 ecode4 = SWIG_AsVal_int(obj2, &val4);
30577 if (!SWIG_IsOK(ecode4)) {
30578 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
30579 }
30580 arg4 = static_cast< int >(val4);
30581 }
30582 {
30583 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
30584 if (PyErr_Occurred()) SWIG_fail;
30585 }
30586 resultobj = SWIG_Py_Void();
30587 {
30588 if (arg3) delete [] arg3;
30589 }
30590 return resultobj;
30591 fail:
30592 {
30593 if (arg3) delete [] arg3;
30594 }
30595 return NULL;
30596 }
30597
30598
30599 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30600 PyObject *resultobj = 0;
30601 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30602 wxDouble arg2 ;
30603 wxDouble arg3 ;
30604 wxDouble arg4 ;
30605 wxDouble arg5 ;
30606 void *argp1 = 0 ;
30607 int res1 = 0 ;
30608 double val2 ;
30609 int ecode2 = 0 ;
30610 double val3 ;
30611 int ecode3 = 0 ;
30612 double val4 ;
30613 int ecode4 = 0 ;
30614 double val5 ;
30615 int ecode5 = 0 ;
30616 PyObject * obj0 = 0 ;
30617 PyObject * obj1 = 0 ;
30618 PyObject * obj2 = 0 ;
30619 PyObject * obj3 = 0 ;
30620 PyObject * obj4 = 0 ;
30621 char * kwnames[] = {
30622 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30623 };
30624
30625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30627 if (!SWIG_IsOK(res1)) {
30628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30629 }
30630 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30631 ecode2 = SWIG_AsVal_double(obj1, &val2);
30632 if (!SWIG_IsOK(ecode2)) {
30633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30634 }
30635 arg2 = static_cast< wxDouble >(val2);
30636 ecode3 = SWIG_AsVal_double(obj2, &val3);
30637 if (!SWIG_IsOK(ecode3)) {
30638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30639 }
30640 arg3 = static_cast< wxDouble >(val3);
30641 ecode4 = SWIG_AsVal_double(obj3, &val4);
30642 if (!SWIG_IsOK(ecode4)) {
30643 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30644 }
30645 arg4 = static_cast< wxDouble >(val4);
30646 ecode5 = SWIG_AsVal_double(obj4, &val5);
30647 if (!SWIG_IsOK(ecode5)) {
30648 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30649 }
30650 arg5 = static_cast< wxDouble >(val5);
30651 {
30652 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30653 if (PyErr_Occurred()) SWIG_fail;
30654 }
30655 resultobj = SWIG_Py_Void();
30656 return resultobj;
30657 fail:
30658 return NULL;
30659 }
30660
30661
30662 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30663 PyObject *resultobj = 0;
30664 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30665 wxDouble arg2 ;
30666 wxDouble arg3 ;
30667 wxDouble arg4 ;
30668 wxDouble arg5 ;
30669 void *argp1 = 0 ;
30670 int res1 = 0 ;
30671 double val2 ;
30672 int ecode2 = 0 ;
30673 double val3 ;
30674 int ecode3 = 0 ;
30675 double val4 ;
30676 int ecode4 = 0 ;
30677 double val5 ;
30678 int ecode5 = 0 ;
30679 PyObject * obj0 = 0 ;
30680 PyObject * obj1 = 0 ;
30681 PyObject * obj2 = 0 ;
30682 PyObject * obj3 = 0 ;
30683 PyObject * obj4 = 0 ;
30684 char * kwnames[] = {
30685 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30686 };
30687
30688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30690 if (!SWIG_IsOK(res1)) {
30691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30692 }
30693 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30694 ecode2 = SWIG_AsVal_double(obj1, &val2);
30695 if (!SWIG_IsOK(ecode2)) {
30696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30697 }
30698 arg2 = static_cast< wxDouble >(val2);
30699 ecode3 = SWIG_AsVal_double(obj2, &val3);
30700 if (!SWIG_IsOK(ecode3)) {
30701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
30702 }
30703 arg3 = static_cast< wxDouble >(val3);
30704 ecode4 = SWIG_AsVal_double(obj3, &val4);
30705 if (!SWIG_IsOK(ecode4)) {
30706 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
30707 }
30708 arg4 = static_cast< wxDouble >(val4);
30709 ecode5 = SWIG_AsVal_double(obj4, &val5);
30710 if (!SWIG_IsOK(ecode5)) {
30711 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
30712 }
30713 arg5 = static_cast< wxDouble >(val5);
30714 {
30715 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
30716 if (PyErr_Occurred()) SWIG_fail;
30717 }
30718 resultobj = SWIG_Py_Void();
30719 return resultobj;
30720 fail:
30721 return NULL;
30722 }
30723
30724
30725 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30726 PyObject *resultobj = 0;
30727 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30728 wxDouble arg2 ;
30729 wxDouble arg3 ;
30730 wxDouble arg4 ;
30731 wxDouble arg5 ;
30732 wxDouble arg6 ;
30733 void *argp1 = 0 ;
30734 int res1 = 0 ;
30735 double val2 ;
30736 int ecode2 = 0 ;
30737 double val3 ;
30738 int ecode3 = 0 ;
30739 double val4 ;
30740 int ecode4 = 0 ;
30741 double val5 ;
30742 int ecode5 = 0 ;
30743 double val6 ;
30744 int ecode6 = 0 ;
30745 PyObject * obj0 = 0 ;
30746 PyObject * obj1 = 0 ;
30747 PyObject * obj2 = 0 ;
30748 PyObject * obj3 = 0 ;
30749 PyObject * obj4 = 0 ;
30750 PyObject * obj5 = 0 ;
30751 char * kwnames[] = {
30752 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
30753 };
30754
30755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30757 if (!SWIG_IsOK(res1)) {
30758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30759 }
30760 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30761 ecode2 = SWIG_AsVal_double(obj1, &val2);
30762 if (!SWIG_IsOK(ecode2)) {
30763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30764 }
30765 arg2 = static_cast< wxDouble >(val2);
30766 ecode3 = SWIG_AsVal_double(obj2, &val3);
30767 if (!SWIG_IsOK(ecode3)) {
30768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30769 }
30770 arg3 = static_cast< wxDouble >(val3);
30771 ecode4 = SWIG_AsVal_double(obj3, &val4);
30772 if (!SWIG_IsOK(ecode4)) {
30773 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30774 }
30775 arg4 = static_cast< wxDouble >(val4);
30776 ecode5 = SWIG_AsVal_double(obj4, &val5);
30777 if (!SWIG_IsOK(ecode5)) {
30778 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30779 }
30780 arg5 = static_cast< wxDouble >(val5);
30781 ecode6 = SWIG_AsVal_double(obj5, &val6);
30782 if (!SWIG_IsOK(ecode6)) {
30783 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30784 }
30785 arg6 = static_cast< wxDouble >(val6);
30786 {
30787 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
30788 if (PyErr_Occurred()) SWIG_fail;
30789 }
30790 resultobj = SWIG_Py_Void();
30791 return resultobj;
30792 fail:
30793 return NULL;
30794 }
30795
30796
30797 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30798 PyObject *resultobj = 0;
30799 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30800 bool result;
30801 void *argp1 = 0 ;
30802 int res1 = 0 ;
30803 PyObject *swig_obj[1] ;
30804
30805 if (!args) SWIG_fail;
30806 swig_obj[0] = args;
30807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30808 if (!SWIG_IsOK(res1)) {
30809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
30810 }
30811 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30812 {
30813 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30814 if (PyErr_Occurred()) SWIG_fail;
30815 }
30816 {
30817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30818 }
30819 return resultobj;
30820 fail:
30821 return NULL;
30822 }
30823
30824
30825 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30826 PyObject *obj;
30827 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30828 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30829 return SWIG_Py_Void();
30830 }
30831
30832 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30833 PyObject *resultobj = 0;
30834 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30835 void *argp1 = 0 ;
30836 int res1 = 0 ;
30837 PyObject *swig_obj[1] ;
30838
30839 if (!args) SWIG_fail;
30840 swig_obj[0] = args;
30841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30842 if (!SWIG_IsOK(res1)) {
30843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30844 }
30845 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30846 {
30847 delete arg1;
30848
30849 if (PyErr_Occurred()) SWIG_fail;
30850 }
30851 resultobj = SWIG_Py_Void();
30852 return resultobj;
30853 fail:
30854 return NULL;
30855 }
30856
30857
30858 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30859 PyObject *resultobj = 0;
30860 wxGraphicsRenderer *result = 0 ;
30861
30862 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
30863 {
30864 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30865 if (PyErr_Occurred()) SWIG_fail;
30866 }
30867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30868 return resultobj;
30869 fail:
30870 return NULL;
30871 }
30872
30873
30874 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30875 PyObject *resultobj = 0;
30876 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30877 wxWindowDC *arg2 = 0 ;
30878 wxGraphicsContext *result = 0 ;
30879 void *argp1 = 0 ;
30880 int res1 = 0 ;
30881 void *argp2 = 0 ;
30882 int res2 = 0 ;
30883
30884 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30886 if (!SWIG_IsOK(res1)) {
30887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30888 }
30889 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30890 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30891 if (!SWIG_IsOK(res2)) {
30892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30893 }
30894 if (!argp2) {
30895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30896 }
30897 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30898 {
30899 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30900 if (PyErr_Occurred()) SWIG_fail;
30901 }
30902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30903 return resultobj;
30904 fail:
30905 return NULL;
30906 }
30907
30908
30909 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30910 PyObject *resultobj = 0;
30911 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30912 wxWindow *arg2 = (wxWindow *) 0 ;
30913 wxGraphicsContext *result = 0 ;
30914 void *argp1 = 0 ;
30915 int res1 = 0 ;
30916 void *argp2 = 0 ;
30917 int res2 = 0 ;
30918
30919 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30921 if (!SWIG_IsOK(res1)) {
30922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30923 }
30924 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30925 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30926 if (!SWIG_IsOK(res2)) {
30927 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30928 }
30929 arg2 = reinterpret_cast< wxWindow * >(argp2);
30930 {
30931 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30932 if (PyErr_Occurred()) SWIG_fail;
30933 }
30934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30935 return resultobj;
30936 fail:
30937 return NULL;
30938 }
30939
30940
30941 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30942 int argc;
30943 PyObject *argv[3];
30944
30945 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30946 --argc;
30947 if (argc == 2) {
30948 int _v = 0;
30949 {
30950 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30951 _v = SWIG_CheckState(res);
30952 }
30953 if (!_v) goto check_1;
30954 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30955 }
30956 check_1:
30957
30958 if (argc == 2) {
30959 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30960 }
30961
30962 fail:
30963 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30964 return NULL;
30965 }
30966
30967
30968 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30969 PyObject *resultobj = 0;
30970 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30971 wxGraphicsContext *result = 0 ;
30972 void *argp1 = 0 ;
30973 int res1 = 0 ;
30974 PyObject *swig_obj[1] ;
30975
30976 if (!args) SWIG_fail;
30977 swig_obj[0] = args;
30978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30979 if (!SWIG_IsOK(res1)) {
30980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30981 }
30982 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30983 {
30984 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30985 if (PyErr_Occurred()) SWIG_fail;
30986 }
30987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30988 return resultobj;
30989 fail:
30990 return NULL;
30991 }
30992
30993
30994 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30995 PyObject *resultobj = 0;
30996 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30997 void *arg2 = (void *) 0 ;
30998 wxGraphicsContext *result = 0 ;
30999 void *argp1 = 0 ;
31000 int res1 = 0 ;
31001 int res2 ;
31002 PyObject * obj0 = 0 ;
31003 PyObject * obj1 = 0 ;
31004 char * kwnames[] = {
31005 (char *) "self",(char *) "context", NULL
31006 };
31007
31008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
31009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31010 if (!SWIG_IsOK(res1)) {
31011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31012 }
31013 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31014 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
31015 if (!SWIG_IsOK(res2)) {
31016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
31017 }
31018 {
31019 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
31020 if (PyErr_Occurred()) SWIG_fail;
31021 }
31022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
31023 return resultobj;
31024 fail:
31025 return NULL;
31026 }
31027
31028
31029 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31030 PyObject *resultobj = 0;
31031 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31032 void *arg2 = (void *) 0 ;
31033 wxGraphicsContext *result = 0 ;
31034 void *argp1 = 0 ;
31035 int res1 = 0 ;
31036 int res2 ;
31037 PyObject * obj0 = 0 ;
31038 PyObject * obj1 = 0 ;
31039 char * kwnames[] = {
31040 (char *) "self",(char *) "window", NULL
31041 };
31042
31043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
31044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31045 if (!SWIG_IsOK(res1)) {
31046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31047 }
31048 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31049 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
31050 if (!SWIG_IsOK(res2)) {
31051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
31052 }
31053 {
31054 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
31055 if (PyErr_Occurred()) SWIG_fail;
31056 }
31057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
31058 return resultobj;
31059 fail:
31060 return NULL;
31061 }
31062
31063
31064 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31065 PyObject *resultobj = 0;
31066 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31067 wxGraphicsPath result;
31068 void *argp1 = 0 ;
31069 int res1 = 0 ;
31070 PyObject *swig_obj[1] ;
31071
31072 if (!args) SWIG_fail;
31073 swig_obj[0] = args;
31074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31075 if (!SWIG_IsOK(res1)) {
31076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31077 }
31078 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31079 {
31080 result = (arg1)->CreatePath();
31081 if (PyErr_Occurred()) SWIG_fail;
31082 }
31083 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
31084 return resultobj;
31085 fail:
31086 return NULL;
31087 }
31088
31089
31090 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31091 PyObject *resultobj = 0;
31092 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31093 wxDouble arg2 = (wxDouble) 1.0 ;
31094 wxDouble arg3 = (wxDouble) 0.0 ;
31095 wxDouble arg4 = (wxDouble) 0.0 ;
31096 wxDouble arg5 = (wxDouble) 1.0 ;
31097 wxDouble arg6 = (wxDouble) 0.0 ;
31098 wxDouble arg7 = (wxDouble) 0.0 ;
31099 wxGraphicsMatrix result;
31100 void *argp1 = 0 ;
31101 int res1 = 0 ;
31102 double val2 ;
31103 int ecode2 = 0 ;
31104 double val3 ;
31105 int ecode3 = 0 ;
31106 double val4 ;
31107 int ecode4 = 0 ;
31108 double val5 ;
31109 int ecode5 = 0 ;
31110 double val6 ;
31111 int ecode6 = 0 ;
31112 double val7 ;
31113 int ecode7 = 0 ;
31114 PyObject * obj0 = 0 ;
31115 PyObject * obj1 = 0 ;
31116 PyObject * obj2 = 0 ;
31117 PyObject * obj3 = 0 ;
31118 PyObject * obj4 = 0 ;
31119 PyObject * obj5 = 0 ;
31120 PyObject * obj6 = 0 ;
31121 char * kwnames[] = {
31122 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
31123 };
31124
31125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31127 if (!SWIG_IsOK(res1)) {
31128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31129 }
31130 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31131 if (obj1) {
31132 ecode2 = SWIG_AsVal_double(obj1, &val2);
31133 if (!SWIG_IsOK(ecode2)) {
31134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
31135 }
31136 arg2 = static_cast< wxDouble >(val2);
31137 }
31138 if (obj2) {
31139 ecode3 = SWIG_AsVal_double(obj2, &val3);
31140 if (!SWIG_IsOK(ecode3)) {
31141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
31142 }
31143 arg3 = static_cast< wxDouble >(val3);
31144 }
31145 if (obj3) {
31146 ecode4 = SWIG_AsVal_double(obj3, &val4);
31147 if (!SWIG_IsOK(ecode4)) {
31148 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
31149 }
31150 arg4 = static_cast< wxDouble >(val4);
31151 }
31152 if (obj4) {
31153 ecode5 = SWIG_AsVal_double(obj4, &val5);
31154 if (!SWIG_IsOK(ecode5)) {
31155 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
31156 }
31157 arg5 = static_cast< wxDouble >(val5);
31158 }
31159 if (obj5) {
31160 ecode6 = SWIG_AsVal_double(obj5, &val6);
31161 if (!SWIG_IsOK(ecode6)) {
31162 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
31163 }
31164 arg6 = static_cast< wxDouble >(val6);
31165 }
31166 if (obj6) {
31167 ecode7 = SWIG_AsVal_double(obj6, &val7);
31168 if (!SWIG_IsOK(ecode7)) {
31169 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
31170 }
31171 arg7 = static_cast< wxDouble >(val7);
31172 }
31173 {
31174 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
31175 if (PyErr_Occurred()) SWIG_fail;
31176 }
31177 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
31178 return resultobj;
31179 fail:
31180 return NULL;
31181 }
31182
31183
31184 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31185 PyObject *resultobj = 0;
31186 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31187 wxPen *arg2 = 0 ;
31188 wxGraphicsPen result;
31189 void *argp1 = 0 ;
31190 int res1 = 0 ;
31191 void *argp2 = 0 ;
31192 int res2 = 0 ;
31193 PyObject * obj0 = 0 ;
31194 PyObject * obj1 = 0 ;
31195 char * kwnames[] = {
31196 (char *) "self",(char *) "pen", NULL
31197 };
31198
31199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
31200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31201 if (!SWIG_IsOK(res1)) {
31202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31203 }
31204 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31205 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
31206 if (!SWIG_IsOK(res2)) {
31207 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31208 }
31209 if (!argp2) {
31210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31211 }
31212 arg2 = reinterpret_cast< wxPen * >(argp2);
31213 {
31214 result = (arg1)->CreatePen((wxPen const &)*arg2);
31215 if (PyErr_Occurred()) SWIG_fail;
31216 }
31217 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
31218 return resultobj;
31219 fail:
31220 return NULL;
31221 }
31222
31223
31224 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31225 PyObject *resultobj = 0;
31226 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31227 wxBrush *arg2 = 0 ;
31228 wxGraphicsBrush result;
31229 void *argp1 = 0 ;
31230 int res1 = 0 ;
31231 void *argp2 = 0 ;
31232 int res2 = 0 ;
31233 PyObject * obj0 = 0 ;
31234 PyObject * obj1 = 0 ;
31235 char * kwnames[] = {
31236 (char *) "self",(char *) "brush", NULL
31237 };
31238
31239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31241 if (!SWIG_IsOK(res1)) {
31242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31243 }
31244 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31245 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31246 if (!SWIG_IsOK(res2)) {
31247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31248 }
31249 if (!argp2) {
31250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31251 }
31252 arg2 = reinterpret_cast< wxBrush * >(argp2);
31253 {
31254 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
31255 if (PyErr_Occurred()) SWIG_fail;
31256 }
31257 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31258 return resultobj;
31259 fail:
31260 return NULL;
31261 }
31262
31263
31264 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31265 PyObject *resultobj = 0;
31266 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31267 wxDouble arg2 ;
31268 wxDouble arg3 ;
31269 wxDouble arg4 ;
31270 wxDouble arg5 ;
31271 wxColour *arg6 = 0 ;
31272 wxColour *arg7 = 0 ;
31273 wxGraphicsBrush result;
31274 void *argp1 = 0 ;
31275 int res1 = 0 ;
31276 double val2 ;
31277 int ecode2 = 0 ;
31278 double val3 ;
31279 int ecode3 = 0 ;
31280 double val4 ;
31281 int ecode4 = 0 ;
31282 double val5 ;
31283 int ecode5 = 0 ;
31284 wxColour temp6 ;
31285 wxColour temp7 ;
31286 PyObject * obj0 = 0 ;
31287 PyObject * obj1 = 0 ;
31288 PyObject * obj2 = 0 ;
31289 PyObject * obj3 = 0 ;
31290 PyObject * obj4 = 0 ;
31291 PyObject * obj5 = 0 ;
31292 PyObject * obj6 = 0 ;
31293 char * kwnames[] = {
31294 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
31295 };
31296
31297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31299 if (!SWIG_IsOK(res1)) {
31300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31301 }
31302 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31303 ecode2 = SWIG_AsVal_double(obj1, &val2);
31304 if (!SWIG_IsOK(ecode2)) {
31305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31306 }
31307 arg2 = static_cast< wxDouble >(val2);
31308 ecode3 = SWIG_AsVal_double(obj2, &val3);
31309 if (!SWIG_IsOK(ecode3)) {
31310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31311 }
31312 arg3 = static_cast< wxDouble >(val3);
31313 ecode4 = SWIG_AsVal_double(obj3, &val4);
31314 if (!SWIG_IsOK(ecode4)) {
31315 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31316 }
31317 arg4 = static_cast< wxDouble >(val4);
31318 ecode5 = SWIG_AsVal_double(obj4, &val5);
31319 if (!SWIG_IsOK(ecode5)) {
31320 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31321 }
31322 arg5 = static_cast< wxDouble >(val5);
31323 {
31324 arg6 = &temp6;
31325 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
31326 }
31327 {
31328 arg7 = &temp7;
31329 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31330 }
31331 {
31332 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
31333 if (PyErr_Occurred()) SWIG_fail;
31334 }
31335 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31336 return resultobj;
31337 fail:
31338 return NULL;
31339 }
31340
31341
31342 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31343 PyObject *resultobj = 0;
31344 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31345 wxDouble arg2 ;
31346 wxDouble arg3 ;
31347 wxDouble arg4 ;
31348 wxDouble arg5 ;
31349 wxDouble arg6 ;
31350 wxColour *arg7 = 0 ;
31351 wxColour *arg8 = 0 ;
31352 wxGraphicsBrush result;
31353 void *argp1 = 0 ;
31354 int res1 = 0 ;
31355 double val2 ;
31356 int ecode2 = 0 ;
31357 double val3 ;
31358 int ecode3 = 0 ;
31359 double val4 ;
31360 int ecode4 = 0 ;
31361 double val5 ;
31362 int ecode5 = 0 ;
31363 double val6 ;
31364 int ecode6 = 0 ;
31365 wxColour temp7 ;
31366 wxColour temp8 ;
31367 PyObject * obj0 = 0 ;
31368 PyObject * obj1 = 0 ;
31369 PyObject * obj2 = 0 ;
31370 PyObject * obj3 = 0 ;
31371 PyObject * obj4 = 0 ;
31372 PyObject * obj5 = 0 ;
31373 PyObject * obj6 = 0 ;
31374 PyObject * obj7 = 0 ;
31375 char * kwnames[] = {
31376 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
31377 };
31378
31379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31381 if (!SWIG_IsOK(res1)) {
31382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31383 }
31384 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31385 ecode2 = SWIG_AsVal_double(obj1, &val2);
31386 if (!SWIG_IsOK(ecode2)) {
31387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31388 }
31389 arg2 = static_cast< wxDouble >(val2);
31390 ecode3 = SWIG_AsVal_double(obj2, &val3);
31391 if (!SWIG_IsOK(ecode3)) {
31392 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31393 }
31394 arg3 = static_cast< wxDouble >(val3);
31395 ecode4 = SWIG_AsVal_double(obj3, &val4);
31396 if (!SWIG_IsOK(ecode4)) {
31397 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31398 }
31399 arg4 = static_cast< wxDouble >(val4);
31400 ecode5 = SWIG_AsVal_double(obj4, &val5);
31401 if (!SWIG_IsOK(ecode5)) {
31402 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31403 }
31404 arg5 = static_cast< wxDouble >(val5);
31405 ecode6 = SWIG_AsVal_double(obj5, &val6);
31406 if (!SWIG_IsOK(ecode6)) {
31407 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
31408 }
31409 arg6 = static_cast< wxDouble >(val6);
31410 {
31411 arg7 = &temp7;
31412 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31413 }
31414 {
31415 arg8 = &temp8;
31416 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
31417 }
31418 {
31419 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
31420 if (PyErr_Occurred()) SWIG_fail;
31421 }
31422 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31423 return resultobj;
31424 fail:
31425 return NULL;
31426 }
31427
31428
31429 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31430 PyObject *resultobj = 0;
31431 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31432 wxFont *arg2 = 0 ;
31433 wxColour const &arg3_defvalue = *wxBLACK ;
31434 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
31435 wxGraphicsFont result;
31436 void *argp1 = 0 ;
31437 int res1 = 0 ;
31438 void *argp2 = 0 ;
31439 int res2 = 0 ;
31440 wxColour temp3 ;
31441 PyObject * obj0 = 0 ;
31442 PyObject * obj1 = 0 ;
31443 PyObject * obj2 = 0 ;
31444 char * kwnames[] = {
31445 (char *) "self",(char *) "font",(char *) "col", NULL
31446 };
31447
31448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31450 if (!SWIG_IsOK(res1)) {
31451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31452 }
31453 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31454 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31455 if (!SWIG_IsOK(res2)) {
31456 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31457 }
31458 if (!argp2) {
31459 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31460 }
31461 arg2 = reinterpret_cast< wxFont * >(argp2);
31462 if (obj2) {
31463 {
31464 arg3 = &temp3;
31465 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31466 }
31467 }
31468 {
31469 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
31470 if (PyErr_Occurred()) SWIG_fail;
31471 }
31472 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
31473 return resultobj;
31474 fail:
31475 return NULL;
31476 }
31477
31478
31479 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31480 PyObject *obj;
31481 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31482 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
31483 return SWIG_Py_Void();
31484 }
31485
31486 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31487 PyObject *resultobj = 0;
31488 wxWindowDC *arg1 = 0 ;
31489 wxGCDC *result = 0 ;
31490 void *argp1 = 0 ;
31491 int res1 = 0 ;
31492
31493 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
31495 if (!SWIG_IsOK(res1)) {
31496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31497 }
31498 if (!argp1) {
31499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31500 }
31501 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
31502 {
31503 if (!wxPyCheckForApp()) SWIG_fail;
31504 PyThreadState* __tstate = wxPyBeginAllowThreads();
31505 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
31506 wxPyEndAllowThreads(__tstate);
31507 if (PyErr_Occurred()) SWIG_fail;
31508 }
31509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31510 return resultobj;
31511 fail:
31512 return NULL;
31513 }
31514
31515
31516 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31517 PyObject *resultobj = 0;
31518 wxWindow *arg1 = (wxWindow *) 0 ;
31519 wxGCDC *result = 0 ;
31520 void *argp1 = 0 ;
31521 int res1 = 0 ;
31522
31523 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31525 if (!SWIG_IsOK(res1)) {
31526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
31527 }
31528 arg1 = reinterpret_cast< wxWindow * >(argp1);
31529 {
31530 if (!wxPyCheckForApp()) SWIG_fail;
31531 PyThreadState* __tstate = wxPyBeginAllowThreads();
31532 result = (wxGCDC *)new wxGCDC(arg1);
31533 wxPyEndAllowThreads(__tstate);
31534 if (PyErr_Occurred()) SWIG_fail;
31535 }
31536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31537 return resultobj;
31538 fail:
31539 return NULL;
31540 }
31541
31542
31543 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
31544 int argc;
31545 PyObject *argv[2];
31546
31547 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
31548 --argc;
31549 if (argc == 1) {
31550 int _v = 0;
31551 {
31552 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
31553 _v = SWIG_CheckState(res);
31554 }
31555 if (!_v) goto check_1;
31556 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
31557 }
31558 check_1:
31559
31560 if (argc == 1) {
31561 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
31562 }
31563
31564 fail:
31565 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
31566 return NULL;
31567 }
31568
31569
31570 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31571 PyObject *resultobj = 0;
31572 wxGCDC *arg1 = (wxGCDC *) 0 ;
31573 void *argp1 = 0 ;
31574 int res1 = 0 ;
31575 PyObject *swig_obj[1] ;
31576
31577 if (!args) SWIG_fail;
31578 swig_obj[0] = args;
31579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
31580 if (!SWIG_IsOK(res1)) {
31581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
31582 }
31583 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31584 {
31585 delete arg1;
31586
31587 if (PyErr_Occurred()) SWIG_fail;
31588 }
31589 resultobj = SWIG_Py_Void();
31590 return resultobj;
31591 fail:
31592 return NULL;
31593 }
31594
31595
31596 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31597 PyObject *resultobj = 0;
31598 wxGCDC *arg1 = (wxGCDC *) 0 ;
31599 wxGraphicsContext *result = 0 ;
31600 void *argp1 = 0 ;
31601 int res1 = 0 ;
31602 PyObject *swig_obj[1] ;
31603
31604 if (!args) SWIG_fail;
31605 swig_obj[0] = args;
31606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31607 if (!SWIG_IsOK(res1)) {
31608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31609 }
31610 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31611 {
31612 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
31613 if (PyErr_Occurred()) SWIG_fail;
31614 }
31615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31616 return resultobj;
31617 fail:
31618 return NULL;
31619 }
31620
31621
31622 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31623 PyObject *resultobj = 0;
31624 wxGCDC *arg1 = (wxGCDC *) 0 ;
31625 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
31626 void *argp1 = 0 ;
31627 int res1 = 0 ;
31628 void *argp2 = 0 ;
31629 int res2 = 0 ;
31630 PyObject * obj0 = 0 ;
31631 PyObject * obj1 = 0 ;
31632 char * kwnames[] = {
31633 (char *) "self",(char *) "ctx", NULL
31634 };
31635
31636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
31637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31638 if (!SWIG_IsOK(res1)) {
31639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31640 }
31641 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31642 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31643 if (!SWIG_IsOK(res2)) {
31644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
31645 }
31646 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
31647 {
31648 (arg1)->SetGraphicsContext(arg2);
31649 if (PyErr_Occurred()) SWIG_fail;
31650 }
31651 resultobj = SWIG_Py_Void();
31652 return resultobj;
31653 fail:
31654 return NULL;
31655 }
31656
31657
31658 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31659 PyObject *obj;
31660 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31661 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
31662 return SWIG_Py_Void();
31663 }
31664
31665 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31666 return SWIG_Python_InitShadowInstance(args);
31667 }
31668
31669 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31670 PyObject *resultobj = 0;
31671 wxOverlay *result = 0 ;
31672
31673 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
31674 {
31675 PyThreadState* __tstate = wxPyBeginAllowThreads();
31676 result = (wxOverlay *)new wxOverlay();
31677 wxPyEndAllowThreads(__tstate);
31678 if (PyErr_Occurred()) SWIG_fail;
31679 }
31680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31681 return resultobj;
31682 fail:
31683 return NULL;
31684 }
31685
31686
31687 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31688 PyObject *resultobj = 0;
31689 wxOverlay *arg1 = (wxOverlay *) 0 ;
31690 void *argp1 = 0 ;
31691 int res1 = 0 ;
31692 PyObject *swig_obj[1] ;
31693
31694 if (!args) SWIG_fail;
31695 swig_obj[0] = args;
31696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31697 if (!SWIG_IsOK(res1)) {
31698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31699 }
31700 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31701 {
31702 PyThreadState* __tstate = wxPyBeginAllowThreads();
31703 delete arg1;
31704
31705 wxPyEndAllowThreads(__tstate);
31706 if (PyErr_Occurred()) SWIG_fail;
31707 }
31708 resultobj = SWIG_Py_Void();
31709 return resultobj;
31710 fail:
31711 return NULL;
31712 }
31713
31714
31715 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31716 PyObject *resultobj = 0;
31717 wxOverlay *arg1 = (wxOverlay *) 0 ;
31718 void *argp1 = 0 ;
31719 int res1 = 0 ;
31720 PyObject *swig_obj[1] ;
31721
31722 if (!args) SWIG_fail;
31723 swig_obj[0] = args;
31724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31725 if (!SWIG_IsOK(res1)) {
31726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31727 }
31728 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31729 {
31730 PyThreadState* __tstate = wxPyBeginAllowThreads();
31731 (arg1)->Reset();
31732 wxPyEndAllowThreads(__tstate);
31733 if (PyErr_Occurred()) SWIG_fail;
31734 }
31735 resultobj = SWIG_Py_Void();
31736 return resultobj;
31737 fail:
31738 return NULL;
31739 }
31740
31741
31742 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31743 PyObject *obj;
31744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31745 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31746 return SWIG_Py_Void();
31747 }
31748
31749 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31750 return SWIG_Python_InitShadowInstance(args);
31751 }
31752
31753 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31754 PyObject *resultobj = 0;
31755 wxOverlay *arg1 = 0 ;
31756 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31757 int arg3 ;
31758 int arg4 ;
31759 int arg5 ;
31760 int arg6 ;
31761 wxDCOverlay *result = 0 ;
31762 void *argp1 = 0 ;
31763 int res1 = 0 ;
31764 void *argp2 = 0 ;
31765 int res2 = 0 ;
31766 int val3 ;
31767 int ecode3 = 0 ;
31768 int val4 ;
31769 int ecode4 = 0 ;
31770 int val5 ;
31771 int ecode5 = 0 ;
31772 int val6 ;
31773 int ecode6 = 0 ;
31774
31775 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31777 if (!SWIG_IsOK(res1)) {
31778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31779 }
31780 if (!argp1) {
31781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31782 }
31783 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31784 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31785 if (!SWIG_IsOK(res2)) {
31786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31787 }
31788 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31789 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31790 if (!SWIG_IsOK(ecode3)) {
31791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31792 }
31793 arg3 = static_cast< int >(val3);
31794 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31795 if (!SWIG_IsOK(ecode4)) {
31796 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31797 }
31798 arg4 = static_cast< int >(val4);
31799 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31800 if (!SWIG_IsOK(ecode5)) {
31801 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31802 }
31803 arg5 = static_cast< int >(val5);
31804 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31805 if (!SWIG_IsOK(ecode6)) {
31806 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31807 }
31808 arg6 = static_cast< int >(val6);
31809 {
31810 PyThreadState* __tstate = wxPyBeginAllowThreads();
31811 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31812 wxPyEndAllowThreads(__tstate);
31813 if (PyErr_Occurred()) SWIG_fail;
31814 }
31815 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31816 return resultobj;
31817 fail:
31818 return NULL;
31819 }
31820
31821
31822 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31823 PyObject *resultobj = 0;
31824 wxOverlay *arg1 = 0 ;
31825 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31826 wxDCOverlay *result = 0 ;
31827 void *argp1 = 0 ;
31828 int res1 = 0 ;
31829 void *argp2 = 0 ;
31830 int res2 = 0 ;
31831
31832 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31834 if (!SWIG_IsOK(res1)) {
31835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31836 }
31837 if (!argp1) {
31838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31839 }
31840 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31841 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31842 if (!SWIG_IsOK(res2)) {
31843 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31844 }
31845 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31846 {
31847 PyThreadState* __tstate = wxPyBeginAllowThreads();
31848 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31849 wxPyEndAllowThreads(__tstate);
31850 if (PyErr_Occurred()) SWIG_fail;
31851 }
31852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31853 return resultobj;
31854 fail:
31855 return NULL;
31856 }
31857
31858
31859 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31860 int argc;
31861 PyObject *argv[7];
31862
31863 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31864 --argc;
31865 if (argc == 2) {
31866 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31867 }
31868 if (argc == 6) {
31869 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31870 }
31871
31872 fail:
31873 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31874 return NULL;
31875 }
31876
31877
31878 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31879 PyObject *resultobj = 0;
31880 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31881 void *argp1 = 0 ;
31882 int res1 = 0 ;
31883 PyObject *swig_obj[1] ;
31884
31885 if (!args) SWIG_fail;
31886 swig_obj[0] = args;
31887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31888 if (!SWIG_IsOK(res1)) {
31889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31890 }
31891 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31892 {
31893 PyThreadState* __tstate = wxPyBeginAllowThreads();
31894 delete arg1;
31895
31896 wxPyEndAllowThreads(__tstate);
31897 if (PyErr_Occurred()) SWIG_fail;
31898 }
31899 resultobj = SWIG_Py_Void();
31900 return resultobj;
31901 fail:
31902 return NULL;
31903 }
31904
31905
31906 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31907 PyObject *resultobj = 0;
31908 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31909 void *argp1 = 0 ;
31910 int res1 = 0 ;
31911 PyObject *swig_obj[1] ;
31912
31913 if (!args) SWIG_fail;
31914 swig_obj[0] = args;
31915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31916 if (!SWIG_IsOK(res1)) {
31917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31918 }
31919 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31920 {
31921 PyThreadState* __tstate = wxPyBeginAllowThreads();
31922 (arg1)->Clear();
31923 wxPyEndAllowThreads(__tstate);
31924 if (PyErr_Occurred()) SWIG_fail;
31925 }
31926 resultobj = SWIG_Py_Void();
31927 return resultobj;
31928 fail:
31929 return NULL;
31930 }
31931
31932
31933 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31934 PyObject *obj;
31935 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31936 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31937 return SWIG_Py_Void();
31938 }
31939
31940 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31941 return SWIG_Python_InitShadowInstance(args);
31942 }
31943
31944 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31945 PyObject *resultobj = 0;
31946 int arg1 ;
31947 int arg2 ;
31948 int arg3 = (int) true ;
31949 int arg4 = (int) 1 ;
31950 wxImageList *result = 0 ;
31951 int val1 ;
31952 int ecode1 = 0 ;
31953 int val2 ;
31954 int ecode2 = 0 ;
31955 int val3 ;
31956 int ecode3 = 0 ;
31957 int val4 ;
31958 int ecode4 = 0 ;
31959 PyObject * obj0 = 0 ;
31960 PyObject * obj1 = 0 ;
31961 PyObject * obj2 = 0 ;
31962 PyObject * obj3 = 0 ;
31963 char * kwnames[] = {
31964 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31965 };
31966
31967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31968 ecode1 = SWIG_AsVal_int(obj0, &val1);
31969 if (!SWIG_IsOK(ecode1)) {
31970 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31971 }
31972 arg1 = static_cast< int >(val1);
31973 ecode2 = SWIG_AsVal_int(obj1, &val2);
31974 if (!SWIG_IsOK(ecode2)) {
31975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31976 }
31977 arg2 = static_cast< int >(val2);
31978 if (obj2) {
31979 ecode3 = SWIG_AsVal_int(obj2, &val3);
31980 if (!SWIG_IsOK(ecode3)) {
31981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31982 }
31983 arg3 = static_cast< int >(val3);
31984 }
31985 if (obj3) {
31986 ecode4 = SWIG_AsVal_int(obj3, &val4);
31987 if (!SWIG_IsOK(ecode4)) {
31988 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31989 }
31990 arg4 = static_cast< int >(val4);
31991 }
31992 {
31993 if (!wxPyCheckForApp()) SWIG_fail;
31994 PyThreadState* __tstate = wxPyBeginAllowThreads();
31995 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31996 wxPyEndAllowThreads(__tstate);
31997 if (PyErr_Occurred()) SWIG_fail;
31998 }
31999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
32000 return resultobj;
32001 fail:
32002 return NULL;
32003 }
32004
32005
32006 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32007 PyObject *resultobj = 0;
32008 wxImageList *arg1 = (wxImageList *) 0 ;
32009 void *argp1 = 0 ;
32010 int res1 = 0 ;
32011 PyObject *swig_obj[1] ;
32012
32013 if (!args) SWIG_fail;
32014 swig_obj[0] = args;
32015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
32016 if (!SWIG_IsOK(res1)) {
32017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
32018 }
32019 arg1 = reinterpret_cast< wxImageList * >(argp1);
32020 {
32021 PyThreadState* __tstate = wxPyBeginAllowThreads();
32022 delete arg1;
32023
32024 wxPyEndAllowThreads(__tstate);
32025 if (PyErr_Occurred()) SWIG_fail;
32026 }
32027 resultobj = SWIG_Py_Void();
32028 return resultobj;
32029 fail:
32030 return NULL;
32031 }
32032
32033
32034 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32035 PyObject *resultobj = 0;
32036 wxImageList *arg1 = (wxImageList *) 0 ;
32037 wxBitmap *arg2 = 0 ;
32038 wxBitmap const &arg3_defvalue = wxNullBitmap ;
32039 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
32040 int result;
32041 void *argp1 = 0 ;
32042 int res1 = 0 ;
32043 void *argp2 = 0 ;
32044 int res2 = 0 ;
32045 void *argp3 = 0 ;
32046 int res3 = 0 ;
32047 PyObject * obj0 = 0 ;
32048 PyObject * obj1 = 0 ;
32049 PyObject * obj2 = 0 ;
32050 char * kwnames[] = {
32051 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
32052 };
32053
32054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32056 if (!SWIG_IsOK(res1)) {
32057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
32058 }
32059 arg1 = reinterpret_cast< wxImageList * >(argp1);
32060 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
32061 if (!SWIG_IsOK(res2)) {
32062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32063 }
32064 if (!argp2) {
32065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32066 }
32067 arg2 = reinterpret_cast< wxBitmap * >(argp2);
32068 if (obj2) {
32069 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32070 if (!SWIG_IsOK(res3)) {
32071 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32072 }
32073 if (!argp3) {
32074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32075 }
32076 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32077 }
32078 {
32079 PyThreadState* __tstate = wxPyBeginAllowThreads();
32080 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
32081 wxPyEndAllowThreads(__tstate);
32082 if (PyErr_Occurred()) SWIG_fail;
32083 }
32084 resultobj = SWIG_From_int(static_cast< int >(result));
32085 return resultobj;
32086 fail:
32087 return NULL;
32088 }
32089
32090
32091 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32092 PyObject *resultobj = 0;
32093 wxImageList *arg1 = (wxImageList *) 0 ;
32094 wxBitmap *arg2 = 0 ;
32095 wxColour *arg3 = 0 ;
32096 int result;
32097 void *argp1 = 0 ;
32098 int res1 = 0 ;
32099 void *argp2 = 0 ;
32100 int res2 = 0 ;
32101 wxColour temp3 ;
32102 PyObject * obj0 = 0 ;
32103 PyObject * obj1 = 0 ;
32104 PyObject * obj2 = 0 ;
32105 char * kwnames[] = {
32106 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
32107 };
32108
32109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32111 if (!SWIG_IsOK(res1)) {
32112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
32113 }
32114 arg1 = reinterpret_cast< wxImageList * >(argp1);
32115 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
32116 if (!SWIG_IsOK(res2)) {
32117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32118 }
32119 if (!argp2) {
32120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32121 }
32122 arg2 = reinterpret_cast< wxBitmap * >(argp2);
32123 {
32124 arg3 = &temp3;
32125 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32126 }
32127 {
32128 PyThreadState* __tstate = wxPyBeginAllowThreads();
32129 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
32130 wxPyEndAllowThreads(__tstate);
32131 if (PyErr_Occurred()) SWIG_fail;
32132 }
32133 resultobj = SWIG_From_int(static_cast< int >(result));
32134 return resultobj;
32135 fail:
32136 return NULL;
32137 }
32138
32139
32140 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32141 PyObject *resultobj = 0;
32142 wxImageList *arg1 = (wxImageList *) 0 ;
32143 wxIcon *arg2 = 0 ;
32144 int result;
32145 void *argp1 = 0 ;
32146 int res1 = 0 ;
32147 void *argp2 = 0 ;
32148 int res2 = 0 ;
32149 PyObject * obj0 = 0 ;
32150 PyObject * obj1 = 0 ;
32151 char * kwnames[] = {
32152 (char *) "self",(char *) "icon", NULL
32153 };
32154
32155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
32156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32157 if (!SWIG_IsOK(res1)) {
32158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
32159 }
32160 arg1 = reinterpret_cast< wxImageList * >(argp1);
32161 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
32162 if (!SWIG_IsOK(res2)) {
32163 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32164 }
32165 if (!argp2) {
32166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32167 }
32168 arg2 = reinterpret_cast< wxIcon * >(argp2);
32169 {
32170 PyThreadState* __tstate = wxPyBeginAllowThreads();
32171 result = (int)(arg1)->Add((wxIcon const &)*arg2);
32172 wxPyEndAllowThreads(__tstate);
32173 if (PyErr_Occurred()) SWIG_fail;
32174 }
32175 resultobj = SWIG_From_int(static_cast< int >(result));
32176 return resultobj;
32177 fail:
32178 return NULL;
32179 }
32180
32181
32182 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32183 PyObject *resultobj = 0;
32184 wxImageList *arg1 = (wxImageList *) 0 ;
32185 int arg2 ;
32186 SwigValueWrapper<wxBitmap > result;
32187 void *argp1 = 0 ;
32188 int res1 = 0 ;
32189 int val2 ;
32190 int ecode2 = 0 ;
32191 PyObject * obj0 = 0 ;
32192 PyObject * obj1 = 0 ;
32193 char * kwnames[] = {
32194 (char *) "self",(char *) "index", NULL
32195 };
32196
32197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
32198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32199 if (!SWIG_IsOK(res1)) {
32200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
32201 }
32202 arg1 = reinterpret_cast< wxImageList * >(argp1);
32203 ecode2 = SWIG_AsVal_int(obj1, &val2);
32204 if (!SWIG_IsOK(ecode2)) {
32205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
32206 }
32207 arg2 = static_cast< int >(val2);
32208 {
32209 PyThreadState* __tstate = wxPyBeginAllowThreads();
32210 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
32211 wxPyEndAllowThreads(__tstate);
32212 if (PyErr_Occurred()) SWIG_fail;
32213 }
32214 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
32215 return resultobj;
32216 fail:
32217 return NULL;
32218 }
32219
32220
32221 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32222 PyObject *resultobj = 0;
32223 wxImageList *arg1 = (wxImageList *) 0 ;
32224 int arg2 ;
32225 wxIcon result;
32226 void *argp1 = 0 ;
32227 int res1 = 0 ;
32228 int val2 ;
32229 int ecode2 = 0 ;
32230 PyObject * obj0 = 0 ;
32231 PyObject * obj1 = 0 ;
32232 char * kwnames[] = {
32233 (char *) "self",(char *) "index", NULL
32234 };
32235
32236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
32237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32238 if (!SWIG_IsOK(res1)) {
32239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
32240 }
32241 arg1 = reinterpret_cast< wxImageList * >(argp1);
32242 ecode2 = SWIG_AsVal_int(obj1, &val2);
32243 if (!SWIG_IsOK(ecode2)) {
32244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
32245 }
32246 arg2 = static_cast< int >(val2);
32247 {
32248 PyThreadState* __tstate = wxPyBeginAllowThreads();
32249 result = ((wxImageList const *)arg1)->GetIcon(arg2);
32250 wxPyEndAllowThreads(__tstate);
32251 if (PyErr_Occurred()) SWIG_fail;
32252 }
32253 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
32254 return resultobj;
32255 fail:
32256 return NULL;
32257 }
32258
32259
32260 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32261 PyObject *resultobj = 0;
32262 wxImageList *arg1 = (wxImageList *) 0 ;
32263 int arg2 ;
32264 wxBitmap *arg3 = 0 ;
32265 wxBitmap const &arg4_defvalue = wxNullBitmap ;
32266 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
32267 bool result;
32268 void *argp1 = 0 ;
32269 int res1 = 0 ;
32270 int val2 ;
32271 int ecode2 = 0 ;
32272 void *argp3 = 0 ;
32273 int res3 = 0 ;
32274 void *argp4 = 0 ;
32275 int res4 = 0 ;
32276 PyObject * obj0 = 0 ;
32277 PyObject * obj1 = 0 ;
32278 PyObject * obj2 = 0 ;
32279 PyObject * obj3 = 0 ;
32280 char * kwnames[] = {
32281 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
32282 };
32283
32284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32286 if (!SWIG_IsOK(res1)) {
32287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
32288 }
32289 arg1 = reinterpret_cast< wxImageList * >(argp1);
32290 ecode2 = SWIG_AsVal_int(obj1, &val2);
32291 if (!SWIG_IsOK(ecode2)) {
32292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
32293 }
32294 arg2 = static_cast< int >(val2);
32295 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32296 if (!SWIG_IsOK(res3)) {
32297 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32298 }
32299 if (!argp3) {
32300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32301 }
32302 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32303 if (obj3) {
32304 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
32305 if (!SWIG_IsOK(res4)) {
32306 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32307 }
32308 if (!argp4) {
32309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32310 }
32311 arg4 = reinterpret_cast< wxBitmap * >(argp4);
32312 }
32313 {
32314 PyThreadState* __tstate = wxPyBeginAllowThreads();
32315 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
32316 wxPyEndAllowThreads(__tstate);
32317 if (PyErr_Occurred()) SWIG_fail;
32318 }
32319 {
32320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32321 }
32322 return resultobj;
32323 fail:
32324 return NULL;
32325 }
32326
32327
32328 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32329 PyObject *resultobj = 0;
32330 wxImageList *arg1 = (wxImageList *) 0 ;
32331 int arg2 ;
32332 wxDC *arg3 = 0 ;
32333 int arg4 ;
32334 int arg5 ;
32335 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
32336 bool arg7 = (bool) (bool)false ;
32337 bool result;
32338 void *argp1 = 0 ;
32339 int res1 = 0 ;
32340 int val2 ;
32341 int ecode2 = 0 ;
32342 void *argp3 = 0 ;
32343 int res3 = 0 ;
32344 int val4 ;
32345 int ecode4 = 0 ;
32346 int val5 ;
32347 int ecode5 = 0 ;
32348 int val6 ;
32349 int ecode6 = 0 ;
32350 bool val7 ;
32351 int ecode7 = 0 ;
32352 PyObject * obj0 = 0 ;
32353 PyObject * obj1 = 0 ;
32354 PyObject * obj2 = 0 ;
32355 PyObject * obj3 = 0 ;
32356 PyObject * obj4 = 0 ;
32357 PyObject * obj5 = 0 ;
32358 PyObject * obj6 = 0 ;
32359 char * kwnames[] = {
32360 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
32361 };
32362
32363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32365 if (!SWIG_IsOK(res1)) {
32366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
32367 }
32368 arg1 = reinterpret_cast< wxImageList * >(argp1);
32369 ecode2 = SWIG_AsVal_int(obj1, &val2);
32370 if (!SWIG_IsOK(ecode2)) {
32371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
32372 }
32373 arg2 = static_cast< int >(val2);
32374 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32375 if (!SWIG_IsOK(res3)) {
32376 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32377 }
32378 if (!argp3) {
32379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32380 }
32381 arg3 = reinterpret_cast< wxDC * >(argp3);
32382 ecode4 = SWIG_AsVal_int(obj3, &val4);
32383 if (!SWIG_IsOK(ecode4)) {
32384 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
32385 }
32386 arg4 = static_cast< int >(val4);
32387 ecode5 = SWIG_AsVal_int(obj4, &val5);
32388 if (!SWIG_IsOK(ecode5)) {
32389 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
32390 }
32391 arg5 = static_cast< int >(val5);
32392 if (obj5) {
32393 ecode6 = SWIG_AsVal_int(obj5, &val6);
32394 if (!SWIG_IsOK(ecode6)) {
32395 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
32396 }
32397 arg6 = static_cast< int >(val6);
32398 }
32399 if (obj6) {
32400 ecode7 = SWIG_AsVal_bool(obj6, &val7);
32401 if (!SWIG_IsOK(ecode7)) {
32402 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
32403 }
32404 arg7 = static_cast< bool >(val7);
32405 }
32406 {
32407 PyThreadState* __tstate = wxPyBeginAllowThreads();
32408 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
32409 wxPyEndAllowThreads(__tstate);
32410 if (PyErr_Occurred()) SWIG_fail;
32411 }
32412 {
32413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32414 }
32415 return resultobj;
32416 fail:
32417 return NULL;
32418 }
32419
32420
32421 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32422 PyObject *resultobj = 0;
32423 wxImageList *arg1 = (wxImageList *) 0 ;
32424 int result;
32425 void *argp1 = 0 ;
32426 int res1 = 0 ;
32427 PyObject *swig_obj[1] ;
32428
32429 if (!args) SWIG_fail;
32430 swig_obj[0] = args;
32431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32432 if (!SWIG_IsOK(res1)) {
32433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
32434 }
32435 arg1 = reinterpret_cast< wxImageList * >(argp1);
32436 {
32437 PyThreadState* __tstate = wxPyBeginAllowThreads();
32438 result = (int)(arg1)->GetImageCount();
32439 wxPyEndAllowThreads(__tstate);
32440 if (PyErr_Occurred()) SWIG_fail;
32441 }
32442 resultobj = SWIG_From_int(static_cast< int >(result));
32443 return resultobj;
32444 fail:
32445 return NULL;
32446 }
32447
32448
32449 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32450 PyObject *resultobj = 0;
32451 wxImageList *arg1 = (wxImageList *) 0 ;
32452 int arg2 ;
32453 bool result;
32454 void *argp1 = 0 ;
32455 int res1 = 0 ;
32456 int val2 ;
32457 int ecode2 = 0 ;
32458 PyObject * obj0 = 0 ;
32459 PyObject * obj1 = 0 ;
32460 char * kwnames[] = {
32461 (char *) "self",(char *) "index", NULL
32462 };
32463
32464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
32465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32466 if (!SWIG_IsOK(res1)) {
32467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
32468 }
32469 arg1 = reinterpret_cast< wxImageList * >(argp1);
32470 ecode2 = SWIG_AsVal_int(obj1, &val2);
32471 if (!SWIG_IsOK(ecode2)) {
32472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
32473 }
32474 arg2 = static_cast< int >(val2);
32475 {
32476 PyThreadState* __tstate = wxPyBeginAllowThreads();
32477 result = (bool)(arg1)->Remove(arg2);
32478 wxPyEndAllowThreads(__tstate);
32479 if (PyErr_Occurred()) SWIG_fail;
32480 }
32481 {
32482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32483 }
32484 return resultobj;
32485 fail:
32486 return NULL;
32487 }
32488
32489
32490 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32491 PyObject *resultobj = 0;
32492 wxImageList *arg1 = (wxImageList *) 0 ;
32493 bool result;
32494 void *argp1 = 0 ;
32495 int res1 = 0 ;
32496 PyObject *swig_obj[1] ;
32497
32498 if (!args) SWIG_fail;
32499 swig_obj[0] = args;
32500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32501 if (!SWIG_IsOK(res1)) {
32502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
32503 }
32504 arg1 = reinterpret_cast< wxImageList * >(argp1);
32505 {
32506 PyThreadState* __tstate = wxPyBeginAllowThreads();
32507 result = (bool)(arg1)->RemoveAll();
32508 wxPyEndAllowThreads(__tstate);
32509 if (PyErr_Occurred()) SWIG_fail;
32510 }
32511 {
32512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32513 }
32514 return resultobj;
32515 fail:
32516 return NULL;
32517 }
32518
32519
32520 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32521 PyObject *resultobj = 0;
32522 wxImageList *arg1 = (wxImageList *) 0 ;
32523 int arg2 ;
32524 int *arg3 = 0 ;
32525 int *arg4 = 0 ;
32526 void *argp1 = 0 ;
32527 int res1 = 0 ;
32528 int val2 ;
32529 int ecode2 = 0 ;
32530 int temp3 ;
32531 int res3 = SWIG_TMPOBJ ;
32532 int temp4 ;
32533 int res4 = SWIG_TMPOBJ ;
32534 PyObject * obj0 = 0 ;
32535 PyObject * obj1 = 0 ;
32536 char * kwnames[] = {
32537 (char *) "self",(char *) "index", NULL
32538 };
32539
32540 arg3 = &temp3;
32541 arg4 = &temp4;
32542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
32543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32544 if (!SWIG_IsOK(res1)) {
32545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
32546 }
32547 arg1 = reinterpret_cast< wxImageList * >(argp1);
32548 ecode2 = SWIG_AsVal_int(obj1, &val2);
32549 if (!SWIG_IsOK(ecode2)) {
32550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
32551 }
32552 arg2 = static_cast< int >(val2);
32553 {
32554 PyThreadState* __tstate = wxPyBeginAllowThreads();
32555 (arg1)->GetSize(arg2,*arg3,*arg4);
32556 wxPyEndAllowThreads(__tstate);
32557 if (PyErr_Occurred()) SWIG_fail;
32558 }
32559 resultobj = SWIG_Py_Void();
32560 if (SWIG_IsTmpObj(res3)) {
32561 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
32562 } else {
32563 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32564 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
32565 }
32566 if (SWIG_IsTmpObj(res4)) {
32567 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
32568 } else {
32569 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32570 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
32571 }
32572 return resultobj;
32573 fail:
32574 return NULL;
32575 }
32576
32577
32578 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32579 PyObject *obj;
32580 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32581 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
32582 return SWIG_Py_Void();
32583 }
32584
32585 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32586 return SWIG_Python_InitShadowInstance(args);
32587 }
32588
32589 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32590 PyObject *resultobj = 0;
32591 wxStockGDI *result = 0 ;
32592
32593 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
32594 {
32595 PyThreadState* __tstate = wxPyBeginAllowThreads();
32596 result = (wxStockGDI *)new wxStockGDI();
32597 wxPyEndAllowThreads(__tstate);
32598 if (PyErr_Occurred()) SWIG_fail;
32599 }
32600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
32601 return resultobj;
32602 fail:
32603 return NULL;
32604 }
32605
32606
32607 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32608 PyObject *resultobj = 0;
32609 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32610 void *argp1 = 0 ;
32611 int res1 = 0 ;
32612 PyObject *swig_obj[1] ;
32613
32614 if (!args) SWIG_fail;
32615 swig_obj[0] = args;
32616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
32617 if (!SWIG_IsOK(res1)) {
32618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32619 }
32620 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32621 {
32622 PyThreadState* __tstate = wxPyBeginAllowThreads();
32623 delete arg1;
32624
32625 wxPyEndAllowThreads(__tstate);
32626 if (PyErr_Occurred()) SWIG_fail;
32627 }
32628 resultobj = SWIG_Py_Void();
32629 return resultobj;
32630 fail:
32631 return NULL;
32632 }
32633
32634
32635 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32636 PyObject *resultobj = 0;
32637
32638 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
32639 {
32640 PyThreadState* __tstate = wxPyBeginAllowThreads();
32641 wxStockGDI::DeleteAll();
32642 wxPyEndAllowThreads(__tstate);
32643 if (PyErr_Occurred()) SWIG_fail;
32644 }
32645 resultobj = SWIG_Py_Void();
32646 return resultobj;
32647 fail:
32648 return NULL;
32649 }
32650
32651
32652 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32653 PyObject *resultobj = 0;
32654 wxStockGDI *result = 0 ;
32655
32656 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
32657 {
32658 PyThreadState* __tstate = wxPyBeginAllowThreads();
32659 {
32660 wxStockGDI &_result_ref = wxStockGDI::instance();
32661 result = (wxStockGDI *) &_result_ref;
32662 }
32663 wxPyEndAllowThreads(__tstate);
32664 if (PyErr_Occurred()) SWIG_fail;
32665 }
32666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
32667 return resultobj;
32668 fail:
32669 return NULL;
32670 }
32671
32672
32673 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32674 PyObject *resultobj = 0;
32675 wxStockGDI::Item arg1 ;
32676 wxBrush *result = 0 ;
32677 int val1 ;
32678 int ecode1 = 0 ;
32679 PyObject * obj0 = 0 ;
32680 char * kwnames[] = {
32681 (char *) "item", NULL
32682 };
32683
32684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32685 ecode1 = SWIG_AsVal_int(obj0, &val1);
32686 if (!SWIG_IsOK(ecode1)) {
32687 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32688 }
32689 arg1 = static_cast< wxStockGDI::Item >(val1);
32690 {
32691 PyThreadState* __tstate = wxPyBeginAllowThreads();
32692 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32693 wxPyEndAllowThreads(__tstate);
32694 if (PyErr_Occurred()) SWIG_fail;
32695 }
32696 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32697 return resultobj;
32698 fail:
32699 return NULL;
32700 }
32701
32702
32703 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32704 PyObject *resultobj = 0;
32705 wxStockGDI::Item arg1 ;
32706 wxColour *result = 0 ;
32707 int val1 ;
32708 int ecode1 = 0 ;
32709 PyObject * obj0 = 0 ;
32710 char * kwnames[] = {
32711 (char *) "item", NULL
32712 };
32713
32714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32715 ecode1 = SWIG_AsVal_int(obj0, &val1);
32716 if (!SWIG_IsOK(ecode1)) {
32717 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32718 }
32719 arg1 = static_cast< wxStockGDI::Item >(val1);
32720 {
32721 PyThreadState* __tstate = wxPyBeginAllowThreads();
32722 result = (wxColour *)wxStockGDI::GetColour(arg1);
32723 wxPyEndAllowThreads(__tstate);
32724 if (PyErr_Occurred()) SWIG_fail;
32725 }
32726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32727 return resultobj;
32728 fail:
32729 return NULL;
32730 }
32731
32732
32733 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32734 PyObject *resultobj = 0;
32735 wxStockGDI::Item arg1 ;
32736 wxCursor *result = 0 ;
32737 int val1 ;
32738 int ecode1 = 0 ;
32739 PyObject * obj0 = 0 ;
32740 char * kwnames[] = {
32741 (char *) "item", NULL
32742 };
32743
32744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32745 ecode1 = SWIG_AsVal_int(obj0, &val1);
32746 if (!SWIG_IsOK(ecode1)) {
32747 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32748 }
32749 arg1 = static_cast< wxStockGDI::Item >(val1);
32750 {
32751 PyThreadState* __tstate = wxPyBeginAllowThreads();
32752 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32753 wxPyEndAllowThreads(__tstate);
32754 if (PyErr_Occurred()) SWIG_fail;
32755 }
32756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32757 return resultobj;
32758 fail:
32759 return NULL;
32760 }
32761
32762
32763 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32764 PyObject *resultobj = 0;
32765 wxStockGDI::Item arg1 ;
32766 wxPen *result = 0 ;
32767 int val1 ;
32768 int ecode1 = 0 ;
32769 PyObject * obj0 = 0 ;
32770 char * kwnames[] = {
32771 (char *) "item", NULL
32772 };
32773
32774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32775 ecode1 = SWIG_AsVal_int(obj0, &val1);
32776 if (!SWIG_IsOK(ecode1)) {
32777 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32778 }
32779 arg1 = static_cast< wxStockGDI::Item >(val1);
32780 {
32781 PyThreadState* __tstate = wxPyBeginAllowThreads();
32782 result = (wxPen *)wxStockGDI::GetPen(arg1);
32783 wxPyEndAllowThreads(__tstate);
32784 if (PyErr_Occurred()) SWIG_fail;
32785 }
32786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32787 return resultobj;
32788 fail:
32789 return NULL;
32790 }
32791
32792
32793 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32794 PyObject *resultobj = 0;
32795 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32796 wxStockGDI::Item arg2 ;
32797 wxFont *result = 0 ;
32798 void *argp1 = 0 ;
32799 int res1 = 0 ;
32800 int val2 ;
32801 int ecode2 = 0 ;
32802 PyObject * obj0 = 0 ;
32803 PyObject * obj1 = 0 ;
32804 char * kwnames[] = {
32805 (char *) "self",(char *) "item", NULL
32806 };
32807
32808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32810 if (!SWIG_IsOK(res1)) {
32811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32812 }
32813 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32814 ecode2 = SWIG_AsVal_int(obj1, &val2);
32815 if (!SWIG_IsOK(ecode2)) {
32816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32817 }
32818 arg2 = static_cast< wxStockGDI::Item >(val2);
32819 {
32820 PyThreadState* __tstate = wxPyBeginAllowThreads();
32821 result = (wxFont *)(arg1)->GetFont(arg2);
32822 wxPyEndAllowThreads(__tstate);
32823 if (PyErr_Occurred()) SWIG_fail;
32824 }
32825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32826 return resultobj;
32827 fail:
32828 return NULL;
32829 }
32830
32831
32832 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32833 PyObject *obj;
32834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32835 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32836 return SWIG_Py_Void();
32837 }
32838
32839 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32840 return SWIG_Python_InitShadowInstance(args);
32841 }
32842
32843 SWIGINTERN int NullBitmap_set(PyObject *) {
32844 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32845 return 1;
32846 }
32847
32848
32849 SWIGINTERN PyObject *NullBitmap_get(void) {
32850 PyObject *pyobj = 0;
32851
32852 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32853 return pyobj;
32854 }
32855
32856
32857 SWIGINTERN int NullIcon_set(PyObject *) {
32858 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32859 return 1;
32860 }
32861
32862
32863 SWIGINTERN PyObject *NullIcon_get(void) {
32864 PyObject *pyobj = 0;
32865
32866 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32867 return pyobj;
32868 }
32869
32870
32871 SWIGINTERN int NullCursor_set(PyObject *) {
32872 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32873 return 1;
32874 }
32875
32876
32877 SWIGINTERN PyObject *NullCursor_get(void) {
32878 PyObject *pyobj = 0;
32879
32880 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32881 return pyobj;
32882 }
32883
32884
32885 SWIGINTERN int NullPen_set(PyObject *) {
32886 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32887 return 1;
32888 }
32889
32890
32891 SWIGINTERN PyObject *NullPen_get(void) {
32892 PyObject *pyobj = 0;
32893
32894 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32895 return pyobj;
32896 }
32897
32898
32899 SWIGINTERN int NullBrush_set(PyObject *) {
32900 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32901 return 1;
32902 }
32903
32904
32905 SWIGINTERN PyObject *NullBrush_get(void) {
32906 PyObject *pyobj = 0;
32907
32908 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32909 return pyobj;
32910 }
32911
32912
32913 SWIGINTERN int NullPalette_set(PyObject *) {
32914 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32915 return 1;
32916 }
32917
32918
32919 SWIGINTERN PyObject *NullPalette_get(void) {
32920 PyObject *pyobj = 0;
32921
32922 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32923 return pyobj;
32924 }
32925
32926
32927 SWIGINTERN int NullFont_set(PyObject *) {
32928 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32929 return 1;
32930 }
32931
32932
32933 SWIGINTERN PyObject *NullFont_get(void) {
32934 PyObject *pyobj = 0;
32935
32936 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32937 return pyobj;
32938 }
32939
32940
32941 SWIGINTERN int NullColour_set(PyObject *) {
32942 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32943 return 1;
32944 }
32945
32946
32947 SWIGINTERN PyObject *NullColour_get(void) {
32948 PyObject *pyobj = 0;
32949
32950 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32951 return pyobj;
32952 }
32953
32954
32955 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32956 PyObject *resultobj = 0;
32957 wxGDIObjListBase *result = 0 ;
32958
32959 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32960 {
32961 PyThreadState* __tstate = wxPyBeginAllowThreads();
32962 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32963 wxPyEndAllowThreads(__tstate);
32964 if (PyErr_Occurred()) SWIG_fail;
32965 }
32966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32967 return resultobj;
32968 fail:
32969 return NULL;
32970 }
32971
32972
32973 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32974 PyObject *resultobj = 0;
32975 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
32976 void *argp1 = 0 ;
32977 int res1 = 0 ;
32978 PyObject *swig_obj[1] ;
32979
32980 if (!args) SWIG_fail;
32981 swig_obj[0] = args;
32982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
32983 if (!SWIG_IsOK(res1)) {
32984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
32985 }
32986 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
32987 {
32988 PyThreadState* __tstate = wxPyBeginAllowThreads();
32989 delete arg1;
32990
32991 wxPyEndAllowThreads(__tstate);
32992 if (PyErr_Occurred()) SWIG_fail;
32993 }
32994 resultobj = SWIG_Py_Void();
32995 return resultobj;
32996 fail:
32997 return NULL;
32998 }
32999
33000
33001 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33002 PyObject *obj;
33003 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33004 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
33005 return SWIG_Py_Void();
33006 }
33007
33008 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33009 return SWIG_Python_InitShadowInstance(args);
33010 }
33011
33012 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33013 PyObject *resultobj = 0;
33014 wxPenList *arg1 = (wxPenList *) 0 ;
33015 wxColour *arg2 = 0 ;
33016 int arg3 ;
33017 int arg4 ;
33018 wxPen *result = 0 ;
33019 void *argp1 = 0 ;
33020 int res1 = 0 ;
33021 wxColour temp2 ;
33022 int val3 ;
33023 int ecode3 = 0 ;
33024 int val4 ;
33025 int ecode4 = 0 ;
33026 PyObject * obj0 = 0 ;
33027 PyObject * obj1 = 0 ;
33028 PyObject * obj2 = 0 ;
33029 PyObject * obj3 = 0 ;
33030 char * kwnames[] = {
33031 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
33032 };
33033
33034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
33036 if (!SWIG_IsOK(res1)) {
33037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
33038 }
33039 arg1 = reinterpret_cast< wxPenList * >(argp1);
33040 {
33041 arg2 = &temp2;
33042 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33043 }
33044 ecode3 = SWIG_AsVal_int(obj2, &val3);
33045 if (!SWIG_IsOK(ecode3)) {
33046 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
33047 }
33048 arg3 = static_cast< int >(val3);
33049 ecode4 = SWIG_AsVal_int(obj3, &val4);
33050 if (!SWIG_IsOK(ecode4)) {
33051 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
33052 }
33053 arg4 = static_cast< int >(val4);
33054 {
33055 PyThreadState* __tstate = wxPyBeginAllowThreads();
33056 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
33057 wxPyEndAllowThreads(__tstate);
33058 if (PyErr_Occurred()) SWIG_fail;
33059 }
33060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
33061 return resultobj;
33062 fail:
33063 return NULL;
33064 }
33065
33066
33067 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33068 PyObject *resultobj = 0;
33069 wxPenList *arg1 = (wxPenList *) 0 ;
33070 wxPen *arg2 = (wxPen *) 0 ;
33071 void *argp1 = 0 ;
33072 int res1 = 0 ;
33073 void *argp2 = 0 ;
33074 int res2 = 0 ;
33075 PyObject * obj0 = 0 ;
33076 PyObject * obj1 = 0 ;
33077 char * kwnames[] = {
33078 (char *) "self",(char *) "pen", NULL
33079 };
33080
33081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
33082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
33083 if (!SWIG_IsOK(res1)) {
33084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
33085 }
33086 arg1 = reinterpret_cast< wxPenList * >(argp1);
33087 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
33088 if (!SWIG_IsOK(res2)) {
33089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
33090 }
33091 arg2 = reinterpret_cast< wxPen * >(argp2);
33092 {
33093 PyThreadState* __tstate = wxPyBeginAllowThreads();
33094 (arg1)->AddPen(arg2);
33095 wxPyEndAllowThreads(__tstate);
33096 if (PyErr_Occurred()) SWIG_fail;
33097 }
33098 resultobj = SWIG_Py_Void();
33099 return resultobj;
33100 fail:
33101 return NULL;
33102 }
33103
33104
33105 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33106 PyObject *resultobj = 0;
33107 wxPenList *arg1 = (wxPenList *) 0 ;
33108 wxPen *arg2 = (wxPen *) 0 ;
33109 void *argp1 = 0 ;
33110 int res1 = 0 ;
33111 void *argp2 = 0 ;
33112 int res2 = 0 ;
33113 PyObject * obj0 = 0 ;
33114 PyObject * obj1 = 0 ;
33115 char * kwnames[] = {
33116 (char *) "self",(char *) "pen", NULL
33117 };
33118
33119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
33120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
33121 if (!SWIG_IsOK(res1)) {
33122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
33123 }
33124 arg1 = reinterpret_cast< wxPenList * >(argp1);
33125 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
33126 if (!SWIG_IsOK(res2)) {
33127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
33128 }
33129 arg2 = reinterpret_cast< wxPen * >(argp2);
33130 {
33131 PyThreadState* __tstate = wxPyBeginAllowThreads();
33132 (arg1)->RemovePen(arg2);
33133 wxPyEndAllowThreads(__tstate);
33134 if (PyErr_Occurred()) SWIG_fail;
33135 }
33136 resultobj = SWIG_Py_Void();
33137 return resultobj;
33138 fail:
33139 return NULL;
33140 }
33141
33142
33143 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33144 PyObject *obj;
33145 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33146 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
33147 return SWIG_Py_Void();
33148 }
33149
33150 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33151 PyObject *resultobj = 0;
33152 wxBrushList *arg1 = (wxBrushList *) 0 ;
33153 wxColour *arg2 = 0 ;
33154 int arg3 = (int) wxSOLID ;
33155 wxBrush *result = 0 ;
33156 void *argp1 = 0 ;
33157 int res1 = 0 ;
33158 wxColour temp2 ;
33159 int val3 ;
33160 int ecode3 = 0 ;
33161 PyObject * obj0 = 0 ;
33162 PyObject * obj1 = 0 ;
33163 PyObject * obj2 = 0 ;
33164 char * kwnames[] = {
33165 (char *) "self",(char *) "colour",(char *) "style", NULL
33166 };
33167
33168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33170 if (!SWIG_IsOK(res1)) {
33171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33172 }
33173 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33174 {
33175 arg2 = &temp2;
33176 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33177 }
33178 if (obj2) {
33179 ecode3 = SWIG_AsVal_int(obj2, &val3);
33180 if (!SWIG_IsOK(ecode3)) {
33181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
33182 }
33183 arg3 = static_cast< int >(val3);
33184 }
33185 {
33186 PyThreadState* __tstate = wxPyBeginAllowThreads();
33187 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
33188 wxPyEndAllowThreads(__tstate);
33189 if (PyErr_Occurred()) SWIG_fail;
33190 }
33191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
33192 return resultobj;
33193 fail:
33194 return NULL;
33195 }
33196
33197
33198 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33199 PyObject *resultobj = 0;
33200 wxBrushList *arg1 = (wxBrushList *) 0 ;
33201 wxBrush *arg2 = (wxBrush *) 0 ;
33202 void *argp1 = 0 ;
33203 int res1 = 0 ;
33204 void *argp2 = 0 ;
33205 int res2 = 0 ;
33206 PyObject * obj0 = 0 ;
33207 PyObject * obj1 = 0 ;
33208 char * kwnames[] = {
33209 (char *) "self",(char *) "brush", NULL
33210 };
33211
33212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
33213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33214 if (!SWIG_IsOK(res1)) {
33215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33216 }
33217 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33218 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
33219 if (!SWIG_IsOK(res2)) {
33220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
33221 }
33222 arg2 = reinterpret_cast< wxBrush * >(argp2);
33223 {
33224 PyThreadState* __tstate = wxPyBeginAllowThreads();
33225 (arg1)->AddBrush(arg2);
33226 wxPyEndAllowThreads(__tstate);
33227 if (PyErr_Occurred()) SWIG_fail;
33228 }
33229 resultobj = SWIG_Py_Void();
33230 return resultobj;
33231 fail:
33232 return NULL;
33233 }
33234
33235
33236 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33237 PyObject *resultobj = 0;
33238 wxBrushList *arg1 = (wxBrushList *) 0 ;
33239 wxBrush *arg2 = (wxBrush *) 0 ;
33240 void *argp1 = 0 ;
33241 int res1 = 0 ;
33242 void *argp2 = 0 ;
33243 int res2 = 0 ;
33244 PyObject * obj0 = 0 ;
33245 PyObject * obj1 = 0 ;
33246 char * kwnames[] = {
33247 (char *) "self",(char *) "brush", NULL
33248 };
33249
33250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
33251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33252 if (!SWIG_IsOK(res1)) {
33253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33254 }
33255 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33256 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
33257 if (!SWIG_IsOK(res2)) {
33258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
33259 }
33260 arg2 = reinterpret_cast< wxBrush * >(argp2);
33261 {
33262 PyThreadState* __tstate = wxPyBeginAllowThreads();
33263 (arg1)->RemoveBrush(arg2);
33264 wxPyEndAllowThreads(__tstate);
33265 if (PyErr_Occurred()) SWIG_fail;
33266 }
33267 resultobj = SWIG_Py_Void();
33268 return resultobj;
33269 fail:
33270 return NULL;
33271 }
33272
33273
33274 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33275 PyObject *obj;
33276 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33277 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
33278 return SWIG_Py_Void();
33279 }
33280
33281 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33282 PyObject *resultobj = 0;
33283 wxFontList *arg1 = (wxFontList *) 0 ;
33284 int arg2 ;
33285 int arg3 ;
33286 int arg4 ;
33287 int arg5 ;
33288 bool arg6 = (bool) false ;
33289 wxString const &arg7_defvalue = wxPyEmptyString ;
33290 wxString *arg7 = (wxString *) &arg7_defvalue ;
33291 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
33292 wxFont *result = 0 ;
33293 void *argp1 = 0 ;
33294 int res1 = 0 ;
33295 int val2 ;
33296 int ecode2 = 0 ;
33297 int val3 ;
33298 int ecode3 = 0 ;
33299 int val4 ;
33300 int ecode4 = 0 ;
33301 int val5 ;
33302 int ecode5 = 0 ;
33303 bool val6 ;
33304 int ecode6 = 0 ;
33305 bool temp7 = false ;
33306 int val8 ;
33307 int ecode8 = 0 ;
33308 PyObject * obj0 = 0 ;
33309 PyObject * obj1 = 0 ;
33310 PyObject * obj2 = 0 ;
33311 PyObject * obj3 = 0 ;
33312 PyObject * obj4 = 0 ;
33313 PyObject * obj5 = 0 ;
33314 PyObject * obj6 = 0 ;
33315 PyObject * obj7 = 0 ;
33316 char * kwnames[] = {
33317 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
33318 };
33319
33320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33322 if (!SWIG_IsOK(res1)) {
33323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33324 }
33325 arg1 = reinterpret_cast< wxFontList * >(argp1);
33326 ecode2 = SWIG_AsVal_int(obj1, &val2);
33327 if (!SWIG_IsOK(ecode2)) {
33328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
33329 }
33330 arg2 = static_cast< int >(val2);
33331 ecode3 = SWIG_AsVal_int(obj2, &val3);
33332 if (!SWIG_IsOK(ecode3)) {
33333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
33334 }
33335 arg3 = static_cast< int >(val3);
33336 ecode4 = SWIG_AsVal_int(obj3, &val4);
33337 if (!SWIG_IsOK(ecode4)) {
33338 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
33339 }
33340 arg4 = static_cast< int >(val4);
33341 ecode5 = SWIG_AsVal_int(obj4, &val5);
33342 if (!SWIG_IsOK(ecode5)) {
33343 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
33344 }
33345 arg5 = static_cast< int >(val5);
33346 if (obj5) {
33347 ecode6 = SWIG_AsVal_bool(obj5, &val6);
33348 if (!SWIG_IsOK(ecode6)) {
33349 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
33350 }
33351 arg6 = static_cast< bool >(val6);
33352 }
33353 if (obj6) {
33354 {
33355 arg7 = wxString_in_helper(obj6);
33356 if (arg7 == NULL) SWIG_fail;
33357 temp7 = true;
33358 }
33359 }
33360 if (obj7) {
33361 ecode8 = SWIG_AsVal_int(obj7, &val8);
33362 if (!SWIG_IsOK(ecode8)) {
33363 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
33364 }
33365 arg8 = static_cast< wxFontEncoding >(val8);
33366 }
33367 {
33368 PyThreadState* __tstate = wxPyBeginAllowThreads();
33369 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
33370 wxPyEndAllowThreads(__tstate);
33371 if (PyErr_Occurred()) SWIG_fail;
33372 }
33373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33374 {
33375 if (temp7)
33376 delete arg7;
33377 }
33378 return resultobj;
33379 fail:
33380 {
33381 if (temp7)
33382 delete arg7;
33383 }
33384 return NULL;
33385 }
33386
33387
33388 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33389 PyObject *resultobj = 0;
33390 wxFontList *arg1 = (wxFontList *) 0 ;
33391 wxFont *arg2 = (wxFont *) 0 ;
33392 void *argp1 = 0 ;
33393 int res1 = 0 ;
33394 void *argp2 = 0 ;
33395 int res2 = 0 ;
33396 PyObject * obj0 = 0 ;
33397 PyObject * obj1 = 0 ;
33398 char * kwnames[] = {
33399 (char *) "self",(char *) "font", NULL
33400 };
33401
33402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
33403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33404 if (!SWIG_IsOK(res1)) {
33405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33406 }
33407 arg1 = reinterpret_cast< wxFontList * >(argp1);
33408 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33409 if (!SWIG_IsOK(res2)) {
33410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
33411 }
33412 arg2 = reinterpret_cast< wxFont * >(argp2);
33413 {
33414 PyThreadState* __tstate = wxPyBeginAllowThreads();
33415 (arg1)->AddFont(arg2);
33416 wxPyEndAllowThreads(__tstate);
33417 if (PyErr_Occurred()) SWIG_fail;
33418 }
33419 resultobj = SWIG_Py_Void();
33420 return resultobj;
33421 fail:
33422 return NULL;
33423 }
33424
33425
33426 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33427 PyObject *resultobj = 0;
33428 wxFontList *arg1 = (wxFontList *) 0 ;
33429 wxFont *arg2 = (wxFont *) 0 ;
33430 void *argp1 = 0 ;
33431 int res1 = 0 ;
33432 void *argp2 = 0 ;
33433 int res2 = 0 ;
33434 PyObject * obj0 = 0 ;
33435 PyObject * obj1 = 0 ;
33436 char * kwnames[] = {
33437 (char *) "self",(char *) "font", NULL
33438 };
33439
33440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
33441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33442 if (!SWIG_IsOK(res1)) {
33443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33444 }
33445 arg1 = reinterpret_cast< wxFontList * >(argp1);
33446 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33447 if (!SWIG_IsOK(res2)) {
33448 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
33449 }
33450 arg2 = reinterpret_cast< wxFont * >(argp2);
33451 {
33452 PyThreadState* __tstate = wxPyBeginAllowThreads();
33453 (arg1)->RemoveFont(arg2);
33454 wxPyEndAllowThreads(__tstate);
33455 if (PyErr_Occurred()) SWIG_fail;
33456 }
33457 resultobj = SWIG_Py_Void();
33458 return resultobj;
33459 fail:
33460 return NULL;
33461 }
33462
33463
33464 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33465 PyObject *obj;
33466 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33467 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
33468 return SWIG_Py_Void();
33469 }
33470
33471 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33472 PyObject *resultobj = 0;
33473 wxColourDatabase *result = 0 ;
33474
33475 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
33476 {
33477 if (!wxPyCheckForApp()) SWIG_fail;
33478 PyThreadState* __tstate = wxPyBeginAllowThreads();
33479 result = (wxColourDatabase *)new wxColourDatabase();
33480 wxPyEndAllowThreads(__tstate);
33481 if (PyErr_Occurred()) SWIG_fail;
33482 }
33483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
33484 return resultobj;
33485 fail:
33486 return NULL;
33487 }
33488
33489
33490 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33491 PyObject *resultobj = 0;
33492 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33493 void *argp1 = 0 ;
33494 int res1 = 0 ;
33495 PyObject *swig_obj[1] ;
33496
33497 if (!args) SWIG_fail;
33498 swig_obj[0] = args;
33499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
33500 if (!SWIG_IsOK(res1)) {
33501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33502 }
33503 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33504 {
33505 PyThreadState* __tstate = wxPyBeginAllowThreads();
33506 delete arg1;
33507
33508 wxPyEndAllowThreads(__tstate);
33509 if (PyErr_Occurred()) SWIG_fail;
33510 }
33511 resultobj = SWIG_Py_Void();
33512 return resultobj;
33513 fail:
33514 return NULL;
33515 }
33516
33517
33518 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33519 PyObject *resultobj = 0;
33520 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33521 wxString *arg2 = 0 ;
33522 wxColour result;
33523 void *argp1 = 0 ;
33524 int res1 = 0 ;
33525 bool temp2 = false ;
33526 PyObject * obj0 = 0 ;
33527 PyObject * obj1 = 0 ;
33528 char * kwnames[] = {
33529 (char *) "self",(char *) "name", NULL
33530 };
33531
33532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
33533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33534 if (!SWIG_IsOK(res1)) {
33535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33536 }
33537 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33538 {
33539 arg2 = wxString_in_helper(obj1);
33540 if (arg2 == NULL) SWIG_fail;
33541 temp2 = true;
33542 }
33543 {
33544 PyThreadState* __tstate = wxPyBeginAllowThreads();
33545 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
33546 wxPyEndAllowThreads(__tstate);
33547 if (PyErr_Occurred()) SWIG_fail;
33548 }
33549 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33550 {
33551 if (temp2)
33552 delete arg2;
33553 }
33554 return resultobj;
33555 fail:
33556 {
33557 if (temp2)
33558 delete arg2;
33559 }
33560 return NULL;
33561 }
33562
33563
33564 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33565 PyObject *resultobj = 0;
33566 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33567 wxColour *arg2 = 0 ;
33568 wxString result;
33569 void *argp1 = 0 ;
33570 int res1 = 0 ;
33571 wxColour temp2 ;
33572 PyObject * obj0 = 0 ;
33573 PyObject * obj1 = 0 ;
33574 char * kwnames[] = {
33575 (char *) "self",(char *) "colour", NULL
33576 };
33577
33578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
33579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33580 if (!SWIG_IsOK(res1)) {
33581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33582 }
33583 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33584 {
33585 arg2 = &temp2;
33586 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33587 }
33588 {
33589 PyThreadState* __tstate = wxPyBeginAllowThreads();
33590 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
33591 wxPyEndAllowThreads(__tstate);
33592 if (PyErr_Occurred()) SWIG_fail;
33593 }
33594 {
33595 #if wxUSE_UNICODE
33596 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33597 #else
33598 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33599 #endif
33600 }
33601 return resultobj;
33602 fail:
33603 return NULL;
33604 }
33605
33606
33607 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33608 PyObject *resultobj = 0;
33609 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33610 wxString *arg2 = 0 ;
33611 wxColour *arg3 = 0 ;
33612 void *argp1 = 0 ;
33613 int res1 = 0 ;
33614 bool temp2 = false ;
33615 wxColour temp3 ;
33616 PyObject * obj0 = 0 ;
33617 PyObject * obj1 = 0 ;
33618 PyObject * obj2 = 0 ;
33619 char * kwnames[] = {
33620 (char *) "self",(char *) "name",(char *) "colour", NULL
33621 };
33622
33623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33625 if (!SWIG_IsOK(res1)) {
33626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33627 }
33628 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33629 {
33630 arg2 = wxString_in_helper(obj1);
33631 if (arg2 == NULL) SWIG_fail;
33632 temp2 = true;
33633 }
33634 {
33635 arg3 = &temp3;
33636 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33637 }
33638 {
33639 PyThreadState* __tstate = wxPyBeginAllowThreads();
33640 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
33641 wxPyEndAllowThreads(__tstate);
33642 if (PyErr_Occurred()) SWIG_fail;
33643 }
33644 resultobj = SWIG_Py_Void();
33645 {
33646 if (temp2)
33647 delete arg2;
33648 }
33649 return resultobj;
33650 fail:
33651 {
33652 if (temp2)
33653 delete arg2;
33654 }
33655 return NULL;
33656 }
33657
33658
33659 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33660 PyObject *resultobj = 0;
33661 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33662 wxString *arg2 = 0 ;
33663 int arg3 ;
33664 int arg4 ;
33665 int arg5 ;
33666 void *argp1 = 0 ;
33667 int res1 = 0 ;
33668 bool temp2 = false ;
33669 int val3 ;
33670 int ecode3 = 0 ;
33671 int val4 ;
33672 int ecode4 = 0 ;
33673 int val5 ;
33674 int ecode5 = 0 ;
33675 PyObject * obj0 = 0 ;
33676 PyObject * obj1 = 0 ;
33677 PyObject * obj2 = 0 ;
33678 PyObject * obj3 = 0 ;
33679 PyObject * obj4 = 0 ;
33680 char * kwnames[] = {
33681 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
33682 };
33683
33684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33686 if (!SWIG_IsOK(res1)) {
33687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33688 }
33689 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33690 {
33691 arg2 = wxString_in_helper(obj1);
33692 if (arg2 == NULL) SWIG_fail;
33693 temp2 = true;
33694 }
33695 ecode3 = SWIG_AsVal_int(obj2, &val3);
33696 if (!SWIG_IsOK(ecode3)) {
33697 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
33698 }
33699 arg3 = static_cast< int >(val3);
33700 ecode4 = SWIG_AsVal_int(obj3, &val4);
33701 if (!SWIG_IsOK(ecode4)) {
33702 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
33703 }
33704 arg4 = static_cast< int >(val4);
33705 ecode5 = SWIG_AsVal_int(obj4, &val5);
33706 if (!SWIG_IsOK(ecode5)) {
33707 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
33708 }
33709 arg5 = static_cast< int >(val5);
33710 {
33711 PyThreadState* __tstate = wxPyBeginAllowThreads();
33712 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
33713 wxPyEndAllowThreads(__tstate);
33714 if (PyErr_Occurred()) SWIG_fail;
33715 }
33716 resultobj = SWIG_Py_Void();
33717 {
33718 if (temp2)
33719 delete arg2;
33720 }
33721 return resultobj;
33722 fail:
33723 {
33724 if (temp2)
33725 delete arg2;
33726 }
33727 return NULL;
33728 }
33729
33730
33731 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33732 PyObject *obj;
33733 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33734 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33735 return SWIG_Py_Void();
33736 }
33737
33738 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33739 return SWIG_Python_InitShadowInstance(args);
33740 }
33741
33742 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33743 PyObject *resultobj = 0;
33744 wxFontList *result = 0 ;
33745
33746 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
33747 {
33748 PyThreadState* __tstate = wxPyBeginAllowThreads();
33749 result = (wxFontList *)_wxPyInitTheFontList();
33750 wxPyEndAllowThreads(__tstate);
33751 if (PyErr_Occurred()) SWIG_fail;
33752 }
33753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
33754 return resultobj;
33755 fail:
33756 return NULL;
33757 }
33758
33759
33760 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33761 PyObject *resultobj = 0;
33762 wxPenList *result = 0 ;
33763
33764 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
33765 {
33766 PyThreadState* __tstate = wxPyBeginAllowThreads();
33767 result = (wxPenList *)_wxPyInitThePenList();
33768 wxPyEndAllowThreads(__tstate);
33769 if (PyErr_Occurred()) SWIG_fail;
33770 }
33771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
33772 return resultobj;
33773 fail:
33774 return NULL;
33775 }
33776
33777
33778 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33779 PyObject *resultobj = 0;
33780 wxBrushList *result = 0 ;
33781
33782 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33783 {
33784 PyThreadState* __tstate = wxPyBeginAllowThreads();
33785 result = (wxBrushList *)_wxPyInitTheBrushList();
33786 wxPyEndAllowThreads(__tstate);
33787 if (PyErr_Occurred()) SWIG_fail;
33788 }
33789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33790 return resultobj;
33791 fail:
33792 return NULL;
33793 }
33794
33795
33796 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33797 PyObject *resultobj = 0;
33798 wxColourDatabase *result = 0 ;
33799
33800 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33801 {
33802 PyThreadState* __tstate = wxPyBeginAllowThreads();
33803 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33804 wxPyEndAllowThreads(__tstate);
33805 if (PyErr_Occurred()) SWIG_fail;
33806 }
33807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33808 return resultobj;
33809 fail:
33810 return NULL;
33811 }
33812
33813
33814 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33815 PyObject *resultobj = 0;
33816 wxEffects *result = 0 ;
33817
33818 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33819 {
33820 PyThreadState* __tstate = wxPyBeginAllowThreads();
33821 result = (wxEffects *)new wxEffects();
33822 wxPyEndAllowThreads(__tstate);
33823 if (PyErr_Occurred()) SWIG_fail;
33824 }
33825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33826 return resultobj;
33827 fail:
33828 return NULL;
33829 }
33830
33831
33832 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33833 PyObject *resultobj = 0;
33834 wxEffects *arg1 = (wxEffects *) 0 ;
33835 wxColour result;
33836 void *argp1 = 0 ;
33837 int res1 = 0 ;
33838 PyObject *swig_obj[1] ;
33839
33840 if (!args) SWIG_fail;
33841 swig_obj[0] = args;
33842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33843 if (!SWIG_IsOK(res1)) {
33844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33845 }
33846 arg1 = reinterpret_cast< wxEffects * >(argp1);
33847 {
33848 PyThreadState* __tstate = wxPyBeginAllowThreads();
33849 result = ((wxEffects const *)arg1)->GetHighlightColour();
33850 wxPyEndAllowThreads(__tstate);
33851 if (PyErr_Occurred()) SWIG_fail;
33852 }
33853 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33854 return resultobj;
33855 fail:
33856 return NULL;
33857 }
33858
33859
33860 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33861 PyObject *resultobj = 0;
33862 wxEffects *arg1 = (wxEffects *) 0 ;
33863 wxColour result;
33864 void *argp1 = 0 ;
33865 int res1 = 0 ;
33866 PyObject *swig_obj[1] ;
33867
33868 if (!args) SWIG_fail;
33869 swig_obj[0] = args;
33870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33871 if (!SWIG_IsOK(res1)) {
33872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33873 }
33874 arg1 = reinterpret_cast< wxEffects * >(argp1);
33875 {
33876 PyThreadState* __tstate = wxPyBeginAllowThreads();
33877 result = ((wxEffects const *)arg1)->GetLightShadow();
33878 wxPyEndAllowThreads(__tstate);
33879 if (PyErr_Occurred()) SWIG_fail;
33880 }
33881 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33882 return resultobj;
33883 fail:
33884 return NULL;
33885 }
33886
33887
33888 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33889 PyObject *resultobj = 0;
33890 wxEffects *arg1 = (wxEffects *) 0 ;
33891 wxColour result;
33892 void *argp1 = 0 ;
33893 int res1 = 0 ;
33894 PyObject *swig_obj[1] ;
33895
33896 if (!args) SWIG_fail;
33897 swig_obj[0] = args;
33898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33899 if (!SWIG_IsOK(res1)) {
33900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33901 }
33902 arg1 = reinterpret_cast< wxEffects * >(argp1);
33903 {
33904 PyThreadState* __tstate = wxPyBeginAllowThreads();
33905 result = ((wxEffects const *)arg1)->GetFaceColour();
33906 wxPyEndAllowThreads(__tstate);
33907 if (PyErr_Occurred()) SWIG_fail;
33908 }
33909 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33910 return resultobj;
33911 fail:
33912 return NULL;
33913 }
33914
33915
33916 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33917 PyObject *resultobj = 0;
33918 wxEffects *arg1 = (wxEffects *) 0 ;
33919 wxColour result;
33920 void *argp1 = 0 ;
33921 int res1 = 0 ;
33922 PyObject *swig_obj[1] ;
33923
33924 if (!args) SWIG_fail;
33925 swig_obj[0] = args;
33926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33927 if (!SWIG_IsOK(res1)) {
33928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33929 }
33930 arg1 = reinterpret_cast< wxEffects * >(argp1);
33931 {
33932 PyThreadState* __tstate = wxPyBeginAllowThreads();
33933 result = ((wxEffects const *)arg1)->GetMediumShadow();
33934 wxPyEndAllowThreads(__tstate);
33935 if (PyErr_Occurred()) SWIG_fail;
33936 }
33937 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33938 return resultobj;
33939 fail:
33940 return NULL;
33941 }
33942
33943
33944 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33945 PyObject *resultobj = 0;
33946 wxEffects *arg1 = (wxEffects *) 0 ;
33947 wxColour result;
33948 void *argp1 = 0 ;
33949 int res1 = 0 ;
33950 PyObject *swig_obj[1] ;
33951
33952 if (!args) SWIG_fail;
33953 swig_obj[0] = args;
33954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33955 if (!SWIG_IsOK(res1)) {
33956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33957 }
33958 arg1 = reinterpret_cast< wxEffects * >(argp1);
33959 {
33960 PyThreadState* __tstate = wxPyBeginAllowThreads();
33961 result = ((wxEffects const *)arg1)->GetDarkShadow();
33962 wxPyEndAllowThreads(__tstate);
33963 if (PyErr_Occurred()) SWIG_fail;
33964 }
33965 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33966 return resultobj;
33967 fail:
33968 return NULL;
33969 }
33970
33971
33972 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33973 PyObject *resultobj = 0;
33974 wxEffects *arg1 = (wxEffects *) 0 ;
33975 wxColour *arg2 = 0 ;
33976 void *argp1 = 0 ;
33977 int res1 = 0 ;
33978 wxColour temp2 ;
33979 PyObject * obj0 = 0 ;
33980 PyObject * obj1 = 0 ;
33981 char * kwnames[] = {
33982 (char *) "self",(char *) "c", NULL
33983 };
33984
33985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33987 if (!SWIG_IsOK(res1)) {
33988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33989 }
33990 arg1 = reinterpret_cast< wxEffects * >(argp1);
33991 {
33992 arg2 = &temp2;
33993 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33994 }
33995 {
33996 PyThreadState* __tstate = wxPyBeginAllowThreads();
33997 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33998 wxPyEndAllowThreads(__tstate);
33999 if (PyErr_Occurred()) SWIG_fail;
34000 }
34001 resultobj = SWIG_Py_Void();
34002 return resultobj;
34003 fail:
34004 return NULL;
34005 }
34006
34007
34008 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34009 PyObject *resultobj = 0;
34010 wxEffects *arg1 = (wxEffects *) 0 ;
34011 wxColour *arg2 = 0 ;
34012 void *argp1 = 0 ;
34013 int res1 = 0 ;
34014 wxColour temp2 ;
34015 PyObject * obj0 = 0 ;
34016 PyObject * obj1 = 0 ;
34017 char * kwnames[] = {
34018 (char *) "self",(char *) "c", NULL
34019 };
34020
34021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34023 if (!SWIG_IsOK(res1)) {
34024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34025 }
34026 arg1 = reinterpret_cast< wxEffects * >(argp1);
34027 {
34028 arg2 = &temp2;
34029 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34030 }
34031 {
34032 PyThreadState* __tstate = wxPyBeginAllowThreads();
34033 (arg1)->SetLightShadow((wxColour const &)*arg2);
34034 wxPyEndAllowThreads(__tstate);
34035 if (PyErr_Occurred()) SWIG_fail;
34036 }
34037 resultobj = SWIG_Py_Void();
34038 return resultobj;
34039 fail:
34040 return NULL;
34041 }
34042
34043
34044 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34045 PyObject *resultobj = 0;
34046 wxEffects *arg1 = (wxEffects *) 0 ;
34047 wxColour *arg2 = 0 ;
34048 void *argp1 = 0 ;
34049 int res1 = 0 ;
34050 wxColour temp2 ;
34051 PyObject * obj0 = 0 ;
34052 PyObject * obj1 = 0 ;
34053 char * kwnames[] = {
34054 (char *) "self",(char *) "c", NULL
34055 };
34056
34057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
34058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34059 if (!SWIG_IsOK(res1)) {
34060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
34061 }
34062 arg1 = reinterpret_cast< wxEffects * >(argp1);
34063 {
34064 arg2 = &temp2;
34065 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34066 }
34067 {
34068 PyThreadState* __tstate = wxPyBeginAllowThreads();
34069 (arg1)->SetFaceColour((wxColour const &)*arg2);
34070 wxPyEndAllowThreads(__tstate);
34071 if (PyErr_Occurred()) SWIG_fail;
34072 }
34073 resultobj = SWIG_Py_Void();
34074 return resultobj;
34075 fail:
34076 return NULL;
34077 }
34078
34079
34080 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34081 PyObject *resultobj = 0;
34082 wxEffects *arg1 = (wxEffects *) 0 ;
34083 wxColour *arg2 = 0 ;
34084 void *argp1 = 0 ;
34085 int res1 = 0 ;
34086 wxColour temp2 ;
34087 PyObject * obj0 = 0 ;
34088 PyObject * obj1 = 0 ;
34089 char * kwnames[] = {
34090 (char *) "self",(char *) "c", NULL
34091 };
34092
34093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34095 if (!SWIG_IsOK(res1)) {
34096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34097 }
34098 arg1 = reinterpret_cast< wxEffects * >(argp1);
34099 {
34100 arg2 = &temp2;
34101 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34102 }
34103 {
34104 PyThreadState* __tstate = wxPyBeginAllowThreads();
34105 (arg1)->SetMediumShadow((wxColour const &)*arg2);
34106 wxPyEndAllowThreads(__tstate);
34107 if (PyErr_Occurred()) SWIG_fail;
34108 }
34109 resultobj = SWIG_Py_Void();
34110 return resultobj;
34111 fail:
34112 return NULL;
34113 }
34114
34115
34116 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34117 PyObject *resultobj = 0;
34118 wxEffects *arg1 = (wxEffects *) 0 ;
34119 wxColour *arg2 = 0 ;
34120 void *argp1 = 0 ;
34121 int res1 = 0 ;
34122 wxColour temp2 ;
34123 PyObject * obj0 = 0 ;
34124 PyObject * obj1 = 0 ;
34125 char * kwnames[] = {
34126 (char *) "self",(char *) "c", NULL
34127 };
34128
34129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34131 if (!SWIG_IsOK(res1)) {
34132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34133 }
34134 arg1 = reinterpret_cast< wxEffects * >(argp1);
34135 {
34136 arg2 = &temp2;
34137 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34138 }
34139 {
34140 PyThreadState* __tstate = wxPyBeginAllowThreads();
34141 (arg1)->SetDarkShadow((wxColour const &)*arg2);
34142 wxPyEndAllowThreads(__tstate);
34143 if (PyErr_Occurred()) SWIG_fail;
34144 }
34145 resultobj = SWIG_Py_Void();
34146 return resultobj;
34147 fail:
34148 return NULL;
34149 }
34150
34151
34152 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34153 PyObject *resultobj = 0;
34154 wxEffects *arg1 = (wxEffects *) 0 ;
34155 wxColour *arg2 = 0 ;
34156 wxColour *arg3 = 0 ;
34157 wxColour *arg4 = 0 ;
34158 wxColour *arg5 = 0 ;
34159 wxColour *arg6 = 0 ;
34160 void *argp1 = 0 ;
34161 int res1 = 0 ;
34162 wxColour temp2 ;
34163 wxColour temp3 ;
34164 wxColour temp4 ;
34165 wxColour temp5 ;
34166 wxColour temp6 ;
34167 PyObject * obj0 = 0 ;
34168 PyObject * obj1 = 0 ;
34169 PyObject * obj2 = 0 ;
34170 PyObject * obj3 = 0 ;
34171 PyObject * obj4 = 0 ;
34172 PyObject * obj5 = 0 ;
34173 char * kwnames[] = {
34174 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
34175 };
34176
34177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34179 if (!SWIG_IsOK(res1)) {
34180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
34181 }
34182 arg1 = reinterpret_cast< wxEffects * >(argp1);
34183 {
34184 arg2 = &temp2;
34185 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34186 }
34187 {
34188 arg3 = &temp3;
34189 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34190 }
34191 {
34192 arg4 = &temp4;
34193 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
34194 }
34195 {
34196 arg5 = &temp5;
34197 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
34198 }
34199 {
34200 arg6 = &temp6;
34201 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
34202 }
34203 {
34204 PyThreadState* __tstate = wxPyBeginAllowThreads();
34205 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
34206 wxPyEndAllowThreads(__tstate);
34207 if (PyErr_Occurred()) SWIG_fail;
34208 }
34209 resultobj = SWIG_Py_Void();
34210 return resultobj;
34211 fail:
34212 return NULL;
34213 }
34214
34215
34216 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34217 PyObject *resultobj = 0;
34218 wxEffects *arg1 = (wxEffects *) 0 ;
34219 wxDC *arg2 = 0 ;
34220 wxRect *arg3 = 0 ;
34221 int arg4 = (int) 1 ;
34222 void *argp1 = 0 ;
34223 int res1 = 0 ;
34224 void *argp2 = 0 ;
34225 int res2 = 0 ;
34226 wxRect temp3 ;
34227 int val4 ;
34228 int ecode4 = 0 ;
34229 PyObject * obj0 = 0 ;
34230 PyObject * obj1 = 0 ;
34231 PyObject * obj2 = 0 ;
34232 PyObject * obj3 = 0 ;
34233 char * kwnames[] = {
34234 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
34235 };
34236
34237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34239 if (!SWIG_IsOK(res1)) {
34240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
34241 }
34242 arg1 = reinterpret_cast< wxEffects * >(argp1);
34243 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
34244 if (!SWIG_IsOK(res2)) {
34245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34246 }
34247 if (!argp2) {
34248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34249 }
34250 arg2 = reinterpret_cast< wxDC * >(argp2);
34251 {
34252 arg3 = &temp3;
34253 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34254 }
34255 if (obj3) {
34256 ecode4 = SWIG_AsVal_int(obj3, &val4);
34257 if (!SWIG_IsOK(ecode4)) {
34258 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
34259 }
34260 arg4 = static_cast< int >(val4);
34261 }
34262 {
34263 PyThreadState* __tstate = wxPyBeginAllowThreads();
34264 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
34265 wxPyEndAllowThreads(__tstate);
34266 if (PyErr_Occurred()) SWIG_fail;
34267 }
34268 resultobj = SWIG_Py_Void();
34269 return resultobj;
34270 fail:
34271 return NULL;
34272 }
34273
34274
34275 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34276 PyObject *resultobj = 0;
34277 wxEffects *arg1 = (wxEffects *) 0 ;
34278 wxRect *arg2 = 0 ;
34279 wxDC *arg3 = 0 ;
34280 wxBitmap *arg4 = 0 ;
34281 bool result;
34282 void *argp1 = 0 ;
34283 int res1 = 0 ;
34284 wxRect temp2 ;
34285 void *argp3 = 0 ;
34286 int res3 = 0 ;
34287 void *argp4 = 0 ;
34288 int res4 = 0 ;
34289 PyObject * obj0 = 0 ;
34290 PyObject * obj1 = 0 ;
34291 PyObject * obj2 = 0 ;
34292 PyObject * obj3 = 0 ;
34293 char * kwnames[] = {
34294 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
34295 };
34296
34297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34299 if (!SWIG_IsOK(res1)) {
34300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
34301 }
34302 arg1 = reinterpret_cast< wxEffects * >(argp1);
34303 {
34304 arg2 = &temp2;
34305 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
34306 }
34307 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34308 if (!SWIG_IsOK(res3)) {
34309 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34310 }
34311 if (!argp3) {
34312 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34313 }
34314 arg3 = reinterpret_cast< wxDC * >(argp3);
34315 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
34316 if (!SWIG_IsOK(res4)) {
34317 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34318 }
34319 if (!argp4) {
34320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34321 }
34322 arg4 = reinterpret_cast< wxBitmap * >(argp4);
34323 {
34324 PyThreadState* __tstate = wxPyBeginAllowThreads();
34325 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
34326 wxPyEndAllowThreads(__tstate);
34327 if (PyErr_Occurred()) SWIG_fail;
34328 }
34329 {
34330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34331 }
34332 return resultobj;
34333 fail:
34334 return NULL;
34335 }
34336
34337
34338 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34339 PyObject *obj;
34340 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34341 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
34342 return SWIG_Py_Void();
34343 }
34344
34345 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34346 return SWIG_Python_InitShadowInstance(args);
34347 }
34348
34349 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34350 PyObject *resultobj = 0;
34351 int arg1 ;
34352 int arg2 ;
34353 bool arg3 ;
34354 wxSplitterRenderParams *result = 0 ;
34355 int val1 ;
34356 int ecode1 = 0 ;
34357 int val2 ;
34358 int ecode2 = 0 ;
34359 bool val3 ;
34360 int ecode3 = 0 ;
34361 PyObject * obj0 = 0 ;
34362 PyObject * obj1 = 0 ;
34363 PyObject * obj2 = 0 ;
34364 char * kwnames[] = {
34365 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
34366 };
34367
34368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34369 ecode1 = SWIG_AsVal_int(obj0, &val1);
34370 if (!SWIG_IsOK(ecode1)) {
34371 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
34372 }
34373 arg1 = static_cast< int >(val1);
34374 ecode2 = SWIG_AsVal_int(obj1, &val2);
34375 if (!SWIG_IsOK(ecode2)) {
34376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
34377 }
34378 arg2 = static_cast< int >(val2);
34379 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34380 if (!SWIG_IsOK(ecode3)) {
34381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
34382 }
34383 arg3 = static_cast< bool >(val3);
34384 {
34385 PyThreadState* __tstate = wxPyBeginAllowThreads();
34386 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
34387 wxPyEndAllowThreads(__tstate);
34388 if (PyErr_Occurred()) SWIG_fail;
34389 }
34390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
34391 return resultobj;
34392 fail:
34393 return NULL;
34394 }
34395
34396
34397 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34398 PyObject *resultobj = 0;
34399 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34400 void *argp1 = 0 ;
34401 int res1 = 0 ;
34402 PyObject *swig_obj[1] ;
34403
34404 if (!args) SWIG_fail;
34405 swig_obj[0] = args;
34406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
34407 if (!SWIG_IsOK(res1)) {
34408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34409 }
34410 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34411 {
34412 PyThreadState* __tstate = wxPyBeginAllowThreads();
34413 delete arg1;
34414
34415 wxPyEndAllowThreads(__tstate);
34416 if (PyErr_Occurred()) SWIG_fail;
34417 }
34418 resultobj = SWIG_Py_Void();
34419 return resultobj;
34420 fail:
34421 return NULL;
34422 }
34423
34424
34425 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34426 PyObject *resultobj = 0;
34427 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34428 int result;
34429 void *argp1 = 0 ;
34430 int res1 = 0 ;
34431 PyObject *swig_obj[1] ;
34432
34433 if (!args) SWIG_fail;
34434 swig_obj[0] = args;
34435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34436 if (!SWIG_IsOK(res1)) {
34437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34438 }
34439 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34440 result = (int)(int) ((arg1)->widthSash);
34441 resultobj = SWIG_From_int(static_cast< int >(result));
34442 return resultobj;
34443 fail:
34444 return NULL;
34445 }
34446
34447
34448 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34449 PyObject *resultobj = 0;
34450 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34451 int result;
34452 void *argp1 = 0 ;
34453 int res1 = 0 ;
34454 PyObject *swig_obj[1] ;
34455
34456 if (!args) SWIG_fail;
34457 swig_obj[0] = args;
34458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34459 if (!SWIG_IsOK(res1)) {
34460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34461 }
34462 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34463 result = (int)(int) ((arg1)->border);
34464 resultobj = SWIG_From_int(static_cast< int >(result));
34465 return resultobj;
34466 fail:
34467 return NULL;
34468 }
34469
34470
34471 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34472 PyObject *resultobj = 0;
34473 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34474 bool result;
34475 void *argp1 = 0 ;
34476 int res1 = 0 ;
34477 PyObject *swig_obj[1] ;
34478
34479 if (!args) SWIG_fail;
34480 swig_obj[0] = args;
34481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34482 if (!SWIG_IsOK(res1)) {
34483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34484 }
34485 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34486 result = (bool)(bool) ((arg1)->isHotSensitive);
34487 resultobj = SWIG_From_bool(static_cast< bool >(result));
34488 return resultobj;
34489 fail:
34490 return NULL;
34491 }
34492
34493
34494 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34495 PyObject *obj;
34496 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34497 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
34498 return SWIG_Py_Void();
34499 }
34500
34501 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34502 return SWIG_Python_InitShadowInstance(args);
34503 }
34504
34505 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34506 PyObject *resultobj = 0;
34507 wxHeaderButtonParams *result = 0 ;
34508
34509 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
34510 {
34511 PyThreadState* __tstate = wxPyBeginAllowThreads();
34512 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
34513 wxPyEndAllowThreads(__tstate);
34514 if (PyErr_Occurred()) SWIG_fail;
34515 }
34516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
34517 return resultobj;
34518 fail:
34519 return NULL;
34520 }
34521
34522
34523 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34524 PyObject *resultobj = 0;
34525 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34526 void *argp1 = 0 ;
34527 int res1 = 0 ;
34528 PyObject *swig_obj[1] ;
34529
34530 if (!args) SWIG_fail;
34531 swig_obj[0] = args;
34532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
34533 if (!SWIG_IsOK(res1)) {
34534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34535 }
34536 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34537 {
34538 PyThreadState* __tstate = wxPyBeginAllowThreads();
34539 delete arg1;
34540
34541 wxPyEndAllowThreads(__tstate);
34542 if (PyErr_Occurred()) SWIG_fail;
34543 }
34544 resultobj = SWIG_Py_Void();
34545 return resultobj;
34546 fail:
34547 return NULL;
34548 }
34549
34550
34551 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34552 PyObject *resultobj = 0;
34553 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34554 wxColour *arg2 = (wxColour *) 0 ;
34555 void *argp1 = 0 ;
34556 int res1 = 0 ;
34557 wxColour temp2 ;
34558 PyObject *swig_obj[2] ;
34559
34560 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
34561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34562 if (!SWIG_IsOK(res1)) {
34563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34564 }
34565 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34566 {
34567 arg2 = &temp2;
34568 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34569 }
34570 if (arg1) (arg1)->m_arrowColour = *arg2;
34571
34572 resultobj = SWIG_Py_Void();
34573 return resultobj;
34574 fail:
34575 return NULL;
34576 }
34577
34578
34579 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34580 PyObject *resultobj = 0;
34581 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34582 wxColour *result = 0 ;
34583 void *argp1 = 0 ;
34584 int res1 = 0 ;
34585 PyObject *swig_obj[1] ;
34586
34587 if (!args) SWIG_fail;
34588 swig_obj[0] = args;
34589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34590 if (!SWIG_IsOK(res1)) {
34591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34592 }
34593 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34594 result = (wxColour *)& ((arg1)->m_arrowColour);
34595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34596 return resultobj;
34597 fail:
34598 return NULL;
34599 }
34600
34601
34602 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34603 PyObject *resultobj = 0;
34604 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34605 wxColour *arg2 = (wxColour *) 0 ;
34606 void *argp1 = 0 ;
34607 int res1 = 0 ;
34608 wxColour temp2 ;
34609 PyObject *swig_obj[2] ;
34610
34611 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
34612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34613 if (!SWIG_IsOK(res1)) {
34614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34615 }
34616 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34617 {
34618 arg2 = &temp2;
34619 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34620 }
34621 if (arg1) (arg1)->m_selectionColour = *arg2;
34622
34623 resultobj = SWIG_Py_Void();
34624 return resultobj;
34625 fail:
34626 return NULL;
34627 }
34628
34629
34630 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34631 PyObject *resultobj = 0;
34632 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34633 wxColour *result = 0 ;
34634 void *argp1 = 0 ;
34635 int res1 = 0 ;
34636 PyObject *swig_obj[1] ;
34637
34638 if (!args) SWIG_fail;
34639 swig_obj[0] = args;
34640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34641 if (!SWIG_IsOK(res1)) {
34642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34643 }
34644 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34645 result = (wxColour *)& ((arg1)->m_selectionColour);
34646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34647 return resultobj;
34648 fail:
34649 return NULL;
34650 }
34651
34652
34653 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34654 PyObject *resultobj = 0;
34655 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34656 wxString *arg2 = (wxString *) 0 ;
34657 void *argp1 = 0 ;
34658 int res1 = 0 ;
34659 bool temp2 = false ;
34660 PyObject *swig_obj[2] ;
34661
34662 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
34663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34664 if (!SWIG_IsOK(res1)) {
34665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34666 }
34667 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34668 {
34669 arg2 = wxString_in_helper(swig_obj[1]);
34670 if (arg2 == NULL) SWIG_fail;
34671 temp2 = true;
34672 }
34673 if (arg1) (arg1)->m_labelText = *arg2;
34674
34675 resultobj = SWIG_Py_Void();
34676 {
34677 if (temp2)
34678 delete arg2;
34679 }
34680 return resultobj;
34681 fail:
34682 {
34683 if (temp2)
34684 delete arg2;
34685 }
34686 return NULL;
34687 }
34688
34689
34690 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34691 PyObject *resultobj = 0;
34692 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34693 wxString *result = 0 ;
34694 void *argp1 = 0 ;
34695 int res1 = 0 ;
34696 PyObject *swig_obj[1] ;
34697
34698 if (!args) SWIG_fail;
34699 swig_obj[0] = args;
34700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34701 if (!SWIG_IsOK(res1)) {
34702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34703 }
34704 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34705 result = (wxString *)& ((arg1)->m_labelText);
34706 {
34707 #if wxUSE_UNICODE
34708 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34709 #else
34710 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34711 #endif
34712 }
34713 return resultobj;
34714 fail:
34715 return NULL;
34716 }
34717
34718
34719 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34720 PyObject *resultobj = 0;
34721 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34722 wxFont *arg2 = (wxFont *) 0 ;
34723 void *argp1 = 0 ;
34724 int res1 = 0 ;
34725 void *argp2 = 0 ;
34726 int res2 = 0 ;
34727 PyObject *swig_obj[2] ;
34728
34729 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34731 if (!SWIG_IsOK(res1)) {
34732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34733 }
34734 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34735 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34736 if (!SWIG_IsOK(res2)) {
34737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34738 }
34739 arg2 = reinterpret_cast< wxFont * >(argp2);
34740 if (arg1) (arg1)->m_labelFont = *arg2;
34741
34742 resultobj = SWIG_Py_Void();
34743 return resultobj;
34744 fail:
34745 return NULL;
34746 }
34747
34748
34749 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34750 PyObject *resultobj = 0;
34751 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34752 wxFont *result = 0 ;
34753 void *argp1 = 0 ;
34754 int res1 = 0 ;
34755 PyObject *swig_obj[1] ;
34756
34757 if (!args) SWIG_fail;
34758 swig_obj[0] = args;
34759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34760 if (!SWIG_IsOK(res1)) {
34761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34762 }
34763 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34764 result = (wxFont *)& ((arg1)->m_labelFont);
34765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34766 return resultobj;
34767 fail:
34768 return NULL;
34769 }
34770
34771
34772 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34773 PyObject *resultobj = 0;
34774 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34775 wxColour *arg2 = (wxColour *) 0 ;
34776 void *argp1 = 0 ;
34777 int res1 = 0 ;
34778 wxColour temp2 ;
34779 PyObject *swig_obj[2] ;
34780
34781 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34783 if (!SWIG_IsOK(res1)) {
34784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34785 }
34786 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34787 {
34788 arg2 = &temp2;
34789 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34790 }
34791 if (arg1) (arg1)->m_labelColour = *arg2;
34792
34793 resultobj = SWIG_Py_Void();
34794 return resultobj;
34795 fail:
34796 return NULL;
34797 }
34798
34799
34800 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34801 PyObject *resultobj = 0;
34802 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34803 wxColour *result = 0 ;
34804 void *argp1 = 0 ;
34805 int res1 = 0 ;
34806 PyObject *swig_obj[1] ;
34807
34808 if (!args) SWIG_fail;
34809 swig_obj[0] = args;
34810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34811 if (!SWIG_IsOK(res1)) {
34812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34813 }
34814 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34815 result = (wxColour *)& ((arg1)->m_labelColour);
34816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34817 return resultobj;
34818 fail:
34819 return NULL;
34820 }
34821
34822
34823 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34824 PyObject *resultobj = 0;
34825 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34826 wxBitmap *arg2 = (wxBitmap *) 0 ;
34827 void *argp1 = 0 ;
34828 int res1 = 0 ;
34829 void *argp2 = 0 ;
34830 int res2 = 0 ;
34831 PyObject *swig_obj[2] ;
34832
34833 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34835 if (!SWIG_IsOK(res1)) {
34836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34837 }
34838 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34839 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34840 if (!SWIG_IsOK(res2)) {
34841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34842 }
34843 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34844 if (arg1) (arg1)->m_labelBitmap = *arg2;
34845
34846 resultobj = SWIG_Py_Void();
34847 return resultobj;
34848 fail:
34849 return NULL;
34850 }
34851
34852
34853 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34854 PyObject *resultobj = 0;
34855 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34856 wxBitmap *result = 0 ;
34857 void *argp1 = 0 ;
34858 int res1 = 0 ;
34859 PyObject *swig_obj[1] ;
34860
34861 if (!args) SWIG_fail;
34862 swig_obj[0] = args;
34863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34864 if (!SWIG_IsOK(res1)) {
34865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34866 }
34867 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34868 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34870 return resultobj;
34871 fail:
34872 return NULL;
34873 }
34874
34875
34876 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34877 PyObject *resultobj = 0;
34878 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34879 int arg2 ;
34880 void *argp1 = 0 ;
34881 int res1 = 0 ;
34882 int val2 ;
34883 int ecode2 = 0 ;
34884 PyObject *swig_obj[2] ;
34885
34886 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34888 if (!SWIG_IsOK(res1)) {
34889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34890 }
34891 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34892 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34893 if (!SWIG_IsOK(ecode2)) {
34894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34895 }
34896 arg2 = static_cast< int >(val2);
34897 if (arg1) (arg1)->m_labelAlignment = arg2;
34898
34899 resultobj = SWIG_Py_Void();
34900 return resultobj;
34901 fail:
34902 return NULL;
34903 }
34904
34905
34906 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34907 PyObject *resultobj = 0;
34908 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34909 int result;
34910 void *argp1 = 0 ;
34911 int res1 = 0 ;
34912 PyObject *swig_obj[1] ;
34913
34914 if (!args) SWIG_fail;
34915 swig_obj[0] = args;
34916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34917 if (!SWIG_IsOK(res1)) {
34918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34919 }
34920 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34921 result = (int) ((arg1)->m_labelAlignment);
34922 resultobj = SWIG_From_int(static_cast< int >(result));
34923 return resultobj;
34924 fail:
34925 return NULL;
34926 }
34927
34928
34929 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34930 PyObject *obj;
34931 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34932 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34933 return SWIG_Py_Void();
34934 }
34935
34936 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34937 return SWIG_Python_InitShadowInstance(args);
34938 }
34939
34940 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34941 PyObject *resultobj = 0;
34942 int arg1 ;
34943 int arg2 ;
34944 wxRendererVersion *result = 0 ;
34945 int val1 ;
34946 int ecode1 = 0 ;
34947 int val2 ;
34948 int ecode2 = 0 ;
34949 PyObject * obj0 = 0 ;
34950 PyObject * obj1 = 0 ;
34951 char * kwnames[] = {
34952 (char *) "version_",(char *) "age_", NULL
34953 };
34954
34955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34956 ecode1 = SWIG_AsVal_int(obj0, &val1);
34957 if (!SWIG_IsOK(ecode1)) {
34958 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34959 }
34960 arg1 = static_cast< int >(val1);
34961 ecode2 = SWIG_AsVal_int(obj1, &val2);
34962 if (!SWIG_IsOK(ecode2)) {
34963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34964 }
34965 arg2 = static_cast< int >(val2);
34966 {
34967 PyThreadState* __tstate = wxPyBeginAllowThreads();
34968 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34969 wxPyEndAllowThreads(__tstate);
34970 if (PyErr_Occurred()) SWIG_fail;
34971 }
34972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34973 return resultobj;
34974 fail:
34975 return NULL;
34976 }
34977
34978
34979 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34980 PyObject *resultobj = 0;
34981 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34982 void *argp1 = 0 ;
34983 int res1 = 0 ;
34984 PyObject *swig_obj[1] ;
34985
34986 if (!args) SWIG_fail;
34987 swig_obj[0] = args;
34988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34989 if (!SWIG_IsOK(res1)) {
34990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34991 }
34992 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34993 {
34994 PyThreadState* __tstate = wxPyBeginAllowThreads();
34995 delete arg1;
34996
34997 wxPyEndAllowThreads(__tstate);
34998 if (PyErr_Occurred()) SWIG_fail;
34999 }
35000 resultobj = SWIG_Py_Void();
35001 return resultobj;
35002 fail:
35003 return NULL;
35004 }
35005
35006
35007 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35008 PyObject *resultobj = 0;
35009 wxRendererVersion *arg1 = 0 ;
35010 bool result;
35011 void *argp1 = 0 ;
35012 int res1 = 0 ;
35013 PyObject * obj0 = 0 ;
35014 char * kwnames[] = {
35015 (char *) "ver", NULL
35016 };
35017
35018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
35019 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
35020 if (!SWIG_IsOK(res1)) {
35021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
35022 }
35023 if (!argp1) {
35024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
35025 }
35026 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35027 {
35028 PyThreadState* __tstate = wxPyBeginAllowThreads();
35029 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
35030 wxPyEndAllowThreads(__tstate);
35031 if (PyErr_Occurred()) SWIG_fail;
35032 }
35033 {
35034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35035 }
35036 return resultobj;
35037 fail:
35038 return NULL;
35039 }
35040
35041
35042 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35043 PyObject *resultobj = 0;
35044 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
35045 int result;
35046 void *argp1 = 0 ;
35047 int res1 = 0 ;
35048 PyObject *swig_obj[1] ;
35049
35050 if (!args) SWIG_fail;
35051 swig_obj[0] = args;
35052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
35053 if (!SWIG_IsOK(res1)) {
35054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
35055 }
35056 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35057 result = (int)(int) ((arg1)->version);
35058 resultobj = SWIG_From_int(static_cast< int >(result));
35059 return resultobj;
35060 fail:
35061 return NULL;
35062 }
35063
35064
35065 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35066 PyObject *resultobj = 0;
35067 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
35068 int result;
35069 void *argp1 = 0 ;
35070 int res1 = 0 ;
35071 PyObject *swig_obj[1] ;
35072
35073 if (!args) SWIG_fail;
35074 swig_obj[0] = args;
35075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
35076 if (!SWIG_IsOK(res1)) {
35077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
35078 }
35079 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35080 result = (int)(int) ((arg1)->age);
35081 resultobj = SWIG_From_int(static_cast< int >(result));
35082 return resultobj;
35083 fail:
35084 return NULL;
35085 }
35086
35087
35088 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35089 PyObject *obj;
35090 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35091 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
35092 return SWIG_Py_Void();
35093 }
35094
35095 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35096 return SWIG_Python_InitShadowInstance(args);
35097 }
35098
35099 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35100 PyObject *resultobj = 0;
35101 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35102 wxWindow *arg2 = (wxWindow *) 0 ;
35103 wxDC *arg3 = 0 ;
35104 wxRect *arg4 = 0 ;
35105 int arg5 = (int) 0 ;
35106 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
35107 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
35108 int result;
35109 void *argp1 = 0 ;
35110 int res1 = 0 ;
35111 void *argp2 = 0 ;
35112 int res2 = 0 ;
35113 void *argp3 = 0 ;
35114 int res3 = 0 ;
35115 wxRect temp4 ;
35116 int val5 ;
35117 int ecode5 = 0 ;
35118 int val6 ;
35119 int ecode6 = 0 ;
35120 void *argp7 = 0 ;
35121 int res7 = 0 ;
35122 PyObject * obj0 = 0 ;
35123 PyObject * obj1 = 0 ;
35124 PyObject * obj2 = 0 ;
35125 PyObject * obj3 = 0 ;
35126 PyObject * obj4 = 0 ;
35127 PyObject * obj5 = 0 ;
35128 PyObject * obj6 = 0 ;
35129 char * kwnames[] = {
35130 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
35131 };
35132
35133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35135 if (!SWIG_IsOK(res1)) {
35136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35137 }
35138 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35139 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35140 if (!SWIG_IsOK(res2)) {
35141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35142 }
35143 arg2 = reinterpret_cast< wxWindow * >(argp2);
35144 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35145 if (!SWIG_IsOK(res3)) {
35146 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
35147 }
35148 if (!argp3) {
35149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
35150 }
35151 arg3 = reinterpret_cast< wxDC * >(argp3);
35152 {
35153 arg4 = &temp4;
35154 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35155 }
35156 if (obj4) {
35157 ecode5 = SWIG_AsVal_int(obj4, &val5);
35158 if (!SWIG_IsOK(ecode5)) {
35159 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
35160 }
35161 arg5 = static_cast< int >(val5);
35162 }
35163 if (obj5) {
35164 ecode6 = SWIG_AsVal_int(obj5, &val6);
35165 if (!SWIG_IsOK(ecode6)) {
35166 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
35167 }
35168 arg6 = static_cast< wxHeaderSortIconType >(val6);
35169 }
35170 if (obj6) {
35171 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35172 if (!SWIG_IsOK(res7)) {
35173 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
35174 }
35175 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
35176 }
35177 {
35178 PyThreadState* __tstate = wxPyBeginAllowThreads();
35179 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
35180 wxPyEndAllowThreads(__tstate);
35181 if (PyErr_Occurred()) SWIG_fail;
35182 }
35183 resultobj = SWIG_From_int(static_cast< int >(result));
35184 return resultobj;
35185 fail:
35186 return NULL;
35187 }
35188
35189
35190 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35191 PyObject *resultobj = 0;
35192 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35193 wxWindow *arg2 = (wxWindow *) 0 ;
35194 wxDC *arg3 = 0 ;
35195 wxRect *arg4 = 0 ;
35196 int arg5 = (int) 0 ;
35197 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
35198 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
35199 int result;
35200 void *argp1 = 0 ;
35201 int res1 = 0 ;
35202 void *argp2 = 0 ;
35203 int res2 = 0 ;
35204 void *argp3 = 0 ;
35205 int res3 = 0 ;
35206 wxRect temp4 ;
35207 int val5 ;
35208 int ecode5 = 0 ;
35209 int val6 ;
35210 int ecode6 = 0 ;
35211 void *argp7 = 0 ;
35212 int res7 = 0 ;
35213 PyObject * obj0 = 0 ;
35214 PyObject * obj1 = 0 ;
35215 PyObject * obj2 = 0 ;
35216 PyObject * obj3 = 0 ;
35217 PyObject * obj4 = 0 ;
35218 PyObject * obj5 = 0 ;
35219 PyObject * obj6 = 0 ;
35220 char * kwnames[] = {
35221 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
35222 };
35223
35224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35226 if (!SWIG_IsOK(res1)) {
35227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35228 }
35229 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35230 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35231 if (!SWIG_IsOK(res2)) {
35232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
35233 }
35234 arg2 = reinterpret_cast< wxWindow * >(argp2);
35235 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35236 if (!SWIG_IsOK(res3)) {
35237 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35238 }
35239 if (!argp3) {
35240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35241 }
35242 arg3 = reinterpret_cast< wxDC * >(argp3);
35243 {
35244 arg4 = &temp4;
35245 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35246 }
35247 if (obj4) {
35248 ecode5 = SWIG_AsVal_int(obj4, &val5);
35249 if (!SWIG_IsOK(ecode5)) {
35250 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
35251 }
35252 arg5 = static_cast< int >(val5);
35253 }
35254 if (obj5) {
35255 ecode6 = SWIG_AsVal_int(obj5, &val6);
35256 if (!SWIG_IsOK(ecode6)) {
35257 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
35258 }
35259 arg6 = static_cast< wxHeaderSortIconType >(val6);
35260 }
35261 if (obj6) {
35262 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35263 if (!SWIG_IsOK(res7)) {
35264 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
35265 }
35266 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
35267 }
35268 {
35269 PyThreadState* __tstate = wxPyBeginAllowThreads();
35270 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
35271 wxPyEndAllowThreads(__tstate);
35272 if (PyErr_Occurred()) SWIG_fail;
35273 }
35274 resultobj = SWIG_From_int(static_cast< int >(result));
35275 return resultobj;
35276 fail:
35277 return NULL;
35278 }
35279
35280
35281 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35282 PyObject *resultobj = 0;
35283 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35284 wxWindow *arg2 = (wxWindow *) 0 ;
35285 int result;
35286 void *argp1 = 0 ;
35287 int res1 = 0 ;
35288 void *argp2 = 0 ;
35289 int res2 = 0 ;
35290 PyObject * obj0 = 0 ;
35291 PyObject * obj1 = 0 ;
35292 char * kwnames[] = {
35293 (char *) "self",(char *) "win", NULL
35294 };
35295
35296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
35297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35298 if (!SWIG_IsOK(res1)) {
35299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35300 }
35301 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35302 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35303 if (!SWIG_IsOK(res2)) {
35304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
35305 }
35306 arg2 = reinterpret_cast< wxWindow * >(argp2);
35307 {
35308 PyThreadState* __tstate = wxPyBeginAllowThreads();
35309 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
35310 wxPyEndAllowThreads(__tstate);
35311 if (PyErr_Occurred()) SWIG_fail;
35312 }
35313 resultobj = SWIG_From_int(static_cast< int >(result));
35314 return resultobj;
35315 fail:
35316 return NULL;
35317 }
35318
35319
35320 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35321 PyObject *resultobj = 0;
35322 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35323 wxWindow *arg2 = (wxWindow *) 0 ;
35324 wxDC *arg3 = 0 ;
35325 wxRect *arg4 = 0 ;
35326 int arg5 = (int) 0 ;
35327 void *argp1 = 0 ;
35328 int res1 = 0 ;
35329 void *argp2 = 0 ;
35330 int res2 = 0 ;
35331 void *argp3 = 0 ;
35332 int res3 = 0 ;
35333 wxRect temp4 ;
35334 int val5 ;
35335 int ecode5 = 0 ;
35336 PyObject * obj0 = 0 ;
35337 PyObject * obj1 = 0 ;
35338 PyObject * obj2 = 0 ;
35339 PyObject * obj3 = 0 ;
35340 PyObject * obj4 = 0 ;
35341 char * kwnames[] = {
35342 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35343 };
35344
35345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35347 if (!SWIG_IsOK(res1)) {
35348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35349 }
35350 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35351 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35352 if (!SWIG_IsOK(res2)) {
35353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35354 }
35355 arg2 = reinterpret_cast< wxWindow * >(argp2);
35356 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35357 if (!SWIG_IsOK(res3)) {
35358 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35359 }
35360 if (!argp3) {
35361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35362 }
35363 arg3 = reinterpret_cast< wxDC * >(argp3);
35364 {
35365 arg4 = &temp4;
35366 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35367 }
35368 if (obj4) {
35369 ecode5 = SWIG_AsVal_int(obj4, &val5);
35370 if (!SWIG_IsOK(ecode5)) {
35371 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
35372 }
35373 arg5 = static_cast< int >(val5);
35374 }
35375 {
35376 PyThreadState* __tstate = wxPyBeginAllowThreads();
35377 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35378 wxPyEndAllowThreads(__tstate);
35379 if (PyErr_Occurred()) SWIG_fail;
35380 }
35381 resultobj = SWIG_Py_Void();
35382 return resultobj;
35383 fail:
35384 return NULL;
35385 }
35386
35387
35388 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35389 PyObject *resultobj = 0;
35390 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35391 wxWindow *arg2 = (wxWindow *) 0 ;
35392 wxDC *arg3 = 0 ;
35393 wxRect *arg4 = 0 ;
35394 int arg5 = (int) 0 ;
35395 void *argp1 = 0 ;
35396 int res1 = 0 ;
35397 void *argp2 = 0 ;
35398 int res2 = 0 ;
35399 void *argp3 = 0 ;
35400 int res3 = 0 ;
35401 wxRect temp4 ;
35402 int val5 ;
35403 int ecode5 = 0 ;
35404 PyObject * obj0 = 0 ;
35405 PyObject * obj1 = 0 ;
35406 PyObject * obj2 = 0 ;
35407 PyObject * obj3 = 0 ;
35408 PyObject * obj4 = 0 ;
35409 char * kwnames[] = {
35410 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35411 };
35412
35413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35415 if (!SWIG_IsOK(res1)) {
35416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35417 }
35418 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35419 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35420 if (!SWIG_IsOK(res2)) {
35421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
35422 }
35423 arg2 = reinterpret_cast< wxWindow * >(argp2);
35424 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35425 if (!SWIG_IsOK(res3)) {
35426 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35427 }
35428 if (!argp3) {
35429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35430 }
35431 arg3 = reinterpret_cast< wxDC * >(argp3);
35432 {
35433 arg4 = &temp4;
35434 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35435 }
35436 if (obj4) {
35437 ecode5 = SWIG_AsVal_int(obj4, &val5);
35438 if (!SWIG_IsOK(ecode5)) {
35439 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
35440 }
35441 arg5 = static_cast< int >(val5);
35442 }
35443 {
35444 PyThreadState* __tstate = wxPyBeginAllowThreads();
35445 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
35446 wxPyEndAllowThreads(__tstate);
35447 if (PyErr_Occurred()) SWIG_fail;
35448 }
35449 resultobj = SWIG_Py_Void();
35450 return resultobj;
35451 fail:
35452 return NULL;
35453 }
35454
35455
35456 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35457 PyObject *resultobj = 0;
35458 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35459 wxWindow *arg2 = (wxWindow *) 0 ;
35460 wxDC *arg3 = 0 ;
35461 wxSize *arg4 = 0 ;
35462 int arg5 ;
35463 wxOrientation arg6 ;
35464 int arg7 = (int) 0 ;
35465 void *argp1 = 0 ;
35466 int res1 = 0 ;
35467 void *argp2 = 0 ;
35468 int res2 = 0 ;
35469 void *argp3 = 0 ;
35470 int res3 = 0 ;
35471 wxSize temp4 ;
35472 int val5 ;
35473 int ecode5 = 0 ;
35474 int val6 ;
35475 int ecode6 = 0 ;
35476 int val7 ;
35477 int ecode7 = 0 ;
35478 PyObject * obj0 = 0 ;
35479 PyObject * obj1 = 0 ;
35480 PyObject * obj2 = 0 ;
35481 PyObject * obj3 = 0 ;
35482 PyObject * obj4 = 0 ;
35483 PyObject * obj5 = 0 ;
35484 PyObject * obj6 = 0 ;
35485 char * kwnames[] = {
35486 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
35487 };
35488
35489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35491 if (!SWIG_IsOK(res1)) {
35492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35493 }
35494 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35495 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35496 if (!SWIG_IsOK(res2)) {
35497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
35498 }
35499 arg2 = reinterpret_cast< wxWindow * >(argp2);
35500 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35501 if (!SWIG_IsOK(res3)) {
35502 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35503 }
35504 if (!argp3) {
35505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35506 }
35507 arg3 = reinterpret_cast< wxDC * >(argp3);
35508 {
35509 arg4 = &temp4;
35510 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
35511 }
35512 ecode5 = SWIG_AsVal_int(obj4, &val5);
35513 if (!SWIG_IsOK(ecode5)) {
35514 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
35515 }
35516 arg5 = static_cast< int >(val5);
35517 ecode6 = SWIG_AsVal_int(obj5, &val6);
35518 if (!SWIG_IsOK(ecode6)) {
35519 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
35520 }
35521 arg6 = static_cast< wxOrientation >(val6);
35522 if (obj6) {
35523 ecode7 = SWIG_AsVal_int(obj6, &val7);
35524 if (!SWIG_IsOK(ecode7)) {
35525 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
35526 }
35527 arg7 = static_cast< int >(val7);
35528 }
35529 {
35530 PyThreadState* __tstate = wxPyBeginAllowThreads();
35531 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
35532 wxPyEndAllowThreads(__tstate);
35533 if (PyErr_Occurred()) SWIG_fail;
35534 }
35535 resultobj = SWIG_Py_Void();
35536 return resultobj;
35537 fail:
35538 return NULL;
35539 }
35540
35541
35542 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35543 PyObject *resultobj = 0;
35544 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35545 wxWindow *arg2 = (wxWindow *) 0 ;
35546 wxDC *arg3 = 0 ;
35547 wxRect *arg4 = 0 ;
35548 int arg5 = (int) 0 ;
35549 void *argp1 = 0 ;
35550 int res1 = 0 ;
35551 void *argp2 = 0 ;
35552 int res2 = 0 ;
35553 void *argp3 = 0 ;
35554 int res3 = 0 ;
35555 wxRect temp4 ;
35556 int val5 ;
35557 int ecode5 = 0 ;
35558 PyObject * obj0 = 0 ;
35559 PyObject * obj1 = 0 ;
35560 PyObject * obj2 = 0 ;
35561 PyObject * obj3 = 0 ;
35562 PyObject * obj4 = 0 ;
35563 char * kwnames[] = {
35564 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35565 };
35566
35567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35569 if (!SWIG_IsOK(res1)) {
35570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35571 }
35572 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35573 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35574 if (!SWIG_IsOK(res2)) {
35575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35576 }
35577 arg2 = reinterpret_cast< wxWindow * >(argp2);
35578 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35579 if (!SWIG_IsOK(res3)) {
35580 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35581 }
35582 if (!argp3) {
35583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35584 }
35585 arg3 = reinterpret_cast< wxDC * >(argp3);
35586 {
35587 arg4 = &temp4;
35588 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35589 }
35590 if (obj4) {
35591 ecode5 = SWIG_AsVal_int(obj4, &val5);
35592 if (!SWIG_IsOK(ecode5)) {
35593 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
35594 }
35595 arg5 = static_cast< int >(val5);
35596 }
35597 {
35598 PyThreadState* __tstate = wxPyBeginAllowThreads();
35599 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35600 wxPyEndAllowThreads(__tstate);
35601 if (PyErr_Occurred()) SWIG_fail;
35602 }
35603 resultobj = SWIG_Py_Void();
35604 return resultobj;
35605 fail:
35606 return NULL;
35607 }
35608
35609
35610 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35611 PyObject *resultobj = 0;
35612 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35613 wxWindow *arg2 = (wxWindow *) 0 ;
35614 wxDC *arg3 = 0 ;
35615 wxRect *arg4 = 0 ;
35616 int arg5 = (int) 0 ;
35617 void *argp1 = 0 ;
35618 int res1 = 0 ;
35619 void *argp2 = 0 ;
35620 int res2 = 0 ;
35621 void *argp3 = 0 ;
35622 int res3 = 0 ;
35623 wxRect temp4 ;
35624 int val5 ;
35625 int ecode5 = 0 ;
35626 PyObject * obj0 = 0 ;
35627 PyObject * obj1 = 0 ;
35628 PyObject * obj2 = 0 ;
35629 PyObject * obj3 = 0 ;
35630 PyObject * obj4 = 0 ;
35631 char * kwnames[] = {
35632 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35633 };
35634
35635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35637 if (!SWIG_IsOK(res1)) {
35638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35639 }
35640 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35641 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35642 if (!SWIG_IsOK(res2)) {
35643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
35644 }
35645 arg2 = reinterpret_cast< wxWindow * >(argp2);
35646 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35647 if (!SWIG_IsOK(res3)) {
35648 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35649 }
35650 if (!argp3) {
35651 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35652 }
35653 arg3 = reinterpret_cast< wxDC * >(argp3);
35654 {
35655 arg4 = &temp4;
35656 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35657 }
35658 if (obj4) {
35659 ecode5 = SWIG_AsVal_int(obj4, &val5);
35660 if (!SWIG_IsOK(ecode5)) {
35661 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
35662 }
35663 arg5 = static_cast< int >(val5);
35664 }
35665 {
35666 PyThreadState* __tstate = wxPyBeginAllowThreads();
35667 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
35668 wxPyEndAllowThreads(__tstate);
35669 if (PyErr_Occurred()) SWIG_fail;
35670 }
35671 resultobj = SWIG_Py_Void();
35672 return resultobj;
35673 fail:
35674 return NULL;
35675 }
35676
35677
35678 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35679 PyObject *resultobj = 0;
35680 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35681 wxWindow *arg2 = (wxWindow *) 0 ;
35682 wxDC *arg3 = 0 ;
35683 wxRect *arg4 = 0 ;
35684 int arg5 = (int) 0 ;
35685 void *argp1 = 0 ;
35686 int res1 = 0 ;
35687 void *argp2 = 0 ;
35688 int res2 = 0 ;
35689 void *argp3 = 0 ;
35690 int res3 = 0 ;
35691 wxRect temp4 ;
35692 int val5 ;
35693 int ecode5 = 0 ;
35694 PyObject * obj0 = 0 ;
35695 PyObject * obj1 = 0 ;
35696 PyObject * obj2 = 0 ;
35697 PyObject * obj3 = 0 ;
35698 PyObject * obj4 = 0 ;
35699 char * kwnames[] = {
35700 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35701 };
35702
35703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35705 if (!SWIG_IsOK(res1)) {
35706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35707 }
35708 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35709 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35710 if (!SWIG_IsOK(res2)) {
35711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
35712 }
35713 arg2 = reinterpret_cast< wxWindow * >(argp2);
35714 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35715 if (!SWIG_IsOK(res3)) {
35716 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35717 }
35718 if (!argp3) {
35719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35720 }
35721 arg3 = reinterpret_cast< wxDC * >(argp3);
35722 {
35723 arg4 = &temp4;
35724 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35725 }
35726 if (obj4) {
35727 ecode5 = SWIG_AsVal_int(obj4, &val5);
35728 if (!SWIG_IsOK(ecode5)) {
35729 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35730 }
35731 arg5 = static_cast< int >(val5);
35732 }
35733 {
35734 PyThreadState* __tstate = wxPyBeginAllowThreads();
35735 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35736 wxPyEndAllowThreads(__tstate);
35737 if (PyErr_Occurred()) SWIG_fail;
35738 }
35739 resultobj = SWIG_Py_Void();
35740 return resultobj;
35741 fail:
35742 return NULL;
35743 }
35744
35745
35746 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35747 PyObject *resultobj = 0;
35748 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35749 wxWindow *arg2 = (wxWindow *) 0 ;
35750 wxDC *arg3 = 0 ;
35751 wxRect *arg4 = 0 ;
35752 int arg5 = (int) 0 ;
35753 void *argp1 = 0 ;
35754 int res1 = 0 ;
35755 void *argp2 = 0 ;
35756 int res2 = 0 ;
35757 void *argp3 = 0 ;
35758 int res3 = 0 ;
35759 wxRect temp4 ;
35760 int val5 ;
35761 int ecode5 = 0 ;
35762 PyObject * obj0 = 0 ;
35763 PyObject * obj1 = 0 ;
35764 PyObject * obj2 = 0 ;
35765 PyObject * obj3 = 0 ;
35766 PyObject * obj4 = 0 ;
35767 char * kwnames[] = {
35768 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35769 };
35770
35771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35773 if (!SWIG_IsOK(res1)) {
35774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35775 }
35776 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35777 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35778 if (!SWIG_IsOK(res2)) {
35779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35780 }
35781 arg2 = reinterpret_cast< wxWindow * >(argp2);
35782 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35783 if (!SWIG_IsOK(res3)) {
35784 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35785 }
35786 if (!argp3) {
35787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35788 }
35789 arg3 = reinterpret_cast< wxDC * >(argp3);
35790 {
35791 arg4 = &temp4;
35792 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35793 }
35794 if (obj4) {
35795 ecode5 = SWIG_AsVal_int(obj4, &val5);
35796 if (!SWIG_IsOK(ecode5)) {
35797 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35798 }
35799 arg5 = static_cast< int >(val5);
35800 }
35801 {
35802 PyThreadState* __tstate = wxPyBeginAllowThreads();
35803 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35804 wxPyEndAllowThreads(__tstate);
35805 if (PyErr_Occurred()) SWIG_fail;
35806 }
35807 resultobj = SWIG_Py_Void();
35808 return resultobj;
35809 fail:
35810 return NULL;
35811 }
35812
35813
35814 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35815 PyObject *resultobj = 0;
35816 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35817 wxWindow *arg2 = (wxWindow *) 0 ;
35818 wxDC *arg3 = 0 ;
35819 wxRect *arg4 = 0 ;
35820 int arg5 = (int) 0 ;
35821 void *argp1 = 0 ;
35822 int res1 = 0 ;
35823 void *argp2 = 0 ;
35824 int res2 = 0 ;
35825 void *argp3 = 0 ;
35826 int res3 = 0 ;
35827 wxRect temp4 ;
35828 int val5 ;
35829 int ecode5 = 0 ;
35830 PyObject * obj0 = 0 ;
35831 PyObject * obj1 = 0 ;
35832 PyObject * obj2 = 0 ;
35833 PyObject * obj3 = 0 ;
35834 PyObject * obj4 = 0 ;
35835 char * kwnames[] = {
35836 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35837 };
35838
35839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35841 if (!SWIG_IsOK(res1)) {
35842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35843 }
35844 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35845 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35846 if (!SWIG_IsOK(res2)) {
35847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
35848 }
35849 arg2 = reinterpret_cast< wxWindow * >(argp2);
35850 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35851 if (!SWIG_IsOK(res3)) {
35852 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35853 }
35854 if (!argp3) {
35855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35856 }
35857 arg3 = reinterpret_cast< wxDC * >(argp3);
35858 {
35859 arg4 = &temp4;
35860 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35861 }
35862 if (obj4) {
35863 ecode5 = SWIG_AsVal_int(obj4, &val5);
35864 if (!SWIG_IsOK(ecode5)) {
35865 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
35866 }
35867 arg5 = static_cast< int >(val5);
35868 }
35869 {
35870 PyThreadState* __tstate = wxPyBeginAllowThreads();
35871 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
35872 wxPyEndAllowThreads(__tstate);
35873 if (PyErr_Occurred()) SWIG_fail;
35874 }
35875 resultobj = SWIG_Py_Void();
35876 return resultobj;
35877 fail:
35878 return NULL;
35879 }
35880
35881
35882 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35883 PyObject *resultobj = 0;
35884 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35885 wxWindow *arg2 = (wxWindow *) 0 ;
35886 SwigValueWrapper<wxSplitterRenderParams > result;
35887 void *argp1 = 0 ;
35888 int res1 = 0 ;
35889 void *argp2 = 0 ;
35890 int res2 = 0 ;
35891 PyObject * obj0 = 0 ;
35892 PyObject * obj1 = 0 ;
35893 char * kwnames[] = {
35894 (char *) "self",(char *) "win", NULL
35895 };
35896
35897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35899 if (!SWIG_IsOK(res1)) {
35900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35901 }
35902 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35903 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35904 if (!SWIG_IsOK(res2)) {
35905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35906 }
35907 arg2 = reinterpret_cast< wxWindow * >(argp2);
35908 {
35909 PyThreadState* __tstate = wxPyBeginAllowThreads();
35910 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35911 wxPyEndAllowThreads(__tstate);
35912 if (PyErr_Occurred()) SWIG_fail;
35913 }
35914 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35915 return resultobj;
35916 fail:
35917 return NULL;
35918 }
35919
35920
35921 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35922 PyObject *resultobj = 0;
35923 wxRendererNative *result = 0 ;
35924
35925 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35926 {
35927 if (!wxPyCheckForApp()) SWIG_fail;
35928 PyThreadState* __tstate = wxPyBeginAllowThreads();
35929 {
35930 wxRendererNative &_result_ref = wxRendererNative::Get();
35931 result = (wxRendererNative *) &_result_ref;
35932 }
35933 wxPyEndAllowThreads(__tstate);
35934 if (PyErr_Occurred()) SWIG_fail;
35935 }
35936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35937 return resultobj;
35938 fail:
35939 return NULL;
35940 }
35941
35942
35943 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35944 PyObject *resultobj = 0;
35945 wxRendererNative *result = 0 ;
35946
35947 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35948 {
35949 if (!wxPyCheckForApp()) SWIG_fail;
35950 PyThreadState* __tstate = wxPyBeginAllowThreads();
35951 {
35952 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35953 result = (wxRendererNative *) &_result_ref;
35954 }
35955 wxPyEndAllowThreads(__tstate);
35956 if (PyErr_Occurred()) SWIG_fail;
35957 }
35958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35959 return resultobj;
35960 fail:
35961 return NULL;
35962 }
35963
35964
35965 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35966 PyObject *resultobj = 0;
35967 wxRendererNative *result = 0 ;
35968
35969 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35970 {
35971 if (!wxPyCheckForApp()) SWIG_fail;
35972 PyThreadState* __tstate = wxPyBeginAllowThreads();
35973 {
35974 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35975 result = (wxRendererNative *) &_result_ref;
35976 }
35977 wxPyEndAllowThreads(__tstate);
35978 if (PyErr_Occurred()) SWIG_fail;
35979 }
35980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35981 return resultobj;
35982 fail:
35983 return NULL;
35984 }
35985
35986
35987 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35988 PyObject *resultobj = 0;
35989 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35990 wxRendererNative *result = 0 ;
35991 void *argp1 = 0 ;
35992 int res1 = 0 ;
35993 PyObject * obj0 = 0 ;
35994 char * kwnames[] = {
35995 (char *) "renderer", NULL
35996 };
35997
35998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
36000 if (!SWIG_IsOK(res1)) {
36001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
36002 }
36003 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
36004 {
36005 if (!wxPyCheckForApp()) SWIG_fail;
36006 PyThreadState* __tstate = wxPyBeginAllowThreads();
36007 result = (wxRendererNative *)wxRendererNative::Set(arg1);
36008 wxPyEndAllowThreads(__tstate);
36009 if (PyErr_Occurred()) SWIG_fail;
36010 }
36011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
36012 return resultobj;
36013 fail:
36014 return NULL;
36015 }
36016
36017
36018 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36019 PyObject *resultobj = 0;
36020 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
36021 SwigValueWrapper<wxRendererVersion > result;
36022 void *argp1 = 0 ;
36023 int res1 = 0 ;
36024 PyObject *swig_obj[1] ;
36025
36026 if (!args) SWIG_fail;
36027 swig_obj[0] = args;
36028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
36029 if (!SWIG_IsOK(res1)) {
36030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
36031 }
36032 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
36033 {
36034 PyThreadState* __tstate = wxPyBeginAllowThreads();
36035 result = ((wxRendererNative const *)arg1)->GetVersion();
36036 wxPyEndAllowThreads(__tstate);
36037 if (PyErr_Occurred()) SWIG_fail;
36038 }
36039 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
36040 return resultobj;
36041 fail:
36042 return NULL;
36043 }
36044
36045
36046 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36047 PyObject *obj;
36048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36049 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
36050 return SWIG_Py_Void();
36051 }
36052
36053 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36054 PyObject *resultobj = 0;
36055 wxPseudoDC *result = 0 ;
36056
36057 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
36058 {
36059 PyThreadState* __tstate = wxPyBeginAllowThreads();
36060 result = (wxPseudoDC *)new wxPseudoDC();
36061 wxPyEndAllowThreads(__tstate);
36062 if (PyErr_Occurred()) SWIG_fail;
36063 }
36064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
36065 return resultobj;
36066 fail:
36067 return NULL;
36068 }
36069
36070
36071 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36072 PyObject *resultobj = 0;
36073 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36074 void *argp1 = 0 ;
36075 int res1 = 0 ;
36076 PyObject *swig_obj[1] ;
36077
36078 if (!args) SWIG_fail;
36079 swig_obj[0] = args;
36080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36081 if (!SWIG_IsOK(res1)) {
36082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36083 }
36084 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36085 {
36086 PyThreadState* __tstate = wxPyBeginAllowThreads();
36087 (arg1)->BeginDrawing();
36088 wxPyEndAllowThreads(__tstate);
36089 if (PyErr_Occurred()) SWIG_fail;
36090 }
36091 resultobj = SWIG_Py_Void();
36092 return resultobj;
36093 fail:
36094 return NULL;
36095 }
36096
36097
36098 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36099 PyObject *resultobj = 0;
36100 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36101 void *argp1 = 0 ;
36102 int res1 = 0 ;
36103 PyObject *swig_obj[1] ;
36104
36105 if (!args) SWIG_fail;
36106 swig_obj[0] = args;
36107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36108 if (!SWIG_IsOK(res1)) {
36109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36110 }
36111 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36112 {
36113 PyThreadState* __tstate = wxPyBeginAllowThreads();
36114 (arg1)->EndDrawing();
36115 wxPyEndAllowThreads(__tstate);
36116 if (PyErr_Occurred()) SWIG_fail;
36117 }
36118 resultobj = SWIG_Py_Void();
36119 return resultobj;
36120 fail:
36121 return NULL;
36122 }
36123
36124
36125 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36126 PyObject *resultobj = 0;
36127 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36128 void *argp1 = 0 ;
36129 int res1 = 0 ;
36130 PyObject *swig_obj[1] ;
36131
36132 if (!args) SWIG_fail;
36133 swig_obj[0] = args;
36134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
36135 if (!SWIG_IsOK(res1)) {
36136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36137 }
36138 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36139 {
36140 PyThreadState* __tstate = wxPyBeginAllowThreads();
36141 delete arg1;
36142
36143 wxPyEndAllowThreads(__tstate);
36144 if (PyErr_Occurred()) SWIG_fail;
36145 }
36146 resultobj = SWIG_Py_Void();
36147 return resultobj;
36148 fail:
36149 return NULL;
36150 }
36151
36152
36153 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36154 PyObject *resultobj = 0;
36155 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36156 void *argp1 = 0 ;
36157 int res1 = 0 ;
36158 PyObject *swig_obj[1] ;
36159
36160 if (!args) SWIG_fail;
36161 swig_obj[0] = args;
36162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36163 if (!SWIG_IsOK(res1)) {
36164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36165 }
36166 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36167 {
36168 PyThreadState* __tstate = wxPyBeginAllowThreads();
36169 (arg1)->RemoveAll();
36170 wxPyEndAllowThreads(__tstate);
36171 if (PyErr_Occurred()) SWIG_fail;
36172 }
36173 resultobj = SWIG_Py_Void();
36174 return resultobj;
36175 fail:
36176 return NULL;
36177 }
36178
36179
36180 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36181 PyObject *resultobj = 0;
36182 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36183 int result;
36184 void *argp1 = 0 ;
36185 int res1 = 0 ;
36186 PyObject *swig_obj[1] ;
36187
36188 if (!args) SWIG_fail;
36189 swig_obj[0] = args;
36190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36191 if (!SWIG_IsOK(res1)) {
36192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36193 }
36194 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36195 {
36196 PyThreadState* __tstate = wxPyBeginAllowThreads();
36197 result = (int)(arg1)->GetLen();
36198 wxPyEndAllowThreads(__tstate);
36199 if (PyErr_Occurred()) SWIG_fail;
36200 }
36201 resultobj = SWIG_From_int(static_cast< int >(result));
36202 return resultobj;
36203 fail:
36204 return NULL;
36205 }
36206
36207
36208 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36209 PyObject *resultobj = 0;
36210 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36211 int arg2 ;
36212 void *argp1 = 0 ;
36213 int res1 = 0 ;
36214 int val2 ;
36215 int ecode2 = 0 ;
36216 PyObject * obj0 = 0 ;
36217 PyObject * obj1 = 0 ;
36218 char * kwnames[] = {
36219 (char *) "self",(char *) "id", NULL
36220 };
36221
36222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
36223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36224 if (!SWIG_IsOK(res1)) {
36225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36226 }
36227 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36228 ecode2 = SWIG_AsVal_int(obj1, &val2);
36229 if (!SWIG_IsOK(ecode2)) {
36230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
36231 }
36232 arg2 = static_cast< int >(val2);
36233 {
36234 PyThreadState* __tstate = wxPyBeginAllowThreads();
36235 (arg1)->SetId(arg2);
36236 wxPyEndAllowThreads(__tstate);
36237 if (PyErr_Occurred()) SWIG_fail;
36238 }
36239 resultobj = SWIG_Py_Void();
36240 return resultobj;
36241 fail:
36242 return NULL;
36243 }
36244
36245
36246 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36247 PyObject *resultobj = 0;
36248 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36249 int arg2 ;
36250 void *argp1 = 0 ;
36251 int res1 = 0 ;
36252 int val2 ;
36253 int ecode2 = 0 ;
36254 PyObject * obj0 = 0 ;
36255 PyObject * obj1 = 0 ;
36256 char * kwnames[] = {
36257 (char *) "self",(char *) "id", NULL
36258 };
36259
36260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
36261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36262 if (!SWIG_IsOK(res1)) {
36263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36264 }
36265 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36266 ecode2 = SWIG_AsVal_int(obj1, &val2);
36267 if (!SWIG_IsOK(ecode2)) {
36268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
36269 }
36270 arg2 = static_cast< int >(val2);
36271 {
36272 PyThreadState* __tstate = wxPyBeginAllowThreads();
36273 (arg1)->ClearId(arg2);
36274 wxPyEndAllowThreads(__tstate);
36275 if (PyErr_Occurred()) SWIG_fail;
36276 }
36277 resultobj = SWIG_Py_Void();
36278 return resultobj;
36279 fail:
36280 return NULL;
36281 }
36282
36283
36284 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36285 PyObject *resultobj = 0;
36286 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36287 int arg2 ;
36288 void *argp1 = 0 ;
36289 int res1 = 0 ;
36290 int val2 ;
36291 int ecode2 = 0 ;
36292 PyObject * obj0 = 0 ;
36293 PyObject * obj1 = 0 ;
36294 char * kwnames[] = {
36295 (char *) "self",(char *) "id", NULL
36296 };
36297
36298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
36299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36300 if (!SWIG_IsOK(res1)) {
36301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36302 }
36303 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36304 ecode2 = SWIG_AsVal_int(obj1, &val2);
36305 if (!SWIG_IsOK(ecode2)) {
36306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
36307 }
36308 arg2 = static_cast< int >(val2);
36309 {
36310 PyThreadState* __tstate = wxPyBeginAllowThreads();
36311 (arg1)->RemoveId(arg2);
36312 wxPyEndAllowThreads(__tstate);
36313 if (PyErr_Occurred()) SWIG_fail;
36314 }
36315 resultobj = SWIG_Py_Void();
36316 return resultobj;
36317 fail:
36318 return NULL;
36319 }
36320
36321
36322 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36323 PyObject *resultobj = 0;
36324 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36325 int arg2 ;
36326 int arg3 ;
36327 int arg4 ;
36328 void *argp1 = 0 ;
36329 int res1 = 0 ;
36330 int val2 ;
36331 int ecode2 = 0 ;
36332 int val3 ;
36333 int ecode3 = 0 ;
36334 int val4 ;
36335 int ecode4 = 0 ;
36336 PyObject * obj0 = 0 ;
36337 PyObject * obj1 = 0 ;
36338 PyObject * obj2 = 0 ;
36339 PyObject * obj3 = 0 ;
36340 char * kwnames[] = {
36341 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
36342 };
36343
36344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36346 if (!SWIG_IsOK(res1)) {
36347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36348 }
36349 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36350 ecode2 = SWIG_AsVal_int(obj1, &val2);
36351 if (!SWIG_IsOK(ecode2)) {
36352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
36353 }
36354 arg2 = static_cast< int >(val2);
36355 ecode3 = SWIG_AsVal_int(obj2, &val3);
36356 if (!SWIG_IsOK(ecode3)) {
36357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
36358 }
36359 arg3 = static_cast< int >(val3);
36360 ecode4 = SWIG_AsVal_int(obj3, &val4);
36361 if (!SWIG_IsOK(ecode4)) {
36362 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
36363 }
36364 arg4 = static_cast< int >(val4);
36365 {
36366 PyThreadState* __tstate = wxPyBeginAllowThreads();
36367 (arg1)->TranslateId(arg2,arg3,arg4);
36368 wxPyEndAllowThreads(__tstate);
36369 if (PyErr_Occurred()) SWIG_fail;
36370 }
36371 resultobj = SWIG_Py_Void();
36372 return resultobj;
36373 fail:
36374 return NULL;
36375 }
36376
36377
36378 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36379 PyObject *resultobj = 0;
36380 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36381 int arg2 ;
36382 bool arg3 = (bool) true ;
36383 void *argp1 = 0 ;
36384 int res1 = 0 ;
36385 int val2 ;
36386 int ecode2 = 0 ;
36387 bool val3 ;
36388 int ecode3 = 0 ;
36389 PyObject * obj0 = 0 ;
36390 PyObject * obj1 = 0 ;
36391 PyObject * obj2 = 0 ;
36392 char * kwnames[] = {
36393 (char *) "self",(char *) "id",(char *) "greyout", NULL
36394 };
36395
36396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36398 if (!SWIG_IsOK(res1)) {
36399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36400 }
36401 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36402 ecode2 = SWIG_AsVal_int(obj1, &val2);
36403 if (!SWIG_IsOK(ecode2)) {
36404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36405 }
36406 arg2 = static_cast< int >(val2);
36407 if (obj2) {
36408 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36409 if (!SWIG_IsOK(ecode3)) {
36410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
36411 }
36412 arg3 = static_cast< bool >(val3);
36413 }
36414 {
36415 PyThreadState* __tstate = wxPyBeginAllowThreads();
36416 (arg1)->SetIdGreyedOut(arg2,arg3);
36417 wxPyEndAllowThreads(__tstate);
36418 if (PyErr_Occurred()) SWIG_fail;
36419 }
36420 resultobj = SWIG_Py_Void();
36421 return resultobj;
36422 fail:
36423 return NULL;
36424 }
36425
36426
36427 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36428 PyObject *resultobj = 0;
36429 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36430 int arg2 ;
36431 bool result;
36432 void *argp1 = 0 ;
36433 int res1 = 0 ;
36434 int val2 ;
36435 int ecode2 = 0 ;
36436 PyObject * obj0 = 0 ;
36437 PyObject * obj1 = 0 ;
36438 char * kwnames[] = {
36439 (char *) "self",(char *) "id", NULL
36440 };
36441
36442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
36443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36444 if (!SWIG_IsOK(res1)) {
36445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36446 }
36447 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36448 ecode2 = SWIG_AsVal_int(obj1, &val2);
36449 if (!SWIG_IsOK(ecode2)) {
36450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36451 }
36452 arg2 = static_cast< int >(val2);
36453 {
36454 PyThreadState* __tstate = wxPyBeginAllowThreads();
36455 result = (bool)(arg1)->GetIdGreyedOut(arg2);
36456 wxPyEndAllowThreads(__tstate);
36457 if (PyErr_Occurred()) SWIG_fail;
36458 }
36459 {
36460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36461 }
36462 return resultobj;
36463 fail:
36464 return NULL;
36465 }
36466
36467
36468 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36469 PyObject *resultobj = 0;
36470 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36471 int arg2 ;
36472 int arg3 ;
36473 int arg4 = (int) 1 ;
36474 wxColour const &arg5_defvalue = *wxWHITE ;
36475 wxColour *arg5 = (wxColour *) &arg5_defvalue ;
36476 PyObject *result = 0 ;
36477 void *argp1 = 0 ;
36478 int res1 = 0 ;
36479 int val2 ;
36480 int ecode2 = 0 ;
36481 int val3 ;
36482 int ecode3 = 0 ;
36483 int val4 ;
36484 int ecode4 = 0 ;
36485 wxColour temp5 ;
36486 PyObject * obj0 = 0 ;
36487 PyObject * obj1 = 0 ;
36488 PyObject * obj2 = 0 ;
36489 PyObject * obj3 = 0 ;
36490 PyObject * obj4 = 0 ;
36491 char * kwnames[] = {
36492 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
36493 };
36494
36495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36497 if (!SWIG_IsOK(res1)) {
36498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36499 }
36500 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36501 ecode2 = SWIG_AsVal_int(obj1, &val2);
36502 if (!SWIG_IsOK(ecode2)) {
36503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
36504 }
36505 arg2 = static_cast< int >(val2);
36506 ecode3 = SWIG_AsVal_int(obj2, &val3);
36507 if (!SWIG_IsOK(ecode3)) {
36508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
36509 }
36510 arg3 = static_cast< int >(val3);
36511 if (obj3) {
36512 ecode4 = SWIG_AsVal_int(obj3, &val4);
36513 if (!SWIG_IsOK(ecode4)) {
36514 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
36515 }
36516 arg4 = static_cast< int >(val4);
36517 }
36518 if (obj4) {
36519 {
36520 arg5 = &temp5;
36521 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
36522 }
36523 }
36524 {
36525 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColour const &)*arg5);
36526 if (PyErr_Occurred()) SWIG_fail;
36527 }
36528 resultobj = result;
36529 return resultobj;
36530 fail:
36531 return NULL;
36532 }
36533
36534
36535 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36536 PyObject *resultobj = 0;
36537 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36538 int arg2 ;
36539 int arg3 ;
36540 PyObject *result = 0 ;
36541 void *argp1 = 0 ;
36542 int res1 = 0 ;
36543 int val2 ;
36544 int ecode2 = 0 ;
36545 int val3 ;
36546 int ecode3 = 0 ;
36547 PyObject * obj0 = 0 ;
36548 PyObject * obj1 = 0 ;
36549 PyObject * obj2 = 0 ;
36550 char * kwnames[] = {
36551 (char *) "self",(char *) "x",(char *) "y", NULL
36552 };
36553
36554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36556 if (!SWIG_IsOK(res1)) {
36557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36558 }
36559 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36560 ecode2 = SWIG_AsVal_int(obj1, &val2);
36561 if (!SWIG_IsOK(ecode2)) {
36562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
36563 }
36564 arg2 = static_cast< int >(val2);
36565 ecode3 = SWIG_AsVal_int(obj2, &val3);
36566 if (!SWIG_IsOK(ecode3)) {
36567 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
36568 }
36569 arg3 = static_cast< int >(val3);
36570 {
36571 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
36572 if (PyErr_Occurred()) SWIG_fail;
36573 }
36574 resultobj = result;
36575 return resultobj;
36576 fail:
36577 return NULL;
36578 }
36579
36580
36581 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36582 PyObject *resultobj = 0;
36583 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36584 int arg2 ;
36585 wxDC *arg3 = (wxDC *) 0 ;
36586 void *argp1 = 0 ;
36587 int res1 = 0 ;
36588 int val2 ;
36589 int ecode2 = 0 ;
36590 void *argp3 = 0 ;
36591 int res3 = 0 ;
36592 PyObject * obj0 = 0 ;
36593 PyObject * obj1 = 0 ;
36594 PyObject * obj2 = 0 ;
36595 char * kwnames[] = {
36596 (char *) "self",(char *) "id",(char *) "dc", NULL
36597 };
36598
36599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36601 if (!SWIG_IsOK(res1)) {
36602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36603 }
36604 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36605 ecode2 = SWIG_AsVal_int(obj1, &val2);
36606 if (!SWIG_IsOK(ecode2)) {
36607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
36608 }
36609 arg2 = static_cast< int >(val2);
36610 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
36611 if (!SWIG_IsOK(res3)) {
36612 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
36613 }
36614 arg3 = reinterpret_cast< wxDC * >(argp3);
36615 {
36616 PyThreadState* __tstate = wxPyBeginAllowThreads();
36617 (arg1)->DrawIdToDC(arg2,arg3);
36618 wxPyEndAllowThreads(__tstate);
36619 if (PyErr_Occurred()) SWIG_fail;
36620 }
36621 resultobj = SWIG_Py_Void();
36622 return resultobj;
36623 fail:
36624 return NULL;
36625 }
36626
36627
36628 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36629 PyObject *resultobj = 0;
36630 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36631 int arg2 ;
36632 wxRect *arg3 = 0 ;
36633 void *argp1 = 0 ;
36634 int res1 = 0 ;
36635 int val2 ;
36636 int ecode2 = 0 ;
36637 wxRect temp3 ;
36638 PyObject * obj0 = 0 ;
36639 PyObject * obj1 = 0 ;
36640 PyObject * obj2 = 0 ;
36641 char * kwnames[] = {
36642 (char *) "self",(char *) "id",(char *) "rect", NULL
36643 };
36644
36645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36647 if (!SWIG_IsOK(res1)) {
36648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36649 }
36650 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36651 ecode2 = SWIG_AsVal_int(obj1, &val2);
36652 if (!SWIG_IsOK(ecode2)) {
36653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
36654 }
36655 arg2 = static_cast< int >(val2);
36656 {
36657 arg3 = &temp3;
36658 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36659 }
36660 {
36661 PyThreadState* __tstate = wxPyBeginAllowThreads();
36662 (arg1)->SetIdBounds(arg2,*arg3);
36663 wxPyEndAllowThreads(__tstate);
36664 if (PyErr_Occurred()) SWIG_fail;
36665 }
36666 resultobj = SWIG_Py_Void();
36667 return resultobj;
36668 fail:
36669 return NULL;
36670 }
36671
36672
36673 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36674 PyObject *resultobj = 0;
36675 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36676 int arg2 ;
36677 wxRect result;
36678 void *argp1 = 0 ;
36679 int res1 = 0 ;
36680 int val2 ;
36681 int ecode2 = 0 ;
36682 PyObject * obj0 = 0 ;
36683 PyObject * obj1 = 0 ;
36684 char * kwnames[] = {
36685 (char *) "self",(char *) "id", NULL
36686 };
36687
36688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
36689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36690 if (!SWIG_IsOK(res1)) {
36691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36692 }
36693 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36694 ecode2 = SWIG_AsVal_int(obj1, &val2);
36695 if (!SWIG_IsOK(ecode2)) {
36696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36697 }
36698 arg2 = static_cast< int >(val2);
36699 {
36700 PyThreadState* __tstate = wxPyBeginAllowThreads();
36701 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36702 wxPyEndAllowThreads(__tstate);
36703 if (PyErr_Occurred()) SWIG_fail;
36704 }
36705 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36706 return resultobj;
36707 fail:
36708 return NULL;
36709 }
36710
36711
36712 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36713 PyObject *resultobj = 0;
36714 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36715 wxDC *arg2 = (wxDC *) 0 ;
36716 wxRect *arg3 = 0 ;
36717 void *argp1 = 0 ;
36718 int res1 = 0 ;
36719 void *argp2 = 0 ;
36720 int res2 = 0 ;
36721 wxRect temp3 ;
36722 PyObject * obj0 = 0 ;
36723 PyObject * obj1 = 0 ;
36724 PyObject * obj2 = 0 ;
36725 char * kwnames[] = {
36726 (char *) "self",(char *) "dc",(char *) "rect", NULL
36727 };
36728
36729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36731 if (!SWIG_IsOK(res1)) {
36732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36733 }
36734 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36735 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36736 if (!SWIG_IsOK(res2)) {
36737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36738 }
36739 arg2 = reinterpret_cast< wxDC * >(argp2);
36740 {
36741 arg3 = &temp3;
36742 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36743 }
36744 {
36745 PyThreadState* __tstate = wxPyBeginAllowThreads();
36746 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36747 wxPyEndAllowThreads(__tstate);
36748 if (PyErr_Occurred()) SWIG_fail;
36749 }
36750 resultobj = SWIG_Py_Void();
36751 return resultobj;
36752 fail:
36753 return NULL;
36754 }
36755
36756
36757 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36758 PyObject *resultobj = 0;
36759 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36760 wxDC *arg2 = (wxDC *) 0 ;
36761 wxRegion *arg3 = 0 ;
36762 void *argp1 = 0 ;
36763 int res1 = 0 ;
36764 void *argp2 = 0 ;
36765 int res2 = 0 ;
36766 void *argp3 = 0 ;
36767 int res3 = 0 ;
36768 PyObject * obj0 = 0 ;
36769 PyObject * obj1 = 0 ;
36770 PyObject * obj2 = 0 ;
36771 char * kwnames[] = {
36772 (char *) "self",(char *) "dc",(char *) "region", NULL
36773 };
36774
36775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36777 if (!SWIG_IsOK(res1)) {
36778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36779 }
36780 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36781 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36782 if (!SWIG_IsOK(res2)) {
36783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36784 }
36785 arg2 = reinterpret_cast< wxDC * >(argp2);
36786 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36787 if (!SWIG_IsOK(res3)) {
36788 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36789 }
36790 if (!argp3) {
36791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36792 }
36793 arg3 = reinterpret_cast< wxRegion * >(argp3);
36794 {
36795 PyThreadState* __tstate = wxPyBeginAllowThreads();
36796 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36797 wxPyEndAllowThreads(__tstate);
36798 if (PyErr_Occurred()) SWIG_fail;
36799 }
36800 resultobj = SWIG_Py_Void();
36801 return resultobj;
36802 fail:
36803 return NULL;
36804 }
36805
36806
36807 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36808 PyObject *resultobj = 0;
36809 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36810 wxDC *arg2 = (wxDC *) 0 ;
36811 void *argp1 = 0 ;
36812 int res1 = 0 ;
36813 void *argp2 = 0 ;
36814 int res2 = 0 ;
36815 PyObject * obj0 = 0 ;
36816 PyObject * obj1 = 0 ;
36817 char * kwnames[] = {
36818 (char *) "self",(char *) "dc", NULL
36819 };
36820
36821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36823 if (!SWIG_IsOK(res1)) {
36824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36825 }
36826 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36827 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36828 if (!SWIG_IsOK(res2)) {
36829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36830 }
36831 arg2 = reinterpret_cast< wxDC * >(argp2);
36832 {
36833 PyThreadState* __tstate = wxPyBeginAllowThreads();
36834 (arg1)->DrawToDC(arg2);
36835 wxPyEndAllowThreads(__tstate);
36836 if (PyErr_Occurred()) SWIG_fail;
36837 }
36838 resultobj = SWIG_Py_Void();
36839 return resultobj;
36840 fail:
36841 return NULL;
36842 }
36843
36844
36845 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36846 PyObject *resultobj = 0;
36847 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36848 int arg2 ;
36849 int arg3 ;
36850 wxColour *arg4 = 0 ;
36851 int arg5 = (int) wxFLOOD_SURFACE ;
36852 void *argp1 = 0 ;
36853 int res1 = 0 ;
36854 int val2 ;
36855 int ecode2 = 0 ;
36856 int val3 ;
36857 int ecode3 = 0 ;
36858 wxColour temp4 ;
36859 int val5 ;
36860 int ecode5 = 0 ;
36861 PyObject * obj0 = 0 ;
36862 PyObject * obj1 = 0 ;
36863 PyObject * obj2 = 0 ;
36864 PyObject * obj3 = 0 ;
36865 PyObject * obj4 = 0 ;
36866 char * kwnames[] = {
36867 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36868 };
36869
36870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36872 if (!SWIG_IsOK(res1)) {
36873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36874 }
36875 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36876 ecode2 = SWIG_AsVal_int(obj1, &val2);
36877 if (!SWIG_IsOK(ecode2)) {
36878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36879 }
36880 arg2 = static_cast< int >(val2);
36881 ecode3 = SWIG_AsVal_int(obj2, &val3);
36882 if (!SWIG_IsOK(ecode3)) {
36883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36884 }
36885 arg3 = static_cast< int >(val3);
36886 {
36887 arg4 = &temp4;
36888 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36889 }
36890 if (obj4) {
36891 ecode5 = SWIG_AsVal_int(obj4, &val5);
36892 if (!SWIG_IsOK(ecode5)) {
36893 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36894 }
36895 arg5 = static_cast< int >(val5);
36896 }
36897 {
36898 PyThreadState* __tstate = wxPyBeginAllowThreads();
36899 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36900 wxPyEndAllowThreads(__tstate);
36901 if (PyErr_Occurred()) SWIG_fail;
36902 }
36903 resultobj = SWIG_Py_Void();
36904 return resultobj;
36905 fail:
36906 return NULL;
36907 }
36908
36909
36910 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36911 PyObject *resultobj = 0;
36912 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36913 wxPoint *arg2 = 0 ;
36914 wxColour *arg3 = 0 ;
36915 int arg4 = (int) wxFLOOD_SURFACE ;
36916 void *argp1 = 0 ;
36917 int res1 = 0 ;
36918 wxPoint temp2 ;
36919 wxColour temp3 ;
36920 int val4 ;
36921 int ecode4 = 0 ;
36922 PyObject * obj0 = 0 ;
36923 PyObject * obj1 = 0 ;
36924 PyObject * obj2 = 0 ;
36925 PyObject * obj3 = 0 ;
36926 char * kwnames[] = {
36927 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36928 };
36929
36930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36932 if (!SWIG_IsOK(res1)) {
36933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36934 }
36935 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36936 {
36937 arg2 = &temp2;
36938 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36939 }
36940 {
36941 arg3 = &temp3;
36942 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36943 }
36944 if (obj3) {
36945 ecode4 = SWIG_AsVal_int(obj3, &val4);
36946 if (!SWIG_IsOK(ecode4)) {
36947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36948 }
36949 arg4 = static_cast< int >(val4);
36950 }
36951 {
36952 PyThreadState* __tstate = wxPyBeginAllowThreads();
36953 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36954 wxPyEndAllowThreads(__tstate);
36955 if (PyErr_Occurred()) SWIG_fail;
36956 }
36957 resultobj = SWIG_Py_Void();
36958 return resultobj;
36959 fail:
36960 return NULL;
36961 }
36962
36963
36964 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36965 PyObject *resultobj = 0;
36966 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36967 int arg2 ;
36968 int arg3 ;
36969 int arg4 ;
36970 int arg5 ;
36971 void *argp1 = 0 ;
36972 int res1 = 0 ;
36973 int val2 ;
36974 int ecode2 = 0 ;
36975 int val3 ;
36976 int ecode3 = 0 ;
36977 int val4 ;
36978 int ecode4 = 0 ;
36979 int val5 ;
36980 int ecode5 = 0 ;
36981 PyObject * obj0 = 0 ;
36982 PyObject * obj1 = 0 ;
36983 PyObject * obj2 = 0 ;
36984 PyObject * obj3 = 0 ;
36985 PyObject * obj4 = 0 ;
36986 char * kwnames[] = {
36987 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36988 };
36989
36990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36992 if (!SWIG_IsOK(res1)) {
36993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36994 }
36995 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36996 ecode2 = SWIG_AsVal_int(obj1, &val2);
36997 if (!SWIG_IsOK(ecode2)) {
36998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36999 }
37000 arg2 = static_cast< int >(val2);
37001 ecode3 = SWIG_AsVal_int(obj2, &val3);
37002 if (!SWIG_IsOK(ecode3)) {
37003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
37004 }
37005 arg3 = static_cast< int >(val3);
37006 ecode4 = SWIG_AsVal_int(obj3, &val4);
37007 if (!SWIG_IsOK(ecode4)) {
37008 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
37009 }
37010 arg4 = static_cast< int >(val4);
37011 ecode5 = SWIG_AsVal_int(obj4, &val5);
37012 if (!SWIG_IsOK(ecode5)) {
37013 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
37014 }
37015 arg5 = static_cast< int >(val5);
37016 {
37017 PyThreadState* __tstate = wxPyBeginAllowThreads();
37018 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
37019 wxPyEndAllowThreads(__tstate);
37020 if (PyErr_Occurred()) SWIG_fail;
37021 }
37022 resultobj = SWIG_Py_Void();
37023 return resultobj;
37024 fail:
37025 return NULL;
37026 }
37027
37028
37029 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37030 PyObject *resultobj = 0;
37031 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37032 wxPoint *arg2 = 0 ;
37033 wxPoint *arg3 = 0 ;
37034 void *argp1 = 0 ;
37035 int res1 = 0 ;
37036 wxPoint temp2 ;
37037 wxPoint temp3 ;
37038 PyObject * obj0 = 0 ;
37039 PyObject * obj1 = 0 ;
37040 PyObject * obj2 = 0 ;
37041 char * kwnames[] = {
37042 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
37043 };
37044
37045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37047 if (!SWIG_IsOK(res1)) {
37048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37049 }
37050 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37051 {
37052 arg2 = &temp2;
37053 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37054 }
37055 {
37056 arg3 = &temp3;
37057 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37058 }
37059 {
37060 PyThreadState* __tstate = wxPyBeginAllowThreads();
37061 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
37062 wxPyEndAllowThreads(__tstate);
37063 if (PyErr_Occurred()) SWIG_fail;
37064 }
37065 resultobj = SWIG_Py_Void();
37066 return resultobj;
37067 fail:
37068 return NULL;
37069 }
37070
37071
37072 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37073 PyObject *resultobj = 0;
37074 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37075 int arg2 ;
37076 int arg3 ;
37077 void *argp1 = 0 ;
37078 int res1 = 0 ;
37079 int val2 ;
37080 int ecode2 = 0 ;
37081 int val3 ;
37082 int ecode3 = 0 ;
37083 PyObject * obj0 = 0 ;
37084 PyObject * obj1 = 0 ;
37085 PyObject * obj2 = 0 ;
37086 char * kwnames[] = {
37087 (char *) "self",(char *) "x",(char *) "y", NULL
37088 };
37089
37090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37092 if (!SWIG_IsOK(res1)) {
37093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37094 }
37095 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37096 ecode2 = SWIG_AsVal_int(obj1, &val2);
37097 if (!SWIG_IsOK(ecode2)) {
37098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
37099 }
37100 arg2 = static_cast< int >(val2);
37101 ecode3 = SWIG_AsVal_int(obj2, &val3);
37102 if (!SWIG_IsOK(ecode3)) {
37103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
37104 }
37105 arg3 = static_cast< int >(val3);
37106 {
37107 PyThreadState* __tstate = wxPyBeginAllowThreads();
37108 (arg1)->CrossHair(arg2,arg3);
37109 wxPyEndAllowThreads(__tstate);
37110 if (PyErr_Occurred()) SWIG_fail;
37111 }
37112 resultobj = SWIG_Py_Void();
37113 return resultobj;
37114 fail:
37115 return NULL;
37116 }
37117
37118
37119 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37120 PyObject *resultobj = 0;
37121 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37122 wxPoint *arg2 = 0 ;
37123 void *argp1 = 0 ;
37124 int res1 = 0 ;
37125 wxPoint temp2 ;
37126 PyObject * obj0 = 0 ;
37127 PyObject * obj1 = 0 ;
37128 char * kwnames[] = {
37129 (char *) "self",(char *) "pt", NULL
37130 };
37131
37132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37134 if (!SWIG_IsOK(res1)) {
37135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37136 }
37137 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37138 {
37139 arg2 = &temp2;
37140 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37141 }
37142 {
37143 PyThreadState* __tstate = wxPyBeginAllowThreads();
37144 (arg1)->CrossHair((wxPoint const &)*arg2);
37145 wxPyEndAllowThreads(__tstate);
37146 if (PyErr_Occurred()) SWIG_fail;
37147 }
37148 resultobj = SWIG_Py_Void();
37149 return resultobj;
37150 fail:
37151 return NULL;
37152 }
37153
37154
37155 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37156 PyObject *resultobj = 0;
37157 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37158 int arg2 ;
37159 int arg3 ;
37160 int arg4 ;
37161 int arg5 ;
37162 int arg6 ;
37163 int arg7 ;
37164 void *argp1 = 0 ;
37165 int res1 = 0 ;
37166 int val2 ;
37167 int ecode2 = 0 ;
37168 int val3 ;
37169 int ecode3 = 0 ;
37170 int val4 ;
37171 int ecode4 = 0 ;
37172 int val5 ;
37173 int ecode5 = 0 ;
37174 int val6 ;
37175 int ecode6 = 0 ;
37176 int val7 ;
37177 int ecode7 = 0 ;
37178 PyObject * obj0 = 0 ;
37179 PyObject * obj1 = 0 ;
37180 PyObject * obj2 = 0 ;
37181 PyObject * obj3 = 0 ;
37182 PyObject * obj4 = 0 ;
37183 PyObject * obj5 = 0 ;
37184 PyObject * obj6 = 0 ;
37185 char * kwnames[] = {
37186 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
37187 };
37188
37189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37191 if (!SWIG_IsOK(res1)) {
37192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37193 }
37194 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37195 ecode2 = SWIG_AsVal_int(obj1, &val2);
37196 if (!SWIG_IsOK(ecode2)) {
37197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
37198 }
37199 arg2 = static_cast< int >(val2);
37200 ecode3 = SWIG_AsVal_int(obj2, &val3);
37201 if (!SWIG_IsOK(ecode3)) {
37202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
37203 }
37204 arg3 = static_cast< int >(val3);
37205 ecode4 = SWIG_AsVal_int(obj3, &val4);
37206 if (!SWIG_IsOK(ecode4)) {
37207 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
37208 }
37209 arg4 = static_cast< int >(val4);
37210 ecode5 = SWIG_AsVal_int(obj4, &val5);
37211 if (!SWIG_IsOK(ecode5)) {
37212 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
37213 }
37214 arg5 = static_cast< int >(val5);
37215 ecode6 = SWIG_AsVal_int(obj5, &val6);
37216 if (!SWIG_IsOK(ecode6)) {
37217 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
37218 }
37219 arg6 = static_cast< int >(val6);
37220 ecode7 = SWIG_AsVal_int(obj6, &val7);
37221 if (!SWIG_IsOK(ecode7)) {
37222 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
37223 }
37224 arg7 = static_cast< int >(val7);
37225 {
37226 PyThreadState* __tstate = wxPyBeginAllowThreads();
37227 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
37228 wxPyEndAllowThreads(__tstate);
37229 if (PyErr_Occurred()) SWIG_fail;
37230 }
37231 resultobj = SWIG_Py_Void();
37232 return resultobj;
37233 fail:
37234 return NULL;
37235 }
37236
37237
37238 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37239 PyObject *resultobj = 0;
37240 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37241 wxPoint *arg2 = 0 ;
37242 wxPoint *arg3 = 0 ;
37243 wxPoint *arg4 = 0 ;
37244 void *argp1 = 0 ;
37245 int res1 = 0 ;
37246 wxPoint temp2 ;
37247 wxPoint temp3 ;
37248 wxPoint temp4 ;
37249 PyObject * obj0 = 0 ;
37250 PyObject * obj1 = 0 ;
37251 PyObject * obj2 = 0 ;
37252 PyObject * obj3 = 0 ;
37253 char * kwnames[] = {
37254 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
37255 };
37256
37257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37259 if (!SWIG_IsOK(res1)) {
37260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37261 }
37262 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37263 {
37264 arg2 = &temp2;
37265 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37266 }
37267 {
37268 arg3 = &temp3;
37269 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37270 }
37271 {
37272 arg4 = &temp4;
37273 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37274 }
37275 {
37276 PyThreadState* __tstate = wxPyBeginAllowThreads();
37277 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
37278 wxPyEndAllowThreads(__tstate);
37279 if (PyErr_Occurred()) SWIG_fail;
37280 }
37281 resultobj = SWIG_Py_Void();
37282 return resultobj;
37283 fail:
37284 return NULL;
37285 }
37286
37287
37288 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37289 PyObject *resultobj = 0;
37290 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37291 int arg2 ;
37292 int arg3 ;
37293 int arg4 ;
37294 int arg5 ;
37295 void *argp1 = 0 ;
37296 int res1 = 0 ;
37297 int val2 ;
37298 int ecode2 = 0 ;
37299 int val3 ;
37300 int ecode3 = 0 ;
37301 int val4 ;
37302 int ecode4 = 0 ;
37303 int val5 ;
37304 int ecode5 = 0 ;
37305 PyObject * obj0 = 0 ;
37306 PyObject * obj1 = 0 ;
37307 PyObject * obj2 = 0 ;
37308 PyObject * obj3 = 0 ;
37309 PyObject * obj4 = 0 ;
37310 char * kwnames[] = {
37311 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37312 };
37313
37314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37316 if (!SWIG_IsOK(res1)) {
37317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37318 }
37319 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37320 ecode2 = SWIG_AsVal_int(obj1, &val2);
37321 if (!SWIG_IsOK(ecode2)) {
37322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
37323 }
37324 arg2 = static_cast< int >(val2);
37325 ecode3 = SWIG_AsVal_int(obj2, &val3);
37326 if (!SWIG_IsOK(ecode3)) {
37327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
37328 }
37329 arg3 = static_cast< int >(val3);
37330 ecode4 = SWIG_AsVal_int(obj3, &val4);
37331 if (!SWIG_IsOK(ecode4)) {
37332 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
37333 }
37334 arg4 = static_cast< int >(val4);
37335 ecode5 = SWIG_AsVal_int(obj4, &val5);
37336 if (!SWIG_IsOK(ecode5)) {
37337 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
37338 }
37339 arg5 = static_cast< int >(val5);
37340 {
37341 PyThreadState* __tstate = wxPyBeginAllowThreads();
37342 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
37343 wxPyEndAllowThreads(__tstate);
37344 if (PyErr_Occurred()) SWIG_fail;
37345 }
37346 resultobj = SWIG_Py_Void();
37347 return resultobj;
37348 fail:
37349 return NULL;
37350 }
37351
37352
37353 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37354 PyObject *resultobj = 0;
37355 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37356 wxRect *arg2 = 0 ;
37357 void *argp1 = 0 ;
37358 int res1 = 0 ;
37359 wxRect temp2 ;
37360 PyObject * obj0 = 0 ;
37361 PyObject * obj1 = 0 ;
37362 char * kwnames[] = {
37363 (char *) "self",(char *) "rect", NULL
37364 };
37365
37366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
37367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37368 if (!SWIG_IsOK(res1)) {
37369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37370 }
37371 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37372 {
37373 arg2 = &temp2;
37374 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37375 }
37376 {
37377 PyThreadState* __tstate = wxPyBeginAllowThreads();
37378 (arg1)->DrawCheckMark((wxRect const &)*arg2);
37379 wxPyEndAllowThreads(__tstate);
37380 if (PyErr_Occurred()) SWIG_fail;
37381 }
37382 resultobj = SWIG_Py_Void();
37383 return resultobj;
37384 fail:
37385 return NULL;
37386 }
37387
37388
37389 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37390 PyObject *resultobj = 0;
37391 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37392 int arg2 ;
37393 int arg3 ;
37394 int arg4 ;
37395 int arg5 ;
37396 double arg6 ;
37397 double arg7 ;
37398 void *argp1 = 0 ;
37399 int res1 = 0 ;
37400 int val2 ;
37401 int ecode2 = 0 ;
37402 int val3 ;
37403 int ecode3 = 0 ;
37404 int val4 ;
37405 int ecode4 = 0 ;
37406 int val5 ;
37407 int ecode5 = 0 ;
37408 double val6 ;
37409 int ecode6 = 0 ;
37410 double val7 ;
37411 int ecode7 = 0 ;
37412 PyObject * obj0 = 0 ;
37413 PyObject * obj1 = 0 ;
37414 PyObject * obj2 = 0 ;
37415 PyObject * obj3 = 0 ;
37416 PyObject * obj4 = 0 ;
37417 PyObject * obj5 = 0 ;
37418 PyObject * obj6 = 0 ;
37419 char * kwnames[] = {
37420 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
37421 };
37422
37423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37425 if (!SWIG_IsOK(res1)) {
37426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37427 }
37428 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37429 ecode2 = SWIG_AsVal_int(obj1, &val2);
37430 if (!SWIG_IsOK(ecode2)) {
37431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
37432 }
37433 arg2 = static_cast< int >(val2);
37434 ecode3 = SWIG_AsVal_int(obj2, &val3);
37435 if (!SWIG_IsOK(ecode3)) {
37436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
37437 }
37438 arg3 = static_cast< int >(val3);
37439 ecode4 = SWIG_AsVal_int(obj3, &val4);
37440 if (!SWIG_IsOK(ecode4)) {
37441 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
37442 }
37443 arg4 = static_cast< int >(val4);
37444 ecode5 = SWIG_AsVal_int(obj4, &val5);
37445 if (!SWIG_IsOK(ecode5)) {
37446 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
37447 }
37448 arg5 = static_cast< int >(val5);
37449 ecode6 = SWIG_AsVal_double(obj5, &val6);
37450 if (!SWIG_IsOK(ecode6)) {
37451 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
37452 }
37453 arg6 = static_cast< double >(val6);
37454 ecode7 = SWIG_AsVal_double(obj6, &val7);
37455 if (!SWIG_IsOK(ecode7)) {
37456 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
37457 }
37458 arg7 = static_cast< double >(val7);
37459 {
37460 PyThreadState* __tstate = wxPyBeginAllowThreads();
37461 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
37462 wxPyEndAllowThreads(__tstate);
37463 if (PyErr_Occurred()) SWIG_fail;
37464 }
37465 resultobj = SWIG_Py_Void();
37466 return resultobj;
37467 fail:
37468 return NULL;
37469 }
37470
37471
37472 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37473 PyObject *resultobj = 0;
37474 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37475 wxPoint *arg2 = 0 ;
37476 wxSize *arg3 = 0 ;
37477 double arg4 ;
37478 double arg5 ;
37479 void *argp1 = 0 ;
37480 int res1 = 0 ;
37481 wxPoint temp2 ;
37482 wxSize temp3 ;
37483 double val4 ;
37484 int ecode4 = 0 ;
37485 double val5 ;
37486 int ecode5 = 0 ;
37487 PyObject * obj0 = 0 ;
37488 PyObject * obj1 = 0 ;
37489 PyObject * obj2 = 0 ;
37490 PyObject * obj3 = 0 ;
37491 PyObject * obj4 = 0 ;
37492 char * kwnames[] = {
37493 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
37494 };
37495
37496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37498 if (!SWIG_IsOK(res1)) {
37499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37500 }
37501 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37502 {
37503 arg2 = &temp2;
37504 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37505 }
37506 {
37507 arg3 = &temp3;
37508 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37509 }
37510 ecode4 = SWIG_AsVal_double(obj3, &val4);
37511 if (!SWIG_IsOK(ecode4)) {
37512 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
37513 }
37514 arg4 = static_cast< double >(val4);
37515 ecode5 = SWIG_AsVal_double(obj4, &val5);
37516 if (!SWIG_IsOK(ecode5)) {
37517 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
37518 }
37519 arg5 = static_cast< double >(val5);
37520 {
37521 PyThreadState* __tstate = wxPyBeginAllowThreads();
37522 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
37523 wxPyEndAllowThreads(__tstate);
37524 if (PyErr_Occurred()) SWIG_fail;
37525 }
37526 resultobj = SWIG_Py_Void();
37527 return resultobj;
37528 fail:
37529 return NULL;
37530 }
37531
37532
37533 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37534 PyObject *resultobj = 0;
37535 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37536 int arg2 ;
37537 int arg3 ;
37538 void *argp1 = 0 ;
37539 int res1 = 0 ;
37540 int val2 ;
37541 int ecode2 = 0 ;
37542 int val3 ;
37543 int ecode3 = 0 ;
37544 PyObject * obj0 = 0 ;
37545 PyObject * obj1 = 0 ;
37546 PyObject * obj2 = 0 ;
37547 char * kwnames[] = {
37548 (char *) "self",(char *) "x",(char *) "y", NULL
37549 };
37550
37551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37553 if (!SWIG_IsOK(res1)) {
37554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37555 }
37556 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37557 ecode2 = SWIG_AsVal_int(obj1, &val2);
37558 if (!SWIG_IsOK(ecode2)) {
37559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
37560 }
37561 arg2 = static_cast< int >(val2);
37562 ecode3 = SWIG_AsVal_int(obj2, &val3);
37563 if (!SWIG_IsOK(ecode3)) {
37564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
37565 }
37566 arg3 = static_cast< int >(val3);
37567 {
37568 PyThreadState* __tstate = wxPyBeginAllowThreads();
37569 (arg1)->DrawPoint(arg2,arg3);
37570 wxPyEndAllowThreads(__tstate);
37571 if (PyErr_Occurred()) SWIG_fail;
37572 }
37573 resultobj = SWIG_Py_Void();
37574 return resultobj;
37575 fail:
37576 return NULL;
37577 }
37578
37579
37580 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37581 PyObject *resultobj = 0;
37582 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37583 wxPoint *arg2 = 0 ;
37584 void *argp1 = 0 ;
37585 int res1 = 0 ;
37586 wxPoint temp2 ;
37587 PyObject * obj0 = 0 ;
37588 PyObject * obj1 = 0 ;
37589 char * kwnames[] = {
37590 (char *) "self",(char *) "pt", NULL
37591 };
37592
37593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37595 if (!SWIG_IsOK(res1)) {
37596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37597 }
37598 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37599 {
37600 arg2 = &temp2;
37601 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37602 }
37603 {
37604 PyThreadState* __tstate = wxPyBeginAllowThreads();
37605 (arg1)->DrawPoint((wxPoint const &)*arg2);
37606 wxPyEndAllowThreads(__tstate);
37607 if (PyErr_Occurred()) SWIG_fail;
37608 }
37609 resultobj = SWIG_Py_Void();
37610 return resultobj;
37611 fail:
37612 return NULL;
37613 }
37614
37615
37616 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37617 PyObject *resultobj = 0;
37618 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37619 int arg2 ;
37620 int arg3 ;
37621 int arg4 ;
37622 int arg5 ;
37623 void *argp1 = 0 ;
37624 int res1 = 0 ;
37625 int val2 ;
37626 int ecode2 = 0 ;
37627 int val3 ;
37628 int ecode3 = 0 ;
37629 int val4 ;
37630 int ecode4 = 0 ;
37631 int val5 ;
37632 int ecode5 = 0 ;
37633 PyObject * obj0 = 0 ;
37634 PyObject * obj1 = 0 ;
37635 PyObject * obj2 = 0 ;
37636 PyObject * obj3 = 0 ;
37637 PyObject * obj4 = 0 ;
37638 char * kwnames[] = {
37639 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37640 };
37641
37642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37644 if (!SWIG_IsOK(res1)) {
37645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37646 }
37647 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37648 ecode2 = SWIG_AsVal_int(obj1, &val2);
37649 if (!SWIG_IsOK(ecode2)) {
37650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
37651 }
37652 arg2 = static_cast< int >(val2);
37653 ecode3 = SWIG_AsVal_int(obj2, &val3);
37654 if (!SWIG_IsOK(ecode3)) {
37655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
37656 }
37657 arg3 = static_cast< int >(val3);
37658 ecode4 = SWIG_AsVal_int(obj3, &val4);
37659 if (!SWIG_IsOK(ecode4)) {
37660 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
37661 }
37662 arg4 = static_cast< int >(val4);
37663 ecode5 = SWIG_AsVal_int(obj4, &val5);
37664 if (!SWIG_IsOK(ecode5)) {
37665 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
37666 }
37667 arg5 = static_cast< int >(val5);
37668 {
37669 PyThreadState* __tstate = wxPyBeginAllowThreads();
37670 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
37671 wxPyEndAllowThreads(__tstate);
37672 if (PyErr_Occurred()) SWIG_fail;
37673 }
37674 resultobj = SWIG_Py_Void();
37675 return resultobj;
37676 fail:
37677 return NULL;
37678 }
37679
37680
37681 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37682 PyObject *resultobj = 0;
37683 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37684 wxRect *arg2 = 0 ;
37685 void *argp1 = 0 ;
37686 int res1 = 0 ;
37687 wxRect temp2 ;
37688 PyObject * obj0 = 0 ;
37689 PyObject * obj1 = 0 ;
37690 char * kwnames[] = {
37691 (char *) "self",(char *) "rect", NULL
37692 };
37693
37694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37696 if (!SWIG_IsOK(res1)) {
37697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37698 }
37699 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37700 {
37701 arg2 = &temp2;
37702 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37703 }
37704 {
37705 PyThreadState* __tstate = wxPyBeginAllowThreads();
37706 (arg1)->DrawRectangle((wxRect const &)*arg2);
37707 wxPyEndAllowThreads(__tstate);
37708 if (PyErr_Occurred()) SWIG_fail;
37709 }
37710 resultobj = SWIG_Py_Void();
37711 return resultobj;
37712 fail:
37713 return NULL;
37714 }
37715
37716
37717 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37718 PyObject *resultobj = 0;
37719 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37720 wxPoint *arg2 = 0 ;
37721 wxSize *arg3 = 0 ;
37722 void *argp1 = 0 ;
37723 int res1 = 0 ;
37724 wxPoint temp2 ;
37725 wxSize temp3 ;
37726 PyObject * obj0 = 0 ;
37727 PyObject * obj1 = 0 ;
37728 PyObject * obj2 = 0 ;
37729 char * kwnames[] = {
37730 (char *) "self",(char *) "pt",(char *) "sz", NULL
37731 };
37732
37733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37735 if (!SWIG_IsOK(res1)) {
37736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37737 }
37738 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37739 {
37740 arg2 = &temp2;
37741 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37742 }
37743 {
37744 arg3 = &temp3;
37745 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37746 }
37747 {
37748 PyThreadState* __tstate = wxPyBeginAllowThreads();
37749 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37750 wxPyEndAllowThreads(__tstate);
37751 if (PyErr_Occurred()) SWIG_fail;
37752 }
37753 resultobj = SWIG_Py_Void();
37754 return resultobj;
37755 fail:
37756 return NULL;
37757 }
37758
37759
37760 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37761 PyObject *resultobj = 0;
37762 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37763 int arg2 ;
37764 int arg3 ;
37765 int arg4 ;
37766 int arg5 ;
37767 double arg6 ;
37768 void *argp1 = 0 ;
37769 int res1 = 0 ;
37770 int val2 ;
37771 int ecode2 = 0 ;
37772 int val3 ;
37773 int ecode3 = 0 ;
37774 int val4 ;
37775 int ecode4 = 0 ;
37776 int val5 ;
37777 int ecode5 = 0 ;
37778 double val6 ;
37779 int ecode6 = 0 ;
37780 PyObject * obj0 = 0 ;
37781 PyObject * obj1 = 0 ;
37782 PyObject * obj2 = 0 ;
37783 PyObject * obj3 = 0 ;
37784 PyObject * obj4 = 0 ;
37785 PyObject * obj5 = 0 ;
37786 char * kwnames[] = {
37787 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37788 };
37789
37790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37792 if (!SWIG_IsOK(res1)) {
37793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37794 }
37795 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37796 ecode2 = SWIG_AsVal_int(obj1, &val2);
37797 if (!SWIG_IsOK(ecode2)) {
37798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37799 }
37800 arg2 = static_cast< int >(val2);
37801 ecode3 = SWIG_AsVal_int(obj2, &val3);
37802 if (!SWIG_IsOK(ecode3)) {
37803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37804 }
37805 arg3 = static_cast< int >(val3);
37806 ecode4 = SWIG_AsVal_int(obj3, &val4);
37807 if (!SWIG_IsOK(ecode4)) {
37808 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37809 }
37810 arg4 = static_cast< int >(val4);
37811 ecode5 = SWIG_AsVal_int(obj4, &val5);
37812 if (!SWIG_IsOK(ecode5)) {
37813 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37814 }
37815 arg5 = static_cast< int >(val5);
37816 ecode6 = SWIG_AsVal_double(obj5, &val6);
37817 if (!SWIG_IsOK(ecode6)) {
37818 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37819 }
37820 arg6 = static_cast< double >(val6);
37821 {
37822 PyThreadState* __tstate = wxPyBeginAllowThreads();
37823 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37824 wxPyEndAllowThreads(__tstate);
37825 if (PyErr_Occurred()) SWIG_fail;
37826 }
37827 resultobj = SWIG_Py_Void();
37828 return resultobj;
37829 fail:
37830 return NULL;
37831 }
37832
37833
37834 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37835 PyObject *resultobj = 0;
37836 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37837 wxRect *arg2 = 0 ;
37838 double arg3 ;
37839 void *argp1 = 0 ;
37840 int res1 = 0 ;
37841 wxRect temp2 ;
37842 double val3 ;
37843 int ecode3 = 0 ;
37844 PyObject * obj0 = 0 ;
37845 PyObject * obj1 = 0 ;
37846 PyObject * obj2 = 0 ;
37847 char * kwnames[] = {
37848 (char *) "self",(char *) "r",(char *) "radius", NULL
37849 };
37850
37851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37853 if (!SWIG_IsOK(res1)) {
37854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37855 }
37856 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37857 {
37858 arg2 = &temp2;
37859 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37860 }
37861 ecode3 = SWIG_AsVal_double(obj2, &val3);
37862 if (!SWIG_IsOK(ecode3)) {
37863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37864 }
37865 arg3 = static_cast< double >(val3);
37866 {
37867 PyThreadState* __tstate = wxPyBeginAllowThreads();
37868 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37869 wxPyEndAllowThreads(__tstate);
37870 if (PyErr_Occurred()) SWIG_fail;
37871 }
37872 resultobj = SWIG_Py_Void();
37873 return resultobj;
37874 fail:
37875 return NULL;
37876 }
37877
37878
37879 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37880 PyObject *resultobj = 0;
37881 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37882 wxPoint *arg2 = 0 ;
37883 wxSize *arg3 = 0 ;
37884 double arg4 ;
37885 void *argp1 = 0 ;
37886 int res1 = 0 ;
37887 wxPoint temp2 ;
37888 wxSize temp3 ;
37889 double val4 ;
37890 int ecode4 = 0 ;
37891 PyObject * obj0 = 0 ;
37892 PyObject * obj1 = 0 ;
37893 PyObject * obj2 = 0 ;
37894 PyObject * obj3 = 0 ;
37895 char * kwnames[] = {
37896 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37897 };
37898
37899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37901 if (!SWIG_IsOK(res1)) {
37902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37903 }
37904 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37905 {
37906 arg2 = &temp2;
37907 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37908 }
37909 {
37910 arg3 = &temp3;
37911 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37912 }
37913 ecode4 = SWIG_AsVal_double(obj3, &val4);
37914 if (!SWIG_IsOK(ecode4)) {
37915 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37916 }
37917 arg4 = static_cast< double >(val4);
37918 {
37919 PyThreadState* __tstate = wxPyBeginAllowThreads();
37920 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37921 wxPyEndAllowThreads(__tstate);
37922 if (PyErr_Occurred()) SWIG_fail;
37923 }
37924 resultobj = SWIG_Py_Void();
37925 return resultobj;
37926 fail:
37927 return NULL;
37928 }
37929
37930
37931 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37932 PyObject *resultobj = 0;
37933 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37934 int arg2 ;
37935 int arg3 ;
37936 int arg4 ;
37937 void *argp1 = 0 ;
37938 int res1 = 0 ;
37939 int val2 ;
37940 int ecode2 = 0 ;
37941 int val3 ;
37942 int ecode3 = 0 ;
37943 int val4 ;
37944 int ecode4 = 0 ;
37945 PyObject * obj0 = 0 ;
37946 PyObject * obj1 = 0 ;
37947 PyObject * obj2 = 0 ;
37948 PyObject * obj3 = 0 ;
37949 char * kwnames[] = {
37950 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37951 };
37952
37953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37955 if (!SWIG_IsOK(res1)) {
37956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37957 }
37958 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37959 ecode2 = SWIG_AsVal_int(obj1, &val2);
37960 if (!SWIG_IsOK(ecode2)) {
37961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37962 }
37963 arg2 = static_cast< int >(val2);
37964 ecode3 = SWIG_AsVal_int(obj2, &val3);
37965 if (!SWIG_IsOK(ecode3)) {
37966 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37967 }
37968 arg3 = static_cast< int >(val3);
37969 ecode4 = SWIG_AsVal_int(obj3, &val4);
37970 if (!SWIG_IsOK(ecode4)) {
37971 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37972 }
37973 arg4 = static_cast< int >(val4);
37974 {
37975 PyThreadState* __tstate = wxPyBeginAllowThreads();
37976 (arg1)->DrawCircle(arg2,arg3,arg4);
37977 wxPyEndAllowThreads(__tstate);
37978 if (PyErr_Occurred()) SWIG_fail;
37979 }
37980 resultobj = SWIG_Py_Void();
37981 return resultobj;
37982 fail:
37983 return NULL;
37984 }
37985
37986
37987 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37988 PyObject *resultobj = 0;
37989 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37990 wxPoint *arg2 = 0 ;
37991 int arg3 ;
37992 void *argp1 = 0 ;
37993 int res1 = 0 ;
37994 wxPoint temp2 ;
37995 int val3 ;
37996 int ecode3 = 0 ;
37997 PyObject * obj0 = 0 ;
37998 PyObject * obj1 = 0 ;
37999 PyObject * obj2 = 0 ;
38000 char * kwnames[] = {
38001 (char *) "self",(char *) "pt",(char *) "radius", NULL
38002 };
38003
38004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38006 if (!SWIG_IsOK(res1)) {
38007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38008 }
38009 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38010 {
38011 arg2 = &temp2;
38012 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38013 }
38014 ecode3 = SWIG_AsVal_int(obj2, &val3);
38015 if (!SWIG_IsOK(ecode3)) {
38016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
38017 }
38018 arg3 = static_cast< int >(val3);
38019 {
38020 PyThreadState* __tstate = wxPyBeginAllowThreads();
38021 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
38022 wxPyEndAllowThreads(__tstate);
38023 if (PyErr_Occurred()) SWIG_fail;
38024 }
38025 resultobj = SWIG_Py_Void();
38026 return resultobj;
38027 fail:
38028 return NULL;
38029 }
38030
38031
38032 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38033 PyObject *resultobj = 0;
38034 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38035 int arg2 ;
38036 int arg3 ;
38037 int arg4 ;
38038 int arg5 ;
38039 void *argp1 = 0 ;
38040 int res1 = 0 ;
38041 int val2 ;
38042 int ecode2 = 0 ;
38043 int val3 ;
38044 int ecode3 = 0 ;
38045 int val4 ;
38046 int ecode4 = 0 ;
38047 int val5 ;
38048 int ecode5 = 0 ;
38049 PyObject * obj0 = 0 ;
38050 PyObject * obj1 = 0 ;
38051 PyObject * obj2 = 0 ;
38052 PyObject * obj3 = 0 ;
38053 PyObject * obj4 = 0 ;
38054 char * kwnames[] = {
38055 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38056 };
38057
38058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38060 if (!SWIG_IsOK(res1)) {
38061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38062 }
38063 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38064 ecode2 = SWIG_AsVal_int(obj1, &val2);
38065 if (!SWIG_IsOK(ecode2)) {
38066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
38067 }
38068 arg2 = static_cast< int >(val2);
38069 ecode3 = SWIG_AsVal_int(obj2, &val3);
38070 if (!SWIG_IsOK(ecode3)) {
38071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
38072 }
38073 arg3 = static_cast< int >(val3);
38074 ecode4 = SWIG_AsVal_int(obj3, &val4);
38075 if (!SWIG_IsOK(ecode4)) {
38076 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
38077 }
38078 arg4 = static_cast< int >(val4);
38079 ecode5 = SWIG_AsVal_int(obj4, &val5);
38080 if (!SWIG_IsOK(ecode5)) {
38081 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
38082 }
38083 arg5 = static_cast< int >(val5);
38084 {
38085 PyThreadState* __tstate = wxPyBeginAllowThreads();
38086 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
38087 wxPyEndAllowThreads(__tstate);
38088 if (PyErr_Occurred()) SWIG_fail;
38089 }
38090 resultobj = SWIG_Py_Void();
38091 return resultobj;
38092 fail:
38093 return NULL;
38094 }
38095
38096
38097 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38098 PyObject *resultobj = 0;
38099 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38100 wxRect *arg2 = 0 ;
38101 void *argp1 = 0 ;
38102 int res1 = 0 ;
38103 wxRect temp2 ;
38104 PyObject * obj0 = 0 ;
38105 PyObject * obj1 = 0 ;
38106 char * kwnames[] = {
38107 (char *) "self",(char *) "rect", NULL
38108 };
38109
38110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
38111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38112 if (!SWIG_IsOK(res1)) {
38113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38114 }
38115 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38116 {
38117 arg2 = &temp2;
38118 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
38119 }
38120 {
38121 PyThreadState* __tstate = wxPyBeginAllowThreads();
38122 (arg1)->DrawEllipse((wxRect const &)*arg2);
38123 wxPyEndAllowThreads(__tstate);
38124 if (PyErr_Occurred()) SWIG_fail;
38125 }
38126 resultobj = SWIG_Py_Void();
38127 return resultobj;
38128 fail:
38129 return NULL;
38130 }
38131
38132
38133 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38134 PyObject *resultobj = 0;
38135 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38136 wxPoint *arg2 = 0 ;
38137 wxSize *arg3 = 0 ;
38138 void *argp1 = 0 ;
38139 int res1 = 0 ;
38140 wxPoint temp2 ;
38141 wxSize temp3 ;
38142 PyObject * obj0 = 0 ;
38143 PyObject * obj1 = 0 ;
38144 PyObject * obj2 = 0 ;
38145 char * kwnames[] = {
38146 (char *) "self",(char *) "pt",(char *) "sz", NULL
38147 };
38148
38149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38151 if (!SWIG_IsOK(res1)) {
38152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38153 }
38154 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38155 {
38156 arg2 = &temp2;
38157 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38158 }
38159 {
38160 arg3 = &temp3;
38161 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
38162 }
38163 {
38164 PyThreadState* __tstate = wxPyBeginAllowThreads();
38165 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
38166 wxPyEndAllowThreads(__tstate);
38167 if (PyErr_Occurred()) SWIG_fail;
38168 }
38169 resultobj = SWIG_Py_Void();
38170 return resultobj;
38171 fail:
38172 return NULL;
38173 }
38174
38175
38176 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38177 PyObject *resultobj = 0;
38178 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38179 wxIcon *arg2 = 0 ;
38180 int arg3 ;
38181 int arg4 ;
38182 void *argp1 = 0 ;
38183 int res1 = 0 ;
38184 void *argp2 = 0 ;
38185 int res2 = 0 ;
38186 int val3 ;
38187 int ecode3 = 0 ;
38188 int val4 ;
38189 int ecode4 = 0 ;
38190 PyObject * obj0 = 0 ;
38191 PyObject * obj1 = 0 ;
38192 PyObject * obj2 = 0 ;
38193 PyObject * obj3 = 0 ;
38194 char * kwnames[] = {
38195 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
38196 };
38197
38198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38200 if (!SWIG_IsOK(res1)) {
38201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38202 }
38203 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38205 if (!SWIG_IsOK(res2)) {
38206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38207 }
38208 if (!argp2) {
38209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38210 }
38211 arg2 = reinterpret_cast< wxIcon * >(argp2);
38212 ecode3 = SWIG_AsVal_int(obj2, &val3);
38213 if (!SWIG_IsOK(ecode3)) {
38214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
38215 }
38216 arg3 = static_cast< int >(val3);
38217 ecode4 = SWIG_AsVal_int(obj3, &val4);
38218 if (!SWIG_IsOK(ecode4)) {
38219 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
38220 }
38221 arg4 = static_cast< int >(val4);
38222 {
38223 PyThreadState* __tstate = wxPyBeginAllowThreads();
38224 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
38225 wxPyEndAllowThreads(__tstate);
38226 if (PyErr_Occurred()) SWIG_fail;
38227 }
38228 resultobj = SWIG_Py_Void();
38229 return resultobj;
38230 fail:
38231 return NULL;
38232 }
38233
38234
38235 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38236 PyObject *resultobj = 0;
38237 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38238 wxIcon *arg2 = 0 ;
38239 wxPoint *arg3 = 0 ;
38240 void *argp1 = 0 ;
38241 int res1 = 0 ;
38242 void *argp2 = 0 ;
38243 int res2 = 0 ;
38244 wxPoint temp3 ;
38245 PyObject * obj0 = 0 ;
38246 PyObject * obj1 = 0 ;
38247 PyObject * obj2 = 0 ;
38248 char * kwnames[] = {
38249 (char *) "self",(char *) "icon",(char *) "pt", NULL
38250 };
38251
38252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38254 if (!SWIG_IsOK(res1)) {
38255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38256 }
38257 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38259 if (!SWIG_IsOK(res2)) {
38260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38261 }
38262 if (!argp2) {
38263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38264 }
38265 arg2 = reinterpret_cast< wxIcon * >(argp2);
38266 {
38267 arg3 = &temp3;
38268 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38269 }
38270 {
38271 PyThreadState* __tstate = wxPyBeginAllowThreads();
38272 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
38273 wxPyEndAllowThreads(__tstate);
38274 if (PyErr_Occurred()) SWIG_fail;
38275 }
38276 resultobj = SWIG_Py_Void();
38277 return resultobj;
38278 fail:
38279 return NULL;
38280 }
38281
38282
38283 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38284 PyObject *resultobj = 0;
38285 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38286 wxBitmap *arg2 = 0 ;
38287 int arg3 ;
38288 int arg4 ;
38289 bool arg5 = (bool) false ;
38290 void *argp1 = 0 ;
38291 int res1 = 0 ;
38292 void *argp2 = 0 ;
38293 int res2 = 0 ;
38294 int val3 ;
38295 int ecode3 = 0 ;
38296 int val4 ;
38297 int ecode4 = 0 ;
38298 bool val5 ;
38299 int ecode5 = 0 ;
38300 PyObject * obj0 = 0 ;
38301 PyObject * obj1 = 0 ;
38302 PyObject * obj2 = 0 ;
38303 PyObject * obj3 = 0 ;
38304 PyObject * obj4 = 0 ;
38305 char * kwnames[] = {
38306 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
38307 };
38308
38309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38311 if (!SWIG_IsOK(res1)) {
38312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38313 }
38314 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38315 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38316 if (!SWIG_IsOK(res2)) {
38317 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38318 }
38319 if (!argp2) {
38320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38321 }
38322 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38323 ecode3 = SWIG_AsVal_int(obj2, &val3);
38324 if (!SWIG_IsOK(ecode3)) {
38325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
38326 }
38327 arg3 = static_cast< int >(val3);
38328 ecode4 = SWIG_AsVal_int(obj3, &val4);
38329 if (!SWIG_IsOK(ecode4)) {
38330 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
38331 }
38332 arg4 = static_cast< int >(val4);
38333 if (obj4) {
38334 ecode5 = SWIG_AsVal_bool(obj4, &val5);
38335 if (!SWIG_IsOK(ecode5)) {
38336 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
38337 }
38338 arg5 = static_cast< bool >(val5);
38339 }
38340 {
38341 PyThreadState* __tstate = wxPyBeginAllowThreads();
38342 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
38343 wxPyEndAllowThreads(__tstate);
38344 if (PyErr_Occurred()) SWIG_fail;
38345 }
38346 resultobj = SWIG_Py_Void();
38347 return resultobj;
38348 fail:
38349 return NULL;
38350 }
38351
38352
38353 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38354 PyObject *resultobj = 0;
38355 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38356 wxBitmap *arg2 = 0 ;
38357 wxPoint *arg3 = 0 ;
38358 bool arg4 = (bool) false ;
38359 void *argp1 = 0 ;
38360 int res1 = 0 ;
38361 void *argp2 = 0 ;
38362 int res2 = 0 ;
38363 wxPoint temp3 ;
38364 bool val4 ;
38365 int ecode4 = 0 ;
38366 PyObject * obj0 = 0 ;
38367 PyObject * obj1 = 0 ;
38368 PyObject * obj2 = 0 ;
38369 PyObject * obj3 = 0 ;
38370 char * kwnames[] = {
38371 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
38372 };
38373
38374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38376 if (!SWIG_IsOK(res1)) {
38377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38378 }
38379 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38380 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38381 if (!SWIG_IsOK(res2)) {
38382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38383 }
38384 if (!argp2) {
38385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38386 }
38387 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38388 {
38389 arg3 = &temp3;
38390 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38391 }
38392 if (obj3) {
38393 ecode4 = SWIG_AsVal_bool(obj3, &val4);
38394 if (!SWIG_IsOK(ecode4)) {
38395 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
38396 }
38397 arg4 = static_cast< bool >(val4);
38398 }
38399 {
38400 PyThreadState* __tstate = wxPyBeginAllowThreads();
38401 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
38402 wxPyEndAllowThreads(__tstate);
38403 if (PyErr_Occurred()) SWIG_fail;
38404 }
38405 resultobj = SWIG_Py_Void();
38406 return resultobj;
38407 fail:
38408 return NULL;
38409 }
38410
38411
38412 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38413 PyObject *resultobj = 0;
38414 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38415 wxString *arg2 = 0 ;
38416 int arg3 ;
38417 int arg4 ;
38418 void *argp1 = 0 ;
38419 int res1 = 0 ;
38420 bool temp2 = false ;
38421 int val3 ;
38422 int ecode3 = 0 ;
38423 int val4 ;
38424 int ecode4 = 0 ;
38425 PyObject * obj0 = 0 ;
38426 PyObject * obj1 = 0 ;
38427 PyObject * obj2 = 0 ;
38428 PyObject * obj3 = 0 ;
38429 char * kwnames[] = {
38430 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
38431 };
38432
38433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38435 if (!SWIG_IsOK(res1)) {
38436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38437 }
38438 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38439 {
38440 arg2 = wxString_in_helper(obj1);
38441 if (arg2 == NULL) SWIG_fail;
38442 temp2 = true;
38443 }
38444 ecode3 = SWIG_AsVal_int(obj2, &val3);
38445 if (!SWIG_IsOK(ecode3)) {
38446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
38447 }
38448 arg3 = static_cast< int >(val3);
38449 ecode4 = SWIG_AsVal_int(obj3, &val4);
38450 if (!SWIG_IsOK(ecode4)) {
38451 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
38452 }
38453 arg4 = static_cast< int >(val4);
38454 {
38455 PyThreadState* __tstate = wxPyBeginAllowThreads();
38456 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
38457 wxPyEndAllowThreads(__tstate);
38458 if (PyErr_Occurred()) SWIG_fail;
38459 }
38460 resultobj = SWIG_Py_Void();
38461 {
38462 if (temp2)
38463 delete arg2;
38464 }
38465 return resultobj;
38466 fail:
38467 {
38468 if (temp2)
38469 delete arg2;
38470 }
38471 return NULL;
38472 }
38473
38474
38475 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38476 PyObject *resultobj = 0;
38477 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38478 wxString *arg2 = 0 ;
38479 wxPoint *arg3 = 0 ;
38480 void *argp1 = 0 ;
38481 int res1 = 0 ;
38482 bool temp2 = false ;
38483 wxPoint temp3 ;
38484 PyObject * obj0 = 0 ;
38485 PyObject * obj1 = 0 ;
38486 PyObject * obj2 = 0 ;
38487 char * kwnames[] = {
38488 (char *) "self",(char *) "text",(char *) "pt", NULL
38489 };
38490
38491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38493 if (!SWIG_IsOK(res1)) {
38494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38495 }
38496 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38497 {
38498 arg2 = wxString_in_helper(obj1);
38499 if (arg2 == NULL) SWIG_fail;
38500 temp2 = true;
38501 }
38502 {
38503 arg3 = &temp3;
38504 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38505 }
38506 {
38507 PyThreadState* __tstate = wxPyBeginAllowThreads();
38508 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
38509 wxPyEndAllowThreads(__tstate);
38510 if (PyErr_Occurred()) SWIG_fail;
38511 }
38512 resultobj = SWIG_Py_Void();
38513 {
38514 if (temp2)
38515 delete arg2;
38516 }
38517 return resultobj;
38518 fail:
38519 {
38520 if (temp2)
38521 delete arg2;
38522 }
38523 return NULL;
38524 }
38525
38526
38527 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38528 PyObject *resultobj = 0;
38529 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38530 wxString *arg2 = 0 ;
38531 int arg3 ;
38532 int arg4 ;
38533 double arg5 ;
38534 void *argp1 = 0 ;
38535 int res1 = 0 ;
38536 bool temp2 = false ;
38537 int val3 ;
38538 int ecode3 = 0 ;
38539 int val4 ;
38540 int ecode4 = 0 ;
38541 double val5 ;
38542 int ecode5 = 0 ;
38543 PyObject * obj0 = 0 ;
38544 PyObject * obj1 = 0 ;
38545 PyObject * obj2 = 0 ;
38546 PyObject * obj3 = 0 ;
38547 PyObject * obj4 = 0 ;
38548 char * kwnames[] = {
38549 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
38550 };
38551
38552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38554 if (!SWIG_IsOK(res1)) {
38555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38556 }
38557 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38558 {
38559 arg2 = wxString_in_helper(obj1);
38560 if (arg2 == NULL) SWIG_fail;
38561 temp2 = true;
38562 }
38563 ecode3 = SWIG_AsVal_int(obj2, &val3);
38564 if (!SWIG_IsOK(ecode3)) {
38565 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
38566 }
38567 arg3 = static_cast< int >(val3);
38568 ecode4 = SWIG_AsVal_int(obj3, &val4);
38569 if (!SWIG_IsOK(ecode4)) {
38570 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
38571 }
38572 arg4 = static_cast< int >(val4);
38573 ecode5 = SWIG_AsVal_double(obj4, &val5);
38574 if (!SWIG_IsOK(ecode5)) {
38575 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
38576 }
38577 arg5 = static_cast< double >(val5);
38578 {
38579 PyThreadState* __tstate = wxPyBeginAllowThreads();
38580 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
38581 wxPyEndAllowThreads(__tstate);
38582 if (PyErr_Occurred()) SWIG_fail;
38583 }
38584 resultobj = SWIG_Py_Void();
38585 {
38586 if (temp2)
38587 delete arg2;
38588 }
38589 return resultobj;
38590 fail:
38591 {
38592 if (temp2)
38593 delete arg2;
38594 }
38595 return NULL;
38596 }
38597
38598
38599 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38600 PyObject *resultobj = 0;
38601 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38602 wxString *arg2 = 0 ;
38603 wxPoint *arg3 = 0 ;
38604 double arg4 ;
38605 void *argp1 = 0 ;
38606 int res1 = 0 ;
38607 bool temp2 = false ;
38608 wxPoint temp3 ;
38609 double val4 ;
38610 int ecode4 = 0 ;
38611 PyObject * obj0 = 0 ;
38612 PyObject * obj1 = 0 ;
38613 PyObject * obj2 = 0 ;
38614 PyObject * obj3 = 0 ;
38615 char * kwnames[] = {
38616 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
38617 };
38618
38619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38621 if (!SWIG_IsOK(res1)) {
38622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38623 }
38624 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38625 {
38626 arg2 = wxString_in_helper(obj1);
38627 if (arg2 == NULL) SWIG_fail;
38628 temp2 = true;
38629 }
38630 {
38631 arg3 = &temp3;
38632 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38633 }
38634 ecode4 = SWIG_AsVal_double(obj3, &val4);
38635 if (!SWIG_IsOK(ecode4)) {
38636 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
38637 }
38638 arg4 = static_cast< double >(val4);
38639 {
38640 PyThreadState* __tstate = wxPyBeginAllowThreads();
38641 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
38642 wxPyEndAllowThreads(__tstate);
38643 if (PyErr_Occurred()) SWIG_fail;
38644 }
38645 resultobj = SWIG_Py_Void();
38646 {
38647 if (temp2)
38648 delete arg2;
38649 }
38650 return resultobj;
38651 fail:
38652 {
38653 if (temp2)
38654 delete arg2;
38655 }
38656 return NULL;
38657 }
38658
38659
38660 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38661 PyObject *resultobj = 0;
38662 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38663 int arg2 ;
38664 wxPoint *arg3 = (wxPoint *) 0 ;
38665 int arg4 = (int) 0 ;
38666 int arg5 = (int) 0 ;
38667 void *argp1 = 0 ;
38668 int res1 = 0 ;
38669 int val4 ;
38670 int ecode4 = 0 ;
38671 int val5 ;
38672 int ecode5 = 0 ;
38673 PyObject * obj0 = 0 ;
38674 PyObject * obj1 = 0 ;
38675 PyObject * obj2 = 0 ;
38676 PyObject * obj3 = 0 ;
38677 char * kwnames[] = {
38678 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
38679 };
38680
38681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38683 if (!SWIG_IsOK(res1)) {
38684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38685 }
38686 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38687 {
38688 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38689 if (arg3 == NULL) SWIG_fail;
38690 }
38691 if (obj2) {
38692 ecode4 = SWIG_AsVal_int(obj2, &val4);
38693 if (!SWIG_IsOK(ecode4)) {
38694 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38695 }
38696 arg4 = static_cast< int >(val4);
38697 }
38698 if (obj3) {
38699 ecode5 = SWIG_AsVal_int(obj3, &val5);
38700 if (!SWIG_IsOK(ecode5)) {
38701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38702 }
38703 arg5 = static_cast< int >(val5);
38704 }
38705 {
38706 PyThreadState* __tstate = wxPyBeginAllowThreads();
38707 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38708 wxPyEndAllowThreads(__tstate);
38709 if (PyErr_Occurred()) SWIG_fail;
38710 }
38711 resultobj = SWIG_Py_Void();
38712 {
38713 if (arg3) delete [] arg3;
38714 }
38715 return resultobj;
38716 fail:
38717 {
38718 if (arg3) delete [] arg3;
38719 }
38720 return NULL;
38721 }
38722
38723
38724 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38725 PyObject *resultobj = 0;
38726 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38727 int arg2 ;
38728 wxPoint *arg3 = (wxPoint *) 0 ;
38729 int arg4 = (int) 0 ;
38730 int arg5 = (int) 0 ;
38731 int arg6 = (int) wxODDEVEN_RULE ;
38732 void *argp1 = 0 ;
38733 int res1 = 0 ;
38734 int val4 ;
38735 int ecode4 = 0 ;
38736 int val5 ;
38737 int ecode5 = 0 ;
38738 int val6 ;
38739 int ecode6 = 0 ;
38740 PyObject * obj0 = 0 ;
38741 PyObject * obj1 = 0 ;
38742 PyObject * obj2 = 0 ;
38743 PyObject * obj3 = 0 ;
38744 PyObject * obj4 = 0 ;
38745 char * kwnames[] = {
38746 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38747 };
38748
38749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38751 if (!SWIG_IsOK(res1)) {
38752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38753 }
38754 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38755 {
38756 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38757 if (arg3 == NULL) SWIG_fail;
38758 }
38759 if (obj2) {
38760 ecode4 = SWIG_AsVal_int(obj2, &val4);
38761 if (!SWIG_IsOK(ecode4)) {
38762 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38763 }
38764 arg4 = static_cast< int >(val4);
38765 }
38766 if (obj3) {
38767 ecode5 = SWIG_AsVal_int(obj3, &val5);
38768 if (!SWIG_IsOK(ecode5)) {
38769 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38770 }
38771 arg5 = static_cast< int >(val5);
38772 }
38773 if (obj4) {
38774 ecode6 = SWIG_AsVal_int(obj4, &val6);
38775 if (!SWIG_IsOK(ecode6)) {
38776 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38777 }
38778 arg6 = static_cast< int >(val6);
38779 }
38780 {
38781 PyThreadState* __tstate = wxPyBeginAllowThreads();
38782 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38783 wxPyEndAllowThreads(__tstate);
38784 if (PyErr_Occurred()) SWIG_fail;
38785 }
38786 resultobj = SWIG_Py_Void();
38787 {
38788 if (arg3) delete [] arg3;
38789 }
38790 return resultobj;
38791 fail:
38792 {
38793 if (arg3) delete [] arg3;
38794 }
38795 return NULL;
38796 }
38797
38798
38799 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38800 PyObject *resultobj = 0;
38801 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38802 wxString *arg2 = 0 ;
38803 wxRect *arg3 = 0 ;
38804 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38805 int arg5 = (int) -1 ;
38806 void *argp1 = 0 ;
38807 int res1 = 0 ;
38808 bool temp2 = false ;
38809 wxRect temp3 ;
38810 int val4 ;
38811 int ecode4 = 0 ;
38812 int val5 ;
38813 int ecode5 = 0 ;
38814 PyObject * obj0 = 0 ;
38815 PyObject * obj1 = 0 ;
38816 PyObject * obj2 = 0 ;
38817 PyObject * obj3 = 0 ;
38818 PyObject * obj4 = 0 ;
38819 char * kwnames[] = {
38820 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38821 };
38822
38823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38825 if (!SWIG_IsOK(res1)) {
38826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38827 }
38828 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38829 {
38830 arg2 = wxString_in_helper(obj1);
38831 if (arg2 == NULL) SWIG_fail;
38832 temp2 = true;
38833 }
38834 {
38835 arg3 = &temp3;
38836 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38837 }
38838 if (obj3) {
38839 ecode4 = SWIG_AsVal_int(obj3, &val4);
38840 if (!SWIG_IsOK(ecode4)) {
38841 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38842 }
38843 arg4 = static_cast< int >(val4);
38844 }
38845 if (obj4) {
38846 ecode5 = SWIG_AsVal_int(obj4, &val5);
38847 if (!SWIG_IsOK(ecode5)) {
38848 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38849 }
38850 arg5 = static_cast< int >(val5);
38851 }
38852 {
38853 PyThreadState* __tstate = wxPyBeginAllowThreads();
38854 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38855 wxPyEndAllowThreads(__tstate);
38856 if (PyErr_Occurred()) SWIG_fail;
38857 }
38858 resultobj = SWIG_Py_Void();
38859 {
38860 if (temp2)
38861 delete arg2;
38862 }
38863 return resultobj;
38864 fail:
38865 {
38866 if (temp2)
38867 delete arg2;
38868 }
38869 return NULL;
38870 }
38871
38872
38873 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38874 PyObject *resultobj = 0;
38875 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38876 wxString *arg2 = 0 ;
38877 wxBitmap *arg3 = 0 ;
38878 wxRect *arg4 = 0 ;
38879 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38880 int arg6 = (int) -1 ;
38881 void *argp1 = 0 ;
38882 int res1 = 0 ;
38883 bool temp2 = false ;
38884 void *argp3 = 0 ;
38885 int res3 = 0 ;
38886 wxRect temp4 ;
38887 int val5 ;
38888 int ecode5 = 0 ;
38889 int val6 ;
38890 int ecode6 = 0 ;
38891 PyObject * obj0 = 0 ;
38892 PyObject * obj1 = 0 ;
38893 PyObject * obj2 = 0 ;
38894 PyObject * obj3 = 0 ;
38895 PyObject * obj4 = 0 ;
38896 PyObject * obj5 = 0 ;
38897 char * kwnames[] = {
38898 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38899 };
38900
38901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38903 if (!SWIG_IsOK(res1)) {
38904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38905 }
38906 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38907 {
38908 arg2 = wxString_in_helper(obj1);
38909 if (arg2 == NULL) SWIG_fail;
38910 temp2 = true;
38911 }
38912 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38913 if (!SWIG_IsOK(res3)) {
38914 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38915 }
38916 if (!argp3) {
38917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38918 }
38919 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38920 {
38921 arg4 = &temp4;
38922 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38923 }
38924 if (obj4) {
38925 ecode5 = SWIG_AsVal_int(obj4, &val5);
38926 if (!SWIG_IsOK(ecode5)) {
38927 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38928 }
38929 arg5 = static_cast< int >(val5);
38930 }
38931 if (obj5) {
38932 ecode6 = SWIG_AsVal_int(obj5, &val6);
38933 if (!SWIG_IsOK(ecode6)) {
38934 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38935 }
38936 arg6 = static_cast< int >(val6);
38937 }
38938 {
38939 PyThreadState* __tstate = wxPyBeginAllowThreads();
38940 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38941 wxPyEndAllowThreads(__tstate);
38942 if (PyErr_Occurred()) SWIG_fail;
38943 }
38944 resultobj = SWIG_Py_Void();
38945 {
38946 if (temp2)
38947 delete arg2;
38948 }
38949 return resultobj;
38950 fail:
38951 {
38952 if (temp2)
38953 delete arg2;
38954 }
38955 return NULL;
38956 }
38957
38958
38959 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38960 PyObject *resultobj = 0;
38961 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38962 int arg2 ;
38963 wxPoint *arg3 = (wxPoint *) 0 ;
38964 void *argp1 = 0 ;
38965 int res1 = 0 ;
38966 PyObject * obj0 = 0 ;
38967 PyObject * obj1 = 0 ;
38968 char * kwnames[] = {
38969 (char *) "self",(char *) "points", NULL
38970 };
38971
38972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38974 if (!SWIG_IsOK(res1)) {
38975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38976 }
38977 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38978 {
38979 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38980 if (arg3 == NULL) SWIG_fail;
38981 }
38982 {
38983 PyThreadState* __tstate = wxPyBeginAllowThreads();
38984 (arg1)->DrawSpline(arg2,arg3);
38985 wxPyEndAllowThreads(__tstate);
38986 if (PyErr_Occurred()) SWIG_fail;
38987 }
38988 resultobj = SWIG_Py_Void();
38989 {
38990 if (arg3) delete [] arg3;
38991 }
38992 return resultobj;
38993 fail:
38994 {
38995 if (arg3) delete [] arg3;
38996 }
38997 return NULL;
38998 }
38999
39000
39001 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39002 PyObject *resultobj = 0;
39003 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39004 void *argp1 = 0 ;
39005 int res1 = 0 ;
39006 PyObject *swig_obj[1] ;
39007
39008 if (!args) SWIG_fail;
39009 swig_obj[0] = args;
39010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39011 if (!SWIG_IsOK(res1)) {
39012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39013 }
39014 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39015 {
39016 PyThreadState* __tstate = wxPyBeginAllowThreads();
39017 (arg1)->Clear();
39018 wxPyEndAllowThreads(__tstate);
39019 if (PyErr_Occurred()) SWIG_fail;
39020 }
39021 resultobj = SWIG_Py_Void();
39022 return resultobj;
39023 fail:
39024 return NULL;
39025 }
39026
39027
39028 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39029 PyObject *resultobj = 0;
39030 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39031 wxFont *arg2 = 0 ;
39032 void *argp1 = 0 ;
39033 int res1 = 0 ;
39034 void *argp2 = 0 ;
39035 int res2 = 0 ;
39036 PyObject * obj0 = 0 ;
39037 PyObject * obj1 = 0 ;
39038 char * kwnames[] = {
39039 (char *) "self",(char *) "font", NULL
39040 };
39041
39042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
39043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39044 if (!SWIG_IsOK(res1)) {
39045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39046 }
39047 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39048 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
39049 if (!SWIG_IsOK(res2)) {
39050 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
39051 }
39052 if (!argp2) {
39053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
39054 }
39055 arg2 = reinterpret_cast< wxFont * >(argp2);
39056 {
39057 PyThreadState* __tstate = wxPyBeginAllowThreads();
39058 (arg1)->SetFont((wxFont const &)*arg2);
39059 wxPyEndAllowThreads(__tstate);
39060 if (PyErr_Occurred()) SWIG_fail;
39061 }
39062 resultobj = SWIG_Py_Void();
39063 return resultobj;
39064 fail:
39065 return NULL;
39066 }
39067
39068
39069 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39070 PyObject *resultobj = 0;
39071 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39072 wxPen *arg2 = 0 ;
39073 void *argp1 = 0 ;
39074 int res1 = 0 ;
39075 void *argp2 = 0 ;
39076 int res2 = 0 ;
39077 PyObject * obj0 = 0 ;
39078 PyObject * obj1 = 0 ;
39079 char * kwnames[] = {
39080 (char *) "self",(char *) "pen", NULL
39081 };
39082
39083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
39084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39085 if (!SWIG_IsOK(res1)) {
39086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39087 }
39088 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39089 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
39090 if (!SWIG_IsOK(res2)) {
39091 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
39092 }
39093 if (!argp2) {
39094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
39095 }
39096 arg2 = reinterpret_cast< wxPen * >(argp2);
39097 {
39098 PyThreadState* __tstate = wxPyBeginAllowThreads();
39099 (arg1)->SetPen((wxPen const &)*arg2);
39100 wxPyEndAllowThreads(__tstate);
39101 if (PyErr_Occurred()) SWIG_fail;
39102 }
39103 resultobj = SWIG_Py_Void();
39104 return resultobj;
39105 fail:
39106 return NULL;
39107 }
39108
39109
39110 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39111 PyObject *resultobj = 0;
39112 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39113 wxBrush *arg2 = 0 ;
39114 void *argp1 = 0 ;
39115 int res1 = 0 ;
39116 void *argp2 = 0 ;
39117 int res2 = 0 ;
39118 PyObject * obj0 = 0 ;
39119 PyObject * obj1 = 0 ;
39120 char * kwnames[] = {
39121 (char *) "self",(char *) "brush", NULL
39122 };
39123
39124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
39125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39126 if (!SWIG_IsOK(res1)) {
39127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39128 }
39129 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39130 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
39131 if (!SWIG_IsOK(res2)) {
39132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
39133 }
39134 if (!argp2) {
39135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
39136 }
39137 arg2 = reinterpret_cast< wxBrush * >(argp2);
39138 {
39139 PyThreadState* __tstate = wxPyBeginAllowThreads();
39140 (arg1)->SetBrush((wxBrush const &)*arg2);
39141 wxPyEndAllowThreads(__tstate);
39142 if (PyErr_Occurred()) SWIG_fail;
39143 }
39144 resultobj = SWIG_Py_Void();
39145 return resultobj;
39146 fail:
39147 return NULL;
39148 }
39149
39150
39151 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39152 PyObject *resultobj = 0;
39153 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39154 wxBrush *arg2 = 0 ;
39155 void *argp1 = 0 ;
39156 int res1 = 0 ;
39157 void *argp2 = 0 ;
39158 int res2 = 0 ;
39159 PyObject * obj0 = 0 ;
39160 PyObject * obj1 = 0 ;
39161 char * kwnames[] = {
39162 (char *) "self",(char *) "brush", NULL
39163 };
39164
39165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39167 if (!SWIG_IsOK(res1)) {
39168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39169 }
39170 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39171 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
39172 if (!SWIG_IsOK(res2)) {
39173 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
39174 }
39175 if (!argp2) {
39176 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
39177 }
39178 arg2 = reinterpret_cast< wxBrush * >(argp2);
39179 {
39180 PyThreadState* __tstate = wxPyBeginAllowThreads();
39181 (arg1)->SetBackground((wxBrush const &)*arg2);
39182 wxPyEndAllowThreads(__tstate);
39183 if (PyErr_Occurred()) SWIG_fail;
39184 }
39185 resultobj = SWIG_Py_Void();
39186 return resultobj;
39187 fail:
39188 return NULL;
39189 }
39190
39191
39192 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39193 PyObject *resultobj = 0;
39194 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39195 int arg2 ;
39196 void *argp1 = 0 ;
39197 int res1 = 0 ;
39198 int val2 ;
39199 int ecode2 = 0 ;
39200 PyObject * obj0 = 0 ;
39201 PyObject * obj1 = 0 ;
39202 char * kwnames[] = {
39203 (char *) "self",(char *) "mode", NULL
39204 };
39205
39206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
39207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39208 if (!SWIG_IsOK(res1)) {
39209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39210 }
39211 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39212 ecode2 = SWIG_AsVal_int(obj1, &val2);
39213 if (!SWIG_IsOK(ecode2)) {
39214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
39215 }
39216 arg2 = static_cast< int >(val2);
39217 {
39218 PyThreadState* __tstate = wxPyBeginAllowThreads();
39219 (arg1)->SetBackgroundMode(arg2);
39220 wxPyEndAllowThreads(__tstate);
39221 if (PyErr_Occurred()) SWIG_fail;
39222 }
39223 resultobj = SWIG_Py_Void();
39224 return resultobj;
39225 fail:
39226 return NULL;
39227 }
39228
39229
39230 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39231 PyObject *resultobj = 0;
39232 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39233 wxPalette *arg2 = 0 ;
39234 void *argp1 = 0 ;
39235 int res1 = 0 ;
39236 void *argp2 = 0 ;
39237 int res2 = 0 ;
39238 PyObject * obj0 = 0 ;
39239 PyObject * obj1 = 0 ;
39240 char * kwnames[] = {
39241 (char *) "self",(char *) "palette", NULL
39242 };
39243
39244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
39245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39246 if (!SWIG_IsOK(res1)) {
39247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39248 }
39249 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39250 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
39251 if (!SWIG_IsOK(res2)) {
39252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39253 }
39254 if (!argp2) {
39255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39256 }
39257 arg2 = reinterpret_cast< wxPalette * >(argp2);
39258 {
39259 PyThreadState* __tstate = wxPyBeginAllowThreads();
39260 (arg1)->SetPalette((wxPalette const &)*arg2);
39261 wxPyEndAllowThreads(__tstate);
39262 if (PyErr_Occurred()) SWIG_fail;
39263 }
39264 resultobj = SWIG_Py_Void();
39265 return resultobj;
39266 fail:
39267 return NULL;
39268 }
39269
39270
39271 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39272 PyObject *resultobj = 0;
39273 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39274 wxColour *arg2 = 0 ;
39275 void *argp1 = 0 ;
39276 int res1 = 0 ;
39277 wxColour temp2 ;
39278 PyObject * obj0 = 0 ;
39279 PyObject * obj1 = 0 ;
39280 char * kwnames[] = {
39281 (char *) "self",(char *) "colour", NULL
39282 };
39283
39284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
39285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39286 if (!SWIG_IsOK(res1)) {
39287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39288 }
39289 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39290 {
39291 arg2 = &temp2;
39292 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39293 }
39294 {
39295 PyThreadState* __tstate = wxPyBeginAllowThreads();
39296 (arg1)->SetTextForeground((wxColour const &)*arg2);
39297 wxPyEndAllowThreads(__tstate);
39298 if (PyErr_Occurred()) SWIG_fail;
39299 }
39300 resultobj = SWIG_Py_Void();
39301 return resultobj;
39302 fail:
39303 return NULL;
39304 }
39305
39306
39307 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39308 PyObject *resultobj = 0;
39309 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39310 wxColour *arg2 = 0 ;
39311 void *argp1 = 0 ;
39312 int res1 = 0 ;
39313 wxColour temp2 ;
39314 PyObject * obj0 = 0 ;
39315 PyObject * obj1 = 0 ;
39316 char * kwnames[] = {
39317 (char *) "self",(char *) "colour", NULL
39318 };
39319
39320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39322 if (!SWIG_IsOK(res1)) {
39323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39324 }
39325 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39326 {
39327 arg2 = &temp2;
39328 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39329 }
39330 {
39331 PyThreadState* __tstate = wxPyBeginAllowThreads();
39332 (arg1)->SetTextBackground((wxColour const &)*arg2);
39333 wxPyEndAllowThreads(__tstate);
39334 if (PyErr_Occurred()) SWIG_fail;
39335 }
39336 resultobj = SWIG_Py_Void();
39337 return resultobj;
39338 fail:
39339 return NULL;
39340 }
39341
39342
39343 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39344 PyObject *resultobj = 0;
39345 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39346 int arg2 ;
39347 void *argp1 = 0 ;
39348 int res1 = 0 ;
39349 int val2 ;
39350 int ecode2 = 0 ;
39351 PyObject * obj0 = 0 ;
39352 PyObject * obj1 = 0 ;
39353 char * kwnames[] = {
39354 (char *) "self",(char *) "function", NULL
39355 };
39356
39357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
39358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39359 if (!SWIG_IsOK(res1)) {
39360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39361 }
39362 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39363 ecode2 = SWIG_AsVal_int(obj1, &val2);
39364 if (!SWIG_IsOK(ecode2)) {
39365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
39366 }
39367 arg2 = static_cast< int >(val2);
39368 {
39369 PyThreadState* __tstate = wxPyBeginAllowThreads();
39370 (arg1)->SetLogicalFunction(arg2);
39371 wxPyEndAllowThreads(__tstate);
39372 if (PyErr_Occurred()) SWIG_fail;
39373 }
39374 resultobj = SWIG_Py_Void();
39375 return resultobj;
39376 fail:
39377 return NULL;
39378 }
39379
39380
39381 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39382 PyObject *obj;
39383 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39384 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
39385 return SWIG_Py_Void();
39386 }
39387
39388 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39389 return SWIG_Python_InitShadowInstance(args);
39390 }
39391
39392 static PyMethodDef SwigMethods[] = {
39393 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
39394 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
39395 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
39396 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
39397 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
39398 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
39399 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39401 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
39402 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
39403 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
39404 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
39405 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
39406 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
39407 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39408 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39409 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39410 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
39411 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
39412 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39413 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39414 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
39415 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
39416 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
39417 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
39418 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
39419 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
39420 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39421 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39422 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
39423 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
39424 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
39425 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
39426 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
39427 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
39428 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
39429 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
39430 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
39431 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
39432 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
39433 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
39434 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
39435 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39436 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
39437 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39438 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39439 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39440 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
39441 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39442 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
39443 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
39444 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39445 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39446 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39447 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
39448 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
39449 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
39450 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39451 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
39452 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39453 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39454 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39455 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
39456 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
39457 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
39458 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
39459 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
39460 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
39461 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
39462 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39463 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
39464 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39465 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39466 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39467 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39468 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
39469 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
39470 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39471 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
39472 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
39473 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
39474 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
39475 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
39476 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
39477 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
39478 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
39479 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
39480 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39481 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
39482 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39483 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
39484 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39485 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39486 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39487 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39488 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39489 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39490 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39491 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39492 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39493 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39494 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39495 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
39496 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
39497 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
39498 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39500 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
39501 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
39502 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
39503 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
39504 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
39505 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
39506 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
39507 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
39508 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
39509 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
39510 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
39511 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
39512 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
39513 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
39514 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
39515 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39516 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
39517 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
39518 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39519 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39520 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39521 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39522 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39523 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
39524 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
39525 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
39526 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
39527 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
39528 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
39529 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
39530 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
39531 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
39532 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
39533 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
39534 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
39535 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39536 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
39537 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
39538 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39539 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39540 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39541 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39542 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39543 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
39544 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
39545 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
39546 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
39547 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
39548 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
39549 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
39550 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
39551 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
39552 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
39553 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39554 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39555 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39556 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39557 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
39558 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
39560 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
39561 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
39562 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
39563 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39565 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39567 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39568 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
39569 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
39570 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39571 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
39572 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
39573 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
39574 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
39575 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39576 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
39577 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
39578 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
39579 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
39580 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39581 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39582 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
39583 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39584 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39585 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39586 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
39587 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
39588 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
39589 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
39590 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39591 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39592 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
39593 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39594 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
39595 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
39596 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
39597 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
39598 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39599 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39600 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39601 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39602 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
39603 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
39604 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
39605 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39606 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39607 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
39608 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
39609 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
39610 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39611 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
39612 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39613 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
39614 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
39615 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
39616 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
39617 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
39618 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39619 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
39620 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39621 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
39622 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39623 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39624 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39625 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
39626 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39627 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
39628 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
39629 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39630 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
39631 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39632 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39633 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
39634 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
39635 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
39636 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
39637 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
39638 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
39639 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
39640 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
39641 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
39642 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
39643 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
39644 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
39645 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
39646 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
39647 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
39648 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
39649 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
39650 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
39651 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
39652 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
39653 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
39654 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
39655 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
39656 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
39657 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
39658 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
39659 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
39660 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
39661 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
39662 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39663 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39664 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39665 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39666 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39667 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39668 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39669 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39670 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39671 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
39672 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
39673 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
39674 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
39675 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
39676 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
39677 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
39678 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
39679 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
39680 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
39681 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
39682 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
39683 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39684 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
39685 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
39686 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
39687 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39688 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39689 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
39690 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
39691 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
39692 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39693 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39694 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
39695 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39696 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
39697 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
39698 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39699 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
39700 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
39701 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39702 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39703 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
39704 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
39705 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
39706 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
39707 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
39708 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
39709 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39710 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
39711 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
39712 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39713 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39714 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
39715 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39716 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39717 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39718 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39719 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39720 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39721 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39722 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39723 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39724 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39725 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39726 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39727 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39728 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39729 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39730 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39731 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39732 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39733 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39734 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39735 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39736 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39737 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39738 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39739 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39740 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39741 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39742 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39743 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39744 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39745 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39746 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39747 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39748 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39749 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39750 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39751 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39752 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39753 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39754 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
39755 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39756 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39757 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
39758 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39759 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39760 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39761 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39762 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39763 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39764 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39765 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39766 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39767 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39768 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39769 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39770 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39771 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39772 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39773 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39774 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39775 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39776 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39777 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39778 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39779 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39780 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
39781 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39782 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39783 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39784 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39785 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39786 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39787 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39788 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39789 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39790 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
39791 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39792 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39793 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39794 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39795 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39796 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39797 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
39798 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39799 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39800 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39801 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39802 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39803 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39804 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39805 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39806 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39807 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39808 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39809 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39810 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39811 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39812 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39813 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39814 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39815 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39816 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39817 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39818 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39819 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39820 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39821 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39822 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39823 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39824 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39825 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39826 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39827 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39828 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39829 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39830 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39831 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39832 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39833 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39834 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39835 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39836 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39837 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39838 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39839 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39840 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39841 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39842 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39843 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39844 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39845 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39846 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39847 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39848 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39849 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39850 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39851 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39852 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39853 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39854 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39855 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39856 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39857 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39858 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39859 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39860 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39861 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39862 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39863 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39864 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39865 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39866 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39867 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39868 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39869 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39870 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39871 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39872 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39873 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39874 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39875 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39876 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39877 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39878 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39879 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39880 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39881 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39882 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39883 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39884 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39885 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39886 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39887 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39888 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39889 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39890 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39891 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39892 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39893 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39894 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
39895 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
39896 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39897 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39898 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39899 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39900 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39901 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39902 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39903 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39904 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39905 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39906 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39907 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39908 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39909 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39910 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39911 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39912 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39913 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39914 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39915 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39916 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39917 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39918 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39919 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39920 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39921 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39922 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39923 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39924 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39925 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39926 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39927 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39928 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39929 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39930 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
39931 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39932 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
39933 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
39934 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39935 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39936 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39937 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39938 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39939 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39940 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
39941 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39942 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39943 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39944 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39945 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39946 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39947 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39948 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39949 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39950 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39951 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39952 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39953 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39954 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39955 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39956 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
39957 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39958 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39959 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39960 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39961 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39962 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
39963 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39964 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39965 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
39966 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39967 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39968 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39969 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39970 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39971 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
39972 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39973 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39974 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39975 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39976 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39977 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
39978 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39979 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39980 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
39981 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39982 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
39983 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39984 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39985 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39986 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39987 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39988 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39989 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39990 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
39991 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
39992 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39993 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39994 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39995 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39996 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39997 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39998 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39999 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
40000 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
40001 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
40002 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
40003 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
40004 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
40005 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
40006 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
40007 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
40008 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
40009 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
40010 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
40011 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
40012 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
40013 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
40014 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
40015 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
40016 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
40017 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
40018 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
40019 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
40020 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
40021 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
40022 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
40023 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
40024 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
40025 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
40026 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
40027 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
40028 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
40029 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
40030 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
40031 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
40032 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
40033 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
40034 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
40035 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
40036 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
40037 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
40038 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
40039 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
40040 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40041 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
40042 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
40043 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
40044 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
40045 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
40046 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
40047 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
40048 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40049 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
40050 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
40051 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
40052 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
40053 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
40054 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
40055 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
40056 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
40057 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
40058 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
40059 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
40060 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
40061 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
40062 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40063 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40064 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40065 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40066 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40067 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40068 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
40069 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
40070 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
40071 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
40072 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
40073 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
40074 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
40075 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
40076 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
40077 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
40078 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
40079 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
40080 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
40081 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40082 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40083 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40084 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40085 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40086 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
40087 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
40088 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
40089 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
40090 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
40091 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
40092 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
40093 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
40094 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40095 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
40096 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
40097 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
40098 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
40099 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
40100 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
40101 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
40102 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
40103 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
40104 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
40105 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
40106 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
40107 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40108 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
40109 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40110 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40111 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
40112 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40113 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40114 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
40115 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
40116 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
40117 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40118 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40119 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40120 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40121 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
40122 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
40123 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
40124 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
40125 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
40126 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
40127 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
40128 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
40129 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
40130 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
40131 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40132 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40133 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40134 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40135 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40136 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
40137 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
40138 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
40139 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
40140 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
40141 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
40142 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
40143 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
40144 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
40145 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
40146 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
40147 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
40148 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
40149 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
40150 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
40151 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
40152 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
40153 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
40154 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
40155 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
40156 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
40157 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40158 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40159 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40160 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40161 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
40162 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
40163 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40164 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
40165 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
40166 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
40167 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
40168 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
40169 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
40170 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
40171 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
40172 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40173 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
40174 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
40175 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40176 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40177 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
40178 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
40179 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
40180 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
40181 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
40182 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
40183 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40184 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
40185 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
40186 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
40187 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40188 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40189 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40190 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
40191 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40192 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
40193 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
40194 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
40195 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
40196 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
40197 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
40198 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
40199 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
40200 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
40201 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
40202 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
40203 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
40204 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
40205 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
40206 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
40207 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
40208 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
40209 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
40210 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
40211 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
40212 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
40213 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
40214 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40215 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
40216 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40217 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40218 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40219 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
40220 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40221 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
40222 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
40223 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
40224 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
40225 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
40226 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
40227 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
40228 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
40229 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
40230 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
40231 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
40232 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
40233 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
40234 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
40235 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
40236 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
40237 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
40238 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
40239 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
40240 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
40241 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
40242 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
40243 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
40244 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
40245 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
40246 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
40247 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
40248 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
40249 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
40250 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
40251 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
40252 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
40253 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
40254 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
40255 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
40256 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
40257 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
40258 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
40259 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
40260 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
40261 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
40262 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
40263 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40264 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
40265 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
40266 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
40267 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
40268 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
40269 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
40270 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40271 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
40272 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
40273 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
40274 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
40275 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
40276 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
40277 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
40278 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
40279 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
40280 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
40281 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
40282 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
40283 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40284 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40285 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
40286 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
40287 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40288 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40289 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40290 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
40291 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
40292 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40293 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
40294 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40295 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
40296 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40297 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
40298 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40299 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
40300 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40301 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
40302 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
40303 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
40304 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40305 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40306 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40307 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40308 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40309 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40310 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40311 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40312 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40313 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40314 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40315 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40316 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
40317 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40318 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40319 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40320 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40321 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40322 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40323 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40324 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
40325 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40326 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40327 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
40328 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40329 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40330 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
40331 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
40332 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40333 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40334 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40335 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40336 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
40337 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
40338 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
40339 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40340 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40341 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
40342 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
40343 { NULL, NULL, 0, NULL }
40344 };
40345
40346
40347 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
40348
40349 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
40350 return (void *)((wxClientDC *) ((wxPaintDC *) x));
40351 }
40352 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
40353 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
40354 }
40355 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
40356 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
40357 }
40358 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
40359 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
40360 }
40361 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
40362 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
40363 }
40364 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
40365 return (void *)((wxWindowDC *) ((wxClientDC *) x));
40366 }
40367 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
40368 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
40369 }
40370 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
40371 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40372 }
40373 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
40374 return (void *)((wxLocale *) ((wxPyLocale *) x));
40375 }
40376 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
40377 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
40378 }
40379 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
40380 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
40381 }
40382 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
40383 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40384 }
40385 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
40386 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
40387 }
40388 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
40389 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
40390 }
40391 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
40392 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
40393 }
40394 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
40395 return (void *)((wxGDIObject *) ((wxIcon *) x));
40396 }
40397 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
40398 return (void *)((wxGDIObject *) ((wxPalette *) x));
40399 }
40400 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
40401 return (void *)((wxGDIObject *) ((wxPen *) x));
40402 }
40403 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
40404 return (void *)((wxGDIObject *) ((wxFont *) x));
40405 }
40406 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
40407 return (void *)((wxGDIObject *) ((wxCursor *) x));
40408 }
40409 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
40410 return (void *)((wxGDIObject *) ((wxBitmap *) x));
40411 }
40412 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
40413 return (void *)((wxGDIObject *) ((wxRegion *) x));
40414 }
40415 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
40416 return (void *)((wxGDIObject *) ((wxBrush *) x));
40417 }
40418 static void *_p_wxGCDCTo_p_wxDC(void *x) {
40419 return (void *)((wxDC *) ((wxGCDC *) x));
40420 }
40421 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
40422 return (void *)((wxDC *) ((wxScreenDC *) x));
40423 }
40424 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
40425 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40426 }
40427 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
40428 return (void *)((wxDC *) ((wxMirrorDC *) x));
40429 }
40430 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
40431 return (void *)((wxDC *) ((wxWindowDC *) x));
40432 }
40433 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
40434 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
40435 }
40436 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
40437 return (void *)((wxDC *) ((wxMetaFileDC *) x));
40438 }
40439 static void *_p_wxClientDCTo_p_wxDC(void *x) {
40440 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
40441 }
40442 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
40443 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40444 }
40445 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
40446 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40447 }
40448 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
40449 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
40450 }
40451 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
40452 return (void *)((wxDC *) ((wxPostScriptDC *) x));
40453 }
40454 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
40455 return (void *)((wxDC *) ((wxPrinterDC *) x));
40456 }
40457 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
40458 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
40459 }
40460 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
40461 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
40462 }
40463 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
40464 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
40465 }
40466 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
40467 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
40468 }
40469 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40470 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40471 }
40472 static void *_p_wxPenTo_p_wxObject(void *x) {
40473 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
40474 }
40475 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
40476 return (void *)((wxObject *) ((wxRegionIterator *) x));
40477 }
40478 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40479 return (void *)((wxObject *) ((wxSizerItem *) x));
40480 }
40481 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40482 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40483 }
40484 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
40485 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
40486 }
40487 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
40488 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
40489 }
40490 static void *_p_wxIconTo_p_wxObject(void *x) {
40491 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
40492 }
40493 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
40494 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
40495 }
40496 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
40497 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
40498 }
40499 static void *_p_wxSizerTo_p_wxObject(void *x) {
40500 return (void *)((wxObject *) ((wxSizer *) x));
40501 }
40502 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40503 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40504 }
40505 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40506 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40507 }
40508 static void *_p_wxEventTo_p_wxObject(void *x) {
40509 return (void *)((wxObject *) ((wxEvent *) x));
40510 }
40511 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
40512 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
40513 }
40514 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
40515 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
40516 }
40517 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
40518 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
40519 }
40520 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
40521 return (void *)((wxObject *) ((wxPseudoDC *) x));
40522 }
40523 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
40524 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
40525 }
40526 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40527 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40528 }
40529 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40530 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40531 }
40532 static void *_p_wxDCTo_p_wxObject(void *x) {
40533 return (void *)((wxObject *) ((wxDC *) x));
40534 }
40535 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40536 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40537 }
40538 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40539 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40540 }
40541 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40542 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40543 }
40544 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40545 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40546 }
40547 static void *_p_wxControlTo_p_wxObject(void *x) {
40548 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40549 }
40550 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
40551 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
40552 }
40553 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40554 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40555 }
40556 static void *_p_wxClientDCTo_p_wxObject(void *x) {
40557 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
40558 }
40559 static void *_p_wxFSFileTo_p_wxObject(void *x) {
40560 return (void *)((wxObject *) ((wxFSFile *) x));
40561 }
40562 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
40563 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
40564 }
40565 static void *_p_wxRegionTo_p_wxObject(void *x) {
40566 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
40567 }
40568 static void *_p_wxPySizerTo_p_wxObject(void *x) {
40569 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40570 }
40571 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
40572 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
40573 }
40574 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
40575 return (void *)((wxObject *) ((wxGDIObject *) x));
40576 }
40577 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
40578 return (void *)((wxObject *) ((wxGraphicsObject *) x));
40579 }
40580 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
40581 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
40582 }
40583 static void *_p_wxEffectsTo_p_wxObject(void *x) {
40584 return (void *)((wxObject *) ((wxEffects *) x));
40585 }
40586 static void *_p_wxPyEventTo_p_wxObject(void *x) {
40587 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40588 }
40589 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40590 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40591 }
40592 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
40593 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
40594 }
40595 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
40596 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
40597 }
40598 static void *_p_wxShowEventTo_p_wxObject(void *x) {
40599 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40600 }
40601 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40602 return (void *)((wxObject *) ((wxMenuItem *) x));
40603 }
40604 static void *_p_wxDateEventTo_p_wxObject(void *x) {
40605 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40606 }
40607 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40608 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40609 }
40610 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40611 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40612 }
40613 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40614 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40615 }
40616 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40617 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40618 }
40619 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40620 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40621 }
40622 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40623 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40624 }
40625 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40626 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40627 }
40628 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40629 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40630 }
40631 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40632 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40633 }
40634 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40635 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40636 }
40637 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40638 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40639 }
40640 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40641 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40642 }
40643 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40644 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40645 }
40646 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40647 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40648 }
40649 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40650 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40651 }
40652 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40653 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40654 }
40655 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40656 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40657 }
40658 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40659 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40660 }
40661 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40662 return (void *)((wxObject *) ((wxImageHandler *) x));
40663 }
40664 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40665 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40666 }
40667 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40668 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40669 }
40670 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
40671 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
40672 }
40673 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40674 return (void *)((wxObject *) ((wxEvtHandler *) x));
40675 }
40676 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40677 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40678 }
40679 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
40680 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40681 }
40682 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
40683 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40684 }
40685 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
40686 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
40687 }
40688 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
40689 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
40690 }
40691 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
40692 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
40693 }
40694 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40695 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40696 }
40697 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40698 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40699 }
40700 static void *_p_wxImageTo_p_wxObject(void *x) {
40701 return (void *)((wxObject *) ((wxImage *) x));
40702 }
40703 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40704 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40705 }
40706 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
40707 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
40708 }
40709 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
40710 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
40711 }
40712 static void *_p_wxPaletteTo_p_wxObject(void *x) {
40713 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
40714 }
40715 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
40716 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40717 }
40718 static void *_p_wxImageListTo_p_wxObject(void *x) {
40719 return (void *)((wxObject *) ((wxImageList *) x));
40720 }
40721 static void *_p_wxGCDCTo_p_wxObject(void *x) {
40722 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40723 }
40724 static void *_p_wxCursorTo_p_wxObject(void *x) {
40725 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40726 }
40727 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40728 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40729 }
40730 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40731 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40732 }
40733 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40734 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40735 }
40736 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40737 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40738 }
40739 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40740 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40741 }
40742 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40743 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40744 }
40745 static void *_p_wxWindowTo_p_wxObject(void *x) {
40746 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40747 }
40748 static void *_p_wxMenuTo_p_wxObject(void *x) {
40749 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40750 }
40751 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40752 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40753 }
40754 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40755 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40756 }
40757 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40758 return (void *)((wxObject *) ((wxFileSystem *) x));
40759 }
40760 static void *_p_wxBitmapTo_p_wxObject(void *x) {
40761 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40762 }
40763 static void *_p_wxMaskTo_p_wxObject(void *x) {
40764 return (void *)((wxObject *) ((wxMask *) x));
40765 }
40766 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40767 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40768 }
40769 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40770 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40771 }
40772 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40773 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40774 }
40775 static void *_p_wxPyAppTo_p_wxObject(void *x) {
40776 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40777 }
40778 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40779 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40780 }
40781 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40782 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40783 }
40784 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40785 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40786 }
40787 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40788 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40789 }
40790 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40791 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40792 }
40793 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40794 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40795 }
40796 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40797 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40798 }
40799 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40800 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40801 }
40802 static void *_p_wxFontTo_p_wxObject(void *x) {
40803 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40804 }
40805 static void *_p_wxBrushTo_p_wxObject(void *x) {
40806 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40807 }
40808 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40809 return (void *)((wxObject *) ((wxMetaFile *) x));
40810 }
40811 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40812 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40813 }
40814 static void *_p_wxColourTo_p_wxObject(void *x) {
40815 return (void *)((wxObject *) ((wxColour *) x));
40816 }
40817 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40818 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40819 }
40820 static void *_p_wxValidatorTo_p_wxObject(void *x) {
40821 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40822 }
40823 static void *_p_wxControlTo_p_wxWindow(void *x) {
40824 return (void *)((wxWindow *) ((wxControl *) x));
40825 }
40826 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40827 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40828 }
40829 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40830 return (void *)((wxWindow *) ((wxMenuBar *) x));
40831 }
40832 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40833 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40834 }
40835 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40836 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40837 }
40838 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
40839 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
40840 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
40841 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};
40842 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40843 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40844 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40845 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
40846 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
40847 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40848 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
40849 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
40850 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40851 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40852 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40853 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40854 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
40855 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
40856 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
40857 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40858 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40859 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40860 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
40861 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40862 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
40863 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
40864 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40865 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
40866 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40867 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40868 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40869 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40870 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40871 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40872 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
40873 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
40874 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
40875 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
40876 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
40877 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
40878 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40879 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40880 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
40881 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
40882 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40883 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
40884 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
40885 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40886 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40887 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40888 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40889 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40890 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40891 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40892 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40893 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40894 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40895 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40896 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40897 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40898 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
40899 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40900 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
40901 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40902 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
40903 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
40904 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
40905 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40906 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40907 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40908 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40909 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40910 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40911 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40912 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40913 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40914 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40915 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40916 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
40917 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
40918 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40919 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40920 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40921 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40922 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40923 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40924 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40925 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40926 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40927 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40928 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40929 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40930 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40931 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40932 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40933 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40934 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40935 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40936 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40937 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40938 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40939 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40940 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
40941 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
40942 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
40943 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40944 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40945 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40946 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40947 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40948 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
40949 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
40950 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
40951 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
40952 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
40953 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40954 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40955 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
40956 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
40957 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40958 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40959 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40960 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40961 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40962 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40963 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40964 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40965 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40966 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40967 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40968 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40969 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40970 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40971 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40972 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40973 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40974 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40975 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40976 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40977 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40978 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
40979 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
40980 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40981 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40982 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40983 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40984 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
40985 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
40986 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
40987 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
40988 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40989 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40990 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
40991 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
40992 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
40993 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
40994 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
40995 static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
40996 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40997 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40998 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40999 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
41000 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
41001 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
41002 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
41003 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
41004 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
41005 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
41006 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
41007
41008 static swig_type_info *swig_type_initial[] = {
41009 &_swigt__p_buffer,
41010 &_swigt__p_char,
41011 &_swigt__p_double,
41012 &_swigt__p_form_ops_t,
41013 &_swigt__p_int,
41014 &_swigt__p_unsigned_char,
41015 &_swigt__p_unsigned_int,
41016 &_swigt__p_unsigned_long,
41017 &_swigt__p_void,
41018 &_swigt__p_wxANIHandler,
41019 &_swigt__p_wxAcceleratorTable,
41020 &_swigt__p_wxActivateEvent,
41021 &_swigt__p_wxAlphaPixelData,
41022 &_swigt__p_wxAlphaPixelData_Accessor,
41023 &_swigt__p_wxAutoBufferedPaintDC,
41024 &_swigt__p_wxBMPHandler,
41025 &_swigt__p_wxBitmap,
41026 &_swigt__p_wxBoxSizer,
41027 &_swigt__p_wxBrush,
41028 &_swigt__p_wxBrushList,
41029 &_swigt__p_wxBufferedDC,
41030 &_swigt__p_wxBufferedPaintDC,
41031 &_swigt__p_wxCURHandler,
41032 &_swigt__p_wxChar,
41033 &_swigt__p_wxChildFocusEvent,
41034 &_swigt__p_wxClientDC,
41035 &_swigt__p_wxClipboardTextEvent,
41036 &_swigt__p_wxCloseEvent,
41037 &_swigt__p_wxColour,
41038 &_swigt__p_wxColourDatabase,
41039 &_swigt__p_wxCommandEvent,
41040 &_swigt__p_wxContextMenuEvent,
41041 &_swigt__p_wxControl,
41042 &_swigt__p_wxControlWithItems,
41043 &_swigt__p_wxCursor,
41044 &_swigt__p_wxDC,
41045 &_swigt__p_wxDCBrushChanger,
41046 &_swigt__p_wxDCClipper,
41047 &_swigt__p_wxDCOverlay,
41048 &_swigt__p_wxDCPenChanger,
41049 &_swigt__p_wxDCTextColourChanger,
41050 &_swigt__p_wxDash,
41051 &_swigt__p_wxDateEvent,
41052 &_swigt__p_wxDisplayChangedEvent,
41053 &_swigt__p_wxDropFilesEvent,
41054 &_swigt__p_wxDuplexMode,
41055 &_swigt__p_wxEffects,
41056 &_swigt__p_wxEncodingConverter,
41057 &_swigt__p_wxEraseEvent,
41058 &_swigt__p_wxEvent,
41059 &_swigt__p_wxEvtHandler,
41060 &_swigt__p_wxFSFile,
41061 &_swigt__p_wxFileSystem,
41062 &_swigt__p_wxFlexGridSizer,
41063 &_swigt__p_wxFocusEvent,
41064 &_swigt__p_wxFont,
41065 &_swigt__p_wxFontList,
41066 &_swigt__p_wxFontMapper,
41067 &_swigt__p_wxGBSizerItem,
41068 &_swigt__p_wxGCDC,
41069 &_swigt__p_wxGDIObjListBase,
41070 &_swigt__p_wxGDIObject,
41071 &_swigt__p_wxGIFHandler,
41072 &_swigt__p_wxGraphicsBrush,
41073 &_swigt__p_wxGraphicsContext,
41074 &_swigt__p_wxGraphicsFont,
41075 &_swigt__p_wxGraphicsMatrix,
41076 &_swigt__p_wxGraphicsObject,
41077 &_swigt__p_wxGraphicsPath,
41078 &_swigt__p_wxGraphicsPen,
41079 &_swigt__p_wxGraphicsRenderer,
41080 &_swigt__p_wxGridBagSizer,
41081 &_swigt__p_wxGridSizer,
41082 &_swigt__p_wxHeaderButtonParams,
41083 &_swigt__p_wxICOHandler,
41084 &_swigt__p_wxIcon,
41085 &_swigt__p_wxIconBundle,
41086 &_swigt__p_wxIconLocation,
41087 &_swigt__p_wxIconizeEvent,
41088 &_swigt__p_wxIdleEvent,
41089 &_swigt__p_wxImage,
41090 &_swigt__p_wxImageHandler,
41091 &_swigt__p_wxImageList,
41092 &_swigt__p_wxIndividualLayoutConstraint,
41093 &_swigt__p_wxInitDialogEvent,
41094 &_swigt__p_wxJPEGHandler,
41095 &_swigt__p_wxKeyEvent,
41096 &_swigt__p_wxLanguageInfo,
41097 &_swigt__p_wxLayoutConstraints,
41098 &_swigt__p_wxLocale,
41099 &_swigt__p_wxMask,
41100 &_swigt__p_wxMaximizeEvent,
41101 &_swigt__p_wxMemoryDC,
41102 &_swigt__p_wxMenu,
41103 &_swigt__p_wxMenuBar,
41104 &_swigt__p_wxMenuEvent,
41105 &_swigt__p_wxMenuItem,
41106 &_swigt__p_wxMetaFile,
41107 &_swigt__p_wxMetaFileDC,
41108 &_swigt__p_wxMirrorDC,
41109 &_swigt__p_wxMouseCaptureChangedEvent,
41110 &_swigt__p_wxMouseCaptureLostEvent,
41111 &_swigt__p_wxMouseEvent,
41112 &_swigt__p_wxMoveEvent,
41113 &_swigt__p_wxNativeEncodingInfo,
41114 &_swigt__p_wxNativeFontInfo,
41115 &_swigt__p_wxNativePixelData,
41116 &_swigt__p_wxNativePixelData_Accessor,
41117 &_swigt__p_wxNavigationKeyEvent,
41118 &_swigt__p_wxNcPaintEvent,
41119 &_swigt__p_wxNotifyEvent,
41120 &_swigt__p_wxObject,
41121 &_swigt__p_wxOverlay,
41122 &_swigt__p_wxPCXHandler,
41123 &_swigt__p_wxPNGHandler,
41124 &_swigt__p_wxPNMHandler,
41125 &_swigt__p_wxPaintDC,
41126 &_swigt__p_wxPaintEvent,
41127 &_swigt__p_wxPalette,
41128 &_swigt__p_wxPaletteChangedEvent,
41129 &_swigt__p_wxPaperSize,
41130 &_swigt__p_wxPen,
41131 &_swigt__p_wxPenList,
41132 &_swigt__p_wxPixelDataBase,
41133 &_swigt__p_wxPoint,
41134 &_swigt__p_wxPoint2D,
41135 &_swigt__p_wxPostScriptDC,
41136 &_swigt__p_wxPrintData,
41137 &_swigt__p_wxPrinterDC,
41138 &_swigt__p_wxPseudoDC,
41139 &_swigt__p_wxPyApp,
41140 &_swigt__p_wxPyCommandEvent,
41141 &_swigt__p_wxPyEvent,
41142 &_swigt__p_wxPyFontEnumerator,
41143 &_swigt__p_wxPyImageHandler,
41144 &_swigt__p_wxPyLocale,
41145 &_swigt__p_wxPySizer,
41146 &_swigt__p_wxPyValidator,
41147 &_swigt__p_wxQueryNewPaletteEvent,
41148 &_swigt__p_wxRect,
41149 &_swigt__p_wxRect2D,
41150 &_swigt__p_wxRegion,
41151 &_swigt__p_wxRegionIterator,
41152 &_swigt__p_wxRendererNative,
41153 &_swigt__p_wxRendererVersion,
41154 &_swigt__p_wxScreenDC,
41155 &_swigt__p_wxScrollEvent,
41156 &_swigt__p_wxScrollWinEvent,
41157 &_swigt__p_wxSetCursorEvent,
41158 &_swigt__p_wxShowEvent,
41159 &_swigt__p_wxSize,
41160 &_swigt__p_wxSizeEvent,
41161 &_swigt__p_wxSizer,
41162 &_swigt__p_wxSizerItem,
41163 &_swigt__p_wxSplitterRenderParams,
41164 &_swigt__p_wxStaticBoxSizer,
41165 &_swigt__p_wxStdDialogButtonSizer,
41166 &_swigt__p_wxStockGDI,
41167 &_swigt__p_wxString,
41168 &_swigt__p_wxSysColourChangedEvent,
41169 &_swigt__p_wxTGAHandler,
41170 &_swigt__p_wxTIFFHandler,
41171 &_swigt__p_wxUpdateUIEvent,
41172 &_swigt__p_wxValidator,
41173 &_swigt__p_wxWindow,
41174 &_swigt__p_wxWindowCreateEvent,
41175 &_swigt__p_wxWindowDC,
41176 &_swigt__p_wxWindowDestroyEvent,
41177 &_swigt__p_wxXPMHandler,
41178 };
41179
41180 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
41181 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
41182 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
41183 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
41184 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
41185 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
41186 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
41187 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
41188 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
41189 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
41190 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
41191 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41192 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
41193 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
41194 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
41195 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}};
41196 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41197 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
41198 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}};
41199 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
41200 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
41201 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
41202 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
41203 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
41204 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
41205 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
41206 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
41207 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
41208 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
41209 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
41210 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
41211 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
41212 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
41213 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
41214 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
41215 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
41216 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}};
41217 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}};
41218 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
41219 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
41220 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
41221 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
41222 static swig_cast_info _swigc__p_wxGraphicsObject[] = { {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsObject, 0, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxGraphicsObject, 0, 0},{0, 0, 0, 0}};
41223 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
41224 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
41225 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
41226 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
41227 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
41228 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
41229 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
41230 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
41231 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
41232 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
41233 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}};
41234 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
41235 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0}, {&_swigt__p_wxMemoryDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0},{0, 0, 0, 0}};
41236 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
41237 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
41238 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
41239 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
41240 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
41241 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
41242 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
41243 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
41244 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
41245 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
41246 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
41247 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
41248 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41249 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41250 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
41251 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
41252 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
41253 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
41254 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
41255 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41256 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41257 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
41258 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
41259 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41260 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41261 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41262 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41263 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41264 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41265 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
41266 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
41267 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
41268 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
41269 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
41270 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
41271 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
41272 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
41273 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
41274 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
41275 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
41276 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
41277 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41278 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41279 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41280 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
41281 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
41282 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
41283 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
41284 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
41285 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
41286 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41287 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41288 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
41289 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
41290 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
41291 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
41292 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
41293 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
41294 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
41295 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
41296 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
41297 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
41298 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
41299 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
41300 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
41301 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
41302 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41303 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41304 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
41305 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
41306 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41307 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41308 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
41309 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
41310 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
41311 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
41312 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41313 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41314 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
41315 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41316 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41317 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
41318 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
41319 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
41320 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
41321 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
41322 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41323 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
41324 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
41325 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
41326 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
41327 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}};
41328 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
41329 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
41330 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
41331 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
41332 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
41333 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
41334 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
41335 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
41336 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
41337 static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
41338 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
41339 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
41340 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
41341 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
41342 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
41343 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
41344 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
41345 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
41346 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
41347 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}};
41348 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
41349
41350 static swig_cast_info *swig_cast_initial[] = {
41351 _swigc__p_buffer,
41352 _swigc__p_char,
41353 _swigc__p_double,
41354 _swigc__p_form_ops_t,
41355 _swigc__p_int,
41356 _swigc__p_unsigned_char,
41357 _swigc__p_unsigned_int,
41358 _swigc__p_unsigned_long,
41359 _swigc__p_void,
41360 _swigc__p_wxANIHandler,
41361 _swigc__p_wxAcceleratorTable,
41362 _swigc__p_wxActivateEvent,
41363 _swigc__p_wxAlphaPixelData,
41364 _swigc__p_wxAlphaPixelData_Accessor,
41365 _swigc__p_wxAutoBufferedPaintDC,
41366 _swigc__p_wxBMPHandler,
41367 _swigc__p_wxBitmap,
41368 _swigc__p_wxBoxSizer,
41369 _swigc__p_wxBrush,
41370 _swigc__p_wxBrushList,
41371 _swigc__p_wxBufferedDC,
41372 _swigc__p_wxBufferedPaintDC,
41373 _swigc__p_wxCURHandler,
41374 _swigc__p_wxChar,
41375 _swigc__p_wxChildFocusEvent,
41376 _swigc__p_wxClientDC,
41377 _swigc__p_wxClipboardTextEvent,
41378 _swigc__p_wxCloseEvent,
41379 _swigc__p_wxColour,
41380 _swigc__p_wxColourDatabase,
41381 _swigc__p_wxCommandEvent,
41382 _swigc__p_wxContextMenuEvent,
41383 _swigc__p_wxControl,
41384 _swigc__p_wxControlWithItems,
41385 _swigc__p_wxCursor,
41386 _swigc__p_wxDC,
41387 _swigc__p_wxDCBrushChanger,
41388 _swigc__p_wxDCClipper,
41389 _swigc__p_wxDCOverlay,
41390 _swigc__p_wxDCPenChanger,
41391 _swigc__p_wxDCTextColourChanger,
41392 _swigc__p_wxDash,
41393 _swigc__p_wxDateEvent,
41394 _swigc__p_wxDisplayChangedEvent,
41395 _swigc__p_wxDropFilesEvent,
41396 _swigc__p_wxDuplexMode,
41397 _swigc__p_wxEffects,
41398 _swigc__p_wxEncodingConverter,
41399 _swigc__p_wxEraseEvent,
41400 _swigc__p_wxEvent,
41401 _swigc__p_wxEvtHandler,
41402 _swigc__p_wxFSFile,
41403 _swigc__p_wxFileSystem,
41404 _swigc__p_wxFlexGridSizer,
41405 _swigc__p_wxFocusEvent,
41406 _swigc__p_wxFont,
41407 _swigc__p_wxFontList,
41408 _swigc__p_wxFontMapper,
41409 _swigc__p_wxGBSizerItem,
41410 _swigc__p_wxGCDC,
41411 _swigc__p_wxGDIObjListBase,
41412 _swigc__p_wxGDIObject,
41413 _swigc__p_wxGIFHandler,
41414 _swigc__p_wxGraphicsBrush,
41415 _swigc__p_wxGraphicsContext,
41416 _swigc__p_wxGraphicsFont,
41417 _swigc__p_wxGraphicsMatrix,
41418 _swigc__p_wxGraphicsObject,
41419 _swigc__p_wxGraphicsPath,
41420 _swigc__p_wxGraphicsPen,
41421 _swigc__p_wxGraphicsRenderer,
41422 _swigc__p_wxGridBagSizer,
41423 _swigc__p_wxGridSizer,
41424 _swigc__p_wxHeaderButtonParams,
41425 _swigc__p_wxICOHandler,
41426 _swigc__p_wxIcon,
41427 _swigc__p_wxIconBundle,
41428 _swigc__p_wxIconLocation,
41429 _swigc__p_wxIconizeEvent,
41430 _swigc__p_wxIdleEvent,
41431 _swigc__p_wxImage,
41432 _swigc__p_wxImageHandler,
41433 _swigc__p_wxImageList,
41434 _swigc__p_wxIndividualLayoutConstraint,
41435 _swigc__p_wxInitDialogEvent,
41436 _swigc__p_wxJPEGHandler,
41437 _swigc__p_wxKeyEvent,
41438 _swigc__p_wxLanguageInfo,
41439 _swigc__p_wxLayoutConstraints,
41440 _swigc__p_wxLocale,
41441 _swigc__p_wxMask,
41442 _swigc__p_wxMaximizeEvent,
41443 _swigc__p_wxMemoryDC,
41444 _swigc__p_wxMenu,
41445 _swigc__p_wxMenuBar,
41446 _swigc__p_wxMenuEvent,
41447 _swigc__p_wxMenuItem,
41448 _swigc__p_wxMetaFile,
41449 _swigc__p_wxMetaFileDC,
41450 _swigc__p_wxMirrorDC,
41451 _swigc__p_wxMouseCaptureChangedEvent,
41452 _swigc__p_wxMouseCaptureLostEvent,
41453 _swigc__p_wxMouseEvent,
41454 _swigc__p_wxMoveEvent,
41455 _swigc__p_wxNativeEncodingInfo,
41456 _swigc__p_wxNativeFontInfo,
41457 _swigc__p_wxNativePixelData,
41458 _swigc__p_wxNativePixelData_Accessor,
41459 _swigc__p_wxNavigationKeyEvent,
41460 _swigc__p_wxNcPaintEvent,
41461 _swigc__p_wxNotifyEvent,
41462 _swigc__p_wxObject,
41463 _swigc__p_wxOverlay,
41464 _swigc__p_wxPCXHandler,
41465 _swigc__p_wxPNGHandler,
41466 _swigc__p_wxPNMHandler,
41467 _swigc__p_wxPaintDC,
41468 _swigc__p_wxPaintEvent,
41469 _swigc__p_wxPalette,
41470 _swigc__p_wxPaletteChangedEvent,
41471 _swigc__p_wxPaperSize,
41472 _swigc__p_wxPen,
41473 _swigc__p_wxPenList,
41474 _swigc__p_wxPixelDataBase,
41475 _swigc__p_wxPoint,
41476 _swigc__p_wxPoint2D,
41477 _swigc__p_wxPostScriptDC,
41478 _swigc__p_wxPrintData,
41479 _swigc__p_wxPrinterDC,
41480 _swigc__p_wxPseudoDC,
41481 _swigc__p_wxPyApp,
41482 _swigc__p_wxPyCommandEvent,
41483 _swigc__p_wxPyEvent,
41484 _swigc__p_wxPyFontEnumerator,
41485 _swigc__p_wxPyImageHandler,
41486 _swigc__p_wxPyLocale,
41487 _swigc__p_wxPySizer,
41488 _swigc__p_wxPyValidator,
41489 _swigc__p_wxQueryNewPaletteEvent,
41490 _swigc__p_wxRect,
41491 _swigc__p_wxRect2D,
41492 _swigc__p_wxRegion,
41493 _swigc__p_wxRegionIterator,
41494 _swigc__p_wxRendererNative,
41495 _swigc__p_wxRendererVersion,
41496 _swigc__p_wxScreenDC,
41497 _swigc__p_wxScrollEvent,
41498 _swigc__p_wxScrollWinEvent,
41499 _swigc__p_wxSetCursorEvent,
41500 _swigc__p_wxShowEvent,
41501 _swigc__p_wxSize,
41502 _swigc__p_wxSizeEvent,
41503 _swigc__p_wxSizer,
41504 _swigc__p_wxSizerItem,
41505 _swigc__p_wxSplitterRenderParams,
41506 _swigc__p_wxStaticBoxSizer,
41507 _swigc__p_wxStdDialogButtonSizer,
41508 _swigc__p_wxStockGDI,
41509 _swigc__p_wxString,
41510 _swigc__p_wxSysColourChangedEvent,
41511 _swigc__p_wxTGAHandler,
41512 _swigc__p_wxTIFFHandler,
41513 _swigc__p_wxUpdateUIEvent,
41514 _swigc__p_wxValidator,
41515 _swigc__p_wxWindow,
41516 _swigc__p_wxWindowCreateEvent,
41517 _swigc__p_wxWindowDC,
41518 _swigc__p_wxWindowDestroyEvent,
41519 _swigc__p_wxXPMHandler,
41520 };
41521
41522
41523 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
41524
41525 static swig_const_info swig_const_table[] = {
41526 {0, 0, 0, 0.0, 0, 0}};
41527
41528 #ifdef __cplusplus
41529 }
41530 #endif
41531 /* -----------------------------------------------------------------------------
41532 * Type initialization:
41533 * This problem is tough by the requirement that no dynamic
41534 * memory is used. Also, since swig_type_info structures store pointers to
41535 * swig_cast_info structures and swig_cast_info structures store pointers back
41536 * to swig_type_info structures, we need some lookup code at initialization.
41537 * The idea is that swig generates all the structures that are needed.
41538 * The runtime then collects these partially filled structures.
41539 * The SWIG_InitializeModule function takes these initial arrays out of
41540 * swig_module, and does all the lookup, filling in the swig_module.types
41541 * array with the correct data and linking the correct swig_cast_info
41542 * structures together.
41543 *
41544 * The generated swig_type_info structures are assigned staticly to an initial
41545 * array. We just loop though that array, and handle each type individually.
41546 * First we lookup if this type has been already loaded, and if so, use the
41547 * loaded structure instead of the generated one. Then we have to fill in the
41548 * cast linked list. The cast data is initially stored in something like a
41549 * two-dimensional array. Each row corresponds to a type (there are the same
41550 * number of rows as there are in the swig_type_initial array). Each entry in
41551 * a column is one of the swig_cast_info structures for that type.
41552 * The cast_initial array is actually an array of arrays, because each row has
41553 * a variable number of columns. So to actually build the cast linked list,
41554 * we find the array of casts associated with the type, and loop through it
41555 * adding the casts to the list. The one last trick we need to do is making
41556 * sure the type pointer in the swig_cast_info struct is correct.
41557 *
41558 * First off, we lookup the cast->type name to see if it is already loaded.
41559 * There are three cases to handle:
41560 * 1) If the cast->type has already been loaded AND the type we are adding
41561 * casting info to has not been loaded (it is in this module), THEN we
41562 * replace the cast->type pointer with the type pointer that has already
41563 * been loaded.
41564 * 2) If BOTH types (the one we are adding casting info to, and the
41565 * cast->type) are loaded, THEN the cast info has already been loaded by
41566 * the previous module so we just ignore it.
41567 * 3) Finally, if cast->type has not already been loaded, then we add that
41568 * swig_cast_info to the linked list (because the cast->type) pointer will
41569 * be correct.
41570 * ----------------------------------------------------------------------------- */
41571
41572 #ifdef __cplusplus
41573 extern "C" {
41574 #if 0
41575 } /* c-mode */
41576 #endif
41577 #endif
41578
41579 #if 0
41580 #define SWIGRUNTIME_DEBUG
41581 #endif
41582
41583 SWIGRUNTIME void
41584 SWIG_InitializeModule(void *clientdata) {
41585 size_t i;
41586 swig_module_info *module_head;
41587 static int init_run = 0;
41588
41589 clientdata = clientdata;
41590
41591 if (init_run) return;
41592 init_run = 1;
41593
41594 /* Initialize the swig_module */
41595 swig_module.type_initial = swig_type_initial;
41596 swig_module.cast_initial = swig_cast_initial;
41597
41598 /* Try and load any already created modules */
41599 module_head = SWIG_GetModule(clientdata);
41600 if (module_head) {
41601 swig_module.next = module_head->next;
41602 module_head->next = &swig_module;
41603 } else {
41604 /* This is the first module loaded */
41605 swig_module.next = &swig_module;
41606 SWIG_SetModule(clientdata, &swig_module);
41607 }
41608
41609 /* Now work on filling in swig_module.types */
41610 #ifdef SWIGRUNTIME_DEBUG
41611 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41612 #endif
41613 for (i = 0; i < swig_module.size; ++i) {
41614 swig_type_info *type = 0;
41615 swig_type_info *ret;
41616 swig_cast_info *cast;
41617
41618 #ifdef SWIGRUNTIME_DEBUG
41619 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41620 #endif
41621
41622 /* if there is another module already loaded */
41623 if (swig_module.next != &swig_module) {
41624 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
41625 }
41626 if (type) {
41627 /* Overwrite clientdata field */
41628 #ifdef SWIGRUNTIME_DEBUG
41629 printf("SWIG_InitializeModule: found type %s\n", type->name);
41630 #endif
41631 if (swig_module.type_initial[i]->clientdata) {
41632 type->clientdata = swig_module.type_initial[i]->clientdata;
41633 #ifdef SWIGRUNTIME_DEBUG
41634 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41635 #endif
41636 }
41637 } else {
41638 type = swig_module.type_initial[i];
41639 }
41640
41641 /* Insert casting types */
41642 cast = swig_module.cast_initial[i];
41643 while (cast->type) {
41644 /* Don't need to add information already in the list */
41645 ret = 0;
41646 #ifdef SWIGRUNTIME_DEBUG
41647 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41648 #endif
41649 if (swig_module.next != &swig_module) {
41650 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41651 #ifdef SWIGRUNTIME_DEBUG
41652 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41653 #endif
41654 }
41655 if (ret) {
41656 if (type == swig_module.type_initial[i]) {
41657 #ifdef SWIGRUNTIME_DEBUG
41658 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41659 #endif
41660 cast->type = ret;
41661 ret = 0;
41662 } else {
41663 /* Check for casting already in the list */
41664 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41665 #ifdef SWIGRUNTIME_DEBUG
41666 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41667 #endif
41668 if (!ocast) ret = 0;
41669 }
41670 }
41671
41672 if (!ret) {
41673 #ifdef SWIGRUNTIME_DEBUG
41674 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41675 #endif
41676 if (type->cast) {
41677 type->cast->prev = cast;
41678 cast->next = type->cast;
41679 }
41680 type->cast = cast;
41681 }
41682 cast++;
41683 }
41684 /* Set entry in modules->types array equal to the type */
41685 swig_module.types[i] = type;
41686 }
41687 swig_module.types[i] = 0;
41688
41689 #ifdef SWIGRUNTIME_DEBUG
41690 printf("**** SWIG_InitializeModule: Cast List ******\n");
41691 for (i = 0; i < swig_module.size; ++i) {
41692 int j = 0;
41693 swig_cast_info *cast = swig_module.cast_initial[i];
41694 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41695 while (cast->type) {
41696 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41697 cast++;
41698 ++j;
41699 }
41700 printf("---- Total casts: %d\n",j);
41701 }
41702 printf("**** SWIG_InitializeModule: Cast List ******\n");
41703 #endif
41704 }
41705
41706 /* This function will propagate the clientdata field of type to
41707 * any new swig_type_info structures that have been added into the list
41708 * of equivalent types. It is like calling
41709 * SWIG_TypeClientData(type, clientdata) a second time.
41710 */
41711 SWIGRUNTIME void
41712 SWIG_PropagateClientData(void) {
41713 size_t i;
41714 swig_cast_info *equiv;
41715 static int init_run = 0;
41716
41717 if (init_run) return;
41718 init_run = 1;
41719
41720 for (i = 0; i < swig_module.size; i++) {
41721 if (swig_module.types[i]->clientdata) {
41722 equiv = swig_module.types[i]->cast;
41723 while (equiv) {
41724 if (!equiv->converter) {
41725 if (equiv->type && !equiv->type->clientdata)
41726 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41727 }
41728 equiv = equiv->next;
41729 }
41730 }
41731 }
41732 }
41733
41734 #ifdef __cplusplus
41735 #if 0
41736 {
41737 /* c-mode */
41738 #endif
41739 }
41740 #endif
41741
41742
41743
41744 #ifdef __cplusplus
41745 extern "C" {
41746 #endif
41747
41748 /* Python-specific SWIG API */
41749 #define SWIG_newvarlink() SWIG_Python_newvarlink()
41750 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41751 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41752
41753 /* -----------------------------------------------------------------------------
41754 * global variable support code.
41755 * ----------------------------------------------------------------------------- */
41756
41757 typedef struct swig_globalvar {
41758 char *name; /* Name of global variable */
41759 PyObject *(*get_attr)(void); /* Return the current value */
41760 int (*set_attr)(PyObject *); /* Set the value */
41761 struct swig_globalvar *next;
41762 } swig_globalvar;
41763
41764 typedef struct swig_varlinkobject {
41765 PyObject_HEAD
41766 swig_globalvar *vars;
41767 } swig_varlinkobject;
41768
41769 SWIGINTERN PyObject *
41770 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41771 return PyString_FromString("<Swig global variables>");
41772 }
41773
41774 SWIGINTERN PyObject *
41775 swig_varlink_str(swig_varlinkobject *v) {
41776 PyObject *str = PyString_FromString("(");
41777 swig_globalvar *var;
41778 for (var = v->vars; var; var=var->next) {
41779 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41780 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41781 }
41782 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41783 return str;
41784 }
41785
41786 SWIGINTERN int
41787 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41788 PyObject *str = swig_varlink_str(v);
41789 fprintf(fp,"Swig global variables ");
41790 fprintf(fp,"%s\n", PyString_AsString(str));
41791 Py_DECREF(str);
41792 return 0;
41793 }
41794
41795 SWIGINTERN void
41796 swig_varlink_dealloc(swig_varlinkobject *v) {
41797 swig_globalvar *var = v->vars;
41798 while (var) {
41799 swig_globalvar *n = var->next;
41800 free(var->name);
41801 free(var);
41802 var = n;
41803 }
41804 }
41805
41806 SWIGINTERN PyObject *
41807 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41808 PyObject *res = NULL;
41809 swig_globalvar *var = v->vars;
41810 while (var) {
41811 if (strcmp(var->name,n) == 0) {
41812 res = (*var->get_attr)();
41813 break;
41814 }
41815 var = var->next;
41816 }
41817 if (res == NULL && !PyErr_Occurred()) {
41818 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41819 }
41820 return res;
41821 }
41822
41823 SWIGINTERN int
41824 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41825 int res = 1;
41826 swig_globalvar *var = v->vars;
41827 while (var) {
41828 if (strcmp(var->name,n) == 0) {
41829 res = (*var->set_attr)(p);
41830 break;
41831 }
41832 var = var->next;
41833 }
41834 if (res == 1 && !PyErr_Occurred()) {
41835 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41836 }
41837 return res;
41838 }
41839
41840 SWIGINTERN PyTypeObject*
41841 swig_varlink_type(void) {
41842 static char varlink__doc__[] = "Swig var link object";
41843 static PyTypeObject varlink_type;
41844 static int type_init = 0;
41845 if (!type_init) {
41846 const PyTypeObject tmp
41847 = {
41848 PyObject_HEAD_INIT(NULL)
41849 0, /* Number of items in variable part (ob_size) */
41850 (char *)"swigvarlink", /* Type name (tp_name) */
41851 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41852 0, /* Itemsize (tp_itemsize) */
41853 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41854 (printfunc) swig_varlink_print, /* Print (tp_print) */
41855 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41856 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41857 0, /* tp_compare */
41858 (reprfunc) swig_varlink_repr, /* tp_repr */
41859 0, /* tp_as_number */
41860 0, /* tp_as_sequence */
41861 0, /* tp_as_mapping */
41862 0, /* tp_hash */
41863 0, /* tp_call */
41864 (reprfunc)swig_varlink_str, /* tp_str */
41865 0, /* tp_getattro */
41866 0, /* tp_setattro */
41867 0, /* tp_as_buffer */
41868 0, /* tp_flags */
41869 varlink__doc__, /* tp_doc */
41870 0, /* tp_traverse */
41871 0, /* tp_clear */
41872 0, /* tp_richcompare */
41873 0, /* tp_weaklistoffset */
41874 #if PY_VERSION_HEX >= 0x02020000
41875 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41876 #endif
41877 #if PY_VERSION_HEX >= 0x02030000
41878 0, /* tp_del */
41879 #endif
41880 #ifdef COUNT_ALLOCS
41881 0,0,0,0 /* tp_alloc -> tp_next */
41882 #endif
41883 };
41884 varlink_type = tmp;
41885 varlink_type.ob_type = &PyType_Type;
41886 type_init = 1;
41887 }
41888 return &varlink_type;
41889 }
41890
41891 /* Create a variable linking object for use later */
41892 SWIGINTERN PyObject *
41893 SWIG_Python_newvarlink(void) {
41894 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41895 if (result) {
41896 result->vars = 0;
41897 }
41898 return ((PyObject*) result);
41899 }
41900
41901 SWIGINTERN void
41902 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41903 swig_varlinkobject *v = (swig_varlinkobject *) p;
41904 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41905 if (gv) {
41906 size_t size = strlen(name)+1;
41907 gv->name = (char *)malloc(size);
41908 if (gv->name) {
41909 strncpy(gv->name,name,size);
41910 gv->get_attr = get_attr;
41911 gv->set_attr = set_attr;
41912 gv->next = v->vars;
41913 }
41914 }
41915 v->vars = gv;
41916 }
41917
41918 SWIGINTERN PyObject *
41919 SWIG_globals() {
41920 static PyObject *_SWIG_globals = 0;
41921 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41922 return _SWIG_globals;
41923 }
41924
41925 /* -----------------------------------------------------------------------------
41926 * constants/methods manipulation
41927 * ----------------------------------------------------------------------------- */
41928
41929 /* Install Constants */
41930 SWIGINTERN void
41931 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41932 PyObject *obj = 0;
41933 size_t i;
41934 for (i = 0; constants[i].type; ++i) {
41935 switch(constants[i].type) {
41936 case SWIG_PY_POINTER:
41937 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41938 break;
41939 case SWIG_PY_BINARY:
41940 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41941 break;
41942 default:
41943 obj = 0;
41944 break;
41945 }
41946 if (obj) {
41947 PyDict_SetItemString(d, constants[i].name, obj);
41948 Py_DECREF(obj);
41949 }
41950 }
41951 }
41952
41953 /* -----------------------------------------------------------------------------*/
41954 /* Fix SwigMethods to carry the callback ptrs when needed */
41955 /* -----------------------------------------------------------------------------*/
41956
41957 SWIGINTERN void
41958 SWIG_Python_FixMethods(PyMethodDef *methods,
41959 swig_const_info *const_table,
41960 swig_type_info **types,
41961 swig_type_info **types_initial) {
41962 size_t i;
41963 for (i = 0; methods[i].ml_name; ++i) {
41964 const char *c = methods[i].ml_doc;
41965 if (c && (c = strstr(c, "swig_ptr: "))) {
41966 int j;
41967 swig_const_info *ci = 0;
41968 const char *name = c + 10;
41969 for (j = 0; const_table[j].type; ++j) {
41970 if (strncmp(const_table[j].name, name,
41971 strlen(const_table[j].name)) == 0) {
41972 ci = &(const_table[j]);
41973 break;
41974 }
41975 }
41976 if (ci) {
41977 size_t shift = (ci->ptype) - types;
41978 swig_type_info *ty = types_initial[shift];
41979 size_t ldoc = (c - methods[i].ml_doc);
41980 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41981 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41982 if (ndoc) {
41983 char *buff = ndoc;
41984 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41985 if (ptr) {
41986 strncpy(buff, methods[i].ml_doc, ldoc);
41987 buff += ldoc;
41988 strncpy(buff, "swig_ptr: ", 10);
41989 buff += 10;
41990 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41991 methods[i].ml_doc = ndoc;
41992 }
41993 }
41994 }
41995 }
41996 }
41997 }
41998
41999 #ifdef __cplusplus
42000 }
42001 #endif
42002
42003 /* -----------------------------------------------------------------------------*
42004 * Partial Init method
42005 * -----------------------------------------------------------------------------*/
42006
42007 #ifdef __cplusplus
42008 extern "C"
42009 #endif
42010 SWIGEXPORT void SWIG_init(void) {
42011 PyObject *m, *d;
42012
42013 /* Fix SwigMethods to carry the callback ptrs when needed */
42014 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
42015
42016 m = Py_InitModule((char *) SWIG_name, SwigMethods);
42017 d = PyModule_GetDict(m);
42018
42019 SWIG_InitializeModule(0);
42020 SWIG_InstallConstants(d,swig_const_table);
42021
42022
42023 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
42024 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
42025 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
42026 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
42027 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
42028 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
42029 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
42030 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
42031 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
42032 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
42033 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
42034 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
42035 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
42036 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
42037 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
42038 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
42039 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
42040 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
42041 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
42042 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
42043 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
42044 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
42045 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
42046 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
42047 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
42048 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
42049 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
42050 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
42051 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
42052 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
42053 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
42054 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
42055 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
42056 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
42057 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
42058 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
42059 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
42060 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
42061 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
42062 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
42063 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
42064 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
42065 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
42066 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
42067 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
42068 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
42069 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
42070 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
42071 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
42072 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
42073 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
42074 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
42075 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
42076 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
42077 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
42078 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
42079 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
42080 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
42081 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
42082 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
42083 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
42084 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
42085 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
42086 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
42087 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
42088 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
42089 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
42090 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
42091 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
42092 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
42093 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
42094 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
42095 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
42096 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
42097 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
42098 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
42099 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
42100 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
42101 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
42102 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
42103 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
42104 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
42105 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
42106 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
42107 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
42108 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
42109 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
42110 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
42111 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
42112 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
42113 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
42114 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
42115 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
42116 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
42117 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
42118 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
42119 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
42120 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
42121 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
42122 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
42123 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
42124 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
42125 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
42126 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
42127 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
42128 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
42129 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
42130 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
42131 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
42132 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
42133 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
42134 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
42135 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
42136 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
42137 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
42138 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
42139 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
42140 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
42141 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
42142 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
42143 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
42144 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
42145 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
42146 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
42147 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
42148 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
42149 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
42150 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
42151 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
42152 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
42153 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
42154 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
42155
42156 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
42157
42158 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
42159 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
42160 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
42161 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
42162 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
42163 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
42164 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
42165 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
42166 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
42167 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
42168 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
42169 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
42170 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
42171 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
42172 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
42173 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
42174 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
42175 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
42176 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
42177 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
42178 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
42179 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
42180 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
42181 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
42182 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
42183 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
42184 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
42185 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
42186 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
42187 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
42188 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
42189 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
42190 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
42191 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
42192 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
42193 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
42194 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
42195 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
42196 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
42197 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
42198 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
42199 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
42200 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
42201 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
42202 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
42203 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
42204 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
42205 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
42206 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
42207 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
42208 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
42209 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
42210 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
42211 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
42212 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
42213 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
42214 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
42215 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
42216 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
42217 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
42218 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
42219 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
42220 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
42221 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
42222 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
42223 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
42224 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
42225 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
42226 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
42227 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
42228 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
42229 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
42230 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
42231 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
42232 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
42233 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
42234 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
42235 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
42236 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
42237 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
42238 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
42239 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
42240 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
42241 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
42242 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
42243 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
42244 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
42245 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
42246 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
42247 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
42248 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
42249 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
42250 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
42251 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
42252 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
42253 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
42254 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
42255 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
42256 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
42257 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
42258 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
42259 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
42260 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
42261 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
42262 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
42263 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
42264 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
42265 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
42266 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
42267 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
42268 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
42269 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
42270 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
42271 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
42272 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
42273 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
42274 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
42275 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
42276 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
42277 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
42278 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
42279 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
42280 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
42281 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
42282 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
42283 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
42284 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
42285 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
42286 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
42287 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
42288 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
42289 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
42290 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
42291 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
42292 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
42293 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
42294 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
42295 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
42296 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
42297 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
42298 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
42299 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
42300 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
42301 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
42302 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
42303 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
42304 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
42305 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
42306 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
42307 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
42308 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
42309 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
42310 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
42311 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
42312 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
42313 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
42314 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
42315 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
42316 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
42317 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
42318 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
42319 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
42320 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
42321 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
42322 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
42323 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
42324 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
42325 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
42326 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
42327 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
42328 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
42329 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
42330 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
42331 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
42332 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
42333 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
42334 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
42335 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
42336 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
42337 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
42338 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
42339 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
42340 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
42341 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
42342 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
42343 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
42344 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
42345 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
42346 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
42347 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
42348 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
42349 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
42350 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
42351 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
42352 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
42353 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
42354 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
42355 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
42356 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
42357 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
42358 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
42359 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
42360 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
42361 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
42362 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
42363 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
42364 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
42365 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
42366 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
42367 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
42368 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
42369 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
42370 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
42371 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
42372 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
42373 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
42374 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
42375 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
42376 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
42377 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
42378 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
42379 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
42380 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
42381 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
42382 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
42383 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
42384 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
42385 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
42386 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
42387 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
42388 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
42389 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
42390 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
42391 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
42392 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
42393 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
42394 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
42395 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
42396 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
42397 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
42398 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
42399 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
42400 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
42401 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
42402 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
42403 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
42404 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
42405 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
42406 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
42407 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
42408 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
42409 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
42410 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
42411 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
42412 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
42413 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
42414 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
42415 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
42416 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
42417 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
42418 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
42419 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
42420 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
42421 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
42422 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
42423 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
42424 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
42425 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
42426 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
42427 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
42428 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
42429 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
42430 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
42431 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
42432 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
42433 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
42434 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
42435 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
42436 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
42437 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
42438 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
42439 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
42440 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
42441 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
42442 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
42443 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
42444 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
42445 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
42446 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
42447 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
42448 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
42449 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
42450 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
42451 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
42452 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
42453 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
42454 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
42455 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
42456 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
42457 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
42458 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
42459 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
42460 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
42461 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
42462 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
42463 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
42464 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
42465 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
42466 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
42467 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
42468 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
42469 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
42470 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
42471 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
42472 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
42473 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
42474 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
42475 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
42476 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
42477 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
42478 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
42479 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
42480 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
42481 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
42482
42483 // Work around a chicken/egg problem in drawlist.cpp
42484 wxPyDrawList_SetAPIPtr();
42485
42486 }
42487