]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
Add wxGraphicsMatrix::Get
[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_wxColor swig_types[28]
2495 #define SWIGTYPE_p_wxColour swig_types[29]
2496 #define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498 #define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499 #define SWIGTYPE_p_wxControl swig_types[33]
2500 #define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501 #define SWIGTYPE_p_wxCursor swig_types[35]
2502 #define SWIGTYPE_p_wxDC swig_types[36]
2503 #define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504 #define SWIGTYPE_p_wxDCClipper swig_types[38]
2505 #define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506 #define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508 #define SWIGTYPE_p_wxDash swig_types[42]
2509 #define SWIGTYPE_p_wxDateEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513 #define SWIGTYPE_p_wxEffects swig_types[47]
2514 #define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515 #define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516 #define SWIGTYPE_p_wxEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518 #define SWIGTYPE_p_wxFSFile swig_types[52]
2519 #define SWIGTYPE_p_wxFileSystem swig_types[53]
2520 #define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521 #define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522 #define SWIGTYPE_p_wxFont swig_types[56]
2523 #define SWIGTYPE_p_wxFontList swig_types[57]
2524 #define SWIGTYPE_p_wxFontMapper swig_types[58]
2525 #define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526 #define SWIGTYPE_p_wxGCDC swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528 #define SWIGTYPE_p_wxGDIObject swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538 #define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539 #define SWIGTYPE_p_wxGridSizer swig_types[73]
2540 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconBundle swig_types[77]
2544 #define SWIGTYPE_p_wxIconLocation swig_types[78]
2545 #define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546 #define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547 #define SWIGTYPE_p_wxImage swig_types[81]
2548 #define SWIGTYPE_p_wxImageHandler swig_types[82]
2549 #define SWIGTYPE_p_wxImageList swig_types[83]
2550 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551 #define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552 #define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553 #define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555 #define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556 #define SWIGTYPE_p_wxLocale swig_types[90]
2557 #define SWIGTYPE_p_wxMask swig_types[91]
2558 #define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560 #define SWIGTYPE_p_wxMenu swig_types[94]
2561 #define SWIGTYPE_p_wxMenuBar swig_types[95]
2562 #define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563 #define SWIGTYPE_p_wxMenuItem swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFile swig_types[98]
2565 #define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566 #define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577 #define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578 #define SWIGTYPE_p_wxObject swig_types[112]
2579 #define SWIGTYPE_p_wxOverlay swig_types[113]
2580 #define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583 #define SWIGTYPE_p_wxPaintDC swig_types[117]
2584 #define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585 #define SWIGTYPE_p_wxPalette swig_types[119]
2586 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPaperSize swig_types[121]
2588 #define SWIGTYPE_p_wxPen swig_types[122]
2589 #define SWIGTYPE_p_wxPenList swig_types[123]
2590 #define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591 #define SWIGTYPE_p_wxPoint swig_types[125]
2592 #define SWIGTYPE_p_wxPoint2D swig_types[126]
2593 #define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594 #define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595 #define SWIGTYPE_p_wxPrintData swig_types[129]
2596 #define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597 #define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598 #define SWIGTYPE_p_wxPyApp swig_types[132]
2599 #define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600 #define SWIGTYPE_p_wxPyEvent swig_types[134]
2601 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602 #define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603 #define SWIGTYPE_p_wxPyLocale swig_types[137]
2604 #define SWIGTYPE_p_wxPySizer swig_types[138]
2605 #define SWIGTYPE_p_wxPyValidator swig_types[139]
2606 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607 #define SWIGTYPE_p_wxRect swig_types[141]
2608 #define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609 #define SWIGTYPE_p_wxRegion swig_types[143]
2610 #define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611 #define SWIGTYPE_p_wxRendererNative swig_types[145]
2612 #define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613 #define SWIGTYPE_p_wxScreenDC swig_types[147]
2614 #define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615 #define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616 #define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617 #define SWIGTYPE_p_wxShowEvent swig_types[151]
2618 #define SWIGTYPE_p_wxSize swig_types[152]
2619 #define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620 #define SWIGTYPE_p_wxSizer swig_types[154]
2621 #define SWIGTYPE_p_wxSizerItem swig_types[155]
2622 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625 #define SWIGTYPE_p_wxStockGDI swig_types[159]
2626 #define SWIGTYPE_p_wxString swig_types[160]
2627 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628 #define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629 #define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631 #define SWIGTYPE_p_wxValidator swig_types[165]
2632 #define SWIGTYPE_p_wxWindow swig_types[166]
2633 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634 #define SWIGTYPE_p_wxWindowDC swig_types[168]
2635 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636 #define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637 static swig_type_info *swig_types[172];
2638 static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
2639 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2641
2642 /* -------- TYPES TABLE (END) -------- */
2643
2644 #if (PY_VERSION_HEX <= 0x02000000)
2645 # if !defined(SWIG_PYTHON_CLASSIC)
2646 # error "This python version requires to use swig with the '-classic' option"
2647 # endif
2648 #endif
2649 #if (PY_VERSION_HEX <= 0x02020000)
2650 # error "This python version requires to use swig with the '-nomodern' option"
2651 #endif
2652 #if (PY_VERSION_HEX <= 0x02020000)
2653 # error "This python version requires to use swig with the '-nomodernargs' option"
2654 #endif
2655 #ifndef METH_O
2656 # error "This python version requires to use swig with the '-nofastunpack' option"
2657 #endif
2658
2659 /*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662 #define SWIG_init init_gdi_
2663
2664 #define SWIG_name "_gdi_"
2665
2666 #define SWIGVERSION 0x010329
2667
2668
2669 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2671
2672
2673 #include <stdexcept>
2674
2675
2676 namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
2684 }
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
2689 }
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
2719 }
2720
2721
2722 namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
2731 }
2732 };
2733 }
2734
2735
2736 #include "wx/wxPython/wxPython.h"
2737 #include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745 SWIGINTERNINLINE PyObject *
2746 SWIG_From_int (int value)
2747 {
2748 return SWIG_From_long (value);
2749 }
2750
2751
2752 #include <limits.h>
2753 #ifndef LLONG_MIN
2754 # define LLONG_MIN LONG_LONG_MIN
2755 #endif
2756 #ifndef LLONG_MAX
2757 # define LLONG_MAX LONG_LONG_MAX
2758 #endif
2759 #ifndef ULLONG_MAX
2760 # define ULLONG_MAX ULONG_LONG_MAX
2761 #endif
2762
2763
2764 SWIGINTERN int
2765 SWIG_AsVal_long (PyObject* obj, long* val)
2766 {
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772 }
2773
2774
2775 SWIGINTERN int
2776 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2777 {
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2780 return SWIG_TypeError;
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
2784 return SWIG_OK;
2785 }
2786
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790 {
2791 unsigned long v;
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
2796 } else {
2797 if (val) *val = static_cast< unsigned char >(v);
2798 }
2799 }
2800 return res;
2801 }
2802
2803
2804 SWIGINTERNINLINE PyObject*
2805 SWIG_From_unsigned_SS_long (unsigned long value)
2806 {
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2809 }
2810
2811
2812 SWIGINTERNINLINE PyObject *
2813 SWIG_From_unsigned_SS_char (unsigned char value)
2814 {
2815 return SWIG_From_unsigned_SS_long (value);
2816 }
2817
2818 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
2836
2837 SWIGINTERN int
2838 SWIG_AsVal_bool (PyObject *obj, bool *val)
2839 {
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852 }
2853
2854 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
2859 int alpha = wxALPHA_OPAQUE;
2860 if (self->IsOk()) {
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
2864 alpha = self->Alpha();
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2871 return rv;
2872 }
2873 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
2876
2877 SWIGINTERN int
2878 SWIG_AsVal_int (PyObject * obj, int *val)
2879 {
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
2890 }
2891
2892 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
2905 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2909
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
2924 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2926
2927 #include <wx/rawbmp.h>
2928
2929
2930 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2931 // appears to me that the other platforms are already doing it, so I'll just
2932 // automatically do it for wxMSW here.
2933 #ifdef __WXMSW__
2934 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2935 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2936 #else
2937 #define wxPy_premultiply(p, a) (p)
2938 #define wxPy_unpremultiply(p, a) (p)
2939 #endif
2940
2941
2942 #include <wx/image.h>
2943
2944 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2945 char** cArray = NULL;
2946 int count;
2947
2948 if (!PyList_Check(listOfStrings)) {
2949 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2950 return NULL;
2951 }
2952 count = PyList_Size(listOfStrings);
2953 cArray = new char*[count];
2954
2955 for(int x=0; x<count; x++) {
2956 // TODO: Need some validation and error checking here
2957 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2958 }
2959 return cArray;
2960 }
2961
2962
2963 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2964 char** cArray = NULL;
2965 wxBitmap* bmp;
2966
2967 cArray = ConvertListOfStrings(listOfStrings);
2968 if (! cArray)
2969 return NULL;
2970 bmp = new wxBitmap(cArray);
2971 delete [] cArray;
2972 return bmp;
2973 }
2974 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2975 char* buf;
2976 Py_ssize_t length;
2977 PyString_AsStringAndSize(bits, &buf, &length);
2978 return new wxBitmap(buf, width, height, depth);
2979 }
2980 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2981 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2982 wxSize size(self->GetWidth(), self->GetHeight());
2983 return size;
2984 }
2985 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2986 wxMask *mask = new wxMask(*self, colour);
2987 self->SetMask(mask);
2988 }
2989 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2990 self->SetWidth(size.x);
2991 self->SetHeight(size.y);
2992 }
2993 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2994 int height=self->GetHeight();
2995 int width=self->GetWidth();
2996
2997 if (DATASIZE != width * height * 3) {
2998 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2999 }
3000 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3001 if (! pixData) {
3002 // raise an exception...
3003 wxPyErr_SetString(PyExc_RuntimeError,
3004 "Failed to gain raw access to bitmap data.");
3005 return;
3006 }
3007
3008 wxNativePixelData::Iterator p(pixData);
3009 for (int y=0; y<height; y++) {
3010 wxNativePixelData::Iterator rowStart = p;
3011 for (int x=0; x<width; x++) {
3012 p.Red() = *(data++);
3013 p.Green() = *(data++);
3014 p.Blue() = *(data++);
3015 ++p;
3016 }
3017 p = rowStart;
3018 p.OffsetY(pixData, 1);
3019 }
3020 }
3021 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3022 int height=self->GetHeight();
3023 int width=self->GetWidth();
3024
3025 if (DATASIZE != width * height * 4) {
3026 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3027 }
3028 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3029 if (! pixData) {
3030 // raise an exception...
3031 wxPyErr_SetString(PyExc_RuntimeError,
3032 "Failed to gain raw access to bitmap data.");
3033 return;
3034 }
3035
3036 pixData.UseAlpha();
3037 wxAlphaPixelData::Iterator p(pixData);
3038 for (int y=0; y<height; y++) {
3039 wxAlphaPixelData::Iterator rowStart = p;
3040 for (int x=0; x<width; x++) {
3041 byte a = data[3];
3042 p.Red() = wxPy_premultiply(*(data++), a);
3043 p.Green() = wxPy_premultiply(*(data++), a);
3044 p.Blue() = wxPy_premultiply(*(data++), a);
3045 p.Alpha() = a; data++;
3046 ++p;
3047 }
3048 p = rowStart;
3049 p.OffsetY(pixData, 1);
3050 }
3051 }
3052 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3053 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3054
3055 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3056 buffer data, int DATASIZE,
3057 buffer alpha, int ALPHASIZE)
3058 {
3059 if (DATASIZE != width*height*3) {
3060 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3061 return NULL;
3062 }
3063
3064 if (ALPHASIZE != width*height) {
3065 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3066 return NULL;
3067 }
3068
3069 wxBitmap* bmp = new wxBitmap(width, height, 32);
3070 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3071 if (! pixData) {
3072 // raise an exception...
3073 wxPyErr_SetString(PyExc_RuntimeError,
3074 "Failed to gain raw access to bitmap data.");
3075 return NULL;
3076 }
3077
3078 pixData.UseAlpha();
3079 wxAlphaPixelData::Iterator p(pixData);
3080 for (int y=0; y<height; y++) {
3081 wxAlphaPixelData::Iterator rowStart = p;
3082 for (int x=0; x<width; x++) {
3083 byte a = *(alpha++);
3084 p.Red() = wxPy_premultiply(*(data++), a);
3085 p.Green() = wxPy_premultiply(*(data++), a);
3086 p.Blue() = wxPy_premultiply(*(data++), a);
3087 p.Alpha() = a;
3088 ++p;
3089 }
3090 p = rowStart;
3091 p.OffsetY(pixData, 1);
3092 }
3093 return bmp;
3094 }
3095
3096 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3097 {
3098 if (DATASIZE != width*height*3) {
3099 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3100 return NULL;
3101 }
3102
3103 wxBitmap* bmp = new wxBitmap(width, height, 24);
3104 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3105 if (! pixData) {
3106 // raise an exception...
3107 wxPyErr_SetString(PyExc_RuntimeError,
3108 "Failed to gain raw access to bitmap data.");
3109 return NULL;
3110 }
3111
3112 wxNativePixelData::Iterator p(pixData);
3113 for (int y=0; y<height; y++) {
3114 wxNativePixelData::Iterator rowStart = p;
3115 for (int x=0; x<width; x++) {
3116 p.Red() = *(data++);
3117 p.Green() = *(data++);
3118 p.Blue() = *(data++);
3119 ++p;
3120 }
3121 p = rowStart;
3122 p.OffsetY(pixData, 1);
3123 }
3124 return bmp;
3125 }
3126
3127
3128 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3129 {
3130 if (DATASIZE != width*height*4) {
3131 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3132 return NULL;
3133 }
3134
3135 wxBitmap* bmp = new wxBitmap(width, height, 32);
3136 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3137 if (! pixData) {
3138 // raise an exception...
3139 wxPyErr_SetString(PyExc_RuntimeError,
3140 "Failed to gain raw access to bitmap data.");
3141 return NULL;
3142 }
3143
3144 pixData.UseAlpha();
3145 wxAlphaPixelData::Iterator p(pixData);
3146 for (int y=0; y<height; y++) {
3147 wxAlphaPixelData::Iterator rowStart = p;
3148 for (int x=0; x<width; x++) {
3149 byte a = data[3];
3150 p.Red() = wxPy_premultiply(*(data++), a);
3151 p.Green() = wxPy_premultiply(*(data++), a);
3152 p.Blue() = wxPy_premultiply(*(data++), a);
3153 p.Alpha() = a; data++;
3154 ++p;
3155 }
3156 p = rowStart;
3157 p.OffsetY(pixData, 1);
3158 }
3159 return bmp;
3160 }
3161
3162
3163 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3164
3165 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3166 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3167 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3168 self->Red() = red;
3169 self->Green() = green;
3170 self->Blue() = blue;
3171 }
3172 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3173 PyObject* rv = PyTuple_New(3);
3174 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3175 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3176 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3177 return rv;
3178 }
3179
3180 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3181
3182 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3183 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3184 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3185 self->Red() = wxPy_premultiply(red, alpha);
3186 self->Green() = wxPy_premultiply(green, alpha);
3187 self->Blue() = wxPy_premultiply(blue, alpha);
3188 self->Alpha() = alpha;
3189 }
3190 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3191 PyObject* rv = PyTuple_New(4);
3192 int red = self->Red();
3193 int green = self->Green();
3194 int blue = self->Blue();
3195 int alpha = self->Alpha();
3196
3197 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3198 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3199 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3200 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3201 return rv;
3202 }
3203 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3204 if ( !colour.IsOk() )
3205 return new wxMask(bitmap, *wxBLACK);
3206 else
3207 return new wxMask(bitmap, colour);
3208 }
3209
3210 #include <wx/iconbndl.h>
3211
3212 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3213 wxIcon* icon = new wxIcon();
3214 icon->CopyFromBitmap(bmp);
3215 return icon;
3216 }
3217 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3218 char** cArray = NULL;
3219 wxIcon* icon;
3220
3221 cArray = ConvertListOfStrings(listOfStrings);
3222 if (! cArray)
3223 return NULL;
3224 icon = new wxIcon(cArray);
3225 delete [] cArray;
3226 return icon;
3227 }
3228 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3229 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3230
3231 return new wxIconLocation(*filename, num);
3232
3233
3234
3235 }
3236 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3237
3238 self->SetIndex(num);
3239
3240
3241
3242 }
3243 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3244
3245 return self->GetIndex();
3246
3247
3248
3249 }
3250 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3251 #ifdef __WXGTK__
3252 wxImage img(cursorName, type);
3253 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3254 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3255 return new wxCursor(img);
3256 #else
3257 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3258 #endif
3259 }
3260 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3261
3262
3263 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3264 (*self) ++;
3265 }
3266 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3267 return self->operator bool();
3268 }
3269
3270 #include <wx/fontutil.h>
3271 #include <wx/fontmap.h>
3272 #include <wx/fontenum.h>
3273
3274 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3275 return self->ToString();
3276 }
3277
3278 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3279 { wxPyRaiseNotImplemented(); return NULL; }
3280
3281 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3282 { wxPyRaiseNotImplemented(); return false; }
3283
3284
3285 SWIGINTERNINLINE PyObject *
3286 SWIG_From_size_t (size_t value)
3287 {
3288 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3289 }
3290
3291
3292 SWIGINTERNINLINE int
3293 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3294 {
3295 unsigned long v;
3296 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3297 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3298 return res;
3299 }
3300
3301 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3302 wxFontEncoding alt_enc;
3303 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3304 return PyInt_FromLong(alt_enc);
3305 else {
3306 Py_INCREF(Py_None);
3307 return Py_None;
3308 }
3309 }
3310 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3311 wxNativeFontInfo nfi;
3312 nfi.FromString(info);
3313 return new wxFont(nfi);
3314 }
3315 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3316 return wxFont::New(pointSize, family, flags, face, encoding);
3317 }
3318 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3319 return wxFontBase::New(pixelSize, family,
3320 style, weight, underlined,
3321 face, encoding);
3322 }
3323 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3324 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3325 }
3326 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3327 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3328
3329 class wxPyFontEnumerator : public wxFontEnumerator {
3330 public:
3331 wxPyFontEnumerator() {}
3332 ~wxPyFontEnumerator() {}
3333
3334 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3335 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3336
3337 PYPRIVATE;
3338 };
3339
3340 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3341 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3342
3343
3344 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3345 PyObject* ret;
3346 wxArrayString arr = wxFontEnumerator::GetEncodings();
3347 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3348 ret = wxArrayString2PyList_helper(arr);
3349 wxPyEndBlockThreads(blocked);
3350 return ret;
3351 }
3352 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3353 PyObject* ret;
3354 wxArrayString arr = wxFontEnumerator::GetFacenames();
3355 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3356 ret = wxArrayString2PyList_helper(arr);
3357 wxPyEndBlockThreads(blocked);
3358 return ret;
3359 }
3360
3361 #include <locale.h>
3362
3363 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3364 wxLocale* loc;
3365 if (language == -1)
3366 loc = new wxLocale();
3367 else
3368 loc = new wxLocale(language, flags);
3369 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3370 // for the floating point conversions and such to work right.
3371 #if PY_VERSION_HEX < 0x02040000
3372 setlocale(LC_NUMERIC, "C");
3373 #endif
3374 return loc;
3375 }
3376 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3377 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3378 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3379 // for the floating point conversions and such to work right.
3380 #if PY_VERSION_HEX < 0x02040000
3381 setlocale(LC_NUMERIC, "C");
3382 #endif
3383 return rc;
3384 }
3385 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3386 bool rc = self->Init(language, flags);
3387 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3388 // for the floating point conversions and such to work right.
3389 #if PY_VERSION_HEX < 0x02040000
3390 setlocale(LC_NUMERIC, "C");
3391 #endif
3392 return rc;
3393 }
3394
3395 class wxPyLocale : public wxLocale
3396 {
3397 public:
3398 wxPyLocale();
3399
3400 wxPyLocale(const wxChar *szName, // name (for messages)
3401 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3402 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3403 bool bLoadDefault = true, // preload wxstd.mo?
3404 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3405
3406 wxPyLocale(int language, // wxLanguage id or custom language
3407 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3408
3409 ~wxPyLocale();
3410
3411 virtual const wxChar *GetString(const wxChar *szOrigString,
3412 const wxChar *szDomain = NULL) const;
3413 virtual const wxChar *GetString(const wxChar *szOrigString,
3414 const wxChar *szOrigString2, size_t n,
3415 const wxChar *szDomain = NULL) const;
3416
3417 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3418 const wxChar *szDomain = NULL) const;
3419 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3420 const wxChar *szOrigString2, size_t n,
3421 const wxChar *szDomain = NULL) const;
3422
3423 PYPRIVATE;
3424 private:
3425 DECLARE_NO_COPY_CLASS(wxPyLocale)
3426 };
3427
3428 wxPyLocale::wxPyLocale() : wxLocale()
3429 {
3430 }
3431
3432 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3433 const wxChar *szShort, // dir prefix (for msg files)
3434 const wxChar *szLocale, // locale (for setlocale)
3435 bool bLoadDefault, // preload wxstd.mo?
3436 bool bConvertEncoding) // convert Win<->Unix if necessary?
3437 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3438 {
3439 }
3440
3441 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3442 int flags) : wxLocale(language, flags)
3443 {
3444 }
3445
3446 wxPyLocale::~wxPyLocale()
3447 {
3448 }
3449
3450 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3451 const wxChar *szDomain) const
3452 {
3453 wxChar *str = GetSingularString(szOrigString, szDomain);
3454 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3455 }
3456
3457 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3458 const wxChar *szOrigString2, size_t n,
3459 const wxChar *szDomain) const
3460 {
3461 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3462 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3463 }
3464
3465 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3466 const wxChar *szDomain) const
3467 {
3468 bool found;
3469 static wxString str;
3470 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.
3471 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3472 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3473 PyObject* param1 = wx2PyString(szOrigString);
3474 PyObject* param2 = wx2PyString(szDomain);
3475 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3476 Py_DECREF(param1);
3477 Py_DECREF(param2);
3478 if (ret) {
3479 str = Py2wxString(ret);
3480 Py_DECREF(ret);
3481 }
3482 }
3483 wxPyEndBlockThreads(blocked);
3484 return (found ? (wxChar*)str.c_str() : NULL);
3485 }
3486
3487 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3488 const wxChar *szOrigString2, size_t n,
3489 const wxChar *szDomain) const
3490 {
3491 bool found;
3492 static wxString str;
3493 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.
3494 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3495 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3496 PyObject* param1 = wx2PyString(szOrigString);
3497 PyObject* param2 = wx2PyString(szOrigString2);
3498 PyObject* param4 = wx2PyString(szDomain);
3499 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3500 Py_DECREF(param1);
3501 Py_DECREF(param2);
3502 Py_DECREF(param4);
3503 if( ret) {
3504 str = Py2wxString(ret);
3505 Py_DECREF(ret);
3506 }
3507 }
3508 wxPyEndBlockThreads(blocked);
3509 return (found ? (wxChar*)str.c_str() : NULL);
3510 }
3511
3512 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3513 wxPyLocale* loc;
3514 if (language == -1)
3515 loc = new wxPyLocale();
3516 else
3517 loc = new wxPyLocale(language, flags);
3518 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3519 // for the floating point conversions and such to work right.
3520 #if PY_VERSION_HEX < 0x02040000
3521 setlocale(LC_NUMERIC, "C");
3522 #endif
3523 return loc;
3524 }
3525
3526 #include "wx/wxPython/pydrawxxx.h"
3527
3528 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3529 wxColour col;
3530 self->GetPixel(x, y, &col);
3531 return col;
3532 }
3533 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3534 wxColour col;
3535 self->GetPixel(pt, &col);
3536 return col;
3537 }
3538
3539 SWIGINTERN int
3540 SWIG_AsVal_double (PyObject *obj, double* val)
3541 {
3542 if (PyNumber_Check(obj)) {
3543 if (val) *val = PyFloat_AsDouble(obj);
3544 return SWIG_OK;
3545 }
3546 return SWIG_TypeError;
3547 }
3548
3549 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3550 wxRect rv;
3551 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3552 return rv;
3553 }
3554 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3555 wxRect rect;
3556 self->GetClippingBox(rect);
3557 return rect;
3558 }
3559 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3560 wxArrayInt widths;
3561 self->GetPartialTextExtents(text, widths);
3562 return widths;
3563 }
3564
3565 #define SWIG_From_double PyFloat_FromDouble
3566
3567 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3568 self->SetLogicalOrigin(point.x, point.y);
3569 }
3570 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3571 self->SetDeviceOrigin(point.x, point.y);
3572 }
3573 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3574 self->CalcBoundingBox(point.x, point.y);
3575 }
3576 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3577 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3578 }
3579 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3580 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3581 }
3582 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3583 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3584 }
3585 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3586 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3587 }
3588 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3589 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3590 }
3591 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3592 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3593 }
3594
3595 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3596 *x1 = dc->MinX();
3597 *y1 = dc->MinY();
3598 *x2 = dc->MaxX();
3599 *y2 = dc->MaxY();
3600 }
3601
3602
3603 #include <wx/dcbuffer.h>
3604
3605
3606 #include <wx/dcps.h>
3607
3608
3609 #include <wx/metafile.h>
3610
3611
3612 #include <wx/graphics.h>
3613
3614
3615 #if !wxUSE_GRAPHICS_CONTEXT
3616 // C++ stub classes for platforms or build configurations that don't have
3617 // wxGraphicsContext yet.
3618
3619 class wxGraphicsRenderer;
3620 class wxGraphicsMatrix;
3621
3622
3623 class wxGraphicsObject : public wxObject
3624 {
3625 public :
3626 wxGraphicsObject() {}
3627 wxGraphicsObject( wxGraphicsRenderer* ) {
3628 PyErr_SetString(PyExc_NotImplementedError,
3629 "wx.GraphicsObject is not available on this platform.");
3630 }
3631 wxGraphicsObject( const wxGraphicsObject& ) {}
3632 virtual ~wxGraphicsObject() {}
3633 bool IsNull() const { return false; }
3634 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3635 } ;
3636
3637
3638
3639 class wxGraphicsPen : public wxGraphicsObject
3640 {
3641 public:
3642 wxGraphicsPen() {}
3643 virtual ~wxGraphicsPen() {}
3644 } ;
3645 wxGraphicsPen wxNullGraphicsPen;
3646
3647
3648
3649 class wxGraphicsBrush : public wxGraphicsObject
3650 {
3651 public :
3652 wxGraphicsBrush() {}
3653 virtual ~wxGraphicsBrush() {}
3654 } ;
3655 wxGraphicsBrush wxNullGraphicsBrush;
3656
3657
3658
3659 class wxGraphicsFont : public wxGraphicsObject
3660 {
3661 public :
3662 wxGraphicsFont() {}
3663 virtual ~wxGraphicsFont() {}
3664 } ;
3665 wxGraphicsFont wxNullGraphicsFont;
3666
3667
3668
3669 class wxGraphicsPath : public wxGraphicsObject
3670 {
3671 public :
3672 wxGraphicsPath() { }
3673 wxGraphicsPath(wxGraphicsRenderer* ) {
3674 PyErr_SetString(PyExc_NotImplementedError,
3675 "wx.GraphicsPath is not available on this platform.");
3676 }
3677 virtual ~wxGraphicsPath() {}
3678
3679 void MoveToPoint( wxDouble, wxDouble ) {}
3680 void MoveToPoint( const wxPoint2DDouble& ) {}
3681 void AddLineToPoint( wxDouble, wxDouble ) {}
3682 void AddLineToPoint( const wxPoint2DDouble& ) {}
3683 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3684 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3685 void AddPath( const wxGraphicsPath& ) {}
3686 void CloseSubpath() {}
3687 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3688 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
3689 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3690 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3691
3692 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3693 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3694 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3695 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3696
3697 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3698 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3699 void * GetNativePath() const { return NULL; }
3700 void UnGetNativePath(void *) const {}
3701 void Transform( const wxGraphicsMatrix& ) {}
3702 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3703 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
3704
3705 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3706 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
3707 };
3708 wxGraphicsPath wxNullGraphicsPath;
3709
3710
3711 class wxGraphicsMatrix : public wxGraphicsObject
3712 {
3713 public :
3714 wxGraphicsMatrix() { }
3715 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3716 PyErr_SetString(PyExc_NotImplementedError,
3717 "wx.GraphicsMatrix is not available on this platform.");
3718 }
3719 virtual ~wxGraphicsMatrix() {}
3720 virtual void Concat( const wxGraphicsMatrix & ) {}
3721 virtual void Copy( const wxGraphicsMatrix & ) {}
3722 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3723 wxDouble , wxDouble ) {}
3724 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3725 wxDouble*, wxDouble*, wxDouble*) {}
3726 virtual void Invert() {}
3727 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3728 virtual bool IsIdentity() const { return false; }
3729 virtual void Translate( wxDouble , wxDouble ) {}
3730 virtual void Scale( wxDouble , wxDouble ) {}
3731 virtual void Rotate( wxDouble ) {}
3732 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3733 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
3734 virtual void * GetNativeMatrix() const { return NULL; }
3735 };
3736 wxGraphicsMatrix wxNullGraphicsMatrix;
3737
3738
3739 class wxGraphicsContext : public wxGraphicsObject
3740 {
3741 public:
3742
3743 wxGraphicsContext(wxGraphicsRenderer* ) {
3744 PyErr_SetString(PyExc_NotImplementedError,
3745 "wx.GraphicsContext is not available on this platform.");
3746 }
3747
3748 virtual ~wxGraphicsContext() {}
3749
3750 static wxGraphicsContext* Create() {
3751 PyErr_SetString(PyExc_NotImplementedError,
3752 "wx.GraphicsContext is not available on this platform.");
3753 return NULL;
3754 }
3755 static wxGraphicsContext* Create( const wxWindowDC& ) {
3756 PyErr_SetString(PyExc_NotImplementedError,
3757 "wx.GraphicsContext is not available on this platform.");
3758 return NULL;
3759 }
3760
3761 static wxGraphicsContext* CreateFromNative( void * ) {
3762 PyErr_SetString(PyExc_NotImplementedError,
3763 "wx.GraphicsContext is not available on this platform.");
3764 return NULL;
3765 }
3766
3767 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3768 PyErr_SetString(PyExc_NotImplementedError,
3769 "wx.GraphicsContext is not available on this platform.");
3770 return NULL;
3771 }
3772
3773 static wxGraphicsContext* Create( wxWindow* ) {
3774 PyErr_SetString(PyExc_NotImplementedError,
3775 "wx.GraphicsContext is not available on this platform.");
3776 return NULL;
3777 }
3778
3779 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3780
3781 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3782
3783 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3784
3785 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3786 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3787
3788 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3789 wxDouble xc, wxDouble yc, wxDouble radius,
3790 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
3791
3792 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
3793
3794 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3795 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
3796
3797 virtual void PushState() {}
3798 virtual void PopState() {}
3799 virtual void Clip( const wxRegion & ) {}
3800 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3801 virtual void ResetClip() {}
3802 virtual void * GetNativeContext() { return NULL; }
3803 virtual int GetLogicalFunction() const { return 0; }
3804 virtual bool SetLogicalFunction(int ) {}
3805 virtual void Translate( wxDouble , wxDouble ) {}
3806 virtual void Scale( wxDouble , wxDouble ) {}
3807 virtual void Rotate( wxDouble ) {}
3808 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3809 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3810 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
3811
3812 virtual void SetPen( const wxGraphicsPen& ) {}
3813 void SetPen( const wxPen& ) {}
3814
3815 virtual void SetBrush( const wxGraphicsBrush& ) {}
3816 void SetBrush( const wxBrush& ) {}
3817
3818 virtual void SetFont( const wxGraphicsFont& ) {}
3819 void SetFont( const wxFont&, const wxColour& ) {}
3820
3821 virtual void StrokePath( const wxGraphicsPath & ) {}
3822 virtual void FillPath( const wxGraphicsPath &, int ) {}
3823 virtual void DrawPath( const wxGraphicsPath &, int ) {}
3824
3825 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3826 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3827 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3828 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
3829 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3830 wxDouble *, wxDouble * ) const {}
3831 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3832
3833 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3834 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3835
3836 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3837 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3838 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3839 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3840 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3841 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3842 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3843 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3844 virtual bool ShouldOffset() const { return false; }
3845 };
3846
3847
3848 class wxGraphicsRenderer : public wxObject
3849 {
3850 public :
3851 wxGraphicsRenderer() {
3852 PyErr_SetString(PyExc_NotImplementedError,
3853 "wx.GraphicsRenderer is not available on this platform.");
3854 }
3855
3856 virtual ~wxGraphicsRenderer() {}
3857
3858 static wxGraphicsRenderer* GetDefaultRenderer() {
3859 PyErr_SetString(PyExc_NotImplementedError,
3860 "wx.GraphicsRenderer is not available on this platform.");
3861 return NULL;
3862 }
3863
3864 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3865 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3866 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3867 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3868 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
3869
3870 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3871
3872 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3873 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
3874
3875 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3876 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3877 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3878 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3879 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3880 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3881 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
3882 };
3883
3884
3885
3886 class wxGCDC: public wxWindowDC
3887 {
3888 public:
3889 wxGCDC(const wxWindowDC&) {
3890 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3891 PyErr_SetString(PyExc_NotImplementedError,
3892 "wxGCDC is not available on this platform.");
3893 wxPyEndBlockThreads(blocked);
3894 }
3895
3896 wxGCDC(const wxWindow*) {
3897 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3898 PyErr_SetString(PyExc_NotImplementedError,
3899 "wxGCDC is not available on this platform.");
3900 wxPyEndBlockThreads(blocked);
3901 }
3902
3903 wxGCDC() {
3904 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3905 PyErr_SetString(PyExc_NotImplementedError,
3906 "wxGCDC is not available on this platform.");
3907 wxPyEndBlockThreads(blocked);
3908 }
3909
3910 virtual ~wxGCDC() {}
3911
3912 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3913 void SetGraphicsContext( wxGraphicsContext* ) {}
3914 };
3915
3916 #endif
3917
3918 SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3919 if ( !backgroundBrush.IsNull() )
3920 self->DrawText(str, x, y, backgroundBrush);
3921 else
3922 self->DrawText(str, x, y);
3923 }
3924 SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3925 if ( !backgroundBrush.IsNull() )
3926 self->DrawText(str, x, y, angle, backgroundBrush);
3927 else
3928 self->DrawText(str, x, y, angle);
3929 }
3930 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3931 wxDouble width = 0.0,
3932 height = 0.0;
3933 self->GetTextExtent(text, &width, &height, NULL, NULL);
3934 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3935 PyObject* rv = PyTuple_New(2);
3936 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3937 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3938 return rv;
3939 }
3940 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3941 wxArrayDouble widths;
3942 self->GetPartialTextExtents(text, widths);
3943 return widths;
3944 }
3945 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3946 size_t c1, c2, count;
3947 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3948 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3949
3950 if ( beginP != NULL && endP != NULL )
3951 {
3952 count = wxMin(c1, c2);
3953 self->StrokeLines(count, beginP, endP);
3954 }
3955 delete [] beginP;
3956 delete [] endP;
3957 }
3958
3959 #include "wx/dcgraph.h"
3960
3961
3962 #include <wx/overlay.h>
3963
3964
3965
3966 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3967 self->AddColour(name, wxColour(red, green, blue));
3968 }
3969
3970 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3971 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3972 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3973 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3974
3975
3976 #include <wx/effects.h>
3977
3978
3979 #include "wx/renderer.h"
3980
3981
3982 SWIGINTERNINLINE PyObject*
3983 SWIG_From_bool (bool value)
3984 {
3985 return PyBool_FromLong(value ? 1 : 0);
3986 }
3987
3988
3989 #include "wx/wxPython/pseudodc.h"
3990
3991 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3992 wxRect rect;
3993 self->GetIdBounds(id, rect);
3994 return rect;
3995 }
3996 #ifdef __cplusplus
3997 extern "C" {
3998 #endif
3999 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4000 PyObject *resultobj = 0;
4001 wxGDIObject *result = 0 ;
4002
4003 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4004 {
4005 if (!wxPyCheckForApp()) SWIG_fail;
4006 PyThreadState* __tstate = wxPyBeginAllowThreads();
4007 result = (wxGDIObject *)new wxGDIObject();
4008 wxPyEndAllowThreads(__tstate);
4009 if (PyErr_Occurred()) SWIG_fail;
4010 }
4011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4012 return resultobj;
4013 fail:
4014 return NULL;
4015 }
4016
4017
4018 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4019 PyObject *resultobj = 0;
4020 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4021 void *argp1 = 0 ;
4022 int res1 = 0 ;
4023 PyObject *swig_obj[1] ;
4024
4025 if (!args) SWIG_fail;
4026 swig_obj[0] = args;
4027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4028 if (!SWIG_IsOK(res1)) {
4029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4030 }
4031 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4032 {
4033 PyThreadState* __tstate = wxPyBeginAllowThreads();
4034 delete arg1;
4035
4036 wxPyEndAllowThreads(__tstate);
4037 if (PyErr_Occurred()) SWIG_fail;
4038 }
4039 resultobj = SWIG_Py_Void();
4040 return resultobj;
4041 fail:
4042 return NULL;
4043 }
4044
4045
4046 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4047 PyObject *resultobj = 0;
4048 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4049 bool result;
4050 void *argp1 = 0 ;
4051 int res1 = 0 ;
4052 PyObject *swig_obj[1] ;
4053
4054 if (!args) SWIG_fail;
4055 swig_obj[0] = args;
4056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4057 if (!SWIG_IsOK(res1)) {
4058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4059 }
4060 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4061 {
4062 PyThreadState* __tstate = wxPyBeginAllowThreads();
4063 result = (bool)(arg1)->IsNull();
4064 wxPyEndAllowThreads(__tstate);
4065 if (PyErr_Occurred()) SWIG_fail;
4066 }
4067 {
4068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4069 }
4070 return resultobj;
4071 fail:
4072 return NULL;
4073 }
4074
4075
4076 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4077 PyObject *obj;
4078 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4079 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4080 return SWIG_Py_Void();
4081 }
4082
4083 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4084 return SWIG_Python_InitShadowInstance(args);
4085 }
4086
4087 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4088 PyObject *resultobj = 0;
4089 byte arg1 = (byte) 0 ;
4090 byte arg2 = (byte) 0 ;
4091 byte arg3 = (byte) 0 ;
4092 byte arg4 = (byte) wxALPHA_OPAQUE ;
4093 wxColour *result = 0 ;
4094 unsigned char val1 ;
4095 int ecode1 = 0 ;
4096 unsigned char val2 ;
4097 int ecode2 = 0 ;
4098 unsigned char val3 ;
4099 int ecode3 = 0 ;
4100 unsigned char val4 ;
4101 int ecode4 = 0 ;
4102 PyObject * obj0 = 0 ;
4103 PyObject * obj1 = 0 ;
4104 PyObject * obj2 = 0 ;
4105 PyObject * obj3 = 0 ;
4106 char * kwnames[] = {
4107 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4108 };
4109
4110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4111 if (obj0) {
4112 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4113 if (!SWIG_IsOK(ecode1)) {
4114 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4115 }
4116 arg1 = static_cast< byte >(val1);
4117 }
4118 if (obj1) {
4119 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4120 if (!SWIG_IsOK(ecode2)) {
4121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4122 }
4123 arg2 = static_cast< byte >(val2);
4124 }
4125 if (obj2) {
4126 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4127 if (!SWIG_IsOK(ecode3)) {
4128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4129 }
4130 arg3 = static_cast< byte >(val3);
4131 }
4132 if (obj3) {
4133 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4134 if (!SWIG_IsOK(ecode4)) {
4135 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4136 }
4137 arg4 = static_cast< byte >(val4);
4138 }
4139 {
4140 PyThreadState* __tstate = wxPyBeginAllowThreads();
4141 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4142 wxPyEndAllowThreads(__tstate);
4143 if (PyErr_Occurred()) SWIG_fail;
4144 }
4145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4146 return resultobj;
4147 fail:
4148 return NULL;
4149 }
4150
4151
4152 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4153 PyObject *resultobj = 0;
4154 wxString *arg1 = 0 ;
4155 wxColour *result = 0 ;
4156 bool temp1 = false ;
4157 PyObject * obj0 = 0 ;
4158 char * kwnames[] = {
4159 (char *) "colorName", NULL
4160 };
4161
4162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4163 {
4164 arg1 = wxString_in_helper(obj0);
4165 if (arg1 == NULL) SWIG_fail;
4166 temp1 = true;
4167 }
4168 {
4169 if (!wxPyCheckForApp()) SWIG_fail;
4170 PyThreadState* __tstate = wxPyBeginAllowThreads();
4171 result = (wxColour *)new wxColour((wxString const &)*arg1);
4172 wxPyEndAllowThreads(__tstate);
4173 if (PyErr_Occurred()) SWIG_fail;
4174 }
4175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4176 {
4177 if (temp1)
4178 delete arg1;
4179 }
4180 return resultobj;
4181 fail:
4182 {
4183 if (temp1)
4184 delete arg1;
4185 }
4186 return NULL;
4187 }
4188
4189
4190 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4191 PyObject *resultobj = 0;
4192 unsigned long arg1 ;
4193 wxColour *result = 0 ;
4194 unsigned long val1 ;
4195 int ecode1 = 0 ;
4196 PyObject * obj0 = 0 ;
4197 char * kwnames[] = {
4198 (char *) "colRGB", NULL
4199 };
4200
4201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4202 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4203 if (!SWIG_IsOK(ecode1)) {
4204 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4205 }
4206 arg1 = static_cast< unsigned long >(val1);
4207 {
4208 PyThreadState* __tstate = wxPyBeginAllowThreads();
4209 result = (wxColour *)new wxColour(arg1);
4210 wxPyEndAllowThreads(__tstate);
4211 if (PyErr_Occurred()) SWIG_fail;
4212 }
4213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4214 return resultobj;
4215 fail:
4216 return NULL;
4217 }
4218
4219
4220 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4221 PyObject *resultobj = 0;
4222 wxColour *arg1 = (wxColour *) 0 ;
4223 void *argp1 = 0 ;
4224 int res1 = 0 ;
4225 PyObject *swig_obj[1] ;
4226
4227 if (!args) SWIG_fail;
4228 swig_obj[0] = args;
4229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4230 if (!SWIG_IsOK(res1)) {
4231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4232 }
4233 arg1 = reinterpret_cast< wxColour * >(argp1);
4234 {
4235 PyThreadState* __tstate = wxPyBeginAllowThreads();
4236 delete arg1;
4237
4238 wxPyEndAllowThreads(__tstate);
4239 if (PyErr_Occurred()) SWIG_fail;
4240 }
4241 resultobj = SWIG_Py_Void();
4242 return resultobj;
4243 fail:
4244 return NULL;
4245 }
4246
4247
4248 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4249 PyObject *resultobj = 0;
4250 wxColour *arg1 = (wxColour *) 0 ;
4251 byte result;
4252 void *argp1 = 0 ;
4253 int res1 = 0 ;
4254 PyObject *swig_obj[1] ;
4255
4256 if (!args) SWIG_fail;
4257 swig_obj[0] = args;
4258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4259 if (!SWIG_IsOK(res1)) {
4260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4261 }
4262 arg1 = reinterpret_cast< wxColour * >(argp1);
4263 {
4264 PyThreadState* __tstate = wxPyBeginAllowThreads();
4265 result = (byte)(arg1)->Red();
4266 wxPyEndAllowThreads(__tstate);
4267 if (PyErr_Occurred()) SWIG_fail;
4268 }
4269 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4270 return resultobj;
4271 fail:
4272 return NULL;
4273 }
4274
4275
4276 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4277 PyObject *resultobj = 0;
4278 wxColour *arg1 = (wxColour *) 0 ;
4279 byte result;
4280 void *argp1 = 0 ;
4281 int res1 = 0 ;
4282 PyObject *swig_obj[1] ;
4283
4284 if (!args) SWIG_fail;
4285 swig_obj[0] = args;
4286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4287 if (!SWIG_IsOK(res1)) {
4288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4289 }
4290 arg1 = reinterpret_cast< wxColour * >(argp1);
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 result = (byte)(arg1)->Green();
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4298 return resultobj;
4299 fail:
4300 return NULL;
4301 }
4302
4303
4304 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4305 PyObject *resultobj = 0;
4306 wxColour *arg1 = (wxColour *) 0 ;
4307 byte result;
4308 void *argp1 = 0 ;
4309 int res1 = 0 ;
4310 PyObject *swig_obj[1] ;
4311
4312 if (!args) SWIG_fail;
4313 swig_obj[0] = args;
4314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4315 if (!SWIG_IsOK(res1)) {
4316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4317 }
4318 arg1 = reinterpret_cast< wxColour * >(argp1);
4319 {
4320 PyThreadState* __tstate = wxPyBeginAllowThreads();
4321 result = (byte)(arg1)->Blue();
4322 wxPyEndAllowThreads(__tstate);
4323 if (PyErr_Occurred()) SWIG_fail;
4324 }
4325 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4326 return resultobj;
4327 fail:
4328 return NULL;
4329 }
4330
4331
4332 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4333 PyObject *resultobj = 0;
4334 wxColour *arg1 = (wxColour *) 0 ;
4335 byte result;
4336 void *argp1 = 0 ;
4337 int res1 = 0 ;
4338 PyObject *swig_obj[1] ;
4339
4340 if (!args) SWIG_fail;
4341 swig_obj[0] = args;
4342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4343 if (!SWIG_IsOK(res1)) {
4344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4345 }
4346 arg1 = reinterpret_cast< wxColour * >(argp1);
4347 {
4348 PyThreadState* __tstate = wxPyBeginAllowThreads();
4349 result = (byte)(arg1)->Alpha();
4350 wxPyEndAllowThreads(__tstate);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 }
4353 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4354 return resultobj;
4355 fail:
4356 return NULL;
4357 }
4358
4359
4360 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4361 PyObject *resultobj = 0;
4362 wxColour *arg1 = (wxColour *) 0 ;
4363 bool result;
4364 void *argp1 = 0 ;
4365 int res1 = 0 ;
4366 PyObject *swig_obj[1] ;
4367
4368 if (!args) SWIG_fail;
4369 swig_obj[0] = args;
4370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4371 if (!SWIG_IsOK(res1)) {
4372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4373 }
4374 arg1 = reinterpret_cast< wxColour * >(argp1);
4375 {
4376 PyThreadState* __tstate = wxPyBeginAllowThreads();
4377 result = (bool)(arg1)->IsOk();
4378 wxPyEndAllowThreads(__tstate);
4379 if (PyErr_Occurred()) SWIG_fail;
4380 }
4381 {
4382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4383 }
4384 return resultobj;
4385 fail:
4386 return NULL;
4387 }
4388
4389
4390 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4391 PyObject *resultobj = 0;
4392 wxColour *arg1 = (wxColour *) 0 ;
4393 byte arg2 ;
4394 byte arg3 ;
4395 byte arg4 ;
4396 byte arg5 = (byte) wxALPHA_OPAQUE ;
4397 void *argp1 = 0 ;
4398 int res1 = 0 ;
4399 unsigned char val2 ;
4400 int ecode2 = 0 ;
4401 unsigned char val3 ;
4402 int ecode3 = 0 ;
4403 unsigned char val4 ;
4404 int ecode4 = 0 ;
4405 unsigned char val5 ;
4406 int ecode5 = 0 ;
4407 PyObject * obj0 = 0 ;
4408 PyObject * obj1 = 0 ;
4409 PyObject * obj2 = 0 ;
4410 PyObject * obj3 = 0 ;
4411 PyObject * obj4 = 0 ;
4412 char * kwnames[] = {
4413 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4414 };
4415
4416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4418 if (!SWIG_IsOK(res1)) {
4419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4420 }
4421 arg1 = reinterpret_cast< wxColour * >(argp1);
4422 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4423 if (!SWIG_IsOK(ecode2)) {
4424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4425 }
4426 arg2 = static_cast< byte >(val2);
4427 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4428 if (!SWIG_IsOK(ecode3)) {
4429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4430 }
4431 arg3 = static_cast< byte >(val3);
4432 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4433 if (!SWIG_IsOK(ecode4)) {
4434 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4435 }
4436 arg4 = static_cast< byte >(val4);
4437 if (obj4) {
4438 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4439 if (!SWIG_IsOK(ecode5)) {
4440 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4441 }
4442 arg5 = static_cast< byte >(val5);
4443 }
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 (arg1)->Set(arg2,arg3,arg4,arg5);
4447 wxPyEndAllowThreads(__tstate);
4448 if (PyErr_Occurred()) SWIG_fail;
4449 }
4450 resultobj = SWIG_Py_Void();
4451 return resultobj;
4452 fail:
4453 return NULL;
4454 }
4455
4456
4457 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4458 PyObject *resultobj = 0;
4459 wxColour *arg1 = (wxColour *) 0 ;
4460 unsigned long arg2 ;
4461 void *argp1 = 0 ;
4462 int res1 = 0 ;
4463 unsigned long val2 ;
4464 int ecode2 = 0 ;
4465 PyObject * obj0 = 0 ;
4466 PyObject * obj1 = 0 ;
4467 char * kwnames[] = {
4468 (char *) "self",(char *) "colRGB", NULL
4469 };
4470
4471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4473 if (!SWIG_IsOK(res1)) {
4474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4475 }
4476 arg1 = reinterpret_cast< wxColour * >(argp1);
4477 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4478 if (!SWIG_IsOK(ecode2)) {
4479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4480 }
4481 arg2 = static_cast< unsigned long >(val2);
4482 {
4483 PyThreadState* __tstate = wxPyBeginAllowThreads();
4484 (arg1)->Set(arg2);
4485 wxPyEndAllowThreads(__tstate);
4486 if (PyErr_Occurred()) SWIG_fail;
4487 }
4488 resultobj = SWIG_Py_Void();
4489 return resultobj;
4490 fail:
4491 return NULL;
4492 }
4493
4494
4495 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4496 PyObject *resultobj = 0;
4497 wxColour *arg1 = (wxColour *) 0 ;
4498 wxString *arg2 = 0 ;
4499 void *argp1 = 0 ;
4500 int res1 = 0 ;
4501 bool temp2 = false ;
4502 PyObject * obj0 = 0 ;
4503 PyObject * obj1 = 0 ;
4504 char * kwnames[] = {
4505 (char *) "self",(char *) "colourName", NULL
4506 };
4507
4508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4510 if (!SWIG_IsOK(res1)) {
4511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4512 }
4513 arg1 = reinterpret_cast< wxColour * >(argp1);
4514 {
4515 arg2 = wxString_in_helper(obj1);
4516 if (arg2 == NULL) SWIG_fail;
4517 temp2 = true;
4518 }
4519 {
4520 PyThreadState* __tstate = wxPyBeginAllowThreads();
4521 (arg1)->Set((wxString const &)*arg2);
4522 wxPyEndAllowThreads(__tstate);
4523 if (PyErr_Occurred()) SWIG_fail;
4524 }
4525 resultobj = SWIG_Py_Void();
4526 {
4527 if (temp2)
4528 delete arg2;
4529 }
4530 return resultobj;
4531 fail:
4532 {
4533 if (temp2)
4534 delete arg2;
4535 }
4536 return NULL;
4537 }
4538
4539
4540 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4541 PyObject *resultobj = 0;
4542 wxColour *arg1 = (wxColour *) 0 ;
4543 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4544 wxString result;
4545 void *argp1 = 0 ;
4546 int res1 = 0 ;
4547 long val2 ;
4548 int ecode2 = 0 ;
4549 PyObject * obj0 = 0 ;
4550 PyObject * obj1 = 0 ;
4551 char * kwnames[] = {
4552 (char *) "self",(char *) "flags", NULL
4553 };
4554
4555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4557 if (!SWIG_IsOK(res1)) {
4558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4559 }
4560 arg1 = reinterpret_cast< wxColour * >(argp1);
4561 if (obj1) {
4562 ecode2 = SWIG_AsVal_long(obj1, &val2);
4563 if (!SWIG_IsOK(ecode2)) {
4564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4565 }
4566 arg2 = static_cast< long >(val2);
4567 }
4568 {
4569 PyThreadState* __tstate = wxPyBeginAllowThreads();
4570 result = ((wxColour const *)arg1)->GetAsString(arg2);
4571 wxPyEndAllowThreads(__tstate);
4572 if (PyErr_Occurred()) SWIG_fail;
4573 }
4574 {
4575 #if wxUSE_UNICODE
4576 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4577 #else
4578 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4579 #endif
4580 }
4581 return resultobj;
4582 fail:
4583 return NULL;
4584 }
4585
4586
4587 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4588 PyObject *resultobj = 0;
4589 wxColour *arg1 = (wxColour *) 0 ;
4590 long result;
4591 void *argp1 = 0 ;
4592 int res1 = 0 ;
4593 PyObject *swig_obj[1] ;
4594
4595 if (!args) SWIG_fail;
4596 swig_obj[0] = args;
4597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4598 if (!SWIG_IsOK(res1)) {
4599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4600 }
4601 arg1 = reinterpret_cast< wxColour * >(argp1);
4602 {
4603 PyThreadState* __tstate = wxPyBeginAllowThreads();
4604 result = (long)((wxColour const *)arg1)->GetPixel();
4605 wxPyEndAllowThreads(__tstate);
4606 if (PyErr_Occurred()) SWIG_fail;
4607 }
4608 resultobj = SWIG_From_long(static_cast< long >(result));
4609 return resultobj;
4610 fail:
4611 return NULL;
4612 }
4613
4614
4615 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4616 PyObject *resultobj = 0;
4617 wxColour *arg1 = (wxColour *) 0 ;
4618 PyObject *arg2 = (PyObject *) 0 ;
4619 bool result;
4620 void *argp1 = 0 ;
4621 int res1 = 0 ;
4622 PyObject * obj0 = 0 ;
4623 PyObject * obj1 = 0 ;
4624 char * kwnames[] = {
4625 (char *) "self",(char *) "other", NULL
4626 };
4627
4628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4630 if (!SWIG_IsOK(res1)) {
4631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4632 }
4633 arg1 = reinterpret_cast< wxColour * >(argp1);
4634 arg2 = obj1;
4635 {
4636 result = (bool)wxColour___eq__(arg1,arg2);
4637 if (PyErr_Occurred()) SWIG_fail;
4638 }
4639 {
4640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4641 }
4642 return resultobj;
4643 fail:
4644 return NULL;
4645 }
4646
4647
4648 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4649 PyObject *resultobj = 0;
4650 wxColour *arg1 = (wxColour *) 0 ;
4651 PyObject *arg2 = (PyObject *) 0 ;
4652 bool result;
4653 void *argp1 = 0 ;
4654 int res1 = 0 ;
4655 PyObject * obj0 = 0 ;
4656 PyObject * obj1 = 0 ;
4657 char * kwnames[] = {
4658 (char *) "self",(char *) "other", NULL
4659 };
4660
4661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4663 if (!SWIG_IsOK(res1)) {
4664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4665 }
4666 arg1 = reinterpret_cast< wxColour * >(argp1);
4667 arg2 = obj1;
4668 {
4669 result = (bool)wxColour___ne__(arg1,arg2);
4670 if (PyErr_Occurred()) SWIG_fail;
4671 }
4672 {
4673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4674 }
4675 return resultobj;
4676 fail:
4677 return NULL;
4678 }
4679
4680
4681 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4682 PyObject *resultobj = 0;
4683 wxColour *arg1 = (wxColour *) 0 ;
4684 bool arg2 = (bool) false ;
4685 PyObject *result = 0 ;
4686 void *argp1 = 0 ;
4687 int res1 = 0 ;
4688 bool val2 ;
4689 int ecode2 = 0 ;
4690 PyObject * obj0 = 0 ;
4691 PyObject * obj1 = 0 ;
4692 char * kwnames[] = {
4693 (char *) "self",(char *) "includeAlpha", NULL
4694 };
4695
4696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4698 if (!SWIG_IsOK(res1)) {
4699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4700 }
4701 arg1 = reinterpret_cast< wxColour * >(argp1);
4702 if (obj1) {
4703 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4704 if (!SWIG_IsOK(ecode2)) {
4705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4706 }
4707 arg2 = static_cast< bool >(val2);
4708 }
4709 {
4710 result = (PyObject *)wxColour_Get(arg1,arg2);
4711 if (PyErr_Occurred()) SWIG_fail;
4712 }
4713 resultobj = result;
4714 return resultobj;
4715 fail:
4716 return NULL;
4717 }
4718
4719
4720 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4721 PyObject *resultobj = 0;
4722 wxColour *arg1 = (wxColour *) 0 ;
4723 unsigned long result;
4724 void *argp1 = 0 ;
4725 int res1 = 0 ;
4726 PyObject *swig_obj[1] ;
4727
4728 if (!args) SWIG_fail;
4729 swig_obj[0] = args;
4730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4731 if (!SWIG_IsOK(res1)) {
4732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4733 }
4734 arg1 = reinterpret_cast< wxColour * >(argp1);
4735 {
4736 result = (unsigned long)wxColour_GetRGB(arg1);
4737 if (PyErr_Occurred()) SWIG_fail;
4738 }
4739 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4740 return resultobj;
4741 fail:
4742 return NULL;
4743 }
4744
4745
4746 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4747 PyObject *obj;
4748 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4749 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4750 return SWIG_Py_Void();
4751 }
4752
4753 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4754 return SWIG_Python_InitShadowInstance(args);
4755 }
4756
4757 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4758 PyObject *resultobj = 0;
4759 int arg1 ;
4760 unsigned char *arg2 = (unsigned char *) 0 ;
4761 unsigned char *arg3 = (unsigned char *) 0 ;
4762 unsigned char *arg4 = (unsigned char *) 0 ;
4763 wxPalette *result = 0 ;
4764 int val1 ;
4765 int ecode1 = 0 ;
4766 void *argp2 = 0 ;
4767 int res2 = 0 ;
4768 void *argp3 = 0 ;
4769 int res3 = 0 ;
4770 void *argp4 = 0 ;
4771 int res4 = 0 ;
4772 PyObject * obj0 = 0 ;
4773 PyObject * obj1 = 0 ;
4774 PyObject * obj2 = 0 ;
4775 PyObject * obj3 = 0 ;
4776 char * kwnames[] = {
4777 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4778 };
4779
4780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4781 ecode1 = SWIG_AsVal_int(obj0, &val1);
4782 if (!SWIG_IsOK(ecode1)) {
4783 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4784 }
4785 arg1 = static_cast< int >(val1);
4786 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4787 if (!SWIG_IsOK(res2)) {
4788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4789 }
4790 arg2 = reinterpret_cast< unsigned char * >(argp2);
4791 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4792 if (!SWIG_IsOK(res3)) {
4793 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4794 }
4795 arg3 = reinterpret_cast< unsigned char * >(argp3);
4796 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4797 if (!SWIG_IsOK(res4)) {
4798 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4799 }
4800 arg4 = reinterpret_cast< unsigned char * >(argp4);
4801 {
4802 if (!wxPyCheckForApp()) SWIG_fail;
4803 PyThreadState* __tstate = wxPyBeginAllowThreads();
4804 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4805 wxPyEndAllowThreads(__tstate);
4806 if (PyErr_Occurred()) SWIG_fail;
4807 }
4808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4809 return resultobj;
4810 fail:
4811 return NULL;
4812 }
4813
4814
4815 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4816 PyObject *resultobj = 0;
4817 wxPalette *arg1 = (wxPalette *) 0 ;
4818 void *argp1 = 0 ;
4819 int res1 = 0 ;
4820 PyObject *swig_obj[1] ;
4821
4822 if (!args) SWIG_fail;
4823 swig_obj[0] = args;
4824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4825 if (!SWIG_IsOK(res1)) {
4826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4827 }
4828 arg1 = reinterpret_cast< wxPalette * >(argp1);
4829 {
4830 PyThreadState* __tstate = wxPyBeginAllowThreads();
4831 delete arg1;
4832
4833 wxPyEndAllowThreads(__tstate);
4834 if (PyErr_Occurred()) SWIG_fail;
4835 }
4836 resultobj = SWIG_Py_Void();
4837 return resultobj;
4838 fail:
4839 return NULL;
4840 }
4841
4842
4843 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4844 PyObject *resultobj = 0;
4845 wxPalette *arg1 = (wxPalette *) 0 ;
4846 byte arg2 ;
4847 byte arg3 ;
4848 byte arg4 ;
4849 int result;
4850 void *argp1 = 0 ;
4851 int res1 = 0 ;
4852 unsigned char val2 ;
4853 int ecode2 = 0 ;
4854 unsigned char val3 ;
4855 int ecode3 = 0 ;
4856 unsigned char val4 ;
4857 int ecode4 = 0 ;
4858 PyObject * obj0 = 0 ;
4859 PyObject * obj1 = 0 ;
4860 PyObject * obj2 = 0 ;
4861 PyObject * obj3 = 0 ;
4862 char * kwnames[] = {
4863 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4864 };
4865
4866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4868 if (!SWIG_IsOK(res1)) {
4869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4870 }
4871 arg1 = reinterpret_cast< wxPalette * >(argp1);
4872 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4873 if (!SWIG_IsOK(ecode2)) {
4874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4875 }
4876 arg2 = static_cast< byte >(val2);
4877 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4878 if (!SWIG_IsOK(ecode3)) {
4879 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4880 }
4881 arg3 = static_cast< byte >(val3);
4882 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4883 if (!SWIG_IsOK(ecode4)) {
4884 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4885 }
4886 arg4 = static_cast< byte >(val4);
4887 {
4888 PyThreadState* __tstate = wxPyBeginAllowThreads();
4889 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4890 wxPyEndAllowThreads(__tstate);
4891 if (PyErr_Occurred()) SWIG_fail;
4892 }
4893 resultobj = SWIG_From_int(static_cast< int >(result));
4894 return resultobj;
4895 fail:
4896 return NULL;
4897 }
4898
4899
4900 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4901 PyObject *resultobj = 0;
4902 wxPalette *arg1 = (wxPalette *) 0 ;
4903 int arg2 ;
4904 byte *arg3 = (byte *) 0 ;
4905 byte *arg4 = (byte *) 0 ;
4906 byte *arg5 = (byte *) 0 ;
4907 bool result;
4908 void *argp1 = 0 ;
4909 int res1 = 0 ;
4910 int val2 ;
4911 int ecode2 = 0 ;
4912 byte temp3 ;
4913 int res3 = SWIG_TMPOBJ ;
4914 byte temp4 ;
4915 int res4 = SWIG_TMPOBJ ;
4916 byte temp5 ;
4917 int res5 = SWIG_TMPOBJ ;
4918 PyObject * obj0 = 0 ;
4919 PyObject * obj1 = 0 ;
4920 char * kwnames[] = {
4921 (char *) "self",(char *) "pixel", NULL
4922 };
4923
4924 arg3 = &temp3;
4925 arg4 = &temp4;
4926 arg5 = &temp5;
4927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4929 if (!SWIG_IsOK(res1)) {
4930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4931 }
4932 arg1 = reinterpret_cast< wxPalette * >(argp1);
4933 ecode2 = SWIG_AsVal_int(obj1, &val2);
4934 if (!SWIG_IsOK(ecode2)) {
4935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4936 }
4937 arg2 = static_cast< int >(val2);
4938 {
4939 PyThreadState* __tstate = wxPyBeginAllowThreads();
4940 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4941 wxPyEndAllowThreads(__tstate);
4942 if (PyErr_Occurred()) SWIG_fail;
4943 }
4944 {
4945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4946 }
4947 if (SWIG_IsTmpObj(res3)) {
4948 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4949 } else {
4950 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4951 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4952 }
4953 if (SWIG_IsTmpObj(res4)) {
4954 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4955 } else {
4956 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4957 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4958 }
4959 if (SWIG_IsTmpObj(res5)) {
4960 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4961 } else {
4962 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4963 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4964 }
4965 return resultobj;
4966 fail:
4967 return NULL;
4968 }
4969
4970
4971 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4972 PyObject *resultobj = 0;
4973 wxPalette *arg1 = (wxPalette *) 0 ;
4974 int result;
4975 void *argp1 = 0 ;
4976 int res1 = 0 ;
4977 PyObject *swig_obj[1] ;
4978
4979 if (!args) SWIG_fail;
4980 swig_obj[0] = args;
4981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4982 if (!SWIG_IsOK(res1)) {
4983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4984 }
4985 arg1 = reinterpret_cast< wxPalette * >(argp1);
4986 {
4987 PyThreadState* __tstate = wxPyBeginAllowThreads();
4988 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4989 wxPyEndAllowThreads(__tstate);
4990 if (PyErr_Occurred()) SWIG_fail;
4991 }
4992 resultobj = SWIG_From_int(static_cast< int >(result));
4993 return resultobj;
4994 fail:
4995 return NULL;
4996 }
4997
4998
4999 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5000 PyObject *resultobj = 0;
5001 wxPalette *arg1 = (wxPalette *) 0 ;
5002 bool result;
5003 void *argp1 = 0 ;
5004 int res1 = 0 ;
5005 PyObject *swig_obj[1] ;
5006
5007 if (!args) SWIG_fail;
5008 swig_obj[0] = args;
5009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5010 if (!SWIG_IsOK(res1)) {
5011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
5012 }
5013 arg1 = reinterpret_cast< wxPalette * >(argp1);
5014 {
5015 PyThreadState* __tstate = wxPyBeginAllowThreads();
5016 result = (bool)(arg1)->IsOk();
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) SWIG_fail;
5019 }
5020 {
5021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5022 }
5023 return resultobj;
5024 fail:
5025 return NULL;
5026 }
5027
5028
5029 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5030 PyObject *obj;
5031 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5032 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5033 return SWIG_Py_Void();
5034 }
5035
5036 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5037 return SWIG_Python_InitShadowInstance(args);
5038 }
5039
5040 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5041 PyObject *resultobj = 0;
5042 wxColour *arg1 = 0 ;
5043 int arg2 = (int) 1 ;
5044 int arg3 = (int) wxSOLID ;
5045 wxPen *result = 0 ;
5046 wxColour temp1 ;
5047 int val2 ;
5048 int ecode2 = 0 ;
5049 int val3 ;
5050 int ecode3 = 0 ;
5051 PyObject * obj0 = 0 ;
5052 PyObject * obj1 = 0 ;
5053 PyObject * obj2 = 0 ;
5054 char * kwnames[] = {
5055 (char *) "colour",(char *) "width",(char *) "style", NULL
5056 };
5057
5058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5059 {
5060 arg1 = &temp1;
5061 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5062 }
5063 if (obj1) {
5064 ecode2 = SWIG_AsVal_int(obj1, &val2);
5065 if (!SWIG_IsOK(ecode2)) {
5066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5067 }
5068 arg2 = static_cast< int >(val2);
5069 }
5070 if (obj2) {
5071 ecode3 = SWIG_AsVal_int(obj2, &val3);
5072 if (!SWIG_IsOK(ecode3)) {
5073 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5074 }
5075 arg3 = static_cast< int >(val3);
5076 }
5077 {
5078 if (!wxPyCheckForApp()) SWIG_fail;
5079 PyThreadState* __tstate = wxPyBeginAllowThreads();
5080 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5081 wxPyEndAllowThreads(__tstate);
5082 if (PyErr_Occurred()) SWIG_fail;
5083 }
5084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5085 return resultobj;
5086 fail:
5087 return NULL;
5088 }
5089
5090
5091 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5092 PyObject *resultobj = 0;
5093 wxPen *arg1 = (wxPen *) 0 ;
5094 void *argp1 = 0 ;
5095 int res1 = 0 ;
5096 PyObject *swig_obj[1] ;
5097
5098 if (!args) SWIG_fail;
5099 swig_obj[0] = args;
5100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5101 if (!SWIG_IsOK(res1)) {
5102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5103 }
5104 arg1 = reinterpret_cast< wxPen * >(argp1);
5105 {
5106 PyThreadState* __tstate = wxPyBeginAllowThreads();
5107 delete arg1;
5108
5109 wxPyEndAllowThreads(__tstate);
5110 if (PyErr_Occurred()) SWIG_fail;
5111 }
5112 resultobj = SWIG_Py_Void();
5113 return resultobj;
5114 fail:
5115 return NULL;
5116 }
5117
5118
5119 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5120 PyObject *resultobj = 0;
5121 wxPen *arg1 = (wxPen *) 0 ;
5122 int result;
5123 void *argp1 = 0 ;
5124 int res1 = 0 ;
5125 PyObject *swig_obj[1] ;
5126
5127 if (!args) SWIG_fail;
5128 swig_obj[0] = args;
5129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5130 if (!SWIG_IsOK(res1)) {
5131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5132 }
5133 arg1 = reinterpret_cast< wxPen * >(argp1);
5134 {
5135 PyThreadState* __tstate = wxPyBeginAllowThreads();
5136 result = (int)(arg1)->GetCap();
5137 wxPyEndAllowThreads(__tstate);
5138 if (PyErr_Occurred()) SWIG_fail;
5139 }
5140 resultobj = SWIG_From_int(static_cast< int >(result));
5141 return resultobj;
5142 fail:
5143 return NULL;
5144 }
5145
5146
5147 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5148 PyObject *resultobj = 0;
5149 wxPen *arg1 = (wxPen *) 0 ;
5150 wxColour result;
5151 void *argp1 = 0 ;
5152 int res1 = 0 ;
5153 PyObject *swig_obj[1] ;
5154
5155 if (!args) SWIG_fail;
5156 swig_obj[0] = args;
5157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5158 if (!SWIG_IsOK(res1)) {
5159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5160 }
5161 arg1 = reinterpret_cast< wxPen * >(argp1);
5162 {
5163 PyThreadState* __tstate = wxPyBeginAllowThreads();
5164 result = (arg1)->GetColour();
5165 wxPyEndAllowThreads(__tstate);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 }
5168 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5169 return resultobj;
5170 fail:
5171 return NULL;
5172 }
5173
5174
5175 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5176 PyObject *resultobj = 0;
5177 wxPen *arg1 = (wxPen *) 0 ;
5178 int result;
5179 void *argp1 = 0 ;
5180 int res1 = 0 ;
5181 PyObject *swig_obj[1] ;
5182
5183 if (!args) SWIG_fail;
5184 swig_obj[0] = args;
5185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5186 if (!SWIG_IsOK(res1)) {
5187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5188 }
5189 arg1 = reinterpret_cast< wxPen * >(argp1);
5190 {
5191 PyThreadState* __tstate = wxPyBeginAllowThreads();
5192 result = (int)(arg1)->GetJoin();
5193 wxPyEndAllowThreads(__tstate);
5194 if (PyErr_Occurred()) SWIG_fail;
5195 }
5196 resultobj = SWIG_From_int(static_cast< int >(result));
5197 return resultobj;
5198 fail:
5199 return NULL;
5200 }
5201
5202
5203 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5204 PyObject *resultobj = 0;
5205 wxPen *arg1 = (wxPen *) 0 ;
5206 int result;
5207 void *argp1 = 0 ;
5208 int res1 = 0 ;
5209 PyObject *swig_obj[1] ;
5210
5211 if (!args) SWIG_fail;
5212 swig_obj[0] = args;
5213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5214 if (!SWIG_IsOK(res1)) {
5215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5216 }
5217 arg1 = reinterpret_cast< wxPen * >(argp1);
5218 {
5219 PyThreadState* __tstate = wxPyBeginAllowThreads();
5220 result = (int)(arg1)->GetStyle();
5221 wxPyEndAllowThreads(__tstate);
5222 if (PyErr_Occurred()) SWIG_fail;
5223 }
5224 resultobj = SWIG_From_int(static_cast< int >(result));
5225 return resultobj;
5226 fail:
5227 return NULL;
5228 }
5229
5230
5231 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5232 PyObject *resultobj = 0;
5233 wxPen *arg1 = (wxPen *) 0 ;
5234 int result;
5235 void *argp1 = 0 ;
5236 int res1 = 0 ;
5237 PyObject *swig_obj[1] ;
5238
5239 if (!args) SWIG_fail;
5240 swig_obj[0] = args;
5241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5242 if (!SWIG_IsOK(res1)) {
5243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5244 }
5245 arg1 = reinterpret_cast< wxPen * >(argp1);
5246 {
5247 PyThreadState* __tstate = wxPyBeginAllowThreads();
5248 result = (int)(arg1)->GetWidth();
5249 wxPyEndAllowThreads(__tstate);
5250 if (PyErr_Occurred()) SWIG_fail;
5251 }
5252 resultobj = SWIG_From_int(static_cast< int >(result));
5253 return resultobj;
5254 fail:
5255 return NULL;
5256 }
5257
5258
5259 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5260 PyObject *resultobj = 0;
5261 wxPen *arg1 = (wxPen *) 0 ;
5262 bool result;
5263 void *argp1 = 0 ;
5264 int res1 = 0 ;
5265 PyObject *swig_obj[1] ;
5266
5267 if (!args) SWIG_fail;
5268 swig_obj[0] = args;
5269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5270 if (!SWIG_IsOK(res1)) {
5271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5272 }
5273 arg1 = reinterpret_cast< wxPen * >(argp1);
5274 {
5275 PyThreadState* __tstate = wxPyBeginAllowThreads();
5276 result = (bool)(arg1)->IsOk();
5277 wxPyEndAllowThreads(__tstate);
5278 if (PyErr_Occurred()) SWIG_fail;
5279 }
5280 {
5281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5282 }
5283 return resultobj;
5284 fail:
5285 return NULL;
5286 }
5287
5288
5289 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5290 PyObject *resultobj = 0;
5291 wxPen *arg1 = (wxPen *) 0 ;
5292 int arg2 ;
5293 void *argp1 = 0 ;
5294 int res1 = 0 ;
5295 int val2 ;
5296 int ecode2 = 0 ;
5297 PyObject * obj0 = 0 ;
5298 PyObject * obj1 = 0 ;
5299 char * kwnames[] = {
5300 (char *) "self",(char *) "cap_style", NULL
5301 };
5302
5303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5305 if (!SWIG_IsOK(res1)) {
5306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5307 }
5308 arg1 = reinterpret_cast< wxPen * >(argp1);
5309 ecode2 = SWIG_AsVal_int(obj1, &val2);
5310 if (!SWIG_IsOK(ecode2)) {
5311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5312 }
5313 arg2 = static_cast< int >(val2);
5314 {
5315 PyThreadState* __tstate = wxPyBeginAllowThreads();
5316 (arg1)->SetCap(arg2);
5317 wxPyEndAllowThreads(__tstate);
5318 if (PyErr_Occurred()) SWIG_fail;
5319 }
5320 resultobj = SWIG_Py_Void();
5321 return resultobj;
5322 fail:
5323 return NULL;
5324 }
5325
5326
5327 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5328 PyObject *resultobj = 0;
5329 wxPen *arg1 = (wxPen *) 0 ;
5330 wxColour *arg2 = 0 ;
5331 void *argp1 = 0 ;
5332 int res1 = 0 ;
5333 wxColour temp2 ;
5334 PyObject * obj0 = 0 ;
5335 PyObject * obj1 = 0 ;
5336 char * kwnames[] = {
5337 (char *) "self",(char *) "colour", NULL
5338 };
5339
5340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5342 if (!SWIG_IsOK(res1)) {
5343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5344 }
5345 arg1 = reinterpret_cast< wxPen * >(argp1);
5346 {
5347 arg2 = &temp2;
5348 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5349 }
5350 {
5351 PyThreadState* __tstate = wxPyBeginAllowThreads();
5352 (arg1)->SetColour(*arg2);
5353 wxPyEndAllowThreads(__tstate);
5354 if (PyErr_Occurred()) SWIG_fail;
5355 }
5356 resultobj = SWIG_Py_Void();
5357 return resultobj;
5358 fail:
5359 return NULL;
5360 }
5361
5362
5363 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5364 PyObject *resultobj = 0;
5365 wxPen *arg1 = (wxPen *) 0 ;
5366 int arg2 ;
5367 void *argp1 = 0 ;
5368 int res1 = 0 ;
5369 int val2 ;
5370 int ecode2 = 0 ;
5371 PyObject * obj0 = 0 ;
5372 PyObject * obj1 = 0 ;
5373 char * kwnames[] = {
5374 (char *) "self",(char *) "join_style", NULL
5375 };
5376
5377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5379 if (!SWIG_IsOK(res1)) {
5380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5381 }
5382 arg1 = reinterpret_cast< wxPen * >(argp1);
5383 ecode2 = SWIG_AsVal_int(obj1, &val2);
5384 if (!SWIG_IsOK(ecode2)) {
5385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5386 }
5387 arg2 = static_cast< int >(val2);
5388 {
5389 PyThreadState* __tstate = wxPyBeginAllowThreads();
5390 (arg1)->SetJoin(arg2);
5391 wxPyEndAllowThreads(__tstate);
5392 if (PyErr_Occurred()) SWIG_fail;
5393 }
5394 resultobj = SWIG_Py_Void();
5395 return resultobj;
5396 fail:
5397 return NULL;
5398 }
5399
5400
5401 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5402 PyObject *resultobj = 0;
5403 wxPen *arg1 = (wxPen *) 0 ;
5404 int arg2 ;
5405 void *argp1 = 0 ;
5406 int res1 = 0 ;
5407 int val2 ;
5408 int ecode2 = 0 ;
5409 PyObject * obj0 = 0 ;
5410 PyObject * obj1 = 0 ;
5411 char * kwnames[] = {
5412 (char *) "self",(char *) "style", NULL
5413 };
5414
5415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5417 if (!SWIG_IsOK(res1)) {
5418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5419 }
5420 arg1 = reinterpret_cast< wxPen * >(argp1);
5421 ecode2 = SWIG_AsVal_int(obj1, &val2);
5422 if (!SWIG_IsOK(ecode2)) {
5423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5424 }
5425 arg2 = static_cast< int >(val2);
5426 {
5427 PyThreadState* __tstate = wxPyBeginAllowThreads();
5428 (arg1)->SetStyle(arg2);
5429 wxPyEndAllowThreads(__tstate);
5430 if (PyErr_Occurred()) SWIG_fail;
5431 }
5432 resultobj = SWIG_Py_Void();
5433 return resultobj;
5434 fail:
5435 return NULL;
5436 }
5437
5438
5439 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5440 PyObject *resultobj = 0;
5441 wxPen *arg1 = (wxPen *) 0 ;
5442 int arg2 ;
5443 void *argp1 = 0 ;
5444 int res1 = 0 ;
5445 int val2 ;
5446 int ecode2 = 0 ;
5447 PyObject * obj0 = 0 ;
5448 PyObject * obj1 = 0 ;
5449 char * kwnames[] = {
5450 (char *) "self",(char *) "width", NULL
5451 };
5452
5453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5455 if (!SWIG_IsOK(res1)) {
5456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5457 }
5458 arg1 = reinterpret_cast< wxPen * >(argp1);
5459 ecode2 = SWIG_AsVal_int(obj1, &val2);
5460 if (!SWIG_IsOK(ecode2)) {
5461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5462 }
5463 arg2 = static_cast< int >(val2);
5464 {
5465 PyThreadState* __tstate = wxPyBeginAllowThreads();
5466 (arg1)->SetWidth(arg2);
5467 wxPyEndAllowThreads(__tstate);
5468 if (PyErr_Occurred()) SWIG_fail;
5469 }
5470 resultobj = SWIG_Py_Void();
5471 return resultobj;
5472 fail:
5473 return NULL;
5474 }
5475
5476
5477 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5478 PyObject *resultobj = 0;
5479 wxPen *arg1 = (wxPen *) 0 ;
5480 int arg2 ;
5481 wxDash *arg3 = (wxDash *) 0 ;
5482 void *argp1 = 0 ;
5483 int res1 = 0 ;
5484 PyObject * obj0 = 0 ;
5485 PyObject * obj1 = 0 ;
5486 char * kwnames[] = {
5487 (char *) "self",(char *) "dashes", NULL
5488 };
5489
5490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5492 if (!SWIG_IsOK(res1)) {
5493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5494 }
5495 arg1 = reinterpret_cast< wxPen * >(argp1);
5496 {
5497 arg2 = PyList_Size(obj1);
5498 arg3 = (wxDash*)byte_LIST_helper(obj1);
5499 if (arg3 == NULL) SWIG_fail;
5500 }
5501 {
5502 PyThreadState* __tstate = wxPyBeginAllowThreads();
5503 (arg1)->SetDashes(arg2,arg3);
5504 wxPyEndAllowThreads(__tstate);
5505 if (PyErr_Occurred()) SWIG_fail;
5506 }
5507 resultobj = SWIG_Py_Void();
5508 {
5509 if (arg3) delete [] arg3;
5510 }
5511 return resultobj;
5512 fail:
5513 {
5514 if (arg3) delete [] arg3;
5515 }
5516 return NULL;
5517 }
5518
5519
5520 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5521 PyObject *resultobj = 0;
5522 wxPen *arg1 = (wxPen *) 0 ;
5523 PyObject *result = 0 ;
5524 void *argp1 = 0 ;
5525 int res1 = 0 ;
5526 PyObject *swig_obj[1] ;
5527
5528 if (!args) SWIG_fail;
5529 swig_obj[0] = args;
5530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5531 if (!SWIG_IsOK(res1)) {
5532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5533 }
5534 arg1 = reinterpret_cast< wxPen * >(argp1);
5535 {
5536 PyThreadState* __tstate = wxPyBeginAllowThreads();
5537 result = (PyObject *)wxPen_GetDashes(arg1);
5538 wxPyEndAllowThreads(__tstate);
5539 if (PyErr_Occurred()) SWIG_fail;
5540 }
5541 resultobj = result;
5542 return resultobj;
5543 fail:
5544 return NULL;
5545 }
5546
5547
5548 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5549 PyObject *resultobj = 0;
5550 wxPen *arg1 = (wxPen *) 0 ;
5551 PyObject *arg2 = (PyObject *) 0 ;
5552 PyObject *arg3 = (PyObject *) 0 ;
5553 void *argp1 = 0 ;
5554 int res1 = 0 ;
5555 PyObject * obj0 = 0 ;
5556 PyObject * obj1 = 0 ;
5557 PyObject * obj2 = 0 ;
5558 char * kwnames[] = {
5559 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5560 };
5561
5562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5564 if (!SWIG_IsOK(res1)) {
5565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5566 }
5567 arg1 = reinterpret_cast< wxPen * >(argp1);
5568 arg2 = obj1;
5569 arg3 = obj2;
5570 {
5571 PyThreadState* __tstate = wxPyBeginAllowThreads();
5572 wxPen__SetDashes(arg1,arg2,arg3);
5573 wxPyEndAllowThreads(__tstate);
5574 if (PyErr_Occurred()) SWIG_fail;
5575 }
5576 resultobj = SWIG_Py_Void();
5577 return resultobj;
5578 fail:
5579 return NULL;
5580 }
5581
5582
5583 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5584 PyObject *resultobj = 0;
5585 wxPen *arg1 = (wxPen *) 0 ;
5586 int result;
5587 void *argp1 = 0 ;
5588 int res1 = 0 ;
5589 PyObject *swig_obj[1] ;
5590
5591 if (!args) SWIG_fail;
5592 swig_obj[0] = args;
5593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5594 if (!SWIG_IsOK(res1)) {
5595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5596 }
5597 arg1 = reinterpret_cast< wxPen * >(argp1);
5598 {
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 result = (int)((wxPen const *)arg1)->GetDashCount();
5601 wxPyEndAllowThreads(__tstate);
5602 if (PyErr_Occurred()) SWIG_fail;
5603 }
5604 resultobj = SWIG_From_int(static_cast< int >(result));
5605 return resultobj;
5606 fail:
5607 return NULL;
5608 }
5609
5610
5611 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5612 PyObject *resultobj = 0;
5613 wxPen *arg1 = (wxPen *) 0 ;
5614 wxBitmap *result = 0 ;
5615 void *argp1 = 0 ;
5616 int res1 = 0 ;
5617 PyObject *swig_obj[1] ;
5618
5619 if (!args) SWIG_fail;
5620 swig_obj[0] = args;
5621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5622 if (!SWIG_IsOK(res1)) {
5623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5624 }
5625 arg1 = reinterpret_cast< wxPen * >(argp1);
5626 {
5627 PyThreadState* __tstate = wxPyBeginAllowThreads();
5628 result = (wxBitmap *)(arg1)->GetStipple();
5629 wxPyEndAllowThreads(__tstate);
5630 if (PyErr_Occurred()) SWIG_fail;
5631 }
5632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5633 return resultobj;
5634 fail:
5635 return NULL;
5636 }
5637
5638
5639 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5640 PyObject *resultobj = 0;
5641 wxPen *arg1 = (wxPen *) 0 ;
5642 wxBitmap *arg2 = 0 ;
5643 void *argp1 = 0 ;
5644 int res1 = 0 ;
5645 void *argp2 = 0 ;
5646 int res2 = 0 ;
5647 PyObject * obj0 = 0 ;
5648 PyObject * obj1 = 0 ;
5649 char * kwnames[] = {
5650 (char *) "self",(char *) "stipple", NULL
5651 };
5652
5653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5655 if (!SWIG_IsOK(res1)) {
5656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5657 }
5658 arg1 = reinterpret_cast< wxPen * >(argp1);
5659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5660 if (!SWIG_IsOK(res2)) {
5661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5662 }
5663 if (!argp2) {
5664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5665 }
5666 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5667 {
5668 PyThreadState* __tstate = wxPyBeginAllowThreads();
5669 (arg1)->SetStipple(*arg2);
5670 wxPyEndAllowThreads(__tstate);
5671 if (PyErr_Occurred()) SWIG_fail;
5672 }
5673 resultobj = SWIG_Py_Void();
5674 return resultobj;
5675 fail:
5676 return NULL;
5677 }
5678
5679
5680 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5681 PyObject *resultobj = 0;
5682 wxPen *arg1 = (wxPen *) 0 ;
5683 wxPen *arg2 = (wxPen *) 0 ;
5684 bool result;
5685 void *argp1 = 0 ;
5686 int res1 = 0 ;
5687 void *argp2 = 0 ;
5688 int res2 = 0 ;
5689 PyObject * obj0 = 0 ;
5690 PyObject * obj1 = 0 ;
5691 char * kwnames[] = {
5692 (char *) "self",(char *) "other", NULL
5693 };
5694
5695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5697 if (!SWIG_IsOK(res1)) {
5698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5699 }
5700 arg1 = reinterpret_cast< wxPen * >(argp1);
5701 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5702 if (!SWIG_IsOK(res2)) {
5703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5704 }
5705 arg2 = reinterpret_cast< wxPen * >(argp2);
5706 {
5707 PyThreadState* __tstate = wxPyBeginAllowThreads();
5708 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5709 wxPyEndAllowThreads(__tstate);
5710 if (PyErr_Occurred()) SWIG_fail;
5711 }
5712 {
5713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5714 }
5715 return resultobj;
5716 fail:
5717 return NULL;
5718 }
5719
5720
5721 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5722 PyObject *resultobj = 0;
5723 wxPen *arg1 = (wxPen *) 0 ;
5724 wxPen *arg2 = (wxPen *) 0 ;
5725 bool result;
5726 void *argp1 = 0 ;
5727 int res1 = 0 ;
5728 void *argp2 = 0 ;
5729 int res2 = 0 ;
5730 PyObject * obj0 = 0 ;
5731 PyObject * obj1 = 0 ;
5732 char * kwnames[] = {
5733 (char *) "self",(char *) "other", NULL
5734 };
5735
5736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5738 if (!SWIG_IsOK(res1)) {
5739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5740 }
5741 arg1 = reinterpret_cast< wxPen * >(argp1);
5742 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5743 if (!SWIG_IsOK(res2)) {
5744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5745 }
5746 arg2 = reinterpret_cast< wxPen * >(argp2);
5747 {
5748 PyThreadState* __tstate = wxPyBeginAllowThreads();
5749 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5750 wxPyEndAllowThreads(__tstate);
5751 if (PyErr_Occurred()) SWIG_fail;
5752 }
5753 {
5754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5755 }
5756 return resultobj;
5757 fail:
5758 return NULL;
5759 }
5760
5761
5762 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5763 PyObject *obj;
5764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5765 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5766 return SWIG_Py_Void();
5767 }
5768
5769 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5770 return SWIG_Python_InitShadowInstance(args);
5771 }
5772
5773 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5774 PyObject *resultobj = 0;
5775 wxColour *arg1 = 0 ;
5776 int arg2 = (int) wxSOLID ;
5777 wxBrush *result = 0 ;
5778 wxColour temp1 ;
5779 int val2 ;
5780 int ecode2 = 0 ;
5781 PyObject * obj0 = 0 ;
5782 PyObject * obj1 = 0 ;
5783 char * kwnames[] = {
5784 (char *) "colour",(char *) "style", NULL
5785 };
5786
5787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5788 {
5789 arg1 = &temp1;
5790 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5791 }
5792 if (obj1) {
5793 ecode2 = SWIG_AsVal_int(obj1, &val2);
5794 if (!SWIG_IsOK(ecode2)) {
5795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5796 }
5797 arg2 = static_cast< int >(val2);
5798 }
5799 {
5800 if (!wxPyCheckForApp()) SWIG_fail;
5801 PyThreadState* __tstate = wxPyBeginAllowThreads();
5802 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5803 wxPyEndAllowThreads(__tstate);
5804 if (PyErr_Occurred()) SWIG_fail;
5805 }
5806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5807 return resultobj;
5808 fail:
5809 return NULL;
5810 }
5811
5812
5813 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5814 PyObject *resultobj = 0;
5815 wxBitmap *arg1 = 0 ;
5816 wxBrush *result = 0 ;
5817 void *argp1 = 0 ;
5818 int res1 = 0 ;
5819 PyObject * obj0 = 0 ;
5820 char * kwnames[] = {
5821 (char *) "stippleBitmap", NULL
5822 };
5823
5824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5825 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5826 if (!SWIG_IsOK(res1)) {
5827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5828 }
5829 if (!argp1) {
5830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5831 }
5832 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5833 {
5834 if (!wxPyCheckForApp()) SWIG_fail;
5835 PyThreadState* __tstate = wxPyBeginAllowThreads();
5836 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5837 wxPyEndAllowThreads(__tstate);
5838 if (PyErr_Occurred()) SWIG_fail;
5839 }
5840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5841 return resultobj;
5842 fail:
5843 return NULL;
5844 }
5845
5846
5847 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5848 PyObject *resultobj = 0;
5849 wxBrush *arg1 = (wxBrush *) 0 ;
5850 void *argp1 = 0 ;
5851 int res1 = 0 ;
5852 PyObject *swig_obj[1] ;
5853
5854 if (!args) SWIG_fail;
5855 swig_obj[0] = args;
5856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5857 if (!SWIG_IsOK(res1)) {
5858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5859 }
5860 arg1 = reinterpret_cast< wxBrush * >(argp1);
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 delete arg1;
5864
5865 wxPyEndAllowThreads(__tstate);
5866 if (PyErr_Occurred()) SWIG_fail;
5867 }
5868 resultobj = SWIG_Py_Void();
5869 return resultobj;
5870 fail:
5871 return NULL;
5872 }
5873
5874
5875 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5876 PyObject *resultobj = 0;
5877 wxBrush *arg1 = (wxBrush *) 0 ;
5878 wxColour *arg2 = 0 ;
5879 void *argp1 = 0 ;
5880 int res1 = 0 ;
5881 wxColour temp2 ;
5882 PyObject * obj0 = 0 ;
5883 PyObject * obj1 = 0 ;
5884 char * kwnames[] = {
5885 (char *) "self",(char *) "col", NULL
5886 };
5887
5888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5890 if (!SWIG_IsOK(res1)) {
5891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5892 }
5893 arg1 = reinterpret_cast< wxBrush * >(argp1);
5894 {
5895 arg2 = &temp2;
5896 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5897 }
5898 {
5899 PyThreadState* __tstate = wxPyBeginAllowThreads();
5900 (arg1)->SetColour((wxColour const &)*arg2);
5901 wxPyEndAllowThreads(__tstate);
5902 if (PyErr_Occurred()) SWIG_fail;
5903 }
5904 resultobj = SWIG_Py_Void();
5905 return resultobj;
5906 fail:
5907 return NULL;
5908 }
5909
5910
5911 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5912 PyObject *resultobj = 0;
5913 wxBrush *arg1 = (wxBrush *) 0 ;
5914 int arg2 ;
5915 void *argp1 = 0 ;
5916 int res1 = 0 ;
5917 int val2 ;
5918 int ecode2 = 0 ;
5919 PyObject * obj0 = 0 ;
5920 PyObject * obj1 = 0 ;
5921 char * kwnames[] = {
5922 (char *) "self",(char *) "style", NULL
5923 };
5924
5925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5927 if (!SWIG_IsOK(res1)) {
5928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5929 }
5930 arg1 = reinterpret_cast< wxBrush * >(argp1);
5931 ecode2 = SWIG_AsVal_int(obj1, &val2);
5932 if (!SWIG_IsOK(ecode2)) {
5933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5934 }
5935 arg2 = static_cast< int >(val2);
5936 {
5937 PyThreadState* __tstate = wxPyBeginAllowThreads();
5938 (arg1)->SetStyle(arg2);
5939 wxPyEndAllowThreads(__tstate);
5940 if (PyErr_Occurred()) SWIG_fail;
5941 }
5942 resultobj = SWIG_Py_Void();
5943 return resultobj;
5944 fail:
5945 return NULL;
5946 }
5947
5948
5949 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5950 PyObject *resultobj = 0;
5951 wxBrush *arg1 = (wxBrush *) 0 ;
5952 wxBitmap *arg2 = 0 ;
5953 void *argp1 = 0 ;
5954 int res1 = 0 ;
5955 void *argp2 = 0 ;
5956 int res2 = 0 ;
5957 PyObject * obj0 = 0 ;
5958 PyObject * obj1 = 0 ;
5959 char * kwnames[] = {
5960 (char *) "self",(char *) "stipple", NULL
5961 };
5962
5963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5965 if (!SWIG_IsOK(res1)) {
5966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5967 }
5968 arg1 = reinterpret_cast< wxBrush * >(argp1);
5969 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5970 if (!SWIG_IsOK(res2)) {
5971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5972 }
5973 if (!argp2) {
5974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5975 }
5976 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5977 {
5978 PyThreadState* __tstate = wxPyBeginAllowThreads();
5979 (arg1)->SetStipple((wxBitmap const &)*arg2);
5980 wxPyEndAllowThreads(__tstate);
5981 if (PyErr_Occurred()) SWIG_fail;
5982 }
5983 resultobj = SWIG_Py_Void();
5984 return resultobj;
5985 fail:
5986 return NULL;
5987 }
5988
5989
5990 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5991 PyObject *resultobj = 0;
5992 wxBrush *arg1 = (wxBrush *) 0 ;
5993 wxColour result;
5994 void *argp1 = 0 ;
5995 int res1 = 0 ;
5996 PyObject *swig_obj[1] ;
5997
5998 if (!args) SWIG_fail;
5999 swig_obj[0] = args;
6000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6001 if (!SWIG_IsOK(res1)) {
6002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
6003 }
6004 arg1 = reinterpret_cast< wxBrush * >(argp1);
6005 {
6006 PyThreadState* __tstate = wxPyBeginAllowThreads();
6007 result = ((wxBrush const *)arg1)->GetColour();
6008 wxPyEndAllowThreads(__tstate);
6009 if (PyErr_Occurred()) SWIG_fail;
6010 }
6011 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
6012 return resultobj;
6013 fail:
6014 return NULL;
6015 }
6016
6017
6018 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6019 PyObject *resultobj = 0;
6020 wxBrush *arg1 = (wxBrush *) 0 ;
6021 int result;
6022 void *argp1 = 0 ;
6023 int res1 = 0 ;
6024 PyObject *swig_obj[1] ;
6025
6026 if (!args) SWIG_fail;
6027 swig_obj[0] = args;
6028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6029 if (!SWIG_IsOK(res1)) {
6030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
6031 }
6032 arg1 = reinterpret_cast< wxBrush * >(argp1);
6033 {
6034 PyThreadState* __tstate = wxPyBeginAllowThreads();
6035 result = (int)((wxBrush const *)arg1)->GetStyle();
6036 wxPyEndAllowThreads(__tstate);
6037 if (PyErr_Occurred()) SWIG_fail;
6038 }
6039 resultobj = SWIG_From_int(static_cast< int >(result));
6040 return resultobj;
6041 fail:
6042 return NULL;
6043 }
6044
6045
6046 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6047 PyObject *resultobj = 0;
6048 wxBrush *arg1 = (wxBrush *) 0 ;
6049 wxBitmap *result = 0 ;
6050 void *argp1 = 0 ;
6051 int res1 = 0 ;
6052 PyObject *swig_obj[1] ;
6053
6054 if (!args) SWIG_fail;
6055 swig_obj[0] = args;
6056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6057 if (!SWIG_IsOK(res1)) {
6058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6059 }
6060 arg1 = reinterpret_cast< wxBrush * >(argp1);
6061 {
6062 PyThreadState* __tstate = wxPyBeginAllowThreads();
6063 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6064 wxPyEndAllowThreads(__tstate);
6065 if (PyErr_Occurred()) SWIG_fail;
6066 }
6067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6068 return resultobj;
6069 fail:
6070 return NULL;
6071 }
6072
6073
6074 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6075 PyObject *resultobj = 0;
6076 wxBrush *arg1 = (wxBrush *) 0 ;
6077 bool result;
6078 void *argp1 = 0 ;
6079 int res1 = 0 ;
6080 PyObject *swig_obj[1] ;
6081
6082 if (!args) SWIG_fail;
6083 swig_obj[0] = args;
6084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6085 if (!SWIG_IsOK(res1)) {
6086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6087 }
6088 arg1 = reinterpret_cast< wxBrush * >(argp1);
6089 {
6090 PyThreadState* __tstate = wxPyBeginAllowThreads();
6091 result = (bool)((wxBrush const *)arg1)->IsHatch();
6092 wxPyEndAllowThreads(__tstate);
6093 if (PyErr_Occurred()) SWIG_fail;
6094 }
6095 {
6096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6097 }
6098 return resultobj;
6099 fail:
6100 return NULL;
6101 }
6102
6103
6104 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6105 PyObject *resultobj = 0;
6106 wxBrush *arg1 = (wxBrush *) 0 ;
6107 bool result;
6108 void *argp1 = 0 ;
6109 int res1 = 0 ;
6110 PyObject *swig_obj[1] ;
6111
6112 if (!args) SWIG_fail;
6113 swig_obj[0] = args;
6114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6115 if (!SWIG_IsOK(res1)) {
6116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6117 }
6118 arg1 = reinterpret_cast< wxBrush * >(argp1);
6119 {
6120 PyThreadState* __tstate = wxPyBeginAllowThreads();
6121 result = (bool)(arg1)->IsOk();
6122 wxPyEndAllowThreads(__tstate);
6123 if (PyErr_Occurred()) SWIG_fail;
6124 }
6125 {
6126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6127 }
6128 return resultobj;
6129 fail:
6130 return NULL;
6131 }
6132
6133
6134 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6135 PyObject *obj;
6136 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6137 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6138 return SWIG_Py_Void();
6139 }
6140
6141 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6142 return SWIG_Python_InitShadowInstance(args);
6143 }
6144
6145 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6146 PyObject *resultobj = 0;
6147 wxString *arg1 = 0 ;
6148 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6149 wxBitmap *result = 0 ;
6150 bool temp1 = false ;
6151 int val2 ;
6152 int ecode2 = 0 ;
6153 PyObject * obj0 = 0 ;
6154 PyObject * obj1 = 0 ;
6155 char * kwnames[] = {
6156 (char *) "name",(char *) "type", NULL
6157 };
6158
6159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6160 {
6161 arg1 = wxString_in_helper(obj0);
6162 if (arg1 == NULL) SWIG_fail;
6163 temp1 = true;
6164 }
6165 if (obj1) {
6166 ecode2 = SWIG_AsVal_int(obj1, &val2);
6167 if (!SWIG_IsOK(ecode2)) {
6168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6169 }
6170 arg2 = static_cast< wxBitmapType >(val2);
6171 }
6172 {
6173 if (!wxPyCheckForApp()) SWIG_fail;
6174 PyThreadState* __tstate = wxPyBeginAllowThreads();
6175 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6176 wxPyEndAllowThreads(__tstate);
6177 if (PyErr_Occurred()) SWIG_fail;
6178 }
6179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6180 {
6181 if (temp1)
6182 delete arg1;
6183 }
6184 return resultobj;
6185 fail:
6186 {
6187 if (temp1)
6188 delete arg1;
6189 }
6190 return NULL;
6191 }
6192
6193
6194 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6195 PyObject *resultobj = 0;
6196 wxBitmap *arg1 = (wxBitmap *) 0 ;
6197 void *argp1 = 0 ;
6198 int res1 = 0 ;
6199 PyObject *swig_obj[1] ;
6200
6201 if (!args) SWIG_fail;
6202 swig_obj[0] = args;
6203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6204 if (!SWIG_IsOK(res1)) {
6205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6206 }
6207 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6208 {
6209 delete arg1;
6210
6211 if (PyErr_Occurred()) SWIG_fail;
6212 }
6213 resultobj = SWIG_Py_Void();
6214 return resultobj;
6215 fail:
6216 return NULL;
6217 }
6218
6219
6220 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6221 PyObject *resultobj = 0;
6222 int arg1 ;
6223 int arg2 ;
6224 int arg3 = (int) -1 ;
6225 wxBitmap *result = 0 ;
6226 int val1 ;
6227 int ecode1 = 0 ;
6228 int val2 ;
6229 int ecode2 = 0 ;
6230 int val3 ;
6231 int ecode3 = 0 ;
6232 PyObject * obj0 = 0 ;
6233 PyObject * obj1 = 0 ;
6234 PyObject * obj2 = 0 ;
6235 char * kwnames[] = {
6236 (char *) "width",(char *) "height",(char *) "depth", NULL
6237 };
6238
6239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6240 ecode1 = SWIG_AsVal_int(obj0, &val1);
6241 if (!SWIG_IsOK(ecode1)) {
6242 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6243 }
6244 arg1 = static_cast< int >(val1);
6245 ecode2 = SWIG_AsVal_int(obj1, &val2);
6246 if (!SWIG_IsOK(ecode2)) {
6247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6248 }
6249 arg2 = static_cast< int >(val2);
6250 if (obj2) {
6251 ecode3 = SWIG_AsVal_int(obj2, &val3);
6252 if (!SWIG_IsOK(ecode3)) {
6253 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6254 }
6255 arg3 = static_cast< int >(val3);
6256 }
6257 {
6258 if (!wxPyCheckForApp()) SWIG_fail;
6259 PyThreadState* __tstate = wxPyBeginAllowThreads();
6260 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6261 wxPyEndAllowThreads(__tstate);
6262 if (PyErr_Occurred()) SWIG_fail;
6263 }
6264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6265 return resultobj;
6266 fail:
6267 return NULL;
6268 }
6269
6270
6271 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6272 PyObject *resultobj = 0;
6273 wxIcon *arg1 = 0 ;
6274 wxBitmap *result = 0 ;
6275 void *argp1 = 0 ;
6276 int res1 = 0 ;
6277 PyObject * obj0 = 0 ;
6278 char * kwnames[] = {
6279 (char *) "icon", NULL
6280 };
6281
6282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6283 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6284 if (!SWIG_IsOK(res1)) {
6285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6286 }
6287 if (!argp1) {
6288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6289 }
6290 arg1 = reinterpret_cast< wxIcon * >(argp1);
6291 {
6292 if (!wxPyCheckForApp()) SWIG_fail;
6293 PyThreadState* __tstate = wxPyBeginAllowThreads();
6294 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6295 wxPyEndAllowThreads(__tstate);
6296 if (PyErr_Occurred()) SWIG_fail;
6297 }
6298 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6299 return resultobj;
6300 fail:
6301 return NULL;
6302 }
6303
6304
6305 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6306 PyObject *resultobj = 0;
6307 wxImage *arg1 = 0 ;
6308 int arg2 = (int) -1 ;
6309 wxBitmap *result = 0 ;
6310 void *argp1 = 0 ;
6311 int res1 = 0 ;
6312 int val2 ;
6313 int ecode2 = 0 ;
6314 PyObject * obj0 = 0 ;
6315 PyObject * obj1 = 0 ;
6316 char * kwnames[] = {
6317 (char *) "image",(char *) "depth", NULL
6318 };
6319
6320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6321 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6322 if (!SWIG_IsOK(res1)) {
6323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6324 }
6325 if (!argp1) {
6326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6327 }
6328 arg1 = reinterpret_cast< wxImage * >(argp1);
6329 if (obj1) {
6330 ecode2 = SWIG_AsVal_int(obj1, &val2);
6331 if (!SWIG_IsOK(ecode2)) {
6332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6333 }
6334 arg2 = static_cast< int >(val2);
6335 }
6336 {
6337 if (!wxPyCheckForApp()) SWIG_fail;
6338 PyThreadState* __tstate = wxPyBeginAllowThreads();
6339 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6340 wxPyEndAllowThreads(__tstate);
6341 if (PyErr_Occurred()) SWIG_fail;
6342 }
6343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6344 return resultobj;
6345 fail:
6346 return NULL;
6347 }
6348
6349
6350 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6351 PyObject *resultobj = 0;
6352 PyObject *arg1 = (PyObject *) 0 ;
6353 wxBitmap *result = 0 ;
6354 PyObject * obj0 = 0 ;
6355 char * kwnames[] = {
6356 (char *) "listOfStrings", NULL
6357 };
6358
6359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6360 arg1 = obj0;
6361 {
6362 if (!wxPyCheckForApp()) SWIG_fail;
6363 PyThreadState* __tstate = wxPyBeginAllowThreads();
6364 result = (wxBitmap *)new_wxBitmap(arg1);
6365 wxPyEndAllowThreads(__tstate);
6366 if (PyErr_Occurred()) SWIG_fail;
6367 }
6368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6369 return resultobj;
6370 fail:
6371 return NULL;
6372 }
6373
6374
6375 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6376 PyObject *resultobj = 0;
6377 PyObject *arg1 = (PyObject *) 0 ;
6378 int arg2 ;
6379 int arg3 ;
6380 int arg4 = (int) 1 ;
6381 wxBitmap *result = 0 ;
6382 int val2 ;
6383 int ecode2 = 0 ;
6384 int val3 ;
6385 int ecode3 = 0 ;
6386 int val4 ;
6387 int ecode4 = 0 ;
6388 PyObject * obj0 = 0 ;
6389 PyObject * obj1 = 0 ;
6390 PyObject * obj2 = 0 ;
6391 PyObject * obj3 = 0 ;
6392 char * kwnames[] = {
6393 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6394 };
6395
6396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6397 arg1 = obj0;
6398 ecode2 = SWIG_AsVal_int(obj1, &val2);
6399 if (!SWIG_IsOK(ecode2)) {
6400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6401 }
6402 arg2 = static_cast< int >(val2);
6403 ecode3 = SWIG_AsVal_int(obj2, &val3);
6404 if (!SWIG_IsOK(ecode3)) {
6405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6406 }
6407 arg3 = static_cast< int >(val3);
6408 if (obj3) {
6409 ecode4 = SWIG_AsVal_int(obj3, &val4);
6410 if (!SWIG_IsOK(ecode4)) {
6411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6412 }
6413 arg4 = static_cast< int >(val4);
6414 }
6415 {
6416 if (!wxPyCheckForApp()) SWIG_fail;
6417 PyThreadState* __tstate = wxPyBeginAllowThreads();
6418 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6419 wxPyEndAllowThreads(__tstate);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6423 return resultobj;
6424 fail:
6425 return NULL;
6426 }
6427
6428
6429 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6430 PyObject *resultobj = 0;
6431 wxBitmap *arg1 = (wxBitmap *) 0 ;
6432 long result;
6433 void *argp1 = 0 ;
6434 int res1 = 0 ;
6435 PyObject *swig_obj[1] ;
6436
6437 if (!args) SWIG_fail;
6438 swig_obj[0] = args;
6439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6440 if (!SWIG_IsOK(res1)) {
6441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6442 }
6443 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6444 {
6445 result = (long)(arg1)->GetHandle();
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 resultobj = SWIG_From_long(static_cast< long >(result));
6449 return resultobj;
6450 fail:
6451 return NULL;
6452 }
6453
6454
6455 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6456 PyObject *resultobj = 0;
6457 wxBitmap *arg1 = (wxBitmap *) 0 ;
6458 long arg2 ;
6459 void *argp1 = 0 ;
6460 int res1 = 0 ;
6461 long val2 ;
6462 int ecode2 = 0 ;
6463 PyObject * obj0 = 0 ;
6464 PyObject * obj1 = 0 ;
6465 char * kwnames[] = {
6466 (char *) "self",(char *) "handle", NULL
6467 };
6468
6469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6471 if (!SWIG_IsOK(res1)) {
6472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6473 }
6474 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6475 ecode2 = SWIG_AsVal_long(obj1, &val2);
6476 if (!SWIG_IsOK(ecode2)) {
6477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6478 }
6479 arg2 = static_cast< long >(val2);
6480 {
6481 wxBitmap_SetHandle(arg1,arg2);
6482 if (PyErr_Occurred()) SWIG_fail;
6483 }
6484 resultobj = SWIG_Py_Void();
6485 return resultobj;
6486 fail:
6487 return NULL;
6488 }
6489
6490
6491 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6492 PyObject *resultobj = 0;
6493 wxBitmap *arg1 = (wxBitmap *) 0 ;
6494 bool result;
6495 void *argp1 = 0 ;
6496 int res1 = 0 ;
6497 PyObject *swig_obj[1] ;
6498
6499 if (!args) SWIG_fail;
6500 swig_obj[0] = args;
6501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6502 if (!SWIG_IsOK(res1)) {
6503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6504 }
6505 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6506 {
6507 result = (bool)(arg1)->IsOk();
6508 if (PyErr_Occurred()) SWIG_fail;
6509 }
6510 {
6511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6512 }
6513 return resultobj;
6514 fail:
6515 return NULL;
6516 }
6517
6518
6519 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6520 PyObject *resultobj = 0;
6521 wxBitmap *arg1 = (wxBitmap *) 0 ;
6522 int result;
6523 void *argp1 = 0 ;
6524 int res1 = 0 ;
6525 PyObject *swig_obj[1] ;
6526
6527 if (!args) SWIG_fail;
6528 swig_obj[0] = args;
6529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6530 if (!SWIG_IsOK(res1)) {
6531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6532 }
6533 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6534 {
6535 result = (int)(arg1)->GetWidth();
6536 if (PyErr_Occurred()) SWIG_fail;
6537 }
6538 resultobj = SWIG_From_int(static_cast< int >(result));
6539 return resultobj;
6540 fail:
6541 return NULL;
6542 }
6543
6544
6545 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6546 PyObject *resultobj = 0;
6547 wxBitmap *arg1 = (wxBitmap *) 0 ;
6548 int result;
6549 void *argp1 = 0 ;
6550 int res1 = 0 ;
6551 PyObject *swig_obj[1] ;
6552
6553 if (!args) SWIG_fail;
6554 swig_obj[0] = args;
6555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6556 if (!SWIG_IsOK(res1)) {
6557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6558 }
6559 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6560 {
6561 result = (int)(arg1)->GetHeight();
6562 if (PyErr_Occurred()) SWIG_fail;
6563 }
6564 resultobj = SWIG_From_int(static_cast< int >(result));
6565 return resultobj;
6566 fail:
6567 return NULL;
6568 }
6569
6570
6571 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6572 PyObject *resultobj = 0;
6573 wxBitmap *arg1 = (wxBitmap *) 0 ;
6574 int result;
6575 void *argp1 = 0 ;
6576 int res1 = 0 ;
6577 PyObject *swig_obj[1] ;
6578
6579 if (!args) SWIG_fail;
6580 swig_obj[0] = args;
6581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6582 if (!SWIG_IsOK(res1)) {
6583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6584 }
6585 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6586 {
6587 result = (int)(arg1)->GetDepth();
6588 if (PyErr_Occurred()) SWIG_fail;
6589 }
6590 resultobj = SWIG_From_int(static_cast< int >(result));
6591 return resultobj;
6592 fail:
6593 return NULL;
6594 }
6595
6596
6597 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6598 PyObject *resultobj = 0;
6599 wxBitmap *arg1 = (wxBitmap *) 0 ;
6600 wxSize result;
6601 void *argp1 = 0 ;
6602 int res1 = 0 ;
6603 PyObject *swig_obj[1] ;
6604
6605 if (!args) SWIG_fail;
6606 swig_obj[0] = args;
6607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6608 if (!SWIG_IsOK(res1)) {
6609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6610 }
6611 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6612 {
6613 result = wxBitmap_GetSize(arg1);
6614 if (PyErr_Occurred()) SWIG_fail;
6615 }
6616 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6617 return resultobj;
6618 fail:
6619 return NULL;
6620 }
6621
6622
6623 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6624 PyObject *resultobj = 0;
6625 wxBitmap *arg1 = (wxBitmap *) 0 ;
6626 SwigValueWrapper<wxImage > result;
6627 void *argp1 = 0 ;
6628 int res1 = 0 ;
6629 PyObject *swig_obj[1] ;
6630
6631 if (!args) SWIG_fail;
6632 swig_obj[0] = args;
6633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6634 if (!SWIG_IsOK(res1)) {
6635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6636 }
6637 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6638 {
6639 result = ((wxBitmap const *)arg1)->ConvertToImage();
6640 if (PyErr_Occurred()) SWIG_fail;
6641 }
6642 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6643 return resultobj;
6644 fail:
6645 return NULL;
6646 }
6647
6648
6649 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6650 PyObject *resultobj = 0;
6651 wxBitmap *arg1 = (wxBitmap *) 0 ;
6652 wxMask *result = 0 ;
6653 void *argp1 = 0 ;
6654 int res1 = 0 ;
6655 PyObject *swig_obj[1] ;
6656
6657 if (!args) SWIG_fail;
6658 swig_obj[0] = args;
6659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6660 if (!SWIG_IsOK(res1)) {
6661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6662 }
6663 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6664 {
6665 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6666 if (PyErr_Occurred()) SWIG_fail;
6667 }
6668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6669 return resultobj;
6670 fail:
6671 return NULL;
6672 }
6673
6674
6675 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6676 PyObject *resultobj = 0;
6677 wxBitmap *arg1 = (wxBitmap *) 0 ;
6678 wxMask *arg2 = (wxMask *) 0 ;
6679 void *argp1 = 0 ;
6680 int res1 = 0 ;
6681 int res2 = 0 ;
6682 PyObject * obj0 = 0 ;
6683 PyObject * obj1 = 0 ;
6684 char * kwnames[] = {
6685 (char *) "self",(char *) "mask", NULL
6686 };
6687
6688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6690 if (!SWIG_IsOK(res1)) {
6691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6692 }
6693 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6694 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6695 if (!SWIG_IsOK(res2)) {
6696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6697 }
6698 {
6699 (arg1)->SetMask(arg2);
6700 if (PyErr_Occurred()) SWIG_fail;
6701 }
6702 resultobj = SWIG_Py_Void();
6703 return resultobj;
6704 fail:
6705 return NULL;
6706 }
6707
6708
6709 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6710 PyObject *resultobj = 0;
6711 wxBitmap *arg1 = (wxBitmap *) 0 ;
6712 wxColour *arg2 = 0 ;
6713 void *argp1 = 0 ;
6714 int res1 = 0 ;
6715 wxColour temp2 ;
6716 PyObject * obj0 = 0 ;
6717 PyObject * obj1 = 0 ;
6718 char * kwnames[] = {
6719 (char *) "self",(char *) "colour", NULL
6720 };
6721
6722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6724 if (!SWIG_IsOK(res1)) {
6725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6726 }
6727 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6728 {
6729 arg2 = &temp2;
6730 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6731 }
6732 {
6733 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6734 if (PyErr_Occurred()) SWIG_fail;
6735 }
6736 resultobj = SWIG_Py_Void();
6737 return resultobj;
6738 fail:
6739 return NULL;
6740 }
6741
6742
6743 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6744 PyObject *resultobj = 0;
6745 wxBitmap *arg1 = (wxBitmap *) 0 ;
6746 wxRect *arg2 = 0 ;
6747 SwigValueWrapper<wxBitmap > result;
6748 void *argp1 = 0 ;
6749 int res1 = 0 ;
6750 wxRect temp2 ;
6751 PyObject * obj0 = 0 ;
6752 PyObject * obj1 = 0 ;
6753 char * kwnames[] = {
6754 (char *) "self",(char *) "rect", NULL
6755 };
6756
6757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6759 if (!SWIG_IsOK(res1)) {
6760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6761 }
6762 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6763 {
6764 arg2 = &temp2;
6765 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6766 }
6767 {
6768 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6769 if (PyErr_Occurred()) SWIG_fail;
6770 }
6771 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6772 return resultobj;
6773 fail:
6774 return NULL;
6775 }
6776
6777
6778 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6779 PyObject *resultobj = 0;
6780 wxBitmap *arg1 = (wxBitmap *) 0 ;
6781 wxString *arg2 = 0 ;
6782 wxBitmapType arg3 ;
6783 wxPalette *arg4 = (wxPalette *) NULL ;
6784 bool result;
6785 void *argp1 = 0 ;
6786 int res1 = 0 ;
6787 bool temp2 = false ;
6788 int val3 ;
6789 int ecode3 = 0 ;
6790 void *argp4 = 0 ;
6791 int res4 = 0 ;
6792 PyObject * obj0 = 0 ;
6793 PyObject * obj1 = 0 ;
6794 PyObject * obj2 = 0 ;
6795 PyObject * obj3 = 0 ;
6796 char * kwnames[] = {
6797 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6798 };
6799
6800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6802 if (!SWIG_IsOK(res1)) {
6803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6804 }
6805 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6806 {
6807 arg2 = wxString_in_helper(obj1);
6808 if (arg2 == NULL) SWIG_fail;
6809 temp2 = true;
6810 }
6811 ecode3 = SWIG_AsVal_int(obj2, &val3);
6812 if (!SWIG_IsOK(ecode3)) {
6813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6814 }
6815 arg3 = static_cast< wxBitmapType >(val3);
6816 if (obj3) {
6817 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6818 if (!SWIG_IsOK(res4)) {
6819 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6820 }
6821 arg4 = reinterpret_cast< wxPalette * >(argp4);
6822 }
6823 {
6824 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6825 if (PyErr_Occurred()) SWIG_fail;
6826 }
6827 {
6828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6829 }
6830 {
6831 if (temp2)
6832 delete arg2;
6833 }
6834 return resultobj;
6835 fail:
6836 {
6837 if (temp2)
6838 delete arg2;
6839 }
6840 return NULL;
6841 }
6842
6843
6844 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6845 PyObject *resultobj = 0;
6846 wxBitmap *arg1 = (wxBitmap *) 0 ;
6847 wxString *arg2 = 0 ;
6848 wxBitmapType arg3 ;
6849 bool result;
6850 void *argp1 = 0 ;
6851 int res1 = 0 ;
6852 bool temp2 = false ;
6853 int val3 ;
6854 int ecode3 = 0 ;
6855 PyObject * obj0 = 0 ;
6856 PyObject * obj1 = 0 ;
6857 PyObject * obj2 = 0 ;
6858 char * kwnames[] = {
6859 (char *) "self",(char *) "name",(char *) "type", NULL
6860 };
6861
6862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6864 if (!SWIG_IsOK(res1)) {
6865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6866 }
6867 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6868 {
6869 arg2 = wxString_in_helper(obj1);
6870 if (arg2 == NULL) SWIG_fail;
6871 temp2 = true;
6872 }
6873 ecode3 = SWIG_AsVal_int(obj2, &val3);
6874 if (!SWIG_IsOK(ecode3)) {
6875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6876 }
6877 arg3 = static_cast< wxBitmapType >(val3);
6878 {
6879 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 {
6883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6884 }
6885 {
6886 if (temp2)
6887 delete arg2;
6888 }
6889 return resultobj;
6890 fail:
6891 {
6892 if (temp2)
6893 delete arg2;
6894 }
6895 return NULL;
6896 }
6897
6898
6899 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6900 PyObject *resultobj = 0;
6901 wxBitmap *arg1 = (wxBitmap *) 0 ;
6902 wxPalette *result = 0 ;
6903 void *argp1 = 0 ;
6904 int res1 = 0 ;
6905 PyObject *swig_obj[1] ;
6906
6907 if (!args) SWIG_fail;
6908 swig_obj[0] = args;
6909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6910 if (!SWIG_IsOK(res1)) {
6911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6912 }
6913 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6914 {
6915 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6916 if (PyErr_Occurred()) SWIG_fail;
6917 }
6918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6919 return resultobj;
6920 fail:
6921 return NULL;
6922 }
6923
6924
6925 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6926 PyObject *resultobj = 0;
6927 wxBitmap *arg1 = (wxBitmap *) 0 ;
6928 wxPalette *arg2 = 0 ;
6929 void *argp1 = 0 ;
6930 int res1 = 0 ;
6931 void *argp2 = 0 ;
6932 int res2 = 0 ;
6933 PyObject * obj0 = 0 ;
6934 PyObject * obj1 = 0 ;
6935 char * kwnames[] = {
6936 (char *) "self",(char *) "palette", NULL
6937 };
6938
6939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6941 if (!SWIG_IsOK(res1)) {
6942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6943 }
6944 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6945 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6946 if (!SWIG_IsOK(res2)) {
6947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6948 }
6949 if (!argp2) {
6950 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6951 }
6952 arg2 = reinterpret_cast< wxPalette * >(argp2);
6953 {
6954 (arg1)->SetPalette((wxPalette const &)*arg2);
6955 if (PyErr_Occurred()) SWIG_fail;
6956 }
6957 resultobj = SWIG_Py_Void();
6958 return resultobj;
6959 fail:
6960 return NULL;
6961 }
6962
6963
6964 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6965 PyObject *resultobj = 0;
6966 wxBitmap *arg1 = (wxBitmap *) 0 ;
6967 wxIcon *arg2 = 0 ;
6968 bool result;
6969 void *argp1 = 0 ;
6970 int res1 = 0 ;
6971 void *argp2 = 0 ;
6972 int res2 = 0 ;
6973 PyObject * obj0 = 0 ;
6974 PyObject * obj1 = 0 ;
6975 char * kwnames[] = {
6976 (char *) "self",(char *) "icon", NULL
6977 };
6978
6979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6981 if (!SWIG_IsOK(res1)) {
6982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6983 }
6984 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6985 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6986 if (!SWIG_IsOK(res2)) {
6987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6988 }
6989 if (!argp2) {
6990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6991 }
6992 arg2 = reinterpret_cast< wxIcon * >(argp2);
6993 {
6994 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6995 if (PyErr_Occurred()) SWIG_fail;
6996 }
6997 {
6998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6999 }
7000 return resultobj;
7001 fail:
7002 return NULL;
7003 }
7004
7005
7006 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7007 PyObject *resultobj = 0;
7008 wxBitmap *arg1 = (wxBitmap *) 0 ;
7009 int arg2 ;
7010 void *argp1 = 0 ;
7011 int res1 = 0 ;
7012 int val2 ;
7013 int ecode2 = 0 ;
7014 PyObject * obj0 = 0 ;
7015 PyObject * obj1 = 0 ;
7016 char * kwnames[] = {
7017 (char *) "self",(char *) "height", NULL
7018 };
7019
7020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
7021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7022 if (!SWIG_IsOK(res1)) {
7023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
7024 }
7025 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7026 ecode2 = SWIG_AsVal_int(obj1, &val2);
7027 if (!SWIG_IsOK(ecode2)) {
7028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
7029 }
7030 arg2 = static_cast< int >(val2);
7031 {
7032 (arg1)->SetHeight(arg2);
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
7035 resultobj = SWIG_Py_Void();
7036 return resultobj;
7037 fail:
7038 return NULL;
7039 }
7040
7041
7042 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7043 PyObject *resultobj = 0;
7044 wxBitmap *arg1 = (wxBitmap *) 0 ;
7045 int arg2 ;
7046 void *argp1 = 0 ;
7047 int res1 = 0 ;
7048 int val2 ;
7049 int ecode2 = 0 ;
7050 PyObject * obj0 = 0 ;
7051 PyObject * obj1 = 0 ;
7052 char * kwnames[] = {
7053 (char *) "self",(char *) "width", NULL
7054 };
7055
7056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7058 if (!SWIG_IsOK(res1)) {
7059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7060 }
7061 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7062 ecode2 = SWIG_AsVal_int(obj1, &val2);
7063 if (!SWIG_IsOK(ecode2)) {
7064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
7065 }
7066 arg2 = static_cast< int >(val2);
7067 {
7068 (arg1)->SetWidth(arg2);
7069 if (PyErr_Occurred()) SWIG_fail;
7070 }
7071 resultobj = SWIG_Py_Void();
7072 return resultobj;
7073 fail:
7074 return NULL;
7075 }
7076
7077
7078 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7079 PyObject *resultobj = 0;
7080 wxBitmap *arg1 = (wxBitmap *) 0 ;
7081 int arg2 ;
7082 void *argp1 = 0 ;
7083 int res1 = 0 ;
7084 int val2 ;
7085 int ecode2 = 0 ;
7086 PyObject * obj0 = 0 ;
7087 PyObject * obj1 = 0 ;
7088 char * kwnames[] = {
7089 (char *) "self",(char *) "depth", NULL
7090 };
7091
7092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7094 if (!SWIG_IsOK(res1)) {
7095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7096 }
7097 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7098 ecode2 = SWIG_AsVal_int(obj1, &val2);
7099 if (!SWIG_IsOK(ecode2)) {
7100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
7101 }
7102 arg2 = static_cast< int >(val2);
7103 {
7104 (arg1)->SetDepth(arg2);
7105 if (PyErr_Occurred()) SWIG_fail;
7106 }
7107 resultobj = SWIG_Py_Void();
7108 return resultobj;
7109 fail:
7110 return NULL;
7111 }
7112
7113
7114 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7115 PyObject *resultobj = 0;
7116 wxBitmap *arg1 = (wxBitmap *) 0 ;
7117 wxSize *arg2 = 0 ;
7118 void *argp1 = 0 ;
7119 int res1 = 0 ;
7120 wxSize temp2 ;
7121 PyObject * obj0 = 0 ;
7122 PyObject * obj1 = 0 ;
7123 char * kwnames[] = {
7124 (char *) "self",(char *) "size", NULL
7125 };
7126
7127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7129 if (!SWIG_IsOK(res1)) {
7130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7131 }
7132 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7133 {
7134 arg2 = &temp2;
7135 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7136 }
7137 {
7138 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 resultobj = SWIG_Py_Void();
7142 return resultobj;
7143 fail:
7144 return NULL;
7145 }
7146
7147
7148 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7149 PyObject *resultobj = 0;
7150 wxBitmap *arg1 = (wxBitmap *) 0 ;
7151 wxCursor *arg2 = 0 ;
7152 bool result;
7153 void *argp1 = 0 ;
7154 int res1 = 0 ;
7155 void *argp2 = 0 ;
7156 int res2 = 0 ;
7157 PyObject * obj0 = 0 ;
7158 PyObject * obj1 = 0 ;
7159 char * kwnames[] = {
7160 (char *) "self",(char *) "cursor", NULL
7161 };
7162
7163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
7164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7165 if (!SWIG_IsOK(res1)) {
7166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
7167 }
7168 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7169 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
7170 if (!SWIG_IsOK(res2)) {
7171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7172 }
7173 if (!argp2) {
7174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7175 }
7176 arg2 = reinterpret_cast< wxCursor * >(argp2);
7177 {
7178 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
7179 if (PyErr_Occurred()) SWIG_fail;
7180 }
7181 {
7182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7183 }
7184 return resultobj;
7185 fail:
7186 return NULL;
7187 }
7188
7189
7190 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7191 PyObject *resultobj = 0;
7192 wxBitmap *arg1 = (wxBitmap *) 0 ;
7193 buffer arg2 ;
7194 int arg3 ;
7195 void *argp1 = 0 ;
7196 int res1 = 0 ;
7197 Py_ssize_t temp2 ;
7198 PyObject * obj0 = 0 ;
7199 PyObject * obj1 = 0 ;
7200 char * kwnames[] = {
7201 (char *) "self",(char *) "data", NULL
7202 };
7203
7204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7206 if (!SWIG_IsOK(res1)) {
7207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7208 }
7209 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7210 {
7211 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7212 arg3 = (int)temp2;
7213 }
7214 {
7215 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7216 if (PyErr_Occurred()) SWIG_fail;
7217 }
7218 resultobj = SWIG_Py_Void();
7219 return resultobj;
7220 fail:
7221 return NULL;
7222 }
7223
7224
7225 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7226 PyObject *resultobj = 0;
7227 wxBitmap *arg1 = (wxBitmap *) 0 ;
7228 buffer arg2 ;
7229 int arg3 ;
7230 void *argp1 = 0 ;
7231 int res1 = 0 ;
7232 Py_ssize_t temp2 ;
7233 PyObject * obj0 = 0 ;
7234 PyObject * obj1 = 0 ;
7235 char * kwnames[] = {
7236 (char *) "self",(char *) "data", NULL
7237 };
7238
7239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7241 if (!SWIG_IsOK(res1)) {
7242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7243 }
7244 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7245 {
7246 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7247 arg3 = (int)temp2;
7248 }
7249 {
7250 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7251 if (PyErr_Occurred()) SWIG_fail;
7252 }
7253 resultobj = SWIG_Py_Void();
7254 return resultobj;
7255 fail:
7256 return NULL;
7257 }
7258
7259
7260 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7261 PyObject *resultobj = 0;
7262 wxBitmap *arg1 = (wxBitmap *) 0 ;
7263 wxBitmap *arg2 = (wxBitmap *) 0 ;
7264 bool result;
7265 void *argp1 = 0 ;
7266 int res1 = 0 ;
7267 void *argp2 = 0 ;
7268 int res2 = 0 ;
7269 PyObject * obj0 = 0 ;
7270 PyObject * obj1 = 0 ;
7271 char * kwnames[] = {
7272 (char *) "self",(char *) "other", NULL
7273 };
7274
7275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7277 if (!SWIG_IsOK(res1)) {
7278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7279 }
7280 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7281 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7282 if (!SWIG_IsOK(res2)) {
7283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7284 }
7285 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7286 {
7287 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7288 if (PyErr_Occurred()) SWIG_fail;
7289 }
7290 {
7291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7292 }
7293 return resultobj;
7294 fail:
7295 return NULL;
7296 }
7297
7298
7299 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7300 PyObject *resultobj = 0;
7301 wxBitmap *arg1 = (wxBitmap *) 0 ;
7302 wxBitmap *arg2 = (wxBitmap *) 0 ;
7303 bool result;
7304 void *argp1 = 0 ;
7305 int res1 = 0 ;
7306 void *argp2 = 0 ;
7307 int res2 = 0 ;
7308 PyObject * obj0 = 0 ;
7309 PyObject * obj1 = 0 ;
7310 char * kwnames[] = {
7311 (char *) "self",(char *) "other", NULL
7312 };
7313
7314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7316 if (!SWIG_IsOK(res1)) {
7317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7318 }
7319 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7320 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7321 if (!SWIG_IsOK(res2)) {
7322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7323 }
7324 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7325 {
7326 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7327 if (PyErr_Occurred()) SWIG_fail;
7328 }
7329 {
7330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7331 }
7332 return resultobj;
7333 fail:
7334 return NULL;
7335 }
7336
7337
7338 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7339 PyObject *obj;
7340 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7341 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7342 return SWIG_Py_Void();
7343 }
7344
7345 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7346 return SWIG_Python_InitShadowInstance(args);
7347 }
7348
7349 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7350 PyObject *resultobj = 0;
7351 int arg1 ;
7352 int arg2 ;
7353 buffer arg3 ;
7354 int arg4 ;
7355 buffer arg5 ;
7356 int arg6 ;
7357 wxBitmap *result = 0 ;
7358 int val1 ;
7359 int ecode1 = 0 ;
7360 int val2 ;
7361 int ecode2 = 0 ;
7362 Py_ssize_t temp3 ;
7363 Py_ssize_t temp5 ;
7364 PyObject * obj0 = 0 ;
7365 PyObject * obj1 = 0 ;
7366 PyObject * obj2 = 0 ;
7367 PyObject * obj3 = 0 ;
7368 char * kwnames[] = {
7369 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7370 };
7371
7372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7373 ecode1 = SWIG_AsVal_int(obj0, &val1);
7374 if (!SWIG_IsOK(ecode1)) {
7375 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7376 }
7377 arg1 = static_cast< int >(val1);
7378 ecode2 = SWIG_AsVal_int(obj1, &val2);
7379 if (!SWIG_IsOK(ecode2)) {
7380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7381 }
7382 arg2 = static_cast< int >(val2);
7383 {
7384 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7385 arg4 = (int)temp3;
7386 }
7387 {
7388 if (obj3 != Py_None) {
7389 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7390 arg6 = (int)temp5;
7391 }
7392 }
7393 {
7394 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7395 if (PyErr_Occurred()) SWIG_fail;
7396 }
7397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7398 return resultobj;
7399 fail:
7400 return NULL;
7401 }
7402
7403
7404 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7405 PyObject *resultobj = 0;
7406 int arg1 ;
7407 int arg2 ;
7408 buffer arg3 ;
7409 int arg4 ;
7410 wxBitmap *result = 0 ;
7411 int val1 ;
7412 int ecode1 = 0 ;
7413 int val2 ;
7414 int ecode2 = 0 ;
7415 Py_ssize_t temp3 ;
7416 PyObject * obj0 = 0 ;
7417 PyObject * obj1 = 0 ;
7418 PyObject * obj2 = 0 ;
7419 char * kwnames[] = {
7420 (char *) "width",(char *) "height",(char *) "data", NULL
7421 };
7422
7423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7424 ecode1 = SWIG_AsVal_int(obj0, &val1);
7425 if (!SWIG_IsOK(ecode1)) {
7426 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7427 }
7428 arg1 = static_cast< int >(val1);
7429 ecode2 = SWIG_AsVal_int(obj1, &val2);
7430 if (!SWIG_IsOK(ecode2)) {
7431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7432 }
7433 arg2 = static_cast< int >(val2);
7434 {
7435 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7436 arg4 = (int)temp3;
7437 }
7438 {
7439 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7440 if (PyErr_Occurred()) SWIG_fail;
7441 }
7442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7443 return resultobj;
7444 fail:
7445 return NULL;
7446 }
7447
7448
7449 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7450 PyObject *resultobj = 0;
7451 int arg1 ;
7452 int arg2 ;
7453 buffer arg3 ;
7454 int arg4 ;
7455 wxBitmap *result = 0 ;
7456 int val1 ;
7457 int ecode1 = 0 ;
7458 int val2 ;
7459 int ecode2 = 0 ;
7460 Py_ssize_t temp3 ;
7461 PyObject * obj0 = 0 ;
7462 PyObject * obj1 = 0 ;
7463 PyObject * obj2 = 0 ;
7464 char * kwnames[] = {
7465 (char *) "width",(char *) "height",(char *) "data", NULL
7466 };
7467
7468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7469 ecode1 = SWIG_AsVal_int(obj0, &val1);
7470 if (!SWIG_IsOK(ecode1)) {
7471 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7472 }
7473 arg1 = static_cast< int >(val1);
7474 ecode2 = SWIG_AsVal_int(obj1, &val2);
7475 if (!SWIG_IsOK(ecode2)) {
7476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7477 }
7478 arg2 = static_cast< int >(val2);
7479 {
7480 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7481 arg4 = (int)temp3;
7482 }
7483 {
7484 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7485 if (PyErr_Occurred()) SWIG_fail;
7486 }
7487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7488 return resultobj;
7489 fail:
7490 return NULL;
7491 }
7492
7493
7494 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7495 PyObject *resultobj = 0;
7496 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7497 wxPoint result;
7498 void *argp1 = 0 ;
7499 int res1 = 0 ;
7500 PyObject *swig_obj[1] ;
7501
7502 if (!args) SWIG_fail;
7503 swig_obj[0] = args;
7504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7505 if (!SWIG_IsOK(res1)) {
7506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7507 }
7508 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7509 {
7510 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7511 if (PyErr_Occurred()) SWIG_fail;
7512 }
7513 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7514 return resultobj;
7515 fail:
7516 return NULL;
7517 }
7518
7519
7520 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7521 PyObject *resultobj = 0;
7522 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7523 int result;
7524 void *argp1 = 0 ;
7525 int res1 = 0 ;
7526 PyObject *swig_obj[1] ;
7527
7528 if (!args) SWIG_fail;
7529 swig_obj[0] = args;
7530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7531 if (!SWIG_IsOK(res1)) {
7532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7533 }
7534 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7535 {
7536 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7537 if (PyErr_Occurred()) SWIG_fail;
7538 }
7539 resultobj = SWIG_From_int(static_cast< int >(result));
7540 return resultobj;
7541 fail:
7542 return NULL;
7543 }
7544
7545
7546 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7547 PyObject *resultobj = 0;
7548 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7549 int result;
7550 void *argp1 = 0 ;
7551 int res1 = 0 ;
7552 PyObject *swig_obj[1] ;
7553
7554 if (!args) SWIG_fail;
7555 swig_obj[0] = args;
7556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7557 if (!SWIG_IsOK(res1)) {
7558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7559 }
7560 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7561 {
7562 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 resultobj = SWIG_From_int(static_cast< int >(result));
7566 return resultobj;
7567 fail:
7568 return NULL;
7569 }
7570
7571
7572 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7573 PyObject *resultobj = 0;
7574 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7575 wxSize result;
7576 void *argp1 = 0 ;
7577 int res1 = 0 ;
7578 PyObject *swig_obj[1] ;
7579
7580 if (!args) SWIG_fail;
7581 swig_obj[0] = args;
7582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7583 if (!SWIG_IsOK(res1)) {
7584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7585 }
7586 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7587 {
7588 result = ((wxPixelDataBase const *)arg1)->GetSize();
7589 if (PyErr_Occurred()) SWIG_fail;
7590 }
7591 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7592 return resultobj;
7593 fail:
7594 return NULL;
7595 }
7596
7597
7598 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7599 PyObject *resultobj = 0;
7600 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7601 int result;
7602 void *argp1 = 0 ;
7603 int res1 = 0 ;
7604 PyObject *swig_obj[1] ;
7605
7606 if (!args) SWIG_fail;
7607 swig_obj[0] = args;
7608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7609 if (!SWIG_IsOK(res1)) {
7610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7611 }
7612 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7613 {
7614 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7615 if (PyErr_Occurred()) SWIG_fail;
7616 }
7617 resultobj = SWIG_From_int(static_cast< int >(result));
7618 return resultobj;
7619 fail:
7620 return NULL;
7621 }
7622
7623
7624 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7625 PyObject *obj;
7626 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7627 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7628 return SWIG_Py_Void();
7629 }
7630
7631 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7632 PyObject *resultobj = 0;
7633 wxBitmap *arg1 = 0 ;
7634 wxNativePixelData *result = 0 ;
7635 void *argp1 = 0 ;
7636 int res1 = 0 ;
7637
7638 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7640 if (!SWIG_IsOK(res1)) {
7641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7642 }
7643 if (!argp1) {
7644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7645 }
7646 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7647 {
7648 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7649 if (PyErr_Occurred()) SWIG_fail;
7650 }
7651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7652 return resultobj;
7653 fail:
7654 return NULL;
7655 }
7656
7657
7658 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7659 PyObject *resultobj = 0;
7660 wxBitmap *arg1 = 0 ;
7661 wxRect *arg2 = 0 ;
7662 wxNativePixelData *result = 0 ;
7663 void *argp1 = 0 ;
7664 int res1 = 0 ;
7665 wxRect temp2 ;
7666
7667 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7669 if (!SWIG_IsOK(res1)) {
7670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7671 }
7672 if (!argp1) {
7673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7674 }
7675 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7676 {
7677 arg2 = &temp2;
7678 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7679 }
7680 {
7681 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7682 if (PyErr_Occurred()) SWIG_fail;
7683 }
7684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7685 return resultobj;
7686 fail:
7687 return NULL;
7688 }
7689
7690
7691 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7692 PyObject *resultobj = 0;
7693 wxBitmap *arg1 = 0 ;
7694 wxPoint *arg2 = 0 ;
7695 wxSize *arg3 = 0 ;
7696 wxNativePixelData *result = 0 ;
7697 void *argp1 = 0 ;
7698 int res1 = 0 ;
7699 wxPoint temp2 ;
7700 wxSize temp3 ;
7701
7702 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7704 if (!SWIG_IsOK(res1)) {
7705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7706 }
7707 if (!argp1) {
7708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7709 }
7710 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7711 {
7712 arg2 = &temp2;
7713 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7714 }
7715 {
7716 arg3 = &temp3;
7717 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7718 }
7719 {
7720 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7721 if (PyErr_Occurred()) SWIG_fail;
7722 }
7723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7724 return resultobj;
7725 fail:
7726 return NULL;
7727 }
7728
7729
7730 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7731 int argc;
7732 PyObject *argv[4];
7733
7734 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7735 --argc;
7736 if (argc == 1) {
7737 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7738 }
7739 if (argc == 2) {
7740 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7741 }
7742 if (argc == 3) {
7743 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7744 }
7745
7746 fail:
7747 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7748 return NULL;
7749 }
7750
7751
7752 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7753 PyObject *resultobj = 0;
7754 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7755 void *argp1 = 0 ;
7756 int res1 = 0 ;
7757 PyObject *swig_obj[1] ;
7758
7759 if (!args) SWIG_fail;
7760 swig_obj[0] = args;
7761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7762 if (!SWIG_IsOK(res1)) {
7763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7764 }
7765 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7766 {
7767 delete arg1;
7768
7769 if (PyErr_Occurred()) SWIG_fail;
7770 }
7771 resultobj = SWIG_Py_Void();
7772 return resultobj;
7773 fail:
7774 return NULL;
7775 }
7776
7777
7778 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7779 PyObject *resultobj = 0;
7780 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7781 wxNativePixelData_Accessor result;
7782 void *argp1 = 0 ;
7783 int res1 = 0 ;
7784 PyObject *swig_obj[1] ;
7785
7786 if (!args) SWIG_fail;
7787 swig_obj[0] = args;
7788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7789 if (!SWIG_IsOK(res1)) {
7790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7791 }
7792 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7793 {
7794 result = ((wxNativePixelData const *)arg1)->GetPixels();
7795 if (PyErr_Occurred()) SWIG_fail;
7796 }
7797 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7798 return resultobj;
7799 fail:
7800 return NULL;
7801 }
7802
7803
7804 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7805 PyObject *resultobj = 0;
7806 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7807 void *argp1 = 0 ;
7808 int res1 = 0 ;
7809 PyObject *swig_obj[1] ;
7810
7811 if (!args) SWIG_fail;
7812 swig_obj[0] = args;
7813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7814 if (!SWIG_IsOK(res1)) {
7815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7816 }
7817 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7818 {
7819 (arg1)->UseAlpha();
7820 if (PyErr_Occurred()) SWIG_fail;
7821 }
7822 resultobj = SWIG_Py_Void();
7823 return resultobj;
7824 fail:
7825 return NULL;
7826 }
7827
7828
7829 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7830 PyObject *resultobj = 0;
7831 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7832 bool result;
7833 void *argp1 = 0 ;
7834 int res1 = 0 ;
7835 PyObject *swig_obj[1] ;
7836
7837 if (!args) SWIG_fail;
7838 swig_obj[0] = args;
7839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7840 if (!SWIG_IsOK(res1)) {
7841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7842 }
7843 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7844 {
7845 result = (bool)wxNativePixelData___nonzero__(arg1);
7846 if (PyErr_Occurred()) SWIG_fail;
7847 }
7848 {
7849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7850 }
7851 return resultobj;
7852 fail:
7853 return NULL;
7854 }
7855
7856
7857 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7858 PyObject *obj;
7859 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7860 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7861 return SWIG_Py_Void();
7862 }
7863
7864 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7865 return SWIG_Python_InitShadowInstance(args);
7866 }
7867
7868 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7869 PyObject *resultobj = 0;
7870 wxNativePixelData *arg1 = 0 ;
7871 wxNativePixelData_Accessor *result = 0 ;
7872 void *argp1 = 0 ;
7873 int res1 = 0 ;
7874
7875 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7877 if (!SWIG_IsOK(res1)) {
7878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7879 }
7880 if (!argp1) {
7881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7882 }
7883 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7884 {
7885 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7886 if (PyErr_Occurred()) SWIG_fail;
7887 }
7888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7889 return resultobj;
7890 fail:
7891 return NULL;
7892 }
7893
7894
7895 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7896 PyObject *resultobj = 0;
7897 wxBitmap *arg1 = 0 ;
7898 wxNativePixelData *arg2 = 0 ;
7899 wxNativePixelData_Accessor *result = 0 ;
7900 void *argp1 = 0 ;
7901 int res1 = 0 ;
7902 void *argp2 = 0 ;
7903 int res2 = 0 ;
7904
7905 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7907 if (!SWIG_IsOK(res1)) {
7908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7909 }
7910 if (!argp1) {
7911 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7912 }
7913 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7914 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7915 if (!SWIG_IsOK(res2)) {
7916 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7917 }
7918 if (!argp2) {
7919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7920 }
7921 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7922 {
7923 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7924 if (PyErr_Occurred()) SWIG_fail;
7925 }
7926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7927 return resultobj;
7928 fail:
7929 return NULL;
7930 }
7931
7932
7933 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7934 PyObject *resultobj = 0;
7935 wxNativePixelData_Accessor *result = 0 ;
7936
7937 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7938 {
7939 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7940 if (PyErr_Occurred()) SWIG_fail;
7941 }
7942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7943 return resultobj;
7944 fail:
7945 return NULL;
7946 }
7947
7948
7949 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7950 int argc;
7951 PyObject *argv[3];
7952
7953 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7954 --argc;
7955 if (argc == 0) {
7956 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7957 }
7958 if (argc == 1) {
7959 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7960 }
7961 if (argc == 2) {
7962 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7963 }
7964
7965 fail:
7966 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7967 return NULL;
7968 }
7969
7970
7971 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7972 PyObject *resultobj = 0;
7973 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7974 void *argp1 = 0 ;
7975 int res1 = 0 ;
7976 PyObject *swig_obj[1] ;
7977
7978 if (!args) SWIG_fail;
7979 swig_obj[0] = args;
7980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7981 if (!SWIG_IsOK(res1)) {
7982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7983 }
7984 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7985 {
7986 delete arg1;
7987
7988 if (PyErr_Occurred()) SWIG_fail;
7989 }
7990 resultobj = SWIG_Py_Void();
7991 return resultobj;
7992 fail:
7993 return NULL;
7994 }
7995
7996
7997 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7998 PyObject *resultobj = 0;
7999 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8000 wxNativePixelData *arg2 = 0 ;
8001 void *argp1 = 0 ;
8002 int res1 = 0 ;
8003 void *argp2 = 0 ;
8004 int res2 = 0 ;
8005 PyObject * obj0 = 0 ;
8006 PyObject * obj1 = 0 ;
8007 char * kwnames[] = {
8008 (char *) "self",(char *) "data", NULL
8009 };
8010
8011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8013 if (!SWIG_IsOK(res1)) {
8014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8015 }
8016 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8017 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8018 if (!SWIG_IsOK(res2)) {
8019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8020 }
8021 if (!argp2) {
8022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8023 }
8024 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8025 {
8026 (arg1)->Reset((wxNativePixelData const &)*arg2);
8027 if (PyErr_Occurred()) SWIG_fail;
8028 }
8029 resultobj = SWIG_Py_Void();
8030 return resultobj;
8031 fail:
8032 return NULL;
8033 }
8034
8035
8036 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8037 PyObject *resultobj = 0;
8038 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8039 bool result;
8040 void *argp1 = 0 ;
8041 int res1 = 0 ;
8042 PyObject *swig_obj[1] ;
8043
8044 if (!args) SWIG_fail;
8045 swig_obj[0] = args;
8046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8047 if (!SWIG_IsOK(res1)) {
8048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
8049 }
8050 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8051 {
8052 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
8053 if (PyErr_Occurred()) SWIG_fail;
8054 }
8055 {
8056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8057 }
8058 return resultobj;
8059 fail:
8060 return NULL;
8061 }
8062
8063
8064 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8065 PyObject *resultobj = 0;
8066 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8067 void *argp1 = 0 ;
8068 int res1 = 0 ;
8069 PyObject *swig_obj[1] ;
8070
8071 if (!args) SWIG_fail;
8072 swig_obj[0] = args;
8073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8074 if (!SWIG_IsOK(res1)) {
8075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8076 }
8077 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8078 {
8079 wxNativePixelData_Accessor_nextPixel(arg1);
8080 if (PyErr_Occurred()) SWIG_fail;
8081 }
8082 resultobj = SWIG_Py_Void();
8083 return resultobj;
8084 fail:
8085 return NULL;
8086 }
8087
8088
8089 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8090 PyObject *resultobj = 0;
8091 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8092 wxNativePixelData *arg2 = 0 ;
8093 int arg3 ;
8094 int arg4 ;
8095 void *argp1 = 0 ;
8096 int res1 = 0 ;
8097 void *argp2 = 0 ;
8098 int res2 = 0 ;
8099 int val3 ;
8100 int ecode3 = 0 ;
8101 int val4 ;
8102 int ecode4 = 0 ;
8103 PyObject * obj0 = 0 ;
8104 PyObject * obj1 = 0 ;
8105 PyObject * obj2 = 0 ;
8106 PyObject * obj3 = 0 ;
8107 char * kwnames[] = {
8108 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8109 };
8110
8111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8113 if (!SWIG_IsOK(res1)) {
8114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8115 }
8116 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8117 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8118 if (!SWIG_IsOK(res2)) {
8119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8120 }
8121 if (!argp2) {
8122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8123 }
8124 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8125 ecode3 = SWIG_AsVal_int(obj2, &val3);
8126 if (!SWIG_IsOK(ecode3)) {
8127 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8128 }
8129 arg3 = static_cast< int >(val3);
8130 ecode4 = SWIG_AsVal_int(obj3, &val4);
8131 if (!SWIG_IsOK(ecode4)) {
8132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8133 }
8134 arg4 = static_cast< int >(val4);
8135 {
8136 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
8137 if (PyErr_Occurred()) SWIG_fail;
8138 }
8139 resultobj = SWIG_Py_Void();
8140 return resultobj;
8141 fail:
8142 return NULL;
8143 }
8144
8145
8146 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8147 PyObject *resultobj = 0;
8148 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8149 wxNativePixelData *arg2 = 0 ;
8150 int arg3 ;
8151 void *argp1 = 0 ;
8152 int res1 = 0 ;
8153 void *argp2 = 0 ;
8154 int res2 = 0 ;
8155 int val3 ;
8156 int ecode3 = 0 ;
8157 PyObject * obj0 = 0 ;
8158 PyObject * obj1 = 0 ;
8159 PyObject * obj2 = 0 ;
8160 char * kwnames[] = {
8161 (char *) "self",(char *) "data",(char *) "x", NULL
8162 };
8163
8164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8166 if (!SWIG_IsOK(res1)) {
8167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8168 }
8169 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8170 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8171 if (!SWIG_IsOK(res2)) {
8172 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8173 }
8174 if (!argp2) {
8175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8176 }
8177 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8178 ecode3 = SWIG_AsVal_int(obj2, &val3);
8179 if (!SWIG_IsOK(ecode3)) {
8180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8181 }
8182 arg3 = static_cast< int >(val3);
8183 {
8184 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8185 if (PyErr_Occurred()) SWIG_fail;
8186 }
8187 resultobj = SWIG_Py_Void();
8188 return resultobj;
8189 fail:
8190 return NULL;
8191 }
8192
8193
8194 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8195 PyObject *resultobj = 0;
8196 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8197 wxNativePixelData *arg2 = 0 ;
8198 int arg3 ;
8199 void *argp1 = 0 ;
8200 int res1 = 0 ;
8201 void *argp2 = 0 ;
8202 int res2 = 0 ;
8203 int val3 ;
8204 int ecode3 = 0 ;
8205 PyObject * obj0 = 0 ;
8206 PyObject * obj1 = 0 ;
8207 PyObject * obj2 = 0 ;
8208 char * kwnames[] = {
8209 (char *) "self",(char *) "data",(char *) "y", NULL
8210 };
8211
8212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8214 if (!SWIG_IsOK(res1)) {
8215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8216 }
8217 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8219 if (!SWIG_IsOK(res2)) {
8220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8221 }
8222 if (!argp2) {
8223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8224 }
8225 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8226 ecode3 = SWIG_AsVal_int(obj2, &val3);
8227 if (!SWIG_IsOK(ecode3)) {
8228 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8229 }
8230 arg3 = static_cast< int >(val3);
8231 {
8232 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8233 if (PyErr_Occurred()) SWIG_fail;
8234 }
8235 resultobj = SWIG_Py_Void();
8236 return resultobj;
8237 fail:
8238 return NULL;
8239 }
8240
8241
8242 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8243 PyObject *resultobj = 0;
8244 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8245 wxNativePixelData *arg2 = 0 ;
8246 int arg3 ;
8247 int arg4 ;
8248 void *argp1 = 0 ;
8249 int res1 = 0 ;
8250 void *argp2 = 0 ;
8251 int res2 = 0 ;
8252 int val3 ;
8253 int ecode3 = 0 ;
8254 int val4 ;
8255 int ecode4 = 0 ;
8256 PyObject * obj0 = 0 ;
8257 PyObject * obj1 = 0 ;
8258 PyObject * obj2 = 0 ;
8259 PyObject * obj3 = 0 ;
8260 char * kwnames[] = {
8261 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8262 };
8263
8264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8266 if (!SWIG_IsOK(res1)) {
8267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8268 }
8269 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8270 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8271 if (!SWIG_IsOK(res2)) {
8272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8273 }
8274 if (!argp2) {
8275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8276 }
8277 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8278 ecode3 = SWIG_AsVal_int(obj2, &val3);
8279 if (!SWIG_IsOK(ecode3)) {
8280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8281 }
8282 arg3 = static_cast< int >(val3);
8283 ecode4 = SWIG_AsVal_int(obj3, &val4);
8284 if (!SWIG_IsOK(ecode4)) {
8285 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8286 }
8287 arg4 = static_cast< int >(val4);
8288 {
8289 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8290 if (PyErr_Occurred()) SWIG_fail;
8291 }
8292 resultobj = SWIG_Py_Void();
8293 return resultobj;
8294 fail:
8295 return NULL;
8296 }
8297
8298
8299 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8300 PyObject *resultobj = 0;
8301 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8302 byte arg2 ;
8303 byte arg3 ;
8304 byte arg4 ;
8305 void *argp1 = 0 ;
8306 int res1 = 0 ;
8307 unsigned char val2 ;
8308 int ecode2 = 0 ;
8309 unsigned char val3 ;
8310 int ecode3 = 0 ;
8311 unsigned char val4 ;
8312 int ecode4 = 0 ;
8313 PyObject * obj0 = 0 ;
8314 PyObject * obj1 = 0 ;
8315 PyObject * obj2 = 0 ;
8316 PyObject * obj3 = 0 ;
8317 char * kwnames[] = {
8318 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8319 };
8320
8321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8323 if (!SWIG_IsOK(res1)) {
8324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8325 }
8326 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8327 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8328 if (!SWIG_IsOK(ecode2)) {
8329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8330 }
8331 arg2 = static_cast< byte >(val2);
8332 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8333 if (!SWIG_IsOK(ecode3)) {
8334 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8335 }
8336 arg3 = static_cast< byte >(val3);
8337 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8338 if (!SWIG_IsOK(ecode4)) {
8339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8340 }
8341 arg4 = static_cast< byte >(val4);
8342 {
8343 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8344 if (PyErr_Occurred()) SWIG_fail;
8345 }
8346 resultobj = SWIG_Py_Void();
8347 return resultobj;
8348 fail:
8349 return NULL;
8350 }
8351
8352
8353 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8354 PyObject *resultobj = 0;
8355 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8356 PyObject *result = 0 ;
8357 void *argp1 = 0 ;
8358 int res1 = 0 ;
8359 PyObject *swig_obj[1] ;
8360
8361 if (!args) SWIG_fail;
8362 swig_obj[0] = args;
8363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8364 if (!SWIG_IsOK(res1)) {
8365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8366 }
8367 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8368 {
8369 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8370 if (PyErr_Occurred()) SWIG_fail;
8371 }
8372 resultobj = result;
8373 return resultobj;
8374 fail:
8375 return NULL;
8376 }
8377
8378
8379 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8380 PyObject *obj;
8381 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8382 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8383 return SWIG_Py_Void();
8384 }
8385
8386 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8387 return SWIG_Python_InitShadowInstance(args);
8388 }
8389
8390 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8391 PyObject *resultobj = 0;
8392 wxBitmap *arg1 = 0 ;
8393 wxAlphaPixelData *result = 0 ;
8394 void *argp1 = 0 ;
8395 int res1 = 0 ;
8396
8397 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8399 if (!SWIG_IsOK(res1)) {
8400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8401 }
8402 if (!argp1) {
8403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8404 }
8405 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8406 {
8407 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8408 if (PyErr_Occurred()) SWIG_fail;
8409 }
8410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8411 return resultobj;
8412 fail:
8413 return NULL;
8414 }
8415
8416
8417 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8418 PyObject *resultobj = 0;
8419 wxBitmap *arg1 = 0 ;
8420 wxRect *arg2 = 0 ;
8421 wxAlphaPixelData *result = 0 ;
8422 void *argp1 = 0 ;
8423 int res1 = 0 ;
8424 wxRect temp2 ;
8425
8426 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8428 if (!SWIG_IsOK(res1)) {
8429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8430 }
8431 if (!argp1) {
8432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8433 }
8434 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8435 {
8436 arg2 = &temp2;
8437 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8438 }
8439 {
8440 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8441 if (PyErr_Occurred()) SWIG_fail;
8442 }
8443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8444 return resultobj;
8445 fail:
8446 return NULL;
8447 }
8448
8449
8450 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8451 PyObject *resultobj = 0;
8452 wxBitmap *arg1 = 0 ;
8453 wxPoint *arg2 = 0 ;
8454 wxSize *arg3 = 0 ;
8455 wxAlphaPixelData *result = 0 ;
8456 void *argp1 = 0 ;
8457 int res1 = 0 ;
8458 wxPoint temp2 ;
8459 wxSize temp3 ;
8460
8461 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8463 if (!SWIG_IsOK(res1)) {
8464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8465 }
8466 if (!argp1) {
8467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8468 }
8469 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8470 {
8471 arg2 = &temp2;
8472 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8473 }
8474 {
8475 arg3 = &temp3;
8476 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8477 }
8478 {
8479 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8480 if (PyErr_Occurred()) SWIG_fail;
8481 }
8482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8483 return resultobj;
8484 fail:
8485 return NULL;
8486 }
8487
8488
8489 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8490 int argc;
8491 PyObject *argv[4];
8492
8493 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8494 --argc;
8495 if (argc == 1) {
8496 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8497 }
8498 if (argc == 2) {
8499 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8500 }
8501 if (argc == 3) {
8502 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8503 }
8504
8505 fail:
8506 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8507 return NULL;
8508 }
8509
8510
8511 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8512 PyObject *resultobj = 0;
8513 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8514 void *argp1 = 0 ;
8515 int res1 = 0 ;
8516 PyObject *swig_obj[1] ;
8517
8518 if (!args) SWIG_fail;
8519 swig_obj[0] = args;
8520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8521 if (!SWIG_IsOK(res1)) {
8522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8523 }
8524 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8525 {
8526 delete arg1;
8527
8528 if (PyErr_Occurred()) SWIG_fail;
8529 }
8530 resultobj = SWIG_Py_Void();
8531 return resultobj;
8532 fail:
8533 return NULL;
8534 }
8535
8536
8537 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8538 PyObject *resultobj = 0;
8539 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8540 wxAlphaPixelData_Accessor result;
8541 void *argp1 = 0 ;
8542 int res1 = 0 ;
8543 PyObject *swig_obj[1] ;
8544
8545 if (!args) SWIG_fail;
8546 swig_obj[0] = args;
8547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8548 if (!SWIG_IsOK(res1)) {
8549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8550 }
8551 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8552 {
8553 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8554 if (PyErr_Occurred()) SWIG_fail;
8555 }
8556 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8557 return resultobj;
8558 fail:
8559 return NULL;
8560 }
8561
8562
8563 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8564 PyObject *resultobj = 0;
8565 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8566 void *argp1 = 0 ;
8567 int res1 = 0 ;
8568 PyObject *swig_obj[1] ;
8569
8570 if (!args) SWIG_fail;
8571 swig_obj[0] = args;
8572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8573 if (!SWIG_IsOK(res1)) {
8574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8575 }
8576 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8577 {
8578 (arg1)->UseAlpha();
8579 if (PyErr_Occurred()) SWIG_fail;
8580 }
8581 resultobj = SWIG_Py_Void();
8582 return resultobj;
8583 fail:
8584 return NULL;
8585 }
8586
8587
8588 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8589 PyObject *resultobj = 0;
8590 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8591 bool result;
8592 void *argp1 = 0 ;
8593 int res1 = 0 ;
8594 PyObject *swig_obj[1] ;
8595
8596 if (!args) SWIG_fail;
8597 swig_obj[0] = args;
8598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8599 if (!SWIG_IsOK(res1)) {
8600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8601 }
8602 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8603 {
8604 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8605 if (PyErr_Occurred()) SWIG_fail;
8606 }
8607 {
8608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8609 }
8610 return resultobj;
8611 fail:
8612 return NULL;
8613 }
8614
8615
8616 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8617 PyObject *obj;
8618 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8619 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8620 return SWIG_Py_Void();
8621 }
8622
8623 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8624 return SWIG_Python_InitShadowInstance(args);
8625 }
8626
8627 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8628 PyObject *resultobj = 0;
8629 wxAlphaPixelData *arg1 = 0 ;
8630 wxAlphaPixelData_Accessor *result = 0 ;
8631 void *argp1 = 0 ;
8632 int res1 = 0 ;
8633
8634 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8636 if (!SWIG_IsOK(res1)) {
8637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8638 }
8639 if (!argp1) {
8640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8641 }
8642 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8643 {
8644 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8645 if (PyErr_Occurred()) SWIG_fail;
8646 }
8647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8648 return resultobj;
8649 fail:
8650 return NULL;
8651 }
8652
8653
8654 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8655 PyObject *resultobj = 0;
8656 wxBitmap *arg1 = 0 ;
8657 wxAlphaPixelData *arg2 = 0 ;
8658 wxAlphaPixelData_Accessor *result = 0 ;
8659 void *argp1 = 0 ;
8660 int res1 = 0 ;
8661 void *argp2 = 0 ;
8662 int res2 = 0 ;
8663
8664 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8666 if (!SWIG_IsOK(res1)) {
8667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8668 }
8669 if (!argp1) {
8670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8671 }
8672 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8673 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8674 if (!SWIG_IsOK(res2)) {
8675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8676 }
8677 if (!argp2) {
8678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8679 }
8680 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8681 {
8682 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8683 if (PyErr_Occurred()) SWIG_fail;
8684 }
8685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8686 return resultobj;
8687 fail:
8688 return NULL;
8689 }
8690
8691
8692 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8693 PyObject *resultobj = 0;
8694 wxAlphaPixelData_Accessor *result = 0 ;
8695
8696 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8697 {
8698 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8699 if (PyErr_Occurred()) SWIG_fail;
8700 }
8701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8702 return resultobj;
8703 fail:
8704 return NULL;
8705 }
8706
8707
8708 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8709 int argc;
8710 PyObject *argv[3];
8711
8712 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8713 --argc;
8714 if (argc == 0) {
8715 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8716 }
8717 if (argc == 1) {
8718 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8719 }
8720 if (argc == 2) {
8721 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8722 }
8723
8724 fail:
8725 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8726 return NULL;
8727 }
8728
8729
8730 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8731 PyObject *resultobj = 0;
8732 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8733 void *argp1 = 0 ;
8734 int res1 = 0 ;
8735 PyObject *swig_obj[1] ;
8736
8737 if (!args) SWIG_fail;
8738 swig_obj[0] = args;
8739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8740 if (!SWIG_IsOK(res1)) {
8741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8742 }
8743 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8744 {
8745 delete arg1;
8746
8747 if (PyErr_Occurred()) SWIG_fail;
8748 }
8749 resultobj = SWIG_Py_Void();
8750 return resultobj;
8751 fail:
8752 return NULL;
8753 }
8754
8755
8756 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8757 PyObject *resultobj = 0;
8758 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8759 wxAlphaPixelData *arg2 = 0 ;
8760 void *argp1 = 0 ;
8761 int res1 = 0 ;
8762 void *argp2 = 0 ;
8763 int res2 = 0 ;
8764 PyObject * obj0 = 0 ;
8765 PyObject * obj1 = 0 ;
8766 char * kwnames[] = {
8767 (char *) "self",(char *) "data", NULL
8768 };
8769
8770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8772 if (!SWIG_IsOK(res1)) {
8773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8774 }
8775 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8776 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8777 if (!SWIG_IsOK(res2)) {
8778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8779 }
8780 if (!argp2) {
8781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8782 }
8783 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8784 {
8785 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8786 if (PyErr_Occurred()) SWIG_fail;
8787 }
8788 resultobj = SWIG_Py_Void();
8789 return resultobj;
8790 fail:
8791 return NULL;
8792 }
8793
8794
8795 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8796 PyObject *resultobj = 0;
8797 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8798 bool result;
8799 void *argp1 = 0 ;
8800 int res1 = 0 ;
8801 PyObject *swig_obj[1] ;
8802
8803 if (!args) SWIG_fail;
8804 swig_obj[0] = args;
8805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8806 if (!SWIG_IsOK(res1)) {
8807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8808 }
8809 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8810 {
8811 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8812 if (PyErr_Occurred()) SWIG_fail;
8813 }
8814 {
8815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8816 }
8817 return resultobj;
8818 fail:
8819 return NULL;
8820 }
8821
8822
8823 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8824 PyObject *resultobj = 0;
8825 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8826 void *argp1 = 0 ;
8827 int res1 = 0 ;
8828 PyObject *swig_obj[1] ;
8829
8830 if (!args) SWIG_fail;
8831 swig_obj[0] = args;
8832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8833 if (!SWIG_IsOK(res1)) {
8834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8835 }
8836 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8837 {
8838 wxAlphaPixelData_Accessor_nextPixel(arg1);
8839 if (PyErr_Occurred()) SWIG_fail;
8840 }
8841 resultobj = SWIG_Py_Void();
8842 return resultobj;
8843 fail:
8844 return NULL;
8845 }
8846
8847
8848 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8849 PyObject *resultobj = 0;
8850 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8851 wxAlphaPixelData *arg2 = 0 ;
8852 int arg3 ;
8853 int arg4 ;
8854 void *argp1 = 0 ;
8855 int res1 = 0 ;
8856 void *argp2 = 0 ;
8857 int res2 = 0 ;
8858 int val3 ;
8859 int ecode3 = 0 ;
8860 int val4 ;
8861 int ecode4 = 0 ;
8862 PyObject * obj0 = 0 ;
8863 PyObject * obj1 = 0 ;
8864 PyObject * obj2 = 0 ;
8865 PyObject * obj3 = 0 ;
8866 char * kwnames[] = {
8867 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8868 };
8869
8870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8872 if (!SWIG_IsOK(res1)) {
8873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8874 }
8875 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8876 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8877 if (!SWIG_IsOK(res2)) {
8878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8879 }
8880 if (!argp2) {
8881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8882 }
8883 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8884 ecode3 = SWIG_AsVal_int(obj2, &val3);
8885 if (!SWIG_IsOK(ecode3)) {
8886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8887 }
8888 arg3 = static_cast< int >(val3);
8889 ecode4 = SWIG_AsVal_int(obj3, &val4);
8890 if (!SWIG_IsOK(ecode4)) {
8891 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8892 }
8893 arg4 = static_cast< int >(val4);
8894 {
8895 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8896 if (PyErr_Occurred()) SWIG_fail;
8897 }
8898 resultobj = SWIG_Py_Void();
8899 return resultobj;
8900 fail:
8901 return NULL;
8902 }
8903
8904
8905 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8906 PyObject *resultobj = 0;
8907 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8908 wxAlphaPixelData *arg2 = 0 ;
8909 int arg3 ;
8910 void *argp1 = 0 ;
8911 int res1 = 0 ;
8912 void *argp2 = 0 ;
8913 int res2 = 0 ;
8914 int val3 ;
8915 int ecode3 = 0 ;
8916 PyObject * obj0 = 0 ;
8917 PyObject * obj1 = 0 ;
8918 PyObject * obj2 = 0 ;
8919 char * kwnames[] = {
8920 (char *) "self",(char *) "data",(char *) "x", NULL
8921 };
8922
8923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8925 if (!SWIG_IsOK(res1)) {
8926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8927 }
8928 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8929 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8930 if (!SWIG_IsOK(res2)) {
8931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8932 }
8933 if (!argp2) {
8934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8935 }
8936 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8937 ecode3 = SWIG_AsVal_int(obj2, &val3);
8938 if (!SWIG_IsOK(ecode3)) {
8939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8940 }
8941 arg3 = static_cast< int >(val3);
8942 {
8943 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8944 if (PyErr_Occurred()) SWIG_fail;
8945 }
8946 resultobj = SWIG_Py_Void();
8947 return resultobj;
8948 fail:
8949 return NULL;
8950 }
8951
8952
8953 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8954 PyObject *resultobj = 0;
8955 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8956 wxAlphaPixelData *arg2 = 0 ;
8957 int arg3 ;
8958 void *argp1 = 0 ;
8959 int res1 = 0 ;
8960 void *argp2 = 0 ;
8961 int res2 = 0 ;
8962 int val3 ;
8963 int ecode3 = 0 ;
8964 PyObject * obj0 = 0 ;
8965 PyObject * obj1 = 0 ;
8966 PyObject * obj2 = 0 ;
8967 char * kwnames[] = {
8968 (char *) "self",(char *) "data",(char *) "y", NULL
8969 };
8970
8971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8973 if (!SWIG_IsOK(res1)) {
8974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8975 }
8976 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8977 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8978 if (!SWIG_IsOK(res2)) {
8979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8980 }
8981 if (!argp2) {
8982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8983 }
8984 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8985 ecode3 = SWIG_AsVal_int(obj2, &val3);
8986 if (!SWIG_IsOK(ecode3)) {
8987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8988 }
8989 arg3 = static_cast< int >(val3);
8990 {
8991 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8992 if (PyErr_Occurred()) SWIG_fail;
8993 }
8994 resultobj = SWIG_Py_Void();
8995 return resultobj;
8996 fail:
8997 return NULL;
8998 }
8999
9000
9001 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9002 PyObject *resultobj = 0;
9003 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9004 wxAlphaPixelData *arg2 = 0 ;
9005 int arg3 ;
9006 int arg4 ;
9007 void *argp1 = 0 ;
9008 int res1 = 0 ;
9009 void *argp2 = 0 ;
9010 int res2 = 0 ;
9011 int val3 ;
9012 int ecode3 = 0 ;
9013 int val4 ;
9014 int ecode4 = 0 ;
9015 PyObject * obj0 = 0 ;
9016 PyObject * obj1 = 0 ;
9017 PyObject * obj2 = 0 ;
9018 PyObject * obj3 = 0 ;
9019 char * kwnames[] = {
9020 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
9021 };
9022
9023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9025 if (!SWIG_IsOK(res1)) {
9026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9027 }
9028 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9029 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
9030 if (!SWIG_IsOK(res2)) {
9031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
9032 }
9033 if (!argp2) {
9034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
9035 }
9036 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
9037 ecode3 = SWIG_AsVal_int(obj2, &val3);
9038 if (!SWIG_IsOK(ecode3)) {
9039 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
9040 }
9041 arg3 = static_cast< int >(val3);
9042 ecode4 = SWIG_AsVal_int(obj3, &val4);
9043 if (!SWIG_IsOK(ecode4)) {
9044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
9045 }
9046 arg4 = static_cast< int >(val4);
9047 {
9048 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
9049 if (PyErr_Occurred()) SWIG_fail;
9050 }
9051 resultobj = SWIG_Py_Void();
9052 return resultobj;
9053 fail:
9054 return NULL;
9055 }
9056
9057
9058 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9059 PyObject *resultobj = 0;
9060 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9061 byte arg2 ;
9062 byte arg3 ;
9063 byte arg4 ;
9064 byte arg5 ;
9065 void *argp1 = 0 ;
9066 int res1 = 0 ;
9067 unsigned char val2 ;
9068 int ecode2 = 0 ;
9069 unsigned char val3 ;
9070 int ecode3 = 0 ;
9071 unsigned char val4 ;
9072 int ecode4 = 0 ;
9073 unsigned char val5 ;
9074 int ecode5 = 0 ;
9075 PyObject * obj0 = 0 ;
9076 PyObject * obj1 = 0 ;
9077 PyObject * obj2 = 0 ;
9078 PyObject * obj3 = 0 ;
9079 PyObject * obj4 = 0 ;
9080 char * kwnames[] = {
9081 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
9082 };
9083
9084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9086 if (!SWIG_IsOK(res1)) {
9087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9088 }
9089 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9090 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
9091 if (!SWIG_IsOK(ecode2)) {
9092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
9093 }
9094 arg2 = static_cast< byte >(val2);
9095 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
9096 if (!SWIG_IsOK(ecode3)) {
9097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
9098 }
9099 arg3 = static_cast< byte >(val3);
9100 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
9101 if (!SWIG_IsOK(ecode4)) {
9102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
9103 }
9104 arg4 = static_cast< byte >(val4);
9105 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
9106 if (!SWIG_IsOK(ecode5)) {
9107 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
9108 }
9109 arg5 = static_cast< byte >(val5);
9110 {
9111 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
9112 if (PyErr_Occurred()) SWIG_fail;
9113 }
9114 resultobj = SWIG_Py_Void();
9115 return resultobj;
9116 fail:
9117 return NULL;
9118 }
9119
9120
9121 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9122 PyObject *resultobj = 0;
9123 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9124 PyObject *result = 0 ;
9125 void *argp1 = 0 ;
9126 int res1 = 0 ;
9127 PyObject *swig_obj[1] ;
9128
9129 if (!args) SWIG_fail;
9130 swig_obj[0] = args;
9131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9132 if (!SWIG_IsOK(res1)) {
9133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9134 }
9135 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9136 {
9137 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
9138 if (PyErr_Occurred()) SWIG_fail;
9139 }
9140 resultobj = result;
9141 return resultobj;
9142 fail:
9143 return NULL;
9144 }
9145
9146
9147 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9148 PyObject *obj;
9149 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9150 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
9151 return SWIG_Py_Void();
9152 }
9153
9154 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9155 return SWIG_Python_InitShadowInstance(args);
9156 }
9157
9158 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9159 PyObject *resultobj = 0;
9160 wxBitmap *arg1 = 0 ;
9161 wxColour const &arg2_defvalue = wxNullColour ;
9162 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9163 wxMask *result = 0 ;
9164 void *argp1 = 0 ;
9165 int res1 = 0 ;
9166 wxColour temp2 ;
9167 PyObject * obj0 = 0 ;
9168 PyObject * obj1 = 0 ;
9169 char * kwnames[] = {
9170 (char *) "bitmap",(char *) "colour", NULL
9171 };
9172
9173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9174 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9175 if (!SWIG_IsOK(res1)) {
9176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9177 }
9178 if (!argp1) {
9179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9180 }
9181 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9182 if (obj1) {
9183 {
9184 arg2 = &temp2;
9185 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9186 }
9187 }
9188 {
9189 if (!wxPyCheckForApp()) SWIG_fail;
9190 PyThreadState* __tstate = wxPyBeginAllowThreads();
9191 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9192 wxPyEndAllowThreads(__tstate);
9193 if (PyErr_Occurred()) SWIG_fail;
9194 }
9195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9196 return resultobj;
9197 fail:
9198 return NULL;
9199 }
9200
9201
9202 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9203 PyObject *resultobj = 0;
9204 wxMask *arg1 = (wxMask *) 0 ;
9205 void *argp1 = 0 ;
9206 int res1 = 0 ;
9207 PyObject *swig_obj[1] ;
9208
9209 if (!args) SWIG_fail;
9210 swig_obj[0] = args;
9211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9212 if (!SWIG_IsOK(res1)) {
9213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9214 }
9215 arg1 = reinterpret_cast< wxMask * >(argp1);
9216 {
9217 delete arg1;
9218
9219 if (PyErr_Occurred()) SWIG_fail;
9220 }
9221 resultobj = SWIG_Py_Void();
9222 return resultobj;
9223 fail:
9224 return NULL;
9225 }
9226
9227
9228 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9229 PyObject *obj;
9230 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9231 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9232 return SWIG_Py_Void();
9233 }
9234
9235 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9236 return SWIG_Python_InitShadowInstance(args);
9237 }
9238
9239 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9240 PyObject *resultobj = 0;
9241 wxString *arg1 = 0 ;
9242 wxBitmapType arg2 ;
9243 int arg3 = (int) -1 ;
9244 int arg4 = (int) -1 ;
9245 wxIcon *result = 0 ;
9246 bool temp1 = false ;
9247 int val2 ;
9248 int ecode2 = 0 ;
9249 int val3 ;
9250 int ecode3 = 0 ;
9251 int val4 ;
9252 int ecode4 = 0 ;
9253 PyObject * obj0 = 0 ;
9254 PyObject * obj1 = 0 ;
9255 PyObject * obj2 = 0 ;
9256 PyObject * obj3 = 0 ;
9257 char * kwnames[] = {
9258 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9259 };
9260
9261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9262 {
9263 arg1 = wxString_in_helper(obj0);
9264 if (arg1 == NULL) SWIG_fail;
9265 temp1 = true;
9266 }
9267 ecode2 = SWIG_AsVal_int(obj1, &val2);
9268 if (!SWIG_IsOK(ecode2)) {
9269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9270 }
9271 arg2 = static_cast< wxBitmapType >(val2);
9272 if (obj2) {
9273 ecode3 = SWIG_AsVal_int(obj2, &val3);
9274 if (!SWIG_IsOK(ecode3)) {
9275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9276 }
9277 arg3 = static_cast< int >(val3);
9278 }
9279 if (obj3) {
9280 ecode4 = SWIG_AsVal_int(obj3, &val4);
9281 if (!SWIG_IsOK(ecode4)) {
9282 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9283 }
9284 arg4 = static_cast< int >(val4);
9285 }
9286 {
9287 if (!wxPyCheckForApp()) SWIG_fail;
9288 PyThreadState* __tstate = wxPyBeginAllowThreads();
9289 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9290 wxPyEndAllowThreads(__tstate);
9291 if (PyErr_Occurred()) SWIG_fail;
9292 }
9293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9294 {
9295 if (temp1)
9296 delete arg1;
9297 }
9298 return resultobj;
9299 fail:
9300 {
9301 if (temp1)
9302 delete arg1;
9303 }
9304 return NULL;
9305 }
9306
9307
9308 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9309 PyObject *resultobj = 0;
9310 wxIcon *arg1 = (wxIcon *) 0 ;
9311 void *argp1 = 0 ;
9312 int res1 = 0 ;
9313 PyObject *swig_obj[1] ;
9314
9315 if (!args) SWIG_fail;
9316 swig_obj[0] = args;
9317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9318 if (!SWIG_IsOK(res1)) {
9319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9320 }
9321 arg1 = reinterpret_cast< wxIcon * >(argp1);
9322 {
9323 PyThreadState* __tstate = wxPyBeginAllowThreads();
9324 delete arg1;
9325
9326 wxPyEndAllowThreads(__tstate);
9327 if (PyErr_Occurred()) SWIG_fail;
9328 }
9329 resultobj = SWIG_Py_Void();
9330 return resultobj;
9331 fail:
9332 return NULL;
9333 }
9334
9335
9336 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9337 PyObject *resultobj = 0;
9338 wxIcon *result = 0 ;
9339
9340 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9341 {
9342 if (!wxPyCheckForApp()) SWIG_fail;
9343 PyThreadState* __tstate = wxPyBeginAllowThreads();
9344 result = (wxIcon *)new wxIcon();
9345 wxPyEndAllowThreads(__tstate);
9346 if (PyErr_Occurred()) SWIG_fail;
9347 }
9348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9349 return resultobj;
9350 fail:
9351 return NULL;
9352 }
9353
9354
9355 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9356 PyObject *resultobj = 0;
9357 wxIconLocation *arg1 = 0 ;
9358 wxIcon *result = 0 ;
9359 void *argp1 = 0 ;
9360 int res1 = 0 ;
9361 PyObject * obj0 = 0 ;
9362 char * kwnames[] = {
9363 (char *) "loc", NULL
9364 };
9365
9366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9367 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9368 if (!SWIG_IsOK(res1)) {
9369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9370 }
9371 if (!argp1) {
9372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9373 }
9374 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9375 {
9376 if (!wxPyCheckForApp()) SWIG_fail;
9377 PyThreadState* __tstate = wxPyBeginAllowThreads();
9378 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9379 wxPyEndAllowThreads(__tstate);
9380 if (PyErr_Occurred()) SWIG_fail;
9381 }
9382 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9383 return resultobj;
9384 fail:
9385 return NULL;
9386 }
9387
9388
9389 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9390 PyObject *resultobj = 0;
9391 wxBitmap *arg1 = 0 ;
9392 wxIcon *result = 0 ;
9393 void *argp1 = 0 ;
9394 int res1 = 0 ;
9395 PyObject * obj0 = 0 ;
9396 char * kwnames[] = {
9397 (char *) "bmp", NULL
9398 };
9399
9400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9401 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9402 if (!SWIG_IsOK(res1)) {
9403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9404 }
9405 if (!argp1) {
9406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9407 }
9408 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9409 {
9410 if (!wxPyCheckForApp()) SWIG_fail;
9411 PyThreadState* __tstate = wxPyBeginAllowThreads();
9412 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9413 wxPyEndAllowThreads(__tstate);
9414 if (PyErr_Occurred()) SWIG_fail;
9415 }
9416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9417 return resultobj;
9418 fail:
9419 return NULL;
9420 }
9421
9422
9423 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9424 PyObject *resultobj = 0;
9425 PyObject *arg1 = (PyObject *) 0 ;
9426 wxIcon *result = 0 ;
9427 PyObject * obj0 = 0 ;
9428 char * kwnames[] = {
9429 (char *) "listOfStrings", NULL
9430 };
9431
9432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9433 arg1 = obj0;
9434 {
9435 if (!wxPyCheckForApp()) SWIG_fail;
9436 PyThreadState* __tstate = wxPyBeginAllowThreads();
9437 result = (wxIcon *)new_wxIcon(arg1);
9438 wxPyEndAllowThreads(__tstate);
9439 if (PyErr_Occurred()) SWIG_fail;
9440 }
9441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9442 return resultobj;
9443 fail:
9444 return NULL;
9445 }
9446
9447
9448 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9449 PyObject *resultobj = 0;
9450 wxIcon *arg1 = (wxIcon *) 0 ;
9451 wxString *arg2 = 0 ;
9452 wxBitmapType arg3 ;
9453 bool result;
9454 void *argp1 = 0 ;
9455 int res1 = 0 ;
9456 bool temp2 = false ;
9457 int val3 ;
9458 int ecode3 = 0 ;
9459 PyObject * obj0 = 0 ;
9460 PyObject * obj1 = 0 ;
9461 PyObject * obj2 = 0 ;
9462 char * kwnames[] = {
9463 (char *) "self",(char *) "name",(char *) "type", NULL
9464 };
9465
9466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9468 if (!SWIG_IsOK(res1)) {
9469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9470 }
9471 arg1 = reinterpret_cast< wxIcon * >(argp1);
9472 {
9473 arg2 = wxString_in_helper(obj1);
9474 if (arg2 == NULL) SWIG_fail;
9475 temp2 = true;
9476 }
9477 ecode3 = SWIG_AsVal_int(obj2, &val3);
9478 if (!SWIG_IsOK(ecode3)) {
9479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9480 }
9481 arg3 = static_cast< wxBitmapType >(val3);
9482 {
9483 PyThreadState* __tstate = wxPyBeginAllowThreads();
9484 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9485 wxPyEndAllowThreads(__tstate);
9486 if (PyErr_Occurred()) SWIG_fail;
9487 }
9488 {
9489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9490 }
9491 {
9492 if (temp2)
9493 delete arg2;
9494 }
9495 return resultobj;
9496 fail:
9497 {
9498 if (temp2)
9499 delete arg2;
9500 }
9501 return NULL;
9502 }
9503
9504
9505 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9506 PyObject *resultobj = 0;
9507 wxIcon *arg1 = (wxIcon *) 0 ;
9508 long result;
9509 void *argp1 = 0 ;
9510 int res1 = 0 ;
9511 PyObject *swig_obj[1] ;
9512
9513 if (!args) SWIG_fail;
9514 swig_obj[0] = args;
9515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9516 if (!SWIG_IsOK(res1)) {
9517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9518 }
9519 arg1 = reinterpret_cast< wxIcon * >(argp1);
9520 {
9521 PyThreadState* __tstate = wxPyBeginAllowThreads();
9522 result = (long)(arg1)->GetHandle();
9523 wxPyEndAllowThreads(__tstate);
9524 if (PyErr_Occurred()) SWIG_fail;
9525 }
9526 resultobj = SWIG_From_long(static_cast< long >(result));
9527 return resultobj;
9528 fail:
9529 return NULL;
9530 }
9531
9532
9533 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9534 PyObject *resultobj = 0;
9535 wxIcon *arg1 = (wxIcon *) 0 ;
9536 long arg2 ;
9537 void *argp1 = 0 ;
9538 int res1 = 0 ;
9539 long val2 ;
9540 int ecode2 = 0 ;
9541 PyObject * obj0 = 0 ;
9542 PyObject * obj1 = 0 ;
9543 char * kwnames[] = {
9544 (char *) "self",(char *) "handle", NULL
9545 };
9546
9547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9549 if (!SWIG_IsOK(res1)) {
9550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9551 }
9552 arg1 = reinterpret_cast< wxIcon * >(argp1);
9553 ecode2 = SWIG_AsVal_long(obj1, &val2);
9554 if (!SWIG_IsOK(ecode2)) {
9555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9556 }
9557 arg2 = static_cast< long >(val2);
9558 {
9559 PyThreadState* __tstate = wxPyBeginAllowThreads();
9560 wxIcon_SetHandle(arg1,arg2);
9561 wxPyEndAllowThreads(__tstate);
9562 if (PyErr_Occurred()) SWIG_fail;
9563 }
9564 resultobj = SWIG_Py_Void();
9565 return resultobj;
9566 fail:
9567 return NULL;
9568 }
9569
9570
9571 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9572 PyObject *resultobj = 0;
9573 wxIcon *arg1 = (wxIcon *) 0 ;
9574 bool result;
9575 void *argp1 = 0 ;
9576 int res1 = 0 ;
9577 PyObject *swig_obj[1] ;
9578
9579 if (!args) SWIG_fail;
9580 swig_obj[0] = args;
9581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9582 if (!SWIG_IsOK(res1)) {
9583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9584 }
9585 arg1 = reinterpret_cast< wxIcon * >(argp1);
9586 {
9587 PyThreadState* __tstate = wxPyBeginAllowThreads();
9588 result = (bool)(arg1)->IsOk();
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) SWIG_fail;
9591 }
9592 {
9593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9594 }
9595 return resultobj;
9596 fail:
9597 return NULL;
9598 }
9599
9600
9601 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9602 PyObject *resultobj = 0;
9603 wxIcon *arg1 = (wxIcon *) 0 ;
9604 int result;
9605 void *argp1 = 0 ;
9606 int res1 = 0 ;
9607 PyObject *swig_obj[1] ;
9608
9609 if (!args) SWIG_fail;
9610 swig_obj[0] = args;
9611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9612 if (!SWIG_IsOK(res1)) {
9613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9614 }
9615 arg1 = reinterpret_cast< wxIcon * >(argp1);
9616 {
9617 PyThreadState* __tstate = wxPyBeginAllowThreads();
9618 result = (int)(arg1)->GetWidth();
9619 wxPyEndAllowThreads(__tstate);
9620 if (PyErr_Occurred()) SWIG_fail;
9621 }
9622 resultobj = SWIG_From_int(static_cast< int >(result));
9623 return resultobj;
9624 fail:
9625 return NULL;
9626 }
9627
9628
9629 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9630 PyObject *resultobj = 0;
9631 wxIcon *arg1 = (wxIcon *) 0 ;
9632 int result;
9633 void *argp1 = 0 ;
9634 int res1 = 0 ;
9635 PyObject *swig_obj[1] ;
9636
9637 if (!args) SWIG_fail;
9638 swig_obj[0] = args;
9639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9640 if (!SWIG_IsOK(res1)) {
9641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9642 }
9643 arg1 = reinterpret_cast< wxIcon * >(argp1);
9644 {
9645 PyThreadState* __tstate = wxPyBeginAllowThreads();
9646 result = (int)(arg1)->GetHeight();
9647 wxPyEndAllowThreads(__tstate);
9648 if (PyErr_Occurred()) SWIG_fail;
9649 }
9650 resultobj = SWIG_From_int(static_cast< int >(result));
9651 return resultobj;
9652 fail:
9653 return NULL;
9654 }
9655
9656
9657 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9658 PyObject *resultobj = 0;
9659 wxIcon *arg1 = (wxIcon *) 0 ;
9660 int result;
9661 void *argp1 = 0 ;
9662 int res1 = 0 ;
9663 PyObject *swig_obj[1] ;
9664
9665 if (!args) SWIG_fail;
9666 swig_obj[0] = args;
9667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9668 if (!SWIG_IsOK(res1)) {
9669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9670 }
9671 arg1 = reinterpret_cast< wxIcon * >(argp1);
9672 {
9673 PyThreadState* __tstate = wxPyBeginAllowThreads();
9674 result = (int)(arg1)->GetDepth();
9675 wxPyEndAllowThreads(__tstate);
9676 if (PyErr_Occurred()) SWIG_fail;
9677 }
9678 resultobj = SWIG_From_int(static_cast< int >(result));
9679 return resultobj;
9680 fail:
9681 return NULL;
9682 }
9683
9684
9685 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9686 PyObject *resultobj = 0;
9687 wxIcon *arg1 = (wxIcon *) 0 ;
9688 int arg2 ;
9689 void *argp1 = 0 ;
9690 int res1 = 0 ;
9691 int val2 ;
9692 int ecode2 = 0 ;
9693 PyObject * obj0 = 0 ;
9694 PyObject * obj1 = 0 ;
9695 char * kwnames[] = {
9696 (char *) "self",(char *) "w", NULL
9697 };
9698
9699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9701 if (!SWIG_IsOK(res1)) {
9702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9703 }
9704 arg1 = reinterpret_cast< wxIcon * >(argp1);
9705 ecode2 = SWIG_AsVal_int(obj1, &val2);
9706 if (!SWIG_IsOK(ecode2)) {
9707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9708 }
9709 arg2 = static_cast< int >(val2);
9710 {
9711 PyThreadState* __tstate = wxPyBeginAllowThreads();
9712 (arg1)->SetWidth(arg2);
9713 wxPyEndAllowThreads(__tstate);
9714 if (PyErr_Occurred()) SWIG_fail;
9715 }
9716 resultobj = SWIG_Py_Void();
9717 return resultobj;
9718 fail:
9719 return NULL;
9720 }
9721
9722
9723 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9724 PyObject *resultobj = 0;
9725 wxIcon *arg1 = (wxIcon *) 0 ;
9726 int arg2 ;
9727 void *argp1 = 0 ;
9728 int res1 = 0 ;
9729 int val2 ;
9730 int ecode2 = 0 ;
9731 PyObject * obj0 = 0 ;
9732 PyObject * obj1 = 0 ;
9733 char * kwnames[] = {
9734 (char *) "self",(char *) "h", NULL
9735 };
9736
9737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9739 if (!SWIG_IsOK(res1)) {
9740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9741 }
9742 arg1 = reinterpret_cast< wxIcon * >(argp1);
9743 ecode2 = SWIG_AsVal_int(obj1, &val2);
9744 if (!SWIG_IsOK(ecode2)) {
9745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9746 }
9747 arg2 = static_cast< int >(val2);
9748 {
9749 PyThreadState* __tstate = wxPyBeginAllowThreads();
9750 (arg1)->SetHeight(arg2);
9751 wxPyEndAllowThreads(__tstate);
9752 if (PyErr_Occurred()) SWIG_fail;
9753 }
9754 resultobj = SWIG_Py_Void();
9755 return resultobj;
9756 fail:
9757 return NULL;
9758 }
9759
9760
9761 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9762 PyObject *resultobj = 0;
9763 wxIcon *arg1 = (wxIcon *) 0 ;
9764 int arg2 ;
9765 void *argp1 = 0 ;
9766 int res1 = 0 ;
9767 int val2 ;
9768 int ecode2 = 0 ;
9769 PyObject * obj0 = 0 ;
9770 PyObject * obj1 = 0 ;
9771 char * kwnames[] = {
9772 (char *) "self",(char *) "d", NULL
9773 };
9774
9775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9777 if (!SWIG_IsOK(res1)) {
9778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9779 }
9780 arg1 = reinterpret_cast< wxIcon * >(argp1);
9781 ecode2 = SWIG_AsVal_int(obj1, &val2);
9782 if (!SWIG_IsOK(ecode2)) {
9783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9784 }
9785 arg2 = static_cast< int >(val2);
9786 {
9787 PyThreadState* __tstate = wxPyBeginAllowThreads();
9788 (arg1)->SetDepth(arg2);
9789 wxPyEndAllowThreads(__tstate);
9790 if (PyErr_Occurred()) SWIG_fail;
9791 }
9792 resultobj = SWIG_Py_Void();
9793 return resultobj;
9794 fail:
9795 return NULL;
9796 }
9797
9798
9799 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9800 PyObject *resultobj = 0;
9801 wxIcon *arg1 = (wxIcon *) 0 ;
9802 wxSize *arg2 = 0 ;
9803 void *argp1 = 0 ;
9804 int res1 = 0 ;
9805 wxSize temp2 ;
9806 PyObject * obj0 = 0 ;
9807 PyObject * obj1 = 0 ;
9808 char * kwnames[] = {
9809 (char *) "self",(char *) "size", NULL
9810 };
9811
9812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9814 if (!SWIG_IsOK(res1)) {
9815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9816 }
9817 arg1 = reinterpret_cast< wxIcon * >(argp1);
9818 {
9819 arg2 = &temp2;
9820 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9821 }
9822 {
9823 PyThreadState* __tstate = wxPyBeginAllowThreads();
9824 (arg1)->SetSize((wxSize const &)*arg2);
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) SWIG_fail;
9827 }
9828 resultobj = SWIG_Py_Void();
9829 return resultobj;
9830 fail:
9831 return NULL;
9832 }
9833
9834
9835 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9836 PyObject *resultobj = 0;
9837 wxIcon *arg1 = (wxIcon *) 0 ;
9838 wxBitmap *arg2 = 0 ;
9839 void *argp1 = 0 ;
9840 int res1 = 0 ;
9841 void *argp2 = 0 ;
9842 int res2 = 0 ;
9843 PyObject * obj0 = 0 ;
9844 PyObject * obj1 = 0 ;
9845 char * kwnames[] = {
9846 (char *) "self",(char *) "bmp", NULL
9847 };
9848
9849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9851 if (!SWIG_IsOK(res1)) {
9852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9853 }
9854 arg1 = reinterpret_cast< wxIcon * >(argp1);
9855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9856 if (!SWIG_IsOK(res2)) {
9857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9858 }
9859 if (!argp2) {
9860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9861 }
9862 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9863 {
9864 PyThreadState* __tstate = wxPyBeginAllowThreads();
9865 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9866 wxPyEndAllowThreads(__tstate);
9867 if (PyErr_Occurred()) SWIG_fail;
9868 }
9869 resultobj = SWIG_Py_Void();
9870 return resultobj;
9871 fail:
9872 return NULL;
9873 }
9874
9875
9876 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9877 PyObject *obj;
9878 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9879 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9880 return SWIG_Py_Void();
9881 }
9882
9883 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9884 return SWIG_Python_InitShadowInstance(args);
9885 }
9886
9887 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj = 0;
9889 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9890 int arg2 = (int) 0 ;
9891 wxIconLocation *result = 0 ;
9892 bool temp1 = false ;
9893 int val2 ;
9894 int ecode2 = 0 ;
9895 PyObject * obj0 = 0 ;
9896 PyObject * obj1 = 0 ;
9897 char * kwnames[] = {
9898 (char *) "filename",(char *) "num", NULL
9899 };
9900
9901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9902 if (obj0) {
9903 {
9904 arg1 = wxString_in_helper(obj0);
9905 if (arg1 == NULL) SWIG_fail;
9906 temp1 = true;
9907 }
9908 }
9909 if (obj1) {
9910 ecode2 = SWIG_AsVal_int(obj1, &val2);
9911 if (!SWIG_IsOK(ecode2)) {
9912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9913 }
9914 arg2 = static_cast< int >(val2);
9915 }
9916 {
9917 PyThreadState* __tstate = wxPyBeginAllowThreads();
9918 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9919 wxPyEndAllowThreads(__tstate);
9920 if (PyErr_Occurred()) SWIG_fail;
9921 }
9922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9923 {
9924 if (temp1)
9925 delete arg1;
9926 }
9927 return resultobj;
9928 fail:
9929 {
9930 if (temp1)
9931 delete arg1;
9932 }
9933 return NULL;
9934 }
9935
9936
9937 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9938 PyObject *resultobj = 0;
9939 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9940 void *argp1 = 0 ;
9941 int res1 = 0 ;
9942 PyObject *swig_obj[1] ;
9943
9944 if (!args) SWIG_fail;
9945 swig_obj[0] = args;
9946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9947 if (!SWIG_IsOK(res1)) {
9948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9949 }
9950 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9951 {
9952 PyThreadState* __tstate = wxPyBeginAllowThreads();
9953 delete arg1;
9954
9955 wxPyEndAllowThreads(__tstate);
9956 if (PyErr_Occurred()) SWIG_fail;
9957 }
9958 resultobj = SWIG_Py_Void();
9959 return resultobj;
9960 fail:
9961 return NULL;
9962 }
9963
9964
9965 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9966 PyObject *resultobj = 0;
9967 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9968 bool result;
9969 void *argp1 = 0 ;
9970 int res1 = 0 ;
9971 PyObject *swig_obj[1] ;
9972
9973 if (!args) SWIG_fail;
9974 swig_obj[0] = args;
9975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9976 if (!SWIG_IsOK(res1)) {
9977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9978 }
9979 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9980 {
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9983 wxPyEndAllowThreads(__tstate);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 {
9987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9988 }
9989 return resultobj;
9990 fail:
9991 return NULL;
9992 }
9993
9994
9995 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9996 PyObject *resultobj = 0;
9997 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9998 wxString *arg2 = 0 ;
9999 void *argp1 = 0 ;
10000 int res1 = 0 ;
10001 bool temp2 = false ;
10002 PyObject * obj0 = 0 ;
10003 PyObject * obj1 = 0 ;
10004 char * kwnames[] = {
10005 (char *) "self",(char *) "filename", NULL
10006 };
10007
10008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
10009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10010 if (!SWIG_IsOK(res1)) {
10011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10012 }
10013 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10014 {
10015 arg2 = wxString_in_helper(obj1);
10016 if (arg2 == NULL) SWIG_fail;
10017 temp2 = true;
10018 }
10019 {
10020 PyThreadState* __tstate = wxPyBeginAllowThreads();
10021 (arg1)->SetFileName((wxString const &)*arg2);
10022 wxPyEndAllowThreads(__tstate);
10023 if (PyErr_Occurred()) SWIG_fail;
10024 }
10025 resultobj = SWIG_Py_Void();
10026 {
10027 if (temp2)
10028 delete arg2;
10029 }
10030 return resultobj;
10031 fail:
10032 {
10033 if (temp2)
10034 delete arg2;
10035 }
10036 return NULL;
10037 }
10038
10039
10040 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10041 PyObject *resultobj = 0;
10042 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10043 wxString *result = 0 ;
10044 void *argp1 = 0 ;
10045 int res1 = 0 ;
10046 PyObject *swig_obj[1] ;
10047
10048 if (!args) SWIG_fail;
10049 swig_obj[0] = args;
10050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10051 if (!SWIG_IsOK(res1)) {
10052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
10053 }
10054 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10055 {
10056 PyThreadState* __tstate = wxPyBeginAllowThreads();
10057 {
10058 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
10059 result = (wxString *) &_result_ref;
10060 }
10061 wxPyEndAllowThreads(__tstate);
10062 if (PyErr_Occurred()) SWIG_fail;
10063 }
10064 {
10065 #if wxUSE_UNICODE
10066 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10067 #else
10068 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10069 #endif
10070 }
10071 return resultobj;
10072 fail:
10073 return NULL;
10074 }
10075
10076
10077 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10078 PyObject *resultobj = 0;
10079 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10080 int arg2 ;
10081 void *argp1 = 0 ;
10082 int res1 = 0 ;
10083 int val2 ;
10084 int ecode2 = 0 ;
10085 PyObject * obj0 = 0 ;
10086 PyObject * obj1 = 0 ;
10087 char * kwnames[] = {
10088 (char *) "self",(char *) "num", NULL
10089 };
10090
10091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10093 if (!SWIG_IsOK(res1)) {
10094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10095 }
10096 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10097 ecode2 = SWIG_AsVal_int(obj1, &val2);
10098 if (!SWIG_IsOK(ecode2)) {
10099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
10100 }
10101 arg2 = static_cast< int >(val2);
10102 {
10103 PyThreadState* __tstate = wxPyBeginAllowThreads();
10104 wxIconLocation_SetIndex(arg1,arg2);
10105 wxPyEndAllowThreads(__tstate);
10106 if (PyErr_Occurred()) SWIG_fail;
10107 }
10108 resultobj = SWIG_Py_Void();
10109 return resultobj;
10110 fail:
10111 return NULL;
10112 }
10113
10114
10115 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10116 PyObject *resultobj = 0;
10117 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10118 int result;
10119 void *argp1 = 0 ;
10120 int res1 = 0 ;
10121 PyObject *swig_obj[1] ;
10122
10123 if (!args) SWIG_fail;
10124 swig_obj[0] = args;
10125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10126 if (!SWIG_IsOK(res1)) {
10127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10128 }
10129 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10130 {
10131 PyThreadState* __tstate = wxPyBeginAllowThreads();
10132 result = (int)wxIconLocation_GetIndex(arg1);
10133 wxPyEndAllowThreads(__tstate);
10134 if (PyErr_Occurred()) SWIG_fail;
10135 }
10136 resultobj = SWIG_From_int(static_cast< int >(result));
10137 return resultobj;
10138 fail:
10139 return NULL;
10140 }
10141
10142
10143 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10144 PyObject *obj;
10145 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10146 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
10147 return SWIG_Py_Void();
10148 }
10149
10150 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10151 return SWIG_Python_InitShadowInstance(args);
10152 }
10153
10154 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10155 PyObject *resultobj = 0;
10156 wxIconBundle *result = 0 ;
10157
10158 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
10159 {
10160 PyThreadState* __tstate = wxPyBeginAllowThreads();
10161 result = (wxIconBundle *)new wxIconBundle();
10162 wxPyEndAllowThreads(__tstate);
10163 if (PyErr_Occurred()) SWIG_fail;
10164 }
10165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
10166 return resultobj;
10167 fail:
10168 return NULL;
10169 }
10170
10171
10172 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10173 PyObject *resultobj = 0;
10174 wxString *arg1 = 0 ;
10175 long arg2 ;
10176 wxIconBundle *result = 0 ;
10177 bool temp1 = false ;
10178 long val2 ;
10179 int ecode2 = 0 ;
10180 PyObject * obj0 = 0 ;
10181 PyObject * obj1 = 0 ;
10182 char * kwnames[] = {
10183 (char *) "file",(char *) "type", NULL
10184 };
10185
10186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
10187 {
10188 arg1 = wxString_in_helper(obj0);
10189 if (arg1 == NULL) SWIG_fail;
10190 temp1 = true;
10191 }
10192 ecode2 = SWIG_AsVal_long(obj1, &val2);
10193 if (!SWIG_IsOK(ecode2)) {
10194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
10195 }
10196 arg2 = static_cast< long >(val2);
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
10203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10204 {
10205 if (temp1)
10206 delete arg1;
10207 }
10208 return resultobj;
10209 fail:
10210 {
10211 if (temp1)
10212 delete arg1;
10213 }
10214 return NULL;
10215 }
10216
10217
10218 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10219 PyObject *resultobj = 0;
10220 wxIcon *arg1 = 0 ;
10221 wxIconBundle *result = 0 ;
10222 void *argp1 = 0 ;
10223 int res1 = 0 ;
10224 PyObject * obj0 = 0 ;
10225 char * kwnames[] = {
10226 (char *) "icon", NULL
10227 };
10228
10229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
10230 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
10231 if (!SWIG_IsOK(res1)) {
10232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10233 }
10234 if (!argp1) {
10235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10236 }
10237 arg1 = reinterpret_cast< wxIcon * >(argp1);
10238 {
10239 PyThreadState* __tstate = wxPyBeginAllowThreads();
10240 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
10241 wxPyEndAllowThreads(__tstate);
10242 if (PyErr_Occurred()) SWIG_fail;
10243 }
10244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10245 return resultobj;
10246 fail:
10247 return NULL;
10248 }
10249
10250
10251 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10252 PyObject *resultobj = 0;
10253 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10254 void *argp1 = 0 ;
10255 int res1 = 0 ;
10256 PyObject *swig_obj[1] ;
10257
10258 if (!args) SWIG_fail;
10259 swig_obj[0] = args;
10260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
10261 if (!SWIG_IsOK(res1)) {
10262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10263 }
10264 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10265 {
10266 PyThreadState* __tstate = wxPyBeginAllowThreads();
10267 delete arg1;
10268
10269 wxPyEndAllowThreads(__tstate);
10270 if (PyErr_Occurred()) SWIG_fail;
10271 }
10272 resultobj = SWIG_Py_Void();
10273 return resultobj;
10274 fail:
10275 return NULL;
10276 }
10277
10278
10279 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10280 PyObject *resultobj = 0;
10281 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10282 wxIcon *arg2 = 0 ;
10283 void *argp1 = 0 ;
10284 int res1 = 0 ;
10285 void *argp2 = 0 ;
10286 int res2 = 0 ;
10287 PyObject * obj0 = 0 ;
10288 PyObject * obj1 = 0 ;
10289 char * kwnames[] = {
10290 (char *) "self",(char *) "icon", NULL
10291 };
10292
10293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10295 if (!SWIG_IsOK(res1)) {
10296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10297 }
10298 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10299 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10300 if (!SWIG_IsOK(res2)) {
10301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10302 }
10303 if (!argp2) {
10304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10305 }
10306 arg2 = reinterpret_cast< wxIcon * >(argp2);
10307 {
10308 PyThreadState* __tstate = wxPyBeginAllowThreads();
10309 (arg1)->AddIcon((wxIcon const &)*arg2);
10310 wxPyEndAllowThreads(__tstate);
10311 if (PyErr_Occurred()) SWIG_fail;
10312 }
10313 resultobj = SWIG_Py_Void();
10314 return resultobj;
10315 fail:
10316 return NULL;
10317 }
10318
10319
10320 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10321 PyObject *resultobj = 0;
10322 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10323 wxString *arg2 = 0 ;
10324 long arg3 ;
10325 void *argp1 = 0 ;
10326 int res1 = 0 ;
10327 bool temp2 = false ;
10328 long val3 ;
10329 int ecode3 = 0 ;
10330 PyObject * obj0 = 0 ;
10331 PyObject * obj1 = 0 ;
10332 PyObject * obj2 = 0 ;
10333 char * kwnames[] = {
10334 (char *) "self",(char *) "file",(char *) "type", NULL
10335 };
10336
10337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10339 if (!SWIG_IsOK(res1)) {
10340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10341 }
10342 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10343 {
10344 arg2 = wxString_in_helper(obj1);
10345 if (arg2 == NULL) SWIG_fail;
10346 temp2 = true;
10347 }
10348 ecode3 = SWIG_AsVal_long(obj2, &val3);
10349 if (!SWIG_IsOK(ecode3)) {
10350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10351 }
10352 arg3 = static_cast< long >(val3);
10353 {
10354 PyThreadState* __tstate = wxPyBeginAllowThreads();
10355 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10356 wxPyEndAllowThreads(__tstate);
10357 if (PyErr_Occurred()) SWIG_fail;
10358 }
10359 resultobj = SWIG_Py_Void();
10360 {
10361 if (temp2)
10362 delete arg2;
10363 }
10364 return resultobj;
10365 fail:
10366 {
10367 if (temp2)
10368 delete arg2;
10369 }
10370 return NULL;
10371 }
10372
10373
10374 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10375 PyObject *resultobj = 0;
10376 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10377 wxSize *arg2 = 0 ;
10378 wxIcon *result = 0 ;
10379 void *argp1 = 0 ;
10380 int res1 = 0 ;
10381 wxSize temp2 ;
10382 PyObject * obj0 = 0 ;
10383 PyObject * obj1 = 0 ;
10384 char * kwnames[] = {
10385 (char *) "self",(char *) "size", NULL
10386 };
10387
10388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10390 if (!SWIG_IsOK(res1)) {
10391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10392 }
10393 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10394 {
10395 arg2 = &temp2;
10396 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10397 }
10398 {
10399 PyThreadState* __tstate = wxPyBeginAllowThreads();
10400 {
10401 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10402 result = (wxIcon *) &_result_ref;
10403 }
10404 wxPyEndAllowThreads(__tstate);
10405 if (PyErr_Occurred()) SWIG_fail;
10406 }
10407 {
10408 wxIcon* resultptr = new wxIcon(*result);
10409 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10410 }
10411 return resultobj;
10412 fail:
10413 return NULL;
10414 }
10415
10416
10417 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10418 PyObject *obj;
10419 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10420 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10421 return SWIG_Py_Void();
10422 }
10423
10424 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10425 return SWIG_Python_InitShadowInstance(args);
10426 }
10427
10428 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10429 PyObject *resultobj = 0;
10430 wxString *arg1 = 0 ;
10431 long arg2 ;
10432 int arg3 = (int) 0 ;
10433 int arg4 = (int) 0 ;
10434 wxCursor *result = 0 ;
10435 bool temp1 = false ;
10436 long val2 ;
10437 int ecode2 = 0 ;
10438 int val3 ;
10439 int ecode3 = 0 ;
10440 int val4 ;
10441 int ecode4 = 0 ;
10442 PyObject * obj0 = 0 ;
10443 PyObject * obj1 = 0 ;
10444 PyObject * obj2 = 0 ;
10445 PyObject * obj3 = 0 ;
10446 char * kwnames[] = {
10447 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10448 };
10449
10450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10451 {
10452 arg1 = wxString_in_helper(obj0);
10453 if (arg1 == NULL) SWIG_fail;
10454 temp1 = true;
10455 }
10456 ecode2 = SWIG_AsVal_long(obj1, &val2);
10457 if (!SWIG_IsOK(ecode2)) {
10458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10459 }
10460 arg2 = static_cast< long >(val2);
10461 if (obj2) {
10462 ecode3 = SWIG_AsVal_int(obj2, &val3);
10463 if (!SWIG_IsOK(ecode3)) {
10464 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10465 }
10466 arg3 = static_cast< int >(val3);
10467 }
10468 if (obj3) {
10469 ecode4 = SWIG_AsVal_int(obj3, &val4);
10470 if (!SWIG_IsOK(ecode4)) {
10471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10472 }
10473 arg4 = static_cast< int >(val4);
10474 }
10475 {
10476 if (!wxPyCheckForApp()) SWIG_fail;
10477 PyThreadState* __tstate = wxPyBeginAllowThreads();
10478 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10479 wxPyEndAllowThreads(__tstate);
10480 if (PyErr_Occurred()) SWIG_fail;
10481 }
10482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10483 {
10484 if (temp1)
10485 delete arg1;
10486 }
10487 return resultobj;
10488 fail:
10489 {
10490 if (temp1)
10491 delete arg1;
10492 }
10493 return NULL;
10494 }
10495
10496
10497 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10498 PyObject *resultobj = 0;
10499 wxCursor *arg1 = (wxCursor *) 0 ;
10500 void *argp1 = 0 ;
10501 int res1 = 0 ;
10502 PyObject *swig_obj[1] ;
10503
10504 if (!args) SWIG_fail;
10505 swig_obj[0] = args;
10506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10507 if (!SWIG_IsOK(res1)) {
10508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10509 }
10510 arg1 = reinterpret_cast< wxCursor * >(argp1);
10511 {
10512 PyThreadState* __tstate = wxPyBeginAllowThreads();
10513 delete arg1;
10514
10515 wxPyEndAllowThreads(__tstate);
10516 if (PyErr_Occurred()) SWIG_fail;
10517 }
10518 resultobj = SWIG_Py_Void();
10519 return resultobj;
10520 fail:
10521 return NULL;
10522 }
10523
10524
10525 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10526 PyObject *resultobj = 0;
10527 int arg1 ;
10528 wxCursor *result = 0 ;
10529 int val1 ;
10530 int ecode1 = 0 ;
10531 PyObject * obj0 = 0 ;
10532 char * kwnames[] = {
10533 (char *) "id", NULL
10534 };
10535
10536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10537 ecode1 = SWIG_AsVal_int(obj0, &val1);
10538 if (!SWIG_IsOK(ecode1)) {
10539 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10540 }
10541 arg1 = static_cast< int >(val1);
10542 {
10543 if (!wxPyCheckForApp()) SWIG_fail;
10544 PyThreadState* __tstate = wxPyBeginAllowThreads();
10545 result = (wxCursor *)new wxCursor(arg1);
10546 wxPyEndAllowThreads(__tstate);
10547 if (PyErr_Occurred()) SWIG_fail;
10548 }
10549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10550 return resultobj;
10551 fail:
10552 return NULL;
10553 }
10554
10555
10556 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10557 PyObject *resultobj = 0;
10558 wxImage *arg1 = 0 ;
10559 wxCursor *result = 0 ;
10560 void *argp1 = 0 ;
10561 int res1 = 0 ;
10562 PyObject * obj0 = 0 ;
10563 char * kwnames[] = {
10564 (char *) "image", NULL
10565 };
10566
10567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10568 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10569 if (!SWIG_IsOK(res1)) {
10570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10571 }
10572 if (!argp1) {
10573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10574 }
10575 arg1 = reinterpret_cast< wxImage * >(argp1);
10576 {
10577 if (!wxPyCheckForApp()) SWIG_fail;
10578 PyThreadState* __tstate = wxPyBeginAllowThreads();
10579 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10580 wxPyEndAllowThreads(__tstate);
10581 if (PyErr_Occurred()) SWIG_fail;
10582 }
10583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10584 return resultobj;
10585 fail:
10586 return NULL;
10587 }
10588
10589
10590 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10591 PyObject *resultobj = 0;
10592 wxCursor *arg1 = (wxCursor *) 0 ;
10593 long result;
10594 void *argp1 = 0 ;
10595 int res1 = 0 ;
10596 PyObject *swig_obj[1] ;
10597
10598 if (!args) SWIG_fail;
10599 swig_obj[0] = args;
10600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10601 if (!SWIG_IsOK(res1)) {
10602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10603 }
10604 arg1 = reinterpret_cast< wxCursor * >(argp1);
10605 {
10606 PyThreadState* __tstate = wxPyBeginAllowThreads();
10607 result = (long)(arg1)->GetHandle();
10608 wxPyEndAllowThreads(__tstate);
10609 if (PyErr_Occurred()) SWIG_fail;
10610 }
10611 resultobj = SWIG_From_long(static_cast< long >(result));
10612 return resultobj;
10613 fail:
10614 return NULL;
10615 }
10616
10617
10618 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10619 PyObject *resultobj = 0;
10620 wxCursor *arg1 = (wxCursor *) 0 ;
10621 long arg2 ;
10622 void *argp1 = 0 ;
10623 int res1 = 0 ;
10624 long val2 ;
10625 int ecode2 = 0 ;
10626 PyObject * obj0 = 0 ;
10627 PyObject * obj1 = 0 ;
10628 char * kwnames[] = {
10629 (char *) "self",(char *) "handle", NULL
10630 };
10631
10632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10634 if (!SWIG_IsOK(res1)) {
10635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10636 }
10637 arg1 = reinterpret_cast< wxCursor * >(argp1);
10638 ecode2 = SWIG_AsVal_long(obj1, &val2);
10639 if (!SWIG_IsOK(ecode2)) {
10640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10641 }
10642 arg2 = static_cast< long >(val2);
10643 {
10644 PyThreadState* __tstate = wxPyBeginAllowThreads();
10645 wxCursor_SetHandle(arg1,arg2);
10646 wxPyEndAllowThreads(__tstate);
10647 if (PyErr_Occurred()) SWIG_fail;
10648 }
10649 resultobj = SWIG_Py_Void();
10650 return resultobj;
10651 fail:
10652 return NULL;
10653 }
10654
10655
10656 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10657 PyObject *resultobj = 0;
10658 wxCursor *arg1 = (wxCursor *) 0 ;
10659 bool result;
10660 void *argp1 = 0 ;
10661 int res1 = 0 ;
10662 PyObject *swig_obj[1] ;
10663
10664 if (!args) SWIG_fail;
10665 swig_obj[0] = args;
10666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10667 if (!SWIG_IsOK(res1)) {
10668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10669 }
10670 arg1 = reinterpret_cast< wxCursor * >(argp1);
10671 {
10672 PyThreadState* __tstate = wxPyBeginAllowThreads();
10673 result = (bool)(arg1)->IsOk();
10674 wxPyEndAllowThreads(__tstate);
10675 if (PyErr_Occurred()) SWIG_fail;
10676 }
10677 {
10678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10679 }
10680 return resultobj;
10681 fail:
10682 return NULL;
10683 }
10684
10685
10686 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10687 PyObject *resultobj = 0;
10688 wxCursor *arg1 = (wxCursor *) 0 ;
10689 int result;
10690 void *argp1 = 0 ;
10691 int res1 = 0 ;
10692 PyObject *swig_obj[1] ;
10693
10694 if (!args) SWIG_fail;
10695 swig_obj[0] = args;
10696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10697 if (!SWIG_IsOK(res1)) {
10698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10699 }
10700 arg1 = reinterpret_cast< wxCursor * >(argp1);
10701 {
10702 PyThreadState* __tstate = wxPyBeginAllowThreads();
10703 result = (int)(arg1)->GetWidth();
10704 wxPyEndAllowThreads(__tstate);
10705 if (PyErr_Occurred()) SWIG_fail;
10706 }
10707 resultobj = SWIG_From_int(static_cast< int >(result));
10708 return resultobj;
10709 fail:
10710 return NULL;
10711 }
10712
10713
10714 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10715 PyObject *resultobj = 0;
10716 wxCursor *arg1 = (wxCursor *) 0 ;
10717 int result;
10718 void *argp1 = 0 ;
10719 int res1 = 0 ;
10720 PyObject *swig_obj[1] ;
10721
10722 if (!args) SWIG_fail;
10723 swig_obj[0] = args;
10724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10725 if (!SWIG_IsOK(res1)) {
10726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10727 }
10728 arg1 = reinterpret_cast< wxCursor * >(argp1);
10729 {
10730 PyThreadState* __tstate = wxPyBeginAllowThreads();
10731 result = (int)(arg1)->GetHeight();
10732 wxPyEndAllowThreads(__tstate);
10733 if (PyErr_Occurred()) SWIG_fail;
10734 }
10735 resultobj = SWIG_From_int(static_cast< int >(result));
10736 return resultobj;
10737 fail:
10738 return NULL;
10739 }
10740
10741
10742 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10743 PyObject *resultobj = 0;
10744 wxCursor *arg1 = (wxCursor *) 0 ;
10745 int result;
10746 void *argp1 = 0 ;
10747 int res1 = 0 ;
10748 PyObject *swig_obj[1] ;
10749
10750 if (!args) SWIG_fail;
10751 swig_obj[0] = args;
10752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10753 if (!SWIG_IsOK(res1)) {
10754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10755 }
10756 arg1 = reinterpret_cast< wxCursor * >(argp1);
10757 {
10758 PyThreadState* __tstate = wxPyBeginAllowThreads();
10759 result = (int)(arg1)->GetDepth();
10760 wxPyEndAllowThreads(__tstate);
10761 if (PyErr_Occurred()) SWIG_fail;
10762 }
10763 resultobj = SWIG_From_int(static_cast< int >(result));
10764 return resultobj;
10765 fail:
10766 return NULL;
10767 }
10768
10769
10770 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10771 PyObject *resultobj = 0;
10772 wxCursor *arg1 = (wxCursor *) 0 ;
10773 int arg2 ;
10774 void *argp1 = 0 ;
10775 int res1 = 0 ;
10776 int val2 ;
10777 int ecode2 = 0 ;
10778 PyObject * obj0 = 0 ;
10779 PyObject * obj1 = 0 ;
10780 char * kwnames[] = {
10781 (char *) "self",(char *) "w", NULL
10782 };
10783
10784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10786 if (!SWIG_IsOK(res1)) {
10787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10788 }
10789 arg1 = reinterpret_cast< wxCursor * >(argp1);
10790 ecode2 = SWIG_AsVal_int(obj1, &val2);
10791 if (!SWIG_IsOK(ecode2)) {
10792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10793 }
10794 arg2 = static_cast< int >(val2);
10795 {
10796 PyThreadState* __tstate = wxPyBeginAllowThreads();
10797 (arg1)->SetWidth(arg2);
10798 wxPyEndAllowThreads(__tstate);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 }
10801 resultobj = SWIG_Py_Void();
10802 return resultobj;
10803 fail:
10804 return NULL;
10805 }
10806
10807
10808 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10809 PyObject *resultobj = 0;
10810 wxCursor *arg1 = (wxCursor *) 0 ;
10811 int arg2 ;
10812 void *argp1 = 0 ;
10813 int res1 = 0 ;
10814 int val2 ;
10815 int ecode2 = 0 ;
10816 PyObject * obj0 = 0 ;
10817 PyObject * obj1 = 0 ;
10818 char * kwnames[] = {
10819 (char *) "self",(char *) "h", NULL
10820 };
10821
10822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10824 if (!SWIG_IsOK(res1)) {
10825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10826 }
10827 arg1 = reinterpret_cast< wxCursor * >(argp1);
10828 ecode2 = SWIG_AsVal_int(obj1, &val2);
10829 if (!SWIG_IsOK(ecode2)) {
10830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10831 }
10832 arg2 = static_cast< int >(val2);
10833 {
10834 PyThreadState* __tstate = wxPyBeginAllowThreads();
10835 (arg1)->SetHeight(arg2);
10836 wxPyEndAllowThreads(__tstate);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 }
10839 resultobj = SWIG_Py_Void();
10840 return resultobj;
10841 fail:
10842 return NULL;
10843 }
10844
10845
10846 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10847 PyObject *resultobj = 0;
10848 wxCursor *arg1 = (wxCursor *) 0 ;
10849 int arg2 ;
10850 void *argp1 = 0 ;
10851 int res1 = 0 ;
10852 int val2 ;
10853 int ecode2 = 0 ;
10854 PyObject * obj0 = 0 ;
10855 PyObject * obj1 = 0 ;
10856 char * kwnames[] = {
10857 (char *) "self",(char *) "d", NULL
10858 };
10859
10860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10862 if (!SWIG_IsOK(res1)) {
10863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10864 }
10865 arg1 = reinterpret_cast< wxCursor * >(argp1);
10866 ecode2 = SWIG_AsVal_int(obj1, &val2);
10867 if (!SWIG_IsOK(ecode2)) {
10868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10869 }
10870 arg2 = static_cast< int >(val2);
10871 {
10872 PyThreadState* __tstate = wxPyBeginAllowThreads();
10873 (arg1)->SetDepth(arg2);
10874 wxPyEndAllowThreads(__tstate);
10875 if (PyErr_Occurred()) SWIG_fail;
10876 }
10877 resultobj = SWIG_Py_Void();
10878 return resultobj;
10879 fail:
10880 return NULL;
10881 }
10882
10883
10884 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10885 PyObject *resultobj = 0;
10886 wxCursor *arg1 = (wxCursor *) 0 ;
10887 wxSize *arg2 = 0 ;
10888 void *argp1 = 0 ;
10889 int res1 = 0 ;
10890 wxSize temp2 ;
10891 PyObject * obj0 = 0 ;
10892 PyObject * obj1 = 0 ;
10893 char * kwnames[] = {
10894 (char *) "self",(char *) "size", NULL
10895 };
10896
10897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10899 if (!SWIG_IsOK(res1)) {
10900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10901 }
10902 arg1 = reinterpret_cast< wxCursor * >(argp1);
10903 {
10904 arg2 = &temp2;
10905 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10906 }
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 (arg1)->SetSize((wxSize const &)*arg2);
10910 wxPyEndAllowThreads(__tstate);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 }
10913 resultobj = SWIG_Py_Void();
10914 return resultobj;
10915 fail:
10916 return NULL;
10917 }
10918
10919
10920 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10921 PyObject *obj;
10922 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10923 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10924 return SWIG_Py_Void();
10925 }
10926
10927 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10928 return SWIG_Python_InitShadowInstance(args);
10929 }
10930
10931 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10932 PyObject *resultobj = 0;
10933 int arg1 = (int) 0 ;
10934 int arg2 = (int) 0 ;
10935 int arg3 = (int) 0 ;
10936 int arg4 = (int) 0 ;
10937 wxRegion *result = 0 ;
10938 int val1 ;
10939 int ecode1 = 0 ;
10940 int val2 ;
10941 int ecode2 = 0 ;
10942 int val3 ;
10943 int ecode3 = 0 ;
10944 int val4 ;
10945 int ecode4 = 0 ;
10946 PyObject * obj0 = 0 ;
10947 PyObject * obj1 = 0 ;
10948 PyObject * obj2 = 0 ;
10949 PyObject * obj3 = 0 ;
10950 char * kwnames[] = {
10951 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10952 };
10953
10954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10955 if (obj0) {
10956 ecode1 = SWIG_AsVal_int(obj0, &val1);
10957 if (!SWIG_IsOK(ecode1)) {
10958 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10959 }
10960 arg1 = static_cast< int >(val1);
10961 }
10962 if (obj1) {
10963 ecode2 = SWIG_AsVal_int(obj1, &val2);
10964 if (!SWIG_IsOK(ecode2)) {
10965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10966 }
10967 arg2 = static_cast< int >(val2);
10968 }
10969 if (obj2) {
10970 ecode3 = SWIG_AsVal_int(obj2, &val3);
10971 if (!SWIG_IsOK(ecode3)) {
10972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10973 }
10974 arg3 = static_cast< int >(val3);
10975 }
10976 if (obj3) {
10977 ecode4 = SWIG_AsVal_int(obj3, &val4);
10978 if (!SWIG_IsOK(ecode4)) {
10979 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10980 }
10981 arg4 = static_cast< int >(val4);
10982 }
10983 {
10984 if (!wxPyCheckForApp()) SWIG_fail;
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10987 wxPyEndAllowThreads(__tstate);
10988 if (PyErr_Occurred()) SWIG_fail;
10989 }
10990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10991 return resultobj;
10992 fail:
10993 return NULL;
10994 }
10995
10996
10997 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10998 PyObject *resultobj = 0;
10999 wxBitmap *arg1 = 0 ;
11000 wxRegion *result = 0 ;
11001 void *argp1 = 0 ;
11002 int res1 = 0 ;
11003 PyObject * obj0 = 0 ;
11004 char * kwnames[] = {
11005 (char *) "bmp", NULL
11006 };
11007
11008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
11009 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11010 if (!SWIG_IsOK(res1)) {
11011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11012 }
11013 if (!argp1) {
11014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11015 }
11016 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11017 {
11018 if (!wxPyCheckForApp()) SWIG_fail;
11019 PyThreadState* __tstate = wxPyBeginAllowThreads();
11020 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
11021 wxPyEndAllowThreads(__tstate);
11022 if (PyErr_Occurred()) SWIG_fail;
11023 }
11024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11025 return resultobj;
11026 fail:
11027 return NULL;
11028 }
11029
11030
11031 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11032 PyObject *resultobj = 0;
11033 wxBitmap *arg1 = 0 ;
11034 wxColour *arg2 = 0 ;
11035 int arg3 = (int) 0 ;
11036 wxRegion *result = 0 ;
11037 void *argp1 = 0 ;
11038 int res1 = 0 ;
11039 wxColour temp2 ;
11040 int val3 ;
11041 int ecode3 = 0 ;
11042 PyObject * obj0 = 0 ;
11043 PyObject * obj1 = 0 ;
11044 PyObject * obj2 = 0 ;
11045 char * kwnames[] = {
11046 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11047 };
11048
11049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11050 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11051 if (!SWIG_IsOK(res1)) {
11052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11053 }
11054 if (!argp1) {
11055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11056 }
11057 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11058 {
11059 arg2 = &temp2;
11060 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11061 }
11062 if (obj2) {
11063 ecode3 = SWIG_AsVal_int(obj2, &val3);
11064 if (!SWIG_IsOK(ecode3)) {
11065 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
11066 }
11067 arg3 = static_cast< int >(val3);
11068 }
11069 {
11070 if (!wxPyCheckForApp()) SWIG_fail;
11071 PyThreadState* __tstate = wxPyBeginAllowThreads();
11072 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
11073 wxPyEndAllowThreads(__tstate);
11074 if (PyErr_Occurred()) SWIG_fail;
11075 }
11076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11077 return resultobj;
11078 fail:
11079 return NULL;
11080 }
11081
11082
11083 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11084 PyObject *resultobj = 0;
11085 int arg1 ;
11086 wxPoint *arg2 = (wxPoint *) 0 ;
11087 int arg3 = (int) wxWINDING_RULE ;
11088 wxRegion *result = 0 ;
11089 int val3 ;
11090 int ecode3 = 0 ;
11091 PyObject * obj0 = 0 ;
11092 PyObject * obj1 = 0 ;
11093 char * kwnames[] = {
11094 (char *) "points",(char *) "fillStyle", NULL
11095 };
11096
11097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
11098 {
11099 arg2 = wxPoint_LIST_helper(obj0, &arg1);
11100 if (arg2 == NULL) SWIG_fail;
11101 }
11102 if (obj1) {
11103 ecode3 = SWIG_AsVal_int(obj1, &val3);
11104 if (!SWIG_IsOK(ecode3)) {
11105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
11106 }
11107 arg3 = static_cast< int >(val3);
11108 }
11109 {
11110 if (!wxPyCheckForApp()) SWIG_fail;
11111 PyThreadState* __tstate = wxPyBeginAllowThreads();
11112 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
11113 wxPyEndAllowThreads(__tstate);
11114 if (PyErr_Occurred()) SWIG_fail;
11115 }
11116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11117 {
11118 if (arg2) delete [] arg2;
11119 }
11120 return resultobj;
11121 fail:
11122 {
11123 if (arg2) delete [] arg2;
11124 }
11125 return NULL;
11126 }
11127
11128
11129 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11130 PyObject *resultobj = 0;
11131 wxRegion *arg1 = (wxRegion *) 0 ;
11132 void *argp1 = 0 ;
11133 int res1 = 0 ;
11134 PyObject *swig_obj[1] ;
11135
11136 if (!args) SWIG_fail;
11137 swig_obj[0] = args;
11138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
11139 if (!SWIG_IsOK(res1)) {
11140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
11141 }
11142 arg1 = reinterpret_cast< wxRegion * >(argp1);
11143 {
11144 PyThreadState* __tstate = wxPyBeginAllowThreads();
11145 delete arg1;
11146
11147 wxPyEndAllowThreads(__tstate);
11148 if (PyErr_Occurred()) SWIG_fail;
11149 }
11150 resultobj = SWIG_Py_Void();
11151 return resultobj;
11152 fail:
11153 return NULL;
11154 }
11155
11156
11157 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11158 PyObject *resultobj = 0;
11159 wxRegion *arg1 = (wxRegion *) 0 ;
11160 void *argp1 = 0 ;
11161 int res1 = 0 ;
11162 PyObject *swig_obj[1] ;
11163
11164 if (!args) SWIG_fail;
11165 swig_obj[0] = args;
11166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11167 if (!SWIG_IsOK(res1)) {
11168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
11169 }
11170 arg1 = reinterpret_cast< wxRegion * >(argp1);
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 (arg1)->Clear();
11174 wxPyEndAllowThreads(__tstate);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 }
11177 resultobj = SWIG_Py_Void();
11178 return resultobj;
11179 fail:
11180 return NULL;
11181 }
11182
11183
11184 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11185 PyObject *resultobj = 0;
11186 wxRegion *arg1 = (wxRegion *) 0 ;
11187 int arg2 ;
11188 int arg3 ;
11189 bool result;
11190 void *argp1 = 0 ;
11191 int res1 = 0 ;
11192 int val2 ;
11193 int ecode2 = 0 ;
11194 int val3 ;
11195 int ecode3 = 0 ;
11196 PyObject * obj0 = 0 ;
11197 PyObject * obj1 = 0 ;
11198 PyObject * obj2 = 0 ;
11199 char * kwnames[] = {
11200 (char *) "self",(char *) "x",(char *) "y", NULL
11201 };
11202
11203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11205 if (!SWIG_IsOK(res1)) {
11206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
11207 }
11208 arg1 = reinterpret_cast< wxRegion * >(argp1);
11209 ecode2 = SWIG_AsVal_int(obj1, &val2);
11210 if (!SWIG_IsOK(ecode2)) {
11211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
11212 }
11213 arg2 = static_cast< int >(val2);
11214 ecode3 = SWIG_AsVal_int(obj2, &val3);
11215 if (!SWIG_IsOK(ecode3)) {
11216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
11217 }
11218 arg3 = static_cast< int >(val3);
11219 {
11220 PyThreadState* __tstate = wxPyBeginAllowThreads();
11221 result = (bool)(arg1)->Offset(arg2,arg3);
11222 wxPyEndAllowThreads(__tstate);
11223 if (PyErr_Occurred()) SWIG_fail;
11224 }
11225 {
11226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11227 }
11228 return resultobj;
11229 fail:
11230 return NULL;
11231 }
11232
11233
11234 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11235 PyObject *resultobj = 0;
11236 wxRegion *arg1 = (wxRegion *) 0 ;
11237 int arg2 ;
11238 int arg3 ;
11239 wxRegionContain result;
11240 void *argp1 = 0 ;
11241 int res1 = 0 ;
11242 int val2 ;
11243 int ecode2 = 0 ;
11244 int val3 ;
11245 int ecode3 = 0 ;
11246 PyObject * obj0 = 0 ;
11247 PyObject * obj1 = 0 ;
11248 PyObject * obj2 = 0 ;
11249 char * kwnames[] = {
11250 (char *) "self",(char *) "x",(char *) "y", NULL
11251 };
11252
11253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11255 if (!SWIG_IsOK(res1)) {
11256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
11257 }
11258 arg1 = reinterpret_cast< wxRegion * >(argp1);
11259 ecode2 = SWIG_AsVal_int(obj1, &val2);
11260 if (!SWIG_IsOK(ecode2)) {
11261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
11262 }
11263 arg2 = static_cast< int >(val2);
11264 ecode3 = SWIG_AsVal_int(obj2, &val3);
11265 if (!SWIG_IsOK(ecode3)) {
11266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
11267 }
11268 arg3 = static_cast< int >(val3);
11269 {
11270 PyThreadState* __tstate = wxPyBeginAllowThreads();
11271 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
11272 wxPyEndAllowThreads(__tstate);
11273 if (PyErr_Occurred()) SWIG_fail;
11274 }
11275 resultobj = SWIG_From_int(static_cast< int >(result));
11276 return resultobj;
11277 fail:
11278 return NULL;
11279 }
11280
11281
11282 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11283 PyObject *resultobj = 0;
11284 wxRegion *arg1 = (wxRegion *) 0 ;
11285 wxPoint *arg2 = 0 ;
11286 wxRegionContain result;
11287 void *argp1 = 0 ;
11288 int res1 = 0 ;
11289 wxPoint temp2 ;
11290 PyObject * obj0 = 0 ;
11291 PyObject * obj1 = 0 ;
11292 char * kwnames[] = {
11293 (char *) "self",(char *) "pt", NULL
11294 };
11295
11296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
11297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11298 if (!SWIG_IsOK(res1)) {
11299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
11300 }
11301 arg1 = reinterpret_cast< wxRegion * >(argp1);
11302 {
11303 arg2 = &temp2;
11304 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11305 }
11306 {
11307 PyThreadState* __tstate = wxPyBeginAllowThreads();
11308 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
11309 wxPyEndAllowThreads(__tstate);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 }
11312 resultobj = SWIG_From_int(static_cast< int >(result));
11313 return resultobj;
11314 fail:
11315 return NULL;
11316 }
11317
11318
11319 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11320 PyObject *resultobj = 0;
11321 wxRegion *arg1 = (wxRegion *) 0 ;
11322 wxRect *arg2 = 0 ;
11323 wxRegionContain result;
11324 void *argp1 = 0 ;
11325 int res1 = 0 ;
11326 wxRect temp2 ;
11327 PyObject * obj0 = 0 ;
11328 PyObject * obj1 = 0 ;
11329 char * kwnames[] = {
11330 (char *) "self",(char *) "rect", NULL
11331 };
11332
11333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
11334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11335 if (!SWIG_IsOK(res1)) {
11336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11337 }
11338 arg1 = reinterpret_cast< wxRegion * >(argp1);
11339 {
11340 arg2 = &temp2;
11341 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11342 }
11343 {
11344 PyThreadState* __tstate = wxPyBeginAllowThreads();
11345 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11346 wxPyEndAllowThreads(__tstate);
11347 if (PyErr_Occurred()) SWIG_fail;
11348 }
11349 resultobj = SWIG_From_int(static_cast< int >(result));
11350 return resultobj;
11351 fail:
11352 return NULL;
11353 }
11354
11355
11356 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11357 PyObject *resultobj = 0;
11358 wxRegion *arg1 = (wxRegion *) 0 ;
11359 int arg2 ;
11360 int arg3 ;
11361 int arg4 ;
11362 int arg5 ;
11363 wxRegionContain result;
11364 void *argp1 = 0 ;
11365 int res1 = 0 ;
11366 int val2 ;
11367 int ecode2 = 0 ;
11368 int val3 ;
11369 int ecode3 = 0 ;
11370 int val4 ;
11371 int ecode4 = 0 ;
11372 int val5 ;
11373 int ecode5 = 0 ;
11374 PyObject * obj0 = 0 ;
11375 PyObject * obj1 = 0 ;
11376 PyObject * obj2 = 0 ;
11377 PyObject * obj3 = 0 ;
11378 PyObject * obj4 = 0 ;
11379 char * kwnames[] = {
11380 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11381 };
11382
11383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11385 if (!SWIG_IsOK(res1)) {
11386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11387 }
11388 arg1 = reinterpret_cast< wxRegion * >(argp1);
11389 ecode2 = SWIG_AsVal_int(obj1, &val2);
11390 if (!SWIG_IsOK(ecode2)) {
11391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11392 }
11393 arg2 = static_cast< int >(val2);
11394 ecode3 = SWIG_AsVal_int(obj2, &val3);
11395 if (!SWIG_IsOK(ecode3)) {
11396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11397 }
11398 arg3 = static_cast< int >(val3);
11399 ecode4 = SWIG_AsVal_int(obj3, &val4);
11400 if (!SWIG_IsOK(ecode4)) {
11401 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11402 }
11403 arg4 = static_cast< int >(val4);
11404 ecode5 = SWIG_AsVal_int(obj4, &val5);
11405 if (!SWIG_IsOK(ecode5)) {
11406 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11407 }
11408 arg5 = static_cast< int >(val5);
11409 {
11410 PyThreadState* __tstate = wxPyBeginAllowThreads();
11411 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11412 wxPyEndAllowThreads(__tstate);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 resultobj = SWIG_From_int(static_cast< int >(result));
11416 return resultobj;
11417 fail:
11418 return NULL;
11419 }
11420
11421
11422 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11423 PyObject *resultobj = 0;
11424 wxRegion *arg1 = (wxRegion *) 0 ;
11425 wxRect result;
11426 void *argp1 = 0 ;
11427 int res1 = 0 ;
11428 PyObject *swig_obj[1] ;
11429
11430 if (!args) SWIG_fail;
11431 swig_obj[0] = args;
11432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11433 if (!SWIG_IsOK(res1)) {
11434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11435 }
11436 arg1 = reinterpret_cast< wxRegion * >(argp1);
11437 {
11438 PyThreadState* __tstate = wxPyBeginAllowThreads();
11439 result = (arg1)->GetBox();
11440 wxPyEndAllowThreads(__tstate);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 }
11443 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11444 return resultobj;
11445 fail:
11446 return NULL;
11447 }
11448
11449
11450 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11451 PyObject *resultobj = 0;
11452 wxRegion *arg1 = (wxRegion *) 0 ;
11453 int arg2 ;
11454 int arg3 ;
11455 int arg4 ;
11456 int arg5 ;
11457 bool result;
11458 void *argp1 = 0 ;
11459 int res1 = 0 ;
11460 int val2 ;
11461 int ecode2 = 0 ;
11462 int val3 ;
11463 int ecode3 = 0 ;
11464 int val4 ;
11465 int ecode4 = 0 ;
11466 int val5 ;
11467 int ecode5 = 0 ;
11468 PyObject * obj0 = 0 ;
11469 PyObject * obj1 = 0 ;
11470 PyObject * obj2 = 0 ;
11471 PyObject * obj3 = 0 ;
11472 PyObject * obj4 = 0 ;
11473 char * kwnames[] = {
11474 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11475 };
11476
11477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11479 if (!SWIG_IsOK(res1)) {
11480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11481 }
11482 arg1 = reinterpret_cast< wxRegion * >(argp1);
11483 ecode2 = SWIG_AsVal_int(obj1, &val2);
11484 if (!SWIG_IsOK(ecode2)) {
11485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11486 }
11487 arg2 = static_cast< int >(val2);
11488 ecode3 = SWIG_AsVal_int(obj2, &val3);
11489 if (!SWIG_IsOK(ecode3)) {
11490 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11491 }
11492 arg3 = static_cast< int >(val3);
11493 ecode4 = SWIG_AsVal_int(obj3, &val4);
11494 if (!SWIG_IsOK(ecode4)) {
11495 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11496 }
11497 arg4 = static_cast< int >(val4);
11498 ecode5 = SWIG_AsVal_int(obj4, &val5);
11499 if (!SWIG_IsOK(ecode5)) {
11500 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11501 }
11502 arg5 = static_cast< int >(val5);
11503 {
11504 PyThreadState* __tstate = wxPyBeginAllowThreads();
11505 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11506 wxPyEndAllowThreads(__tstate);
11507 if (PyErr_Occurred()) SWIG_fail;
11508 }
11509 {
11510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11511 }
11512 return resultobj;
11513 fail:
11514 return NULL;
11515 }
11516
11517
11518 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11519 PyObject *resultobj = 0;
11520 wxRegion *arg1 = (wxRegion *) 0 ;
11521 wxRect *arg2 = 0 ;
11522 bool result;
11523 void *argp1 = 0 ;
11524 int res1 = 0 ;
11525 wxRect temp2 ;
11526 PyObject * obj0 = 0 ;
11527 PyObject * obj1 = 0 ;
11528 char * kwnames[] = {
11529 (char *) "self",(char *) "rect", NULL
11530 };
11531
11532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11534 if (!SWIG_IsOK(res1)) {
11535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11536 }
11537 arg1 = reinterpret_cast< wxRegion * >(argp1);
11538 {
11539 arg2 = &temp2;
11540 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11541 }
11542 {
11543 PyThreadState* __tstate = wxPyBeginAllowThreads();
11544 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11545 wxPyEndAllowThreads(__tstate);
11546 if (PyErr_Occurred()) SWIG_fail;
11547 }
11548 {
11549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11550 }
11551 return resultobj;
11552 fail:
11553 return NULL;
11554 }
11555
11556
11557 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11558 PyObject *resultobj = 0;
11559 wxRegion *arg1 = (wxRegion *) 0 ;
11560 wxRegion *arg2 = 0 ;
11561 bool result;
11562 void *argp1 = 0 ;
11563 int res1 = 0 ;
11564 void *argp2 = 0 ;
11565 int res2 = 0 ;
11566 PyObject * obj0 = 0 ;
11567 PyObject * obj1 = 0 ;
11568 char * kwnames[] = {
11569 (char *) "self",(char *) "region", NULL
11570 };
11571
11572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11574 if (!SWIG_IsOK(res1)) {
11575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11576 }
11577 arg1 = reinterpret_cast< wxRegion * >(argp1);
11578 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11579 if (!SWIG_IsOK(res2)) {
11580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11581 }
11582 if (!argp2) {
11583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11584 }
11585 arg2 = reinterpret_cast< wxRegion * >(argp2);
11586 {
11587 PyThreadState* __tstate = wxPyBeginAllowThreads();
11588 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11589 wxPyEndAllowThreads(__tstate);
11590 if (PyErr_Occurred()) SWIG_fail;
11591 }
11592 {
11593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11594 }
11595 return resultobj;
11596 fail:
11597 return NULL;
11598 }
11599
11600
11601 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11602 PyObject *resultobj = 0;
11603 wxRegion *arg1 = (wxRegion *) 0 ;
11604 bool result;
11605 void *argp1 = 0 ;
11606 int res1 = 0 ;
11607 PyObject *swig_obj[1] ;
11608
11609 if (!args) SWIG_fail;
11610 swig_obj[0] = args;
11611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11612 if (!SWIG_IsOK(res1)) {
11613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11614 }
11615 arg1 = reinterpret_cast< wxRegion * >(argp1);
11616 {
11617 PyThreadState* __tstate = wxPyBeginAllowThreads();
11618 result = (bool)(arg1)->IsEmpty();
11619 wxPyEndAllowThreads(__tstate);
11620 if (PyErr_Occurred()) SWIG_fail;
11621 }
11622 {
11623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11624 }
11625 return resultobj;
11626 fail:
11627 return NULL;
11628 }
11629
11630
11631 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11632 PyObject *resultobj = 0;
11633 wxRegion *arg1 = (wxRegion *) 0 ;
11634 wxRegion *arg2 = 0 ;
11635 bool result;
11636 void *argp1 = 0 ;
11637 int res1 = 0 ;
11638 void *argp2 = 0 ;
11639 int res2 = 0 ;
11640 PyObject * obj0 = 0 ;
11641 PyObject * obj1 = 0 ;
11642 char * kwnames[] = {
11643 (char *) "self",(char *) "region", NULL
11644 };
11645
11646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11648 if (!SWIG_IsOK(res1)) {
11649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11650 }
11651 arg1 = reinterpret_cast< wxRegion * >(argp1);
11652 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11653 if (!SWIG_IsOK(res2)) {
11654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11655 }
11656 if (!argp2) {
11657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11658 }
11659 arg2 = reinterpret_cast< wxRegion * >(argp2);
11660 {
11661 PyThreadState* __tstate = wxPyBeginAllowThreads();
11662 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11663 wxPyEndAllowThreads(__tstate);
11664 if (PyErr_Occurred()) SWIG_fail;
11665 }
11666 {
11667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11668 }
11669 return resultobj;
11670 fail:
11671 return NULL;
11672 }
11673
11674
11675 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11676 PyObject *resultobj = 0;
11677 wxRegion *arg1 = (wxRegion *) 0 ;
11678 int arg2 ;
11679 int arg3 ;
11680 int arg4 ;
11681 int arg5 ;
11682 bool result;
11683 void *argp1 = 0 ;
11684 int res1 = 0 ;
11685 int val2 ;
11686 int ecode2 = 0 ;
11687 int val3 ;
11688 int ecode3 = 0 ;
11689 int val4 ;
11690 int ecode4 = 0 ;
11691 int val5 ;
11692 int ecode5 = 0 ;
11693 PyObject * obj0 = 0 ;
11694 PyObject * obj1 = 0 ;
11695 PyObject * obj2 = 0 ;
11696 PyObject * obj3 = 0 ;
11697 PyObject * obj4 = 0 ;
11698 char * kwnames[] = {
11699 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11700 };
11701
11702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11704 if (!SWIG_IsOK(res1)) {
11705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11706 }
11707 arg1 = reinterpret_cast< wxRegion * >(argp1);
11708 ecode2 = SWIG_AsVal_int(obj1, &val2);
11709 if (!SWIG_IsOK(ecode2)) {
11710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11711 }
11712 arg2 = static_cast< int >(val2);
11713 ecode3 = SWIG_AsVal_int(obj2, &val3);
11714 if (!SWIG_IsOK(ecode3)) {
11715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11716 }
11717 arg3 = static_cast< int >(val3);
11718 ecode4 = SWIG_AsVal_int(obj3, &val4);
11719 if (!SWIG_IsOK(ecode4)) {
11720 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11721 }
11722 arg4 = static_cast< int >(val4);
11723 ecode5 = SWIG_AsVal_int(obj4, &val5);
11724 if (!SWIG_IsOK(ecode5)) {
11725 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11726 }
11727 arg5 = static_cast< int >(val5);
11728 {
11729 PyThreadState* __tstate = wxPyBeginAllowThreads();
11730 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11731 wxPyEndAllowThreads(__tstate);
11732 if (PyErr_Occurred()) SWIG_fail;
11733 }
11734 {
11735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11736 }
11737 return resultobj;
11738 fail:
11739 return NULL;
11740 }
11741
11742
11743 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11744 PyObject *resultobj = 0;
11745 wxRegion *arg1 = (wxRegion *) 0 ;
11746 wxRect *arg2 = 0 ;
11747 bool result;
11748 void *argp1 = 0 ;
11749 int res1 = 0 ;
11750 wxRect temp2 ;
11751 PyObject * obj0 = 0 ;
11752 PyObject * obj1 = 0 ;
11753 char * kwnames[] = {
11754 (char *) "self",(char *) "rect", NULL
11755 };
11756
11757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11759 if (!SWIG_IsOK(res1)) {
11760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11761 }
11762 arg1 = reinterpret_cast< wxRegion * >(argp1);
11763 {
11764 arg2 = &temp2;
11765 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11766 }
11767 {
11768 PyThreadState* __tstate = wxPyBeginAllowThreads();
11769 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11770 wxPyEndAllowThreads(__tstate);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 }
11773 {
11774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11775 }
11776 return resultobj;
11777 fail:
11778 return NULL;
11779 }
11780
11781
11782 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11783 PyObject *resultobj = 0;
11784 wxRegion *arg1 = (wxRegion *) 0 ;
11785 wxRegion *arg2 = 0 ;
11786 bool result;
11787 void *argp1 = 0 ;
11788 int res1 = 0 ;
11789 void *argp2 = 0 ;
11790 int res2 = 0 ;
11791 PyObject * obj0 = 0 ;
11792 PyObject * obj1 = 0 ;
11793 char * kwnames[] = {
11794 (char *) "self",(char *) "region", NULL
11795 };
11796
11797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11799 if (!SWIG_IsOK(res1)) {
11800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11801 }
11802 arg1 = reinterpret_cast< wxRegion * >(argp1);
11803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11804 if (!SWIG_IsOK(res2)) {
11805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11806 }
11807 if (!argp2) {
11808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11809 }
11810 arg2 = reinterpret_cast< wxRegion * >(argp2);
11811 {
11812 PyThreadState* __tstate = wxPyBeginAllowThreads();
11813 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11814 wxPyEndAllowThreads(__tstate);
11815 if (PyErr_Occurred()) SWIG_fail;
11816 }
11817 {
11818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11819 }
11820 return resultobj;
11821 fail:
11822 return NULL;
11823 }
11824
11825
11826 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11827 PyObject *resultobj = 0;
11828 wxRegion *arg1 = (wxRegion *) 0 ;
11829 int arg2 ;
11830 int arg3 ;
11831 int arg4 ;
11832 int arg5 ;
11833 bool result;
11834 void *argp1 = 0 ;
11835 int res1 = 0 ;
11836 int val2 ;
11837 int ecode2 = 0 ;
11838 int val3 ;
11839 int ecode3 = 0 ;
11840 int val4 ;
11841 int ecode4 = 0 ;
11842 int val5 ;
11843 int ecode5 = 0 ;
11844 PyObject * obj0 = 0 ;
11845 PyObject * obj1 = 0 ;
11846 PyObject * obj2 = 0 ;
11847 PyObject * obj3 = 0 ;
11848 PyObject * obj4 = 0 ;
11849 char * kwnames[] = {
11850 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11851 };
11852
11853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11855 if (!SWIG_IsOK(res1)) {
11856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11857 }
11858 arg1 = reinterpret_cast< wxRegion * >(argp1);
11859 ecode2 = SWIG_AsVal_int(obj1, &val2);
11860 if (!SWIG_IsOK(ecode2)) {
11861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11862 }
11863 arg2 = static_cast< int >(val2);
11864 ecode3 = SWIG_AsVal_int(obj2, &val3);
11865 if (!SWIG_IsOK(ecode3)) {
11866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11867 }
11868 arg3 = static_cast< int >(val3);
11869 ecode4 = SWIG_AsVal_int(obj3, &val4);
11870 if (!SWIG_IsOK(ecode4)) {
11871 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11872 }
11873 arg4 = static_cast< int >(val4);
11874 ecode5 = SWIG_AsVal_int(obj4, &val5);
11875 if (!SWIG_IsOK(ecode5)) {
11876 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11877 }
11878 arg5 = static_cast< int >(val5);
11879 {
11880 PyThreadState* __tstate = wxPyBeginAllowThreads();
11881 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11882 wxPyEndAllowThreads(__tstate);
11883 if (PyErr_Occurred()) SWIG_fail;
11884 }
11885 {
11886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11887 }
11888 return resultobj;
11889 fail:
11890 return NULL;
11891 }
11892
11893
11894 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11895 PyObject *resultobj = 0;
11896 wxRegion *arg1 = (wxRegion *) 0 ;
11897 wxRect *arg2 = 0 ;
11898 bool result;
11899 void *argp1 = 0 ;
11900 int res1 = 0 ;
11901 wxRect temp2 ;
11902 PyObject * obj0 = 0 ;
11903 PyObject * obj1 = 0 ;
11904 char * kwnames[] = {
11905 (char *) "self",(char *) "rect", NULL
11906 };
11907
11908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11910 if (!SWIG_IsOK(res1)) {
11911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11912 }
11913 arg1 = reinterpret_cast< wxRegion * >(argp1);
11914 {
11915 arg2 = &temp2;
11916 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11917 }
11918 {
11919 PyThreadState* __tstate = wxPyBeginAllowThreads();
11920 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 {
11925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11926 }
11927 return resultobj;
11928 fail:
11929 return NULL;
11930 }
11931
11932
11933 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11934 PyObject *resultobj = 0;
11935 wxRegion *arg1 = (wxRegion *) 0 ;
11936 wxRegion *arg2 = 0 ;
11937 bool result;
11938 void *argp1 = 0 ;
11939 int res1 = 0 ;
11940 void *argp2 = 0 ;
11941 int res2 = 0 ;
11942 PyObject * obj0 = 0 ;
11943 PyObject * obj1 = 0 ;
11944 char * kwnames[] = {
11945 (char *) "self",(char *) "region", NULL
11946 };
11947
11948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11950 if (!SWIG_IsOK(res1)) {
11951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11952 }
11953 arg1 = reinterpret_cast< wxRegion * >(argp1);
11954 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11955 if (!SWIG_IsOK(res2)) {
11956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11957 }
11958 if (!argp2) {
11959 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11960 }
11961 arg2 = reinterpret_cast< wxRegion * >(argp2);
11962 {
11963 PyThreadState* __tstate = wxPyBeginAllowThreads();
11964 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11965 wxPyEndAllowThreads(__tstate);
11966 if (PyErr_Occurred()) SWIG_fail;
11967 }
11968 {
11969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11970 }
11971 return resultobj;
11972 fail:
11973 return NULL;
11974 }
11975
11976
11977 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11978 PyObject *resultobj = 0;
11979 wxRegion *arg1 = (wxRegion *) 0 ;
11980 int arg2 ;
11981 int arg3 ;
11982 int arg4 ;
11983 int arg5 ;
11984 bool result;
11985 void *argp1 = 0 ;
11986 int res1 = 0 ;
11987 int val2 ;
11988 int ecode2 = 0 ;
11989 int val3 ;
11990 int ecode3 = 0 ;
11991 int val4 ;
11992 int ecode4 = 0 ;
11993 int val5 ;
11994 int ecode5 = 0 ;
11995 PyObject * obj0 = 0 ;
11996 PyObject * obj1 = 0 ;
11997 PyObject * obj2 = 0 ;
11998 PyObject * obj3 = 0 ;
11999 PyObject * obj4 = 0 ;
12000 char * kwnames[] = {
12001 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12002 };
12003
12004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12006 if (!SWIG_IsOK(res1)) {
12007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
12008 }
12009 arg1 = reinterpret_cast< wxRegion * >(argp1);
12010 ecode2 = SWIG_AsVal_int(obj1, &val2);
12011 if (!SWIG_IsOK(ecode2)) {
12012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
12013 }
12014 arg2 = static_cast< int >(val2);
12015 ecode3 = SWIG_AsVal_int(obj2, &val3);
12016 if (!SWIG_IsOK(ecode3)) {
12017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
12018 }
12019 arg3 = static_cast< int >(val3);
12020 ecode4 = SWIG_AsVal_int(obj3, &val4);
12021 if (!SWIG_IsOK(ecode4)) {
12022 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
12023 }
12024 arg4 = static_cast< int >(val4);
12025 ecode5 = SWIG_AsVal_int(obj4, &val5);
12026 if (!SWIG_IsOK(ecode5)) {
12027 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
12028 }
12029 arg5 = static_cast< int >(val5);
12030 {
12031 PyThreadState* __tstate = wxPyBeginAllowThreads();
12032 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
12033 wxPyEndAllowThreads(__tstate);
12034 if (PyErr_Occurred()) SWIG_fail;
12035 }
12036 {
12037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12038 }
12039 return resultobj;
12040 fail:
12041 return NULL;
12042 }
12043
12044
12045 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12046 PyObject *resultobj = 0;
12047 wxRegion *arg1 = (wxRegion *) 0 ;
12048 wxRect *arg2 = 0 ;
12049 bool result;
12050 void *argp1 = 0 ;
12051 int res1 = 0 ;
12052 wxRect temp2 ;
12053 PyObject * obj0 = 0 ;
12054 PyObject * obj1 = 0 ;
12055 char * kwnames[] = {
12056 (char *) "self",(char *) "rect", NULL
12057 };
12058
12059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
12060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12061 if (!SWIG_IsOK(res1)) {
12062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
12063 }
12064 arg1 = reinterpret_cast< wxRegion * >(argp1);
12065 {
12066 arg2 = &temp2;
12067 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12068 }
12069 {
12070 PyThreadState* __tstate = wxPyBeginAllowThreads();
12071 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
12072 wxPyEndAllowThreads(__tstate);
12073 if (PyErr_Occurred()) SWIG_fail;
12074 }
12075 {
12076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12077 }
12078 return resultobj;
12079 fail:
12080 return NULL;
12081 }
12082
12083
12084 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12085 PyObject *resultobj = 0;
12086 wxRegion *arg1 = (wxRegion *) 0 ;
12087 wxRegion *arg2 = 0 ;
12088 bool result;
12089 void *argp1 = 0 ;
12090 int res1 = 0 ;
12091 void *argp2 = 0 ;
12092 int res2 = 0 ;
12093 PyObject * obj0 = 0 ;
12094 PyObject * obj1 = 0 ;
12095 char * kwnames[] = {
12096 (char *) "self",(char *) "region", NULL
12097 };
12098
12099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
12100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12101 if (!SWIG_IsOK(res1)) {
12102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
12103 }
12104 arg1 = reinterpret_cast< wxRegion * >(argp1);
12105 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
12106 if (!SWIG_IsOK(res2)) {
12107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12108 }
12109 if (!argp2) {
12110 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12111 }
12112 arg2 = reinterpret_cast< wxRegion * >(argp2);
12113 {
12114 PyThreadState* __tstate = wxPyBeginAllowThreads();
12115 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
12116 wxPyEndAllowThreads(__tstate);
12117 if (PyErr_Occurred()) SWIG_fail;
12118 }
12119 {
12120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12121 }
12122 return resultobj;
12123 fail:
12124 return NULL;
12125 }
12126
12127
12128 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12129 PyObject *resultobj = 0;
12130 wxRegion *arg1 = (wxRegion *) 0 ;
12131 SwigValueWrapper<wxBitmap > result;
12132 void *argp1 = 0 ;
12133 int res1 = 0 ;
12134 PyObject *swig_obj[1] ;
12135
12136 if (!args) SWIG_fail;
12137 swig_obj[0] = args;
12138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12139 if (!SWIG_IsOK(res1)) {
12140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12141 }
12142 arg1 = reinterpret_cast< wxRegion * >(argp1);
12143 {
12144 PyThreadState* __tstate = wxPyBeginAllowThreads();
12145 result = (arg1)->ConvertToBitmap();
12146 wxPyEndAllowThreads(__tstate);
12147 if (PyErr_Occurred()) SWIG_fail;
12148 }
12149 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
12150 return resultobj;
12151 fail:
12152 return NULL;
12153 }
12154
12155
12156 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12157 PyObject *resultobj = 0;
12158 wxRegion *arg1 = (wxRegion *) 0 ;
12159 wxBitmap *arg2 = 0 ;
12160 bool result;
12161 void *argp1 = 0 ;
12162 int res1 = 0 ;
12163 void *argp2 = 0 ;
12164 int res2 = 0 ;
12165 PyObject * obj0 = 0 ;
12166 PyObject * obj1 = 0 ;
12167 char * kwnames[] = {
12168 (char *) "self",(char *) "bmp", NULL
12169 };
12170
12171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
12172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12173 if (!SWIG_IsOK(res1)) {
12174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12175 }
12176 arg1 = reinterpret_cast< wxRegion * >(argp1);
12177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12178 if (!SWIG_IsOK(res2)) {
12179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12180 }
12181 if (!argp2) {
12182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12183 }
12184 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12185 {
12186 PyThreadState* __tstate = wxPyBeginAllowThreads();
12187 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
12188 wxPyEndAllowThreads(__tstate);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 }
12191 {
12192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12193 }
12194 return resultobj;
12195 fail:
12196 return NULL;
12197 }
12198
12199
12200 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12201 PyObject *resultobj = 0;
12202 wxRegion *arg1 = (wxRegion *) 0 ;
12203 wxBitmap *arg2 = 0 ;
12204 wxColour *arg3 = 0 ;
12205 int arg4 = (int) 0 ;
12206 bool result;
12207 void *argp1 = 0 ;
12208 int res1 = 0 ;
12209 void *argp2 = 0 ;
12210 int res2 = 0 ;
12211 wxColour temp3 ;
12212 int val4 ;
12213 int ecode4 = 0 ;
12214 PyObject * obj0 = 0 ;
12215 PyObject * obj1 = 0 ;
12216 PyObject * obj2 = 0 ;
12217 PyObject * obj3 = 0 ;
12218 char * kwnames[] = {
12219 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
12220 };
12221
12222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12224 if (!SWIG_IsOK(res1)) {
12225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
12226 }
12227 arg1 = reinterpret_cast< wxRegion * >(argp1);
12228 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12229 if (!SWIG_IsOK(res2)) {
12230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12231 }
12232 if (!argp2) {
12233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12234 }
12235 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12236 {
12237 arg3 = &temp3;
12238 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12239 }
12240 if (obj3) {
12241 ecode4 = SWIG_AsVal_int(obj3, &val4);
12242 if (!SWIG_IsOK(ecode4)) {
12243 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
12244 }
12245 arg4 = static_cast< int >(val4);
12246 }
12247 {
12248 PyThreadState* __tstate = wxPyBeginAllowThreads();
12249 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
12250 wxPyEndAllowThreads(__tstate);
12251 if (PyErr_Occurred()) SWIG_fail;
12252 }
12253 {
12254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12255 }
12256 return resultobj;
12257 fail:
12258 return NULL;
12259 }
12260
12261
12262 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12263 PyObject *obj;
12264 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12265 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
12266 return SWIG_Py_Void();
12267 }
12268
12269 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12270 return SWIG_Python_InitShadowInstance(args);
12271 }
12272
12273 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12274 PyObject *resultobj = 0;
12275 wxRegion *arg1 = 0 ;
12276 wxRegionIterator *result = 0 ;
12277 void *argp1 = 0 ;
12278 int res1 = 0 ;
12279 PyObject * obj0 = 0 ;
12280 char * kwnames[] = {
12281 (char *) "region", NULL
12282 };
12283
12284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
12285 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
12286 if (!SWIG_IsOK(res1)) {
12287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12288 }
12289 if (!argp1) {
12290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12291 }
12292 arg1 = reinterpret_cast< wxRegion * >(argp1);
12293 {
12294 if (!wxPyCheckForApp()) SWIG_fail;
12295 PyThreadState* __tstate = wxPyBeginAllowThreads();
12296 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
12297 wxPyEndAllowThreads(__tstate);
12298 if (PyErr_Occurred()) SWIG_fail;
12299 }
12300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
12301 return resultobj;
12302 fail:
12303 return NULL;
12304 }
12305
12306
12307 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12308 PyObject *resultobj = 0;
12309 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12310 void *argp1 = 0 ;
12311 int res1 = 0 ;
12312 PyObject *swig_obj[1] ;
12313
12314 if (!args) SWIG_fail;
12315 swig_obj[0] = args;
12316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
12317 if (!SWIG_IsOK(res1)) {
12318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12319 }
12320 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12321 {
12322 PyThreadState* __tstate = wxPyBeginAllowThreads();
12323 delete arg1;
12324
12325 wxPyEndAllowThreads(__tstate);
12326 if (PyErr_Occurred()) SWIG_fail;
12327 }
12328 resultobj = SWIG_Py_Void();
12329 return resultobj;
12330 fail:
12331 return NULL;
12332 }
12333
12334
12335 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12336 PyObject *resultobj = 0;
12337 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12338 int result;
12339 void *argp1 = 0 ;
12340 int res1 = 0 ;
12341 PyObject *swig_obj[1] ;
12342
12343 if (!args) SWIG_fail;
12344 swig_obj[0] = args;
12345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12346 if (!SWIG_IsOK(res1)) {
12347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12348 }
12349 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12350 {
12351 PyThreadState* __tstate = wxPyBeginAllowThreads();
12352 result = (int)(arg1)->GetX();
12353 wxPyEndAllowThreads(__tstate);
12354 if (PyErr_Occurred()) SWIG_fail;
12355 }
12356 resultobj = SWIG_From_int(static_cast< int >(result));
12357 return resultobj;
12358 fail:
12359 return NULL;
12360 }
12361
12362
12363 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12364 PyObject *resultobj = 0;
12365 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12366 int result;
12367 void *argp1 = 0 ;
12368 int res1 = 0 ;
12369 PyObject *swig_obj[1] ;
12370
12371 if (!args) SWIG_fail;
12372 swig_obj[0] = args;
12373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12374 if (!SWIG_IsOK(res1)) {
12375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12376 }
12377 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12378 {
12379 PyThreadState* __tstate = wxPyBeginAllowThreads();
12380 result = (int)(arg1)->GetY();
12381 wxPyEndAllowThreads(__tstate);
12382 if (PyErr_Occurred()) SWIG_fail;
12383 }
12384 resultobj = SWIG_From_int(static_cast< int >(result));
12385 return resultobj;
12386 fail:
12387 return NULL;
12388 }
12389
12390
12391 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12392 PyObject *resultobj = 0;
12393 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12394 int result;
12395 void *argp1 = 0 ;
12396 int res1 = 0 ;
12397 PyObject *swig_obj[1] ;
12398
12399 if (!args) SWIG_fail;
12400 swig_obj[0] = args;
12401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12402 if (!SWIG_IsOK(res1)) {
12403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12404 }
12405 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12406 {
12407 PyThreadState* __tstate = wxPyBeginAllowThreads();
12408 result = (int)(arg1)->GetW();
12409 wxPyEndAllowThreads(__tstate);
12410 if (PyErr_Occurred()) SWIG_fail;
12411 }
12412 resultobj = SWIG_From_int(static_cast< int >(result));
12413 return resultobj;
12414 fail:
12415 return NULL;
12416 }
12417
12418
12419 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12420 PyObject *resultobj = 0;
12421 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12422 int result;
12423 void *argp1 = 0 ;
12424 int res1 = 0 ;
12425 PyObject *swig_obj[1] ;
12426
12427 if (!args) SWIG_fail;
12428 swig_obj[0] = args;
12429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12430 if (!SWIG_IsOK(res1)) {
12431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12432 }
12433 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12434 {
12435 PyThreadState* __tstate = wxPyBeginAllowThreads();
12436 result = (int)(arg1)->GetWidth();
12437 wxPyEndAllowThreads(__tstate);
12438 if (PyErr_Occurred()) SWIG_fail;
12439 }
12440 resultobj = SWIG_From_int(static_cast< int >(result));
12441 return resultobj;
12442 fail:
12443 return NULL;
12444 }
12445
12446
12447 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12448 PyObject *resultobj = 0;
12449 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12450 int result;
12451 void *argp1 = 0 ;
12452 int res1 = 0 ;
12453 PyObject *swig_obj[1] ;
12454
12455 if (!args) SWIG_fail;
12456 swig_obj[0] = args;
12457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12458 if (!SWIG_IsOK(res1)) {
12459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12460 }
12461 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12462 {
12463 PyThreadState* __tstate = wxPyBeginAllowThreads();
12464 result = (int)(arg1)->GetH();
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 resultobj = SWIG_From_int(static_cast< int >(result));
12469 return resultobj;
12470 fail:
12471 return NULL;
12472 }
12473
12474
12475 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12476 PyObject *resultobj = 0;
12477 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12478 int result;
12479 void *argp1 = 0 ;
12480 int res1 = 0 ;
12481 PyObject *swig_obj[1] ;
12482
12483 if (!args) SWIG_fail;
12484 swig_obj[0] = args;
12485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12486 if (!SWIG_IsOK(res1)) {
12487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12488 }
12489 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12490 {
12491 PyThreadState* __tstate = wxPyBeginAllowThreads();
12492 result = (int)(arg1)->GetHeight();
12493 wxPyEndAllowThreads(__tstate);
12494 if (PyErr_Occurred()) SWIG_fail;
12495 }
12496 resultobj = SWIG_From_int(static_cast< int >(result));
12497 return resultobj;
12498 fail:
12499 return NULL;
12500 }
12501
12502
12503 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12504 PyObject *resultobj = 0;
12505 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12506 wxRect result;
12507 void *argp1 = 0 ;
12508 int res1 = 0 ;
12509 PyObject *swig_obj[1] ;
12510
12511 if (!args) SWIG_fail;
12512 swig_obj[0] = args;
12513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12514 if (!SWIG_IsOK(res1)) {
12515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12516 }
12517 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12518 {
12519 PyThreadState* __tstate = wxPyBeginAllowThreads();
12520 result = (arg1)->GetRect();
12521 wxPyEndAllowThreads(__tstate);
12522 if (PyErr_Occurred()) SWIG_fail;
12523 }
12524 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12525 return resultobj;
12526 fail:
12527 return NULL;
12528 }
12529
12530
12531 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12532 PyObject *resultobj = 0;
12533 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12534 bool result;
12535 void *argp1 = 0 ;
12536 int res1 = 0 ;
12537 PyObject *swig_obj[1] ;
12538
12539 if (!args) SWIG_fail;
12540 swig_obj[0] = args;
12541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12542 if (!SWIG_IsOK(res1)) {
12543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12544 }
12545 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 result = (bool)(arg1)->HaveRects();
12549 wxPyEndAllowThreads(__tstate);
12550 if (PyErr_Occurred()) SWIG_fail;
12551 }
12552 {
12553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12554 }
12555 return resultobj;
12556 fail:
12557 return NULL;
12558 }
12559
12560
12561 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12562 PyObject *resultobj = 0;
12563 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12564 void *argp1 = 0 ;
12565 int res1 = 0 ;
12566 PyObject *swig_obj[1] ;
12567
12568 if (!args) SWIG_fail;
12569 swig_obj[0] = args;
12570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12571 if (!SWIG_IsOK(res1)) {
12572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12573 }
12574 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12575 {
12576 PyThreadState* __tstate = wxPyBeginAllowThreads();
12577 (arg1)->Reset();
12578 wxPyEndAllowThreads(__tstate);
12579 if (PyErr_Occurred()) SWIG_fail;
12580 }
12581 resultobj = SWIG_Py_Void();
12582 return resultobj;
12583 fail:
12584 return NULL;
12585 }
12586
12587
12588 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12589 PyObject *resultobj = 0;
12590 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12591 void *argp1 = 0 ;
12592 int res1 = 0 ;
12593 PyObject *swig_obj[1] ;
12594
12595 if (!args) SWIG_fail;
12596 swig_obj[0] = args;
12597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12598 if (!SWIG_IsOK(res1)) {
12599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12600 }
12601 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12602 {
12603 PyThreadState* __tstate = wxPyBeginAllowThreads();
12604 wxRegionIterator_Next(arg1);
12605 wxPyEndAllowThreads(__tstate);
12606 if (PyErr_Occurred()) SWIG_fail;
12607 }
12608 resultobj = SWIG_Py_Void();
12609 return resultobj;
12610 fail:
12611 return NULL;
12612 }
12613
12614
12615 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12616 PyObject *resultobj = 0;
12617 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12618 bool result;
12619 void *argp1 = 0 ;
12620 int res1 = 0 ;
12621 PyObject *swig_obj[1] ;
12622
12623 if (!args) SWIG_fail;
12624 swig_obj[0] = args;
12625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12626 if (!SWIG_IsOK(res1)) {
12627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12628 }
12629 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12630 {
12631 PyThreadState* __tstate = wxPyBeginAllowThreads();
12632 result = (bool)wxRegionIterator___nonzero__(arg1);
12633 wxPyEndAllowThreads(__tstate);
12634 if (PyErr_Occurred()) SWIG_fail;
12635 }
12636 {
12637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12638 }
12639 return resultobj;
12640 fail:
12641 return NULL;
12642 }
12643
12644
12645 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12646 PyObject *obj;
12647 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12648 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12649 return SWIG_Py_Void();
12650 }
12651
12652 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12653 return SWIG_Python_InitShadowInstance(args);
12654 }
12655
12656 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12657 PyObject *resultobj = 0;
12658 wxNativeFontInfo *result = 0 ;
12659
12660 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12661 {
12662 PyThreadState* __tstate = wxPyBeginAllowThreads();
12663 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12664 wxPyEndAllowThreads(__tstate);
12665 if (PyErr_Occurred()) SWIG_fail;
12666 }
12667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12668 return resultobj;
12669 fail:
12670 return NULL;
12671 }
12672
12673
12674 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12675 PyObject *resultobj = 0;
12676 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12677 void *argp1 = 0 ;
12678 int res1 = 0 ;
12679 PyObject *swig_obj[1] ;
12680
12681 if (!args) SWIG_fail;
12682 swig_obj[0] = args;
12683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12684 if (!SWIG_IsOK(res1)) {
12685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12686 }
12687 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12688 {
12689 PyThreadState* __tstate = wxPyBeginAllowThreads();
12690 delete arg1;
12691
12692 wxPyEndAllowThreads(__tstate);
12693 if (PyErr_Occurred()) SWIG_fail;
12694 }
12695 resultobj = SWIG_Py_Void();
12696 return resultobj;
12697 fail:
12698 return NULL;
12699 }
12700
12701
12702 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12703 PyObject *resultobj = 0;
12704 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12705 void *argp1 = 0 ;
12706 int res1 = 0 ;
12707 PyObject *swig_obj[1] ;
12708
12709 if (!args) SWIG_fail;
12710 swig_obj[0] = args;
12711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12712 if (!SWIG_IsOK(res1)) {
12713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12714 }
12715 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12716 {
12717 PyThreadState* __tstate = wxPyBeginAllowThreads();
12718 (arg1)->Init();
12719 wxPyEndAllowThreads(__tstate);
12720 if (PyErr_Occurred()) SWIG_fail;
12721 }
12722 resultobj = SWIG_Py_Void();
12723 return resultobj;
12724 fail:
12725 return NULL;
12726 }
12727
12728
12729 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12730 PyObject *resultobj = 0;
12731 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12732 wxFont *arg2 = 0 ;
12733 void *argp1 = 0 ;
12734 int res1 = 0 ;
12735 void *argp2 = 0 ;
12736 int res2 = 0 ;
12737 PyObject * obj0 = 0 ;
12738 PyObject * obj1 = 0 ;
12739 char * kwnames[] = {
12740 (char *) "self",(char *) "font", NULL
12741 };
12742
12743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12745 if (!SWIG_IsOK(res1)) {
12746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12747 }
12748 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12749 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12750 if (!SWIG_IsOK(res2)) {
12751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12752 }
12753 if (!argp2) {
12754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12755 }
12756 arg2 = reinterpret_cast< wxFont * >(argp2);
12757 {
12758 PyThreadState* __tstate = wxPyBeginAllowThreads();
12759 (arg1)->InitFromFont((wxFont const &)*arg2);
12760 wxPyEndAllowThreads(__tstate);
12761 if (PyErr_Occurred()) SWIG_fail;
12762 }
12763 resultobj = SWIG_Py_Void();
12764 return resultobj;
12765 fail:
12766 return NULL;
12767 }
12768
12769
12770 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12771 PyObject *resultobj = 0;
12772 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12773 int result;
12774 void *argp1 = 0 ;
12775 int res1 = 0 ;
12776 PyObject *swig_obj[1] ;
12777
12778 if (!args) SWIG_fail;
12779 swig_obj[0] = args;
12780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12781 if (!SWIG_IsOK(res1)) {
12782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12783 }
12784 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12785 {
12786 PyThreadState* __tstate = wxPyBeginAllowThreads();
12787 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12788 wxPyEndAllowThreads(__tstate);
12789 if (PyErr_Occurred()) SWIG_fail;
12790 }
12791 resultobj = SWIG_From_int(static_cast< int >(result));
12792 return resultobj;
12793 fail:
12794 return NULL;
12795 }
12796
12797
12798 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12799 PyObject *resultobj = 0;
12800 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12801 wxSize result;
12802 void *argp1 = 0 ;
12803 int res1 = 0 ;
12804 PyObject *swig_obj[1] ;
12805
12806 if (!args) SWIG_fail;
12807 swig_obj[0] = args;
12808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12809 if (!SWIG_IsOK(res1)) {
12810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12811 }
12812 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12813 {
12814 PyThreadState* __tstate = wxPyBeginAllowThreads();
12815 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12816 wxPyEndAllowThreads(__tstate);
12817 if (PyErr_Occurred()) SWIG_fail;
12818 }
12819 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12820 return resultobj;
12821 fail:
12822 return NULL;
12823 }
12824
12825
12826 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12827 PyObject *resultobj = 0;
12828 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12829 wxFontStyle result;
12830 void *argp1 = 0 ;
12831 int res1 = 0 ;
12832 PyObject *swig_obj[1] ;
12833
12834 if (!args) SWIG_fail;
12835 swig_obj[0] = args;
12836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12837 if (!SWIG_IsOK(res1)) {
12838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12839 }
12840 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12841 {
12842 PyThreadState* __tstate = wxPyBeginAllowThreads();
12843 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12844 wxPyEndAllowThreads(__tstate);
12845 if (PyErr_Occurred()) SWIG_fail;
12846 }
12847 resultobj = SWIG_From_int(static_cast< int >(result));
12848 return resultobj;
12849 fail:
12850 return NULL;
12851 }
12852
12853
12854 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12855 PyObject *resultobj = 0;
12856 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12857 wxFontWeight result;
12858 void *argp1 = 0 ;
12859 int res1 = 0 ;
12860 PyObject *swig_obj[1] ;
12861
12862 if (!args) SWIG_fail;
12863 swig_obj[0] = args;
12864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12865 if (!SWIG_IsOK(res1)) {
12866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12867 }
12868 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12869 {
12870 PyThreadState* __tstate = wxPyBeginAllowThreads();
12871 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12872 wxPyEndAllowThreads(__tstate);
12873 if (PyErr_Occurred()) SWIG_fail;
12874 }
12875 resultobj = SWIG_From_int(static_cast< int >(result));
12876 return resultobj;
12877 fail:
12878 return NULL;
12879 }
12880
12881
12882 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12883 PyObject *resultobj = 0;
12884 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12885 bool result;
12886 void *argp1 = 0 ;
12887 int res1 = 0 ;
12888 PyObject *swig_obj[1] ;
12889
12890 if (!args) SWIG_fail;
12891 swig_obj[0] = args;
12892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12893 if (!SWIG_IsOK(res1)) {
12894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12895 }
12896 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12897 {
12898 PyThreadState* __tstate = wxPyBeginAllowThreads();
12899 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12900 wxPyEndAllowThreads(__tstate);
12901 if (PyErr_Occurred()) SWIG_fail;
12902 }
12903 {
12904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12905 }
12906 return resultobj;
12907 fail:
12908 return NULL;
12909 }
12910
12911
12912 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12913 PyObject *resultobj = 0;
12914 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12915 wxString result;
12916 void *argp1 = 0 ;
12917 int res1 = 0 ;
12918 PyObject *swig_obj[1] ;
12919
12920 if (!args) SWIG_fail;
12921 swig_obj[0] = args;
12922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12923 if (!SWIG_IsOK(res1)) {
12924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12925 }
12926 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12927 {
12928 PyThreadState* __tstate = wxPyBeginAllowThreads();
12929 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12930 wxPyEndAllowThreads(__tstate);
12931 if (PyErr_Occurred()) SWIG_fail;
12932 }
12933 {
12934 #if wxUSE_UNICODE
12935 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12936 #else
12937 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12938 #endif
12939 }
12940 return resultobj;
12941 fail:
12942 return NULL;
12943 }
12944
12945
12946 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12947 PyObject *resultobj = 0;
12948 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12949 wxFontFamily result;
12950 void *argp1 = 0 ;
12951 int res1 = 0 ;
12952 PyObject *swig_obj[1] ;
12953
12954 if (!args) SWIG_fail;
12955 swig_obj[0] = args;
12956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12957 if (!SWIG_IsOK(res1)) {
12958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12959 }
12960 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12961 {
12962 PyThreadState* __tstate = wxPyBeginAllowThreads();
12963 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12964 wxPyEndAllowThreads(__tstate);
12965 if (PyErr_Occurred()) SWIG_fail;
12966 }
12967 resultobj = SWIG_From_int(static_cast< int >(result));
12968 return resultobj;
12969 fail:
12970 return NULL;
12971 }
12972
12973
12974 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12975 PyObject *resultobj = 0;
12976 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12977 wxFontEncoding result;
12978 void *argp1 = 0 ;
12979 int res1 = 0 ;
12980 PyObject *swig_obj[1] ;
12981
12982 if (!args) SWIG_fail;
12983 swig_obj[0] = args;
12984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12985 if (!SWIG_IsOK(res1)) {
12986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12987 }
12988 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12989 {
12990 PyThreadState* __tstate = wxPyBeginAllowThreads();
12991 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12992 wxPyEndAllowThreads(__tstate);
12993 if (PyErr_Occurred()) SWIG_fail;
12994 }
12995 resultobj = SWIG_From_int(static_cast< int >(result));
12996 return resultobj;
12997 fail:
12998 return NULL;
12999 }
13000
13001
13002 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13003 PyObject *resultobj = 0;
13004 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13005 int arg2 ;
13006 void *argp1 = 0 ;
13007 int res1 = 0 ;
13008 int val2 ;
13009 int ecode2 = 0 ;
13010 PyObject * obj0 = 0 ;
13011 PyObject * obj1 = 0 ;
13012 char * kwnames[] = {
13013 (char *) "self",(char *) "pointsize", NULL
13014 };
13015
13016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
13017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13018 if (!SWIG_IsOK(res1)) {
13019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13020 }
13021 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13022 ecode2 = SWIG_AsVal_int(obj1, &val2);
13023 if (!SWIG_IsOK(ecode2)) {
13024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
13025 }
13026 arg2 = static_cast< int >(val2);
13027 {
13028 PyThreadState* __tstate = wxPyBeginAllowThreads();
13029 (arg1)->SetPointSize(arg2);
13030 wxPyEndAllowThreads(__tstate);
13031 if (PyErr_Occurred()) SWIG_fail;
13032 }
13033 resultobj = SWIG_Py_Void();
13034 return resultobj;
13035 fail:
13036 return NULL;
13037 }
13038
13039
13040 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13041 PyObject *resultobj = 0;
13042 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13043 wxSize *arg2 = 0 ;
13044 void *argp1 = 0 ;
13045 int res1 = 0 ;
13046 wxSize temp2 ;
13047 PyObject * obj0 = 0 ;
13048 PyObject * obj1 = 0 ;
13049 char * kwnames[] = {
13050 (char *) "self",(char *) "pixelSize", NULL
13051 };
13052
13053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
13054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13055 if (!SWIG_IsOK(res1)) {
13056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13057 }
13058 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13059 {
13060 arg2 = &temp2;
13061 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13062 }
13063 {
13064 PyThreadState* __tstate = wxPyBeginAllowThreads();
13065 (arg1)->SetPixelSize((wxSize const &)*arg2);
13066 wxPyEndAllowThreads(__tstate);
13067 if (PyErr_Occurred()) SWIG_fail;
13068 }
13069 resultobj = SWIG_Py_Void();
13070 return resultobj;
13071 fail:
13072 return NULL;
13073 }
13074
13075
13076 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13077 PyObject *resultobj = 0;
13078 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13079 wxFontStyle arg2 ;
13080 void *argp1 = 0 ;
13081 int res1 = 0 ;
13082 int val2 ;
13083 int ecode2 = 0 ;
13084 PyObject * obj0 = 0 ;
13085 PyObject * obj1 = 0 ;
13086 char * kwnames[] = {
13087 (char *) "self",(char *) "style", NULL
13088 };
13089
13090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13092 if (!SWIG_IsOK(res1)) {
13093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13094 }
13095 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13096 ecode2 = SWIG_AsVal_int(obj1, &val2);
13097 if (!SWIG_IsOK(ecode2)) {
13098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
13099 }
13100 arg2 = static_cast< wxFontStyle >(val2);
13101 {
13102 PyThreadState* __tstate = wxPyBeginAllowThreads();
13103 (arg1)->SetStyle(arg2);
13104 wxPyEndAllowThreads(__tstate);
13105 if (PyErr_Occurred()) SWIG_fail;
13106 }
13107 resultobj = SWIG_Py_Void();
13108 return resultobj;
13109 fail:
13110 return NULL;
13111 }
13112
13113
13114 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13115 PyObject *resultobj = 0;
13116 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13117 wxFontWeight arg2 ;
13118 void *argp1 = 0 ;
13119 int res1 = 0 ;
13120 int val2 ;
13121 int ecode2 = 0 ;
13122 PyObject * obj0 = 0 ;
13123 PyObject * obj1 = 0 ;
13124 char * kwnames[] = {
13125 (char *) "self",(char *) "weight", NULL
13126 };
13127
13128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
13129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13130 if (!SWIG_IsOK(res1)) {
13131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13132 }
13133 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13134 ecode2 = SWIG_AsVal_int(obj1, &val2);
13135 if (!SWIG_IsOK(ecode2)) {
13136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
13137 }
13138 arg2 = static_cast< wxFontWeight >(val2);
13139 {
13140 PyThreadState* __tstate = wxPyBeginAllowThreads();
13141 (arg1)->SetWeight(arg2);
13142 wxPyEndAllowThreads(__tstate);
13143 if (PyErr_Occurred()) SWIG_fail;
13144 }
13145 resultobj = SWIG_Py_Void();
13146 return resultobj;
13147 fail:
13148 return NULL;
13149 }
13150
13151
13152 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13153 PyObject *resultobj = 0;
13154 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13155 bool arg2 ;
13156 void *argp1 = 0 ;
13157 int res1 = 0 ;
13158 bool val2 ;
13159 int ecode2 = 0 ;
13160 PyObject * obj0 = 0 ;
13161 PyObject * obj1 = 0 ;
13162 char * kwnames[] = {
13163 (char *) "self",(char *) "underlined", NULL
13164 };
13165
13166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
13167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13168 if (!SWIG_IsOK(res1)) {
13169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13170 }
13171 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13172 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13173 if (!SWIG_IsOK(ecode2)) {
13174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
13175 }
13176 arg2 = static_cast< bool >(val2);
13177 {
13178 PyThreadState* __tstate = wxPyBeginAllowThreads();
13179 (arg1)->SetUnderlined(arg2);
13180 wxPyEndAllowThreads(__tstate);
13181 if (PyErr_Occurred()) SWIG_fail;
13182 }
13183 resultobj = SWIG_Py_Void();
13184 return resultobj;
13185 fail:
13186 return NULL;
13187 }
13188
13189
13190 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13191 PyObject *resultobj = 0;
13192 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13193 wxString arg2 ;
13194 bool result;
13195 void *argp1 = 0 ;
13196 int res1 = 0 ;
13197 PyObject * obj0 = 0 ;
13198 PyObject * obj1 = 0 ;
13199 char * kwnames[] = {
13200 (char *) "self",(char *) "facename", NULL
13201 };
13202
13203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
13204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13205 if (!SWIG_IsOK(res1)) {
13206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13207 }
13208 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13209 {
13210 wxString* sptr = wxString_in_helper(obj1);
13211 if (sptr == NULL) SWIG_fail;
13212 arg2 = *sptr;
13213 delete sptr;
13214 }
13215 {
13216 PyThreadState* __tstate = wxPyBeginAllowThreads();
13217 result = (bool)(arg1)->SetFaceName(arg2);
13218 wxPyEndAllowThreads(__tstate);
13219 if (PyErr_Occurred()) SWIG_fail;
13220 }
13221 {
13222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13223 }
13224 return resultobj;
13225 fail:
13226 return NULL;
13227 }
13228
13229
13230 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13231 PyObject *resultobj = 0;
13232 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13233 wxFontFamily arg2 ;
13234 void *argp1 = 0 ;
13235 int res1 = 0 ;
13236 int val2 ;
13237 int ecode2 = 0 ;
13238 PyObject * obj0 = 0 ;
13239 PyObject * obj1 = 0 ;
13240 char * kwnames[] = {
13241 (char *) "self",(char *) "family", NULL
13242 };
13243
13244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
13245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13246 if (!SWIG_IsOK(res1)) {
13247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13248 }
13249 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13250 ecode2 = SWIG_AsVal_int(obj1, &val2);
13251 if (!SWIG_IsOK(ecode2)) {
13252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
13253 }
13254 arg2 = static_cast< wxFontFamily >(val2);
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 (arg1)->SetFamily(arg2);
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 resultobj = SWIG_Py_Void();
13262 return resultobj;
13263 fail:
13264 return NULL;
13265 }
13266
13267
13268 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13269 PyObject *resultobj = 0;
13270 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13271 wxFontEncoding arg2 ;
13272 void *argp1 = 0 ;
13273 int res1 = 0 ;
13274 int val2 ;
13275 int ecode2 = 0 ;
13276 PyObject * obj0 = 0 ;
13277 PyObject * obj1 = 0 ;
13278 char * kwnames[] = {
13279 (char *) "self",(char *) "encoding", NULL
13280 };
13281
13282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13284 if (!SWIG_IsOK(res1)) {
13285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13286 }
13287 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13288 ecode2 = SWIG_AsVal_int(obj1, &val2);
13289 if (!SWIG_IsOK(ecode2)) {
13290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13291 }
13292 arg2 = static_cast< wxFontEncoding >(val2);
13293 {
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 (arg1)->SetEncoding(arg2);
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 resultobj = SWIG_Py_Void();
13300 return resultobj;
13301 fail:
13302 return NULL;
13303 }
13304
13305
13306 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13307 PyObject *resultobj = 0;
13308 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13309 wxString *arg2 = 0 ;
13310 bool result;
13311 void *argp1 = 0 ;
13312 int res1 = 0 ;
13313 bool temp2 = false ;
13314 PyObject * obj0 = 0 ;
13315 PyObject * obj1 = 0 ;
13316 char * kwnames[] = {
13317 (char *) "self",(char *) "s", NULL
13318 };
13319
13320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13322 if (!SWIG_IsOK(res1)) {
13323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13324 }
13325 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13326 {
13327 arg2 = wxString_in_helper(obj1);
13328 if (arg2 == NULL) SWIG_fail;
13329 temp2 = true;
13330 }
13331 {
13332 PyThreadState* __tstate = wxPyBeginAllowThreads();
13333 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13334 wxPyEndAllowThreads(__tstate);
13335 if (PyErr_Occurred()) SWIG_fail;
13336 }
13337 {
13338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13339 }
13340 {
13341 if (temp2)
13342 delete arg2;
13343 }
13344 return resultobj;
13345 fail:
13346 {
13347 if (temp2)
13348 delete arg2;
13349 }
13350 return NULL;
13351 }
13352
13353
13354 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13355 PyObject *resultobj = 0;
13356 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13357 wxString result;
13358 void *argp1 = 0 ;
13359 int res1 = 0 ;
13360 PyObject *swig_obj[1] ;
13361
13362 if (!args) SWIG_fail;
13363 swig_obj[0] = args;
13364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13365 if (!SWIG_IsOK(res1)) {
13366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13367 }
13368 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13369 {
13370 PyThreadState* __tstate = wxPyBeginAllowThreads();
13371 result = ((wxNativeFontInfo const *)arg1)->ToString();
13372 wxPyEndAllowThreads(__tstate);
13373 if (PyErr_Occurred()) SWIG_fail;
13374 }
13375 {
13376 #if wxUSE_UNICODE
13377 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13378 #else
13379 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13380 #endif
13381 }
13382 return resultobj;
13383 fail:
13384 return NULL;
13385 }
13386
13387
13388 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13389 PyObject *resultobj = 0;
13390 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13391 wxString result;
13392 void *argp1 = 0 ;
13393 int res1 = 0 ;
13394 PyObject *swig_obj[1] ;
13395
13396 if (!args) SWIG_fail;
13397 swig_obj[0] = args;
13398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13399 if (!SWIG_IsOK(res1)) {
13400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13401 }
13402 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13403 {
13404 PyThreadState* __tstate = wxPyBeginAllowThreads();
13405 result = wxNativeFontInfo___str__(arg1);
13406 wxPyEndAllowThreads(__tstate);
13407 if (PyErr_Occurred()) SWIG_fail;
13408 }
13409 {
13410 #if wxUSE_UNICODE
13411 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13412 #else
13413 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13414 #endif
13415 }
13416 return resultobj;
13417 fail:
13418 return NULL;
13419 }
13420
13421
13422 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13423 PyObject *resultobj = 0;
13424 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13425 wxString *arg2 = 0 ;
13426 bool result;
13427 void *argp1 = 0 ;
13428 int res1 = 0 ;
13429 bool temp2 = false ;
13430 PyObject * obj0 = 0 ;
13431 PyObject * obj1 = 0 ;
13432 char * kwnames[] = {
13433 (char *) "self",(char *) "s", NULL
13434 };
13435
13436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13438 if (!SWIG_IsOK(res1)) {
13439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13440 }
13441 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13442 {
13443 arg2 = wxString_in_helper(obj1);
13444 if (arg2 == NULL) SWIG_fail;
13445 temp2 = true;
13446 }
13447 {
13448 PyThreadState* __tstate = wxPyBeginAllowThreads();
13449 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13450 wxPyEndAllowThreads(__tstate);
13451 if (PyErr_Occurred()) SWIG_fail;
13452 }
13453 {
13454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13455 }
13456 {
13457 if (temp2)
13458 delete arg2;
13459 }
13460 return resultobj;
13461 fail:
13462 {
13463 if (temp2)
13464 delete arg2;
13465 }
13466 return NULL;
13467 }
13468
13469
13470 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13471 PyObject *resultobj = 0;
13472 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13473 wxString result;
13474 void *argp1 = 0 ;
13475 int res1 = 0 ;
13476 PyObject *swig_obj[1] ;
13477
13478 if (!args) SWIG_fail;
13479 swig_obj[0] = args;
13480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13481 if (!SWIG_IsOK(res1)) {
13482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13483 }
13484 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13485 {
13486 PyThreadState* __tstate = wxPyBeginAllowThreads();
13487 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13488 wxPyEndAllowThreads(__tstate);
13489 if (PyErr_Occurred()) SWIG_fail;
13490 }
13491 {
13492 #if wxUSE_UNICODE
13493 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13494 #else
13495 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13496 #endif
13497 }
13498 return resultobj;
13499 fail:
13500 return NULL;
13501 }
13502
13503
13504 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13505 PyObject *obj;
13506 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13507 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13508 return SWIG_Py_Void();
13509 }
13510
13511 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13512 return SWIG_Python_InitShadowInstance(args);
13513 }
13514
13515 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13516 PyObject *resultobj = 0;
13517 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13518 wxString *arg2 = (wxString *) 0 ;
13519 void *argp1 = 0 ;
13520 int res1 = 0 ;
13521 bool temp2 = false ;
13522 PyObject *swig_obj[2] ;
13523
13524 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13526 if (!SWIG_IsOK(res1)) {
13527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13528 }
13529 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13530 {
13531 arg2 = wxString_in_helper(swig_obj[1]);
13532 if (arg2 == NULL) SWIG_fail;
13533 temp2 = true;
13534 }
13535 if (arg1) (arg1)->facename = *arg2;
13536
13537 resultobj = SWIG_Py_Void();
13538 {
13539 if (temp2)
13540 delete arg2;
13541 }
13542 return resultobj;
13543 fail:
13544 {
13545 if (temp2)
13546 delete arg2;
13547 }
13548 return NULL;
13549 }
13550
13551
13552 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13553 PyObject *resultobj = 0;
13554 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13555 wxString *result = 0 ;
13556 void *argp1 = 0 ;
13557 int res1 = 0 ;
13558 PyObject *swig_obj[1] ;
13559
13560 if (!args) SWIG_fail;
13561 swig_obj[0] = args;
13562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13563 if (!SWIG_IsOK(res1)) {
13564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13565 }
13566 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13567 result = (wxString *)& ((arg1)->facename);
13568 {
13569 #if wxUSE_UNICODE
13570 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13571 #else
13572 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13573 #endif
13574 }
13575 return resultobj;
13576 fail:
13577 return NULL;
13578 }
13579
13580
13581 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13582 PyObject *resultobj = 0;
13583 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13584 wxFontEncoding arg2 ;
13585 void *argp1 = 0 ;
13586 int res1 = 0 ;
13587 int val2 ;
13588 int ecode2 = 0 ;
13589 PyObject *swig_obj[2] ;
13590
13591 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13593 if (!SWIG_IsOK(res1)) {
13594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13595 }
13596 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13597 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13598 if (!SWIG_IsOK(ecode2)) {
13599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13600 }
13601 arg2 = static_cast< wxFontEncoding >(val2);
13602 if (arg1) (arg1)->encoding = arg2;
13603
13604 resultobj = SWIG_Py_Void();
13605 return resultobj;
13606 fail:
13607 return NULL;
13608 }
13609
13610
13611 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13612 PyObject *resultobj = 0;
13613 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13614 wxFontEncoding result;
13615 void *argp1 = 0 ;
13616 int res1 = 0 ;
13617 PyObject *swig_obj[1] ;
13618
13619 if (!args) SWIG_fail;
13620 swig_obj[0] = args;
13621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13622 if (!SWIG_IsOK(res1)) {
13623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13624 }
13625 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13626 result = (wxFontEncoding) ((arg1)->encoding);
13627 resultobj = SWIG_From_int(static_cast< int >(result));
13628 return resultobj;
13629 fail:
13630 return NULL;
13631 }
13632
13633
13634 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13635 PyObject *resultobj = 0;
13636 wxNativeEncodingInfo *result = 0 ;
13637
13638 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13639 {
13640 PyThreadState* __tstate = wxPyBeginAllowThreads();
13641 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13642 wxPyEndAllowThreads(__tstate);
13643 if (PyErr_Occurred()) SWIG_fail;
13644 }
13645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13646 return resultobj;
13647 fail:
13648 return NULL;
13649 }
13650
13651
13652 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13653 PyObject *resultobj = 0;
13654 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13655 void *argp1 = 0 ;
13656 int res1 = 0 ;
13657 PyObject *swig_obj[1] ;
13658
13659 if (!args) SWIG_fail;
13660 swig_obj[0] = args;
13661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13662 if (!SWIG_IsOK(res1)) {
13663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13664 }
13665 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13666 {
13667 PyThreadState* __tstate = wxPyBeginAllowThreads();
13668 delete arg1;
13669
13670 wxPyEndAllowThreads(__tstate);
13671 if (PyErr_Occurred()) SWIG_fail;
13672 }
13673 resultobj = SWIG_Py_Void();
13674 return resultobj;
13675 fail:
13676 return NULL;
13677 }
13678
13679
13680 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13681 PyObject *resultobj = 0;
13682 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13683 wxString *arg2 = 0 ;
13684 bool result;
13685 void *argp1 = 0 ;
13686 int res1 = 0 ;
13687 bool temp2 = false ;
13688 PyObject * obj0 = 0 ;
13689 PyObject * obj1 = 0 ;
13690 char * kwnames[] = {
13691 (char *) "self",(char *) "s", NULL
13692 };
13693
13694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13696 if (!SWIG_IsOK(res1)) {
13697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13698 }
13699 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13700 {
13701 arg2 = wxString_in_helper(obj1);
13702 if (arg2 == NULL) SWIG_fail;
13703 temp2 = true;
13704 }
13705 {
13706 PyThreadState* __tstate = wxPyBeginAllowThreads();
13707 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13708 wxPyEndAllowThreads(__tstate);
13709 if (PyErr_Occurred()) SWIG_fail;
13710 }
13711 {
13712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13713 }
13714 {
13715 if (temp2)
13716 delete arg2;
13717 }
13718 return resultobj;
13719 fail:
13720 {
13721 if (temp2)
13722 delete arg2;
13723 }
13724 return NULL;
13725 }
13726
13727
13728 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13729 PyObject *resultobj = 0;
13730 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13731 wxString result;
13732 void *argp1 = 0 ;
13733 int res1 = 0 ;
13734 PyObject *swig_obj[1] ;
13735
13736 if (!args) SWIG_fail;
13737 swig_obj[0] = args;
13738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13739 if (!SWIG_IsOK(res1)) {
13740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13741 }
13742 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13743 {
13744 PyThreadState* __tstate = wxPyBeginAllowThreads();
13745 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13746 wxPyEndAllowThreads(__tstate);
13747 if (PyErr_Occurred()) SWIG_fail;
13748 }
13749 {
13750 #if wxUSE_UNICODE
13751 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13752 #else
13753 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13754 #endif
13755 }
13756 return resultobj;
13757 fail:
13758 return NULL;
13759 }
13760
13761
13762 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13763 PyObject *obj;
13764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13765 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13766 return SWIG_Py_Void();
13767 }
13768
13769 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13770 return SWIG_Python_InitShadowInstance(args);
13771 }
13772
13773 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13774 PyObject *resultobj = 0;
13775 wxFontEncoding arg1 ;
13776 wxNativeEncodingInfo *result = 0 ;
13777 int val1 ;
13778 int ecode1 = 0 ;
13779 PyObject * obj0 = 0 ;
13780 char * kwnames[] = {
13781 (char *) "encoding", NULL
13782 };
13783
13784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13785 ecode1 = SWIG_AsVal_int(obj0, &val1);
13786 if (!SWIG_IsOK(ecode1)) {
13787 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13788 }
13789 arg1 = static_cast< wxFontEncoding >(val1);
13790 {
13791 PyThreadState* __tstate = wxPyBeginAllowThreads();
13792 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13793 wxPyEndAllowThreads(__tstate);
13794 if (PyErr_Occurred()) SWIG_fail;
13795 }
13796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13797 return resultobj;
13798 fail:
13799 return NULL;
13800 }
13801
13802
13803 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13804 PyObject *resultobj = 0;
13805 wxNativeEncodingInfo *arg1 = 0 ;
13806 bool result;
13807 void *argp1 = 0 ;
13808 int res1 = 0 ;
13809 PyObject * obj0 = 0 ;
13810 char * kwnames[] = {
13811 (char *) "info", NULL
13812 };
13813
13814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13815 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13816 if (!SWIG_IsOK(res1)) {
13817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13818 }
13819 if (!argp1) {
13820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13821 }
13822 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13823 {
13824 PyThreadState* __tstate = wxPyBeginAllowThreads();
13825 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13826 wxPyEndAllowThreads(__tstate);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 }
13829 {
13830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13831 }
13832 return resultobj;
13833 fail:
13834 return NULL;
13835 }
13836
13837
13838 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13839 PyObject *resultobj = 0;
13840 wxFontMapper *result = 0 ;
13841
13842 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13843 {
13844 PyThreadState* __tstate = wxPyBeginAllowThreads();
13845 result = (wxFontMapper *)new wxFontMapper();
13846 wxPyEndAllowThreads(__tstate);
13847 if (PyErr_Occurred()) SWIG_fail;
13848 }
13849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13850 return resultobj;
13851 fail:
13852 return NULL;
13853 }
13854
13855
13856 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13857 PyObject *resultobj = 0;
13858 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13859 void *argp1 = 0 ;
13860 int res1 = 0 ;
13861 PyObject *swig_obj[1] ;
13862
13863 if (!args) SWIG_fail;
13864 swig_obj[0] = args;
13865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13866 if (!SWIG_IsOK(res1)) {
13867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13868 }
13869 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13870 {
13871 PyThreadState* __tstate = wxPyBeginAllowThreads();
13872 delete arg1;
13873
13874 wxPyEndAllowThreads(__tstate);
13875 if (PyErr_Occurred()) SWIG_fail;
13876 }
13877 resultobj = SWIG_Py_Void();
13878 return resultobj;
13879 fail:
13880 return NULL;
13881 }
13882
13883
13884 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13885 PyObject *resultobj = 0;
13886 wxFontMapper *result = 0 ;
13887
13888 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13889 {
13890 PyThreadState* __tstate = wxPyBeginAllowThreads();
13891 result = (wxFontMapper *)wxFontMapper::Get();
13892 wxPyEndAllowThreads(__tstate);
13893 if (PyErr_Occurred()) SWIG_fail;
13894 }
13895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13896 return resultobj;
13897 fail:
13898 return NULL;
13899 }
13900
13901
13902 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13903 PyObject *resultobj = 0;
13904 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13905 wxFontMapper *result = 0 ;
13906 void *argp1 = 0 ;
13907 int res1 = 0 ;
13908 PyObject * obj0 = 0 ;
13909 char * kwnames[] = {
13910 (char *) "mapper", NULL
13911 };
13912
13913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13915 if (!SWIG_IsOK(res1)) {
13916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13917 }
13918 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13919 {
13920 PyThreadState* __tstate = wxPyBeginAllowThreads();
13921 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13922 wxPyEndAllowThreads(__tstate);
13923 if (PyErr_Occurred()) SWIG_fail;
13924 }
13925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13926 return resultobj;
13927 fail:
13928 return NULL;
13929 }
13930
13931
13932 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13933 PyObject *resultobj = 0;
13934 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13935 wxString *arg2 = 0 ;
13936 bool arg3 = (bool) true ;
13937 wxFontEncoding result;
13938 void *argp1 = 0 ;
13939 int res1 = 0 ;
13940 bool temp2 = false ;
13941 bool val3 ;
13942 int ecode3 = 0 ;
13943 PyObject * obj0 = 0 ;
13944 PyObject * obj1 = 0 ;
13945 PyObject * obj2 = 0 ;
13946 char * kwnames[] = {
13947 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13948 };
13949
13950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13952 if (!SWIG_IsOK(res1)) {
13953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13954 }
13955 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13956 {
13957 arg2 = wxString_in_helper(obj1);
13958 if (arg2 == NULL) SWIG_fail;
13959 temp2 = true;
13960 }
13961 if (obj2) {
13962 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13963 if (!SWIG_IsOK(ecode3)) {
13964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13965 }
13966 arg3 = static_cast< bool >(val3);
13967 }
13968 {
13969 PyThreadState* __tstate = wxPyBeginAllowThreads();
13970 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13971 wxPyEndAllowThreads(__tstate);
13972 if (PyErr_Occurred()) SWIG_fail;
13973 }
13974 resultobj = SWIG_From_int(static_cast< int >(result));
13975 {
13976 if (temp2)
13977 delete arg2;
13978 }
13979 return resultobj;
13980 fail:
13981 {
13982 if (temp2)
13983 delete arg2;
13984 }
13985 return NULL;
13986 }
13987
13988
13989 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13990 PyObject *resultobj = 0;
13991 size_t result;
13992
13993 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13994 {
13995 PyThreadState* __tstate = wxPyBeginAllowThreads();
13996 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13997 wxPyEndAllowThreads(__tstate);
13998 if (PyErr_Occurred()) SWIG_fail;
13999 }
14000 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
14001 return resultobj;
14002 fail:
14003 return NULL;
14004 }
14005
14006
14007 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14008 PyObject *resultobj = 0;
14009 size_t arg1 ;
14010 wxFontEncoding result;
14011 size_t val1 ;
14012 int ecode1 = 0 ;
14013 PyObject * obj0 = 0 ;
14014 char * kwnames[] = {
14015 (char *) "n", NULL
14016 };
14017
14018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
14019 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
14020 if (!SWIG_IsOK(ecode1)) {
14021 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
14022 }
14023 arg1 = static_cast< size_t >(val1);
14024 {
14025 PyThreadState* __tstate = wxPyBeginAllowThreads();
14026 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
14027 wxPyEndAllowThreads(__tstate);
14028 if (PyErr_Occurred()) SWIG_fail;
14029 }
14030 resultobj = SWIG_From_int(static_cast< int >(result));
14031 return resultobj;
14032 fail:
14033 return NULL;
14034 }
14035
14036
14037 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14038 PyObject *resultobj = 0;
14039 wxFontEncoding arg1 ;
14040 wxString result;
14041 int val1 ;
14042 int ecode1 = 0 ;
14043 PyObject * obj0 = 0 ;
14044 char * kwnames[] = {
14045 (char *) "encoding", NULL
14046 };
14047
14048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
14049 ecode1 = SWIG_AsVal_int(obj0, &val1);
14050 if (!SWIG_IsOK(ecode1)) {
14051 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14052 }
14053 arg1 = static_cast< wxFontEncoding >(val1);
14054 {
14055 PyThreadState* __tstate = wxPyBeginAllowThreads();
14056 result = wxFontMapper::GetEncodingName(arg1);
14057 wxPyEndAllowThreads(__tstate);
14058 if (PyErr_Occurred()) SWIG_fail;
14059 }
14060 {
14061 #if wxUSE_UNICODE
14062 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14063 #else
14064 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14065 #endif
14066 }
14067 return resultobj;
14068 fail:
14069 return NULL;
14070 }
14071
14072
14073 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14074 PyObject *resultobj = 0;
14075 wxFontEncoding arg1 ;
14076 wxString result;
14077 int val1 ;
14078 int ecode1 = 0 ;
14079 PyObject * obj0 = 0 ;
14080 char * kwnames[] = {
14081 (char *) "encoding", NULL
14082 };
14083
14084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
14085 ecode1 = SWIG_AsVal_int(obj0, &val1);
14086 if (!SWIG_IsOK(ecode1)) {
14087 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14088 }
14089 arg1 = static_cast< wxFontEncoding >(val1);
14090 {
14091 PyThreadState* __tstate = wxPyBeginAllowThreads();
14092 result = wxFontMapper::GetEncodingDescription(arg1);
14093 wxPyEndAllowThreads(__tstate);
14094 if (PyErr_Occurred()) SWIG_fail;
14095 }
14096 {
14097 #if wxUSE_UNICODE
14098 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14099 #else
14100 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14101 #endif
14102 }
14103 return resultobj;
14104 fail:
14105 return NULL;
14106 }
14107
14108
14109 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14110 PyObject *resultobj = 0;
14111 wxString *arg1 = 0 ;
14112 wxFontEncoding result;
14113 bool temp1 = false ;
14114 PyObject * obj0 = 0 ;
14115 char * kwnames[] = {
14116 (char *) "name", NULL
14117 };
14118
14119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
14120 {
14121 arg1 = wxString_in_helper(obj0);
14122 if (arg1 == NULL) SWIG_fail;
14123 temp1 = true;
14124 }
14125 {
14126 PyThreadState* __tstate = wxPyBeginAllowThreads();
14127 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
14128 wxPyEndAllowThreads(__tstate);
14129 if (PyErr_Occurred()) SWIG_fail;
14130 }
14131 resultobj = SWIG_From_int(static_cast< int >(result));
14132 {
14133 if (temp1)
14134 delete arg1;
14135 }
14136 return resultobj;
14137 fail:
14138 {
14139 if (temp1)
14140 delete arg1;
14141 }
14142 return NULL;
14143 }
14144
14145
14146 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14147 PyObject *resultobj = 0;
14148 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14149 wxString *arg2 = 0 ;
14150 void *argp1 = 0 ;
14151 int res1 = 0 ;
14152 bool temp2 = false ;
14153 PyObject * obj0 = 0 ;
14154 PyObject * obj1 = 0 ;
14155 char * kwnames[] = {
14156 (char *) "self",(char *) "prefix", NULL
14157 };
14158
14159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
14160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14161 if (!SWIG_IsOK(res1)) {
14162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14163 }
14164 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14165 {
14166 arg2 = wxString_in_helper(obj1);
14167 if (arg2 == NULL) SWIG_fail;
14168 temp2 = true;
14169 }
14170 {
14171 PyThreadState* __tstate = wxPyBeginAllowThreads();
14172 (arg1)->SetConfigPath((wxString const &)*arg2);
14173 wxPyEndAllowThreads(__tstate);
14174 if (PyErr_Occurred()) SWIG_fail;
14175 }
14176 resultobj = SWIG_Py_Void();
14177 {
14178 if (temp2)
14179 delete arg2;
14180 }
14181 return resultobj;
14182 fail:
14183 {
14184 if (temp2)
14185 delete arg2;
14186 }
14187 return NULL;
14188 }
14189
14190
14191 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14192 PyObject *resultobj = 0;
14193 wxString result;
14194
14195 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
14196 {
14197 PyThreadState* __tstate = wxPyBeginAllowThreads();
14198 result = wxFontMapper::GetDefaultConfigPath();
14199 wxPyEndAllowThreads(__tstate);
14200 if (PyErr_Occurred()) SWIG_fail;
14201 }
14202 {
14203 #if wxUSE_UNICODE
14204 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14205 #else
14206 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14207 #endif
14208 }
14209 return resultobj;
14210 fail:
14211 return NULL;
14212 }
14213
14214
14215 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14216 PyObject *resultobj = 0;
14217 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14218 wxFontEncoding arg2 ;
14219 wxString const &arg3_defvalue = wxPyEmptyString ;
14220 wxString *arg3 = (wxString *) &arg3_defvalue ;
14221 bool arg4 = (bool) true ;
14222 PyObject *result = 0 ;
14223 void *argp1 = 0 ;
14224 int res1 = 0 ;
14225 int val2 ;
14226 int ecode2 = 0 ;
14227 bool temp3 = false ;
14228 bool val4 ;
14229 int ecode4 = 0 ;
14230 PyObject * obj0 = 0 ;
14231 PyObject * obj1 = 0 ;
14232 PyObject * obj2 = 0 ;
14233 PyObject * obj3 = 0 ;
14234 char * kwnames[] = {
14235 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
14236 };
14237
14238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14240 if (!SWIG_IsOK(res1)) {
14241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14242 }
14243 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14244 ecode2 = SWIG_AsVal_int(obj1, &val2);
14245 if (!SWIG_IsOK(ecode2)) {
14246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14247 }
14248 arg2 = static_cast< wxFontEncoding >(val2);
14249 if (obj2) {
14250 {
14251 arg3 = wxString_in_helper(obj2);
14252 if (arg3 == NULL) SWIG_fail;
14253 temp3 = true;
14254 }
14255 }
14256 if (obj3) {
14257 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14258 if (!SWIG_IsOK(ecode4)) {
14259 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
14260 }
14261 arg4 = static_cast< bool >(val4);
14262 }
14263 {
14264 PyThreadState* __tstate = wxPyBeginAllowThreads();
14265 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
14266 wxPyEndAllowThreads(__tstate);
14267 if (PyErr_Occurred()) SWIG_fail;
14268 }
14269 resultobj = result;
14270 {
14271 if (temp3)
14272 delete arg3;
14273 }
14274 return resultobj;
14275 fail:
14276 {
14277 if (temp3)
14278 delete arg3;
14279 }
14280 return NULL;
14281 }
14282
14283
14284 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14285 PyObject *resultobj = 0;
14286 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14287 wxFontEncoding arg2 ;
14288 wxString const &arg3_defvalue = wxPyEmptyString ;
14289 wxString *arg3 = (wxString *) &arg3_defvalue ;
14290 bool result;
14291 void *argp1 = 0 ;
14292 int res1 = 0 ;
14293 int val2 ;
14294 int ecode2 = 0 ;
14295 bool temp3 = false ;
14296 PyObject * obj0 = 0 ;
14297 PyObject * obj1 = 0 ;
14298 PyObject * obj2 = 0 ;
14299 char * kwnames[] = {
14300 (char *) "self",(char *) "encoding",(char *) "facename", NULL
14301 };
14302
14303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14305 if (!SWIG_IsOK(res1)) {
14306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14307 }
14308 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14309 ecode2 = SWIG_AsVal_int(obj1, &val2);
14310 if (!SWIG_IsOK(ecode2)) {
14311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14312 }
14313 arg2 = static_cast< wxFontEncoding >(val2);
14314 if (obj2) {
14315 {
14316 arg3 = wxString_in_helper(obj2);
14317 if (arg3 == NULL) SWIG_fail;
14318 temp3 = true;
14319 }
14320 }
14321 {
14322 PyThreadState* __tstate = wxPyBeginAllowThreads();
14323 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
14324 wxPyEndAllowThreads(__tstate);
14325 if (PyErr_Occurred()) SWIG_fail;
14326 }
14327 {
14328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14329 }
14330 {
14331 if (temp3)
14332 delete arg3;
14333 }
14334 return resultobj;
14335 fail:
14336 {
14337 if (temp3)
14338 delete arg3;
14339 }
14340 return NULL;
14341 }
14342
14343
14344 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14345 PyObject *resultobj = 0;
14346 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14347 wxWindow *arg2 = (wxWindow *) 0 ;
14348 void *argp1 = 0 ;
14349 int res1 = 0 ;
14350 void *argp2 = 0 ;
14351 int res2 = 0 ;
14352 PyObject * obj0 = 0 ;
14353 PyObject * obj1 = 0 ;
14354 char * kwnames[] = {
14355 (char *) "self",(char *) "parent", NULL
14356 };
14357
14358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14360 if (!SWIG_IsOK(res1)) {
14361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14362 }
14363 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14364 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14365 if (!SWIG_IsOK(res2)) {
14366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14367 }
14368 arg2 = reinterpret_cast< wxWindow * >(argp2);
14369 {
14370 PyThreadState* __tstate = wxPyBeginAllowThreads();
14371 (arg1)->SetDialogParent(arg2);
14372 wxPyEndAllowThreads(__tstate);
14373 if (PyErr_Occurred()) SWIG_fail;
14374 }
14375 resultobj = SWIG_Py_Void();
14376 return resultobj;
14377 fail:
14378 return NULL;
14379 }
14380
14381
14382 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14383 PyObject *resultobj = 0;
14384 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14385 wxString *arg2 = 0 ;
14386 void *argp1 = 0 ;
14387 int res1 = 0 ;
14388 bool temp2 = false ;
14389 PyObject * obj0 = 0 ;
14390 PyObject * obj1 = 0 ;
14391 char * kwnames[] = {
14392 (char *) "self",(char *) "title", NULL
14393 };
14394
14395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14397 if (!SWIG_IsOK(res1)) {
14398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14399 }
14400 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14401 {
14402 arg2 = wxString_in_helper(obj1);
14403 if (arg2 == NULL) SWIG_fail;
14404 temp2 = true;
14405 }
14406 {
14407 PyThreadState* __tstate = wxPyBeginAllowThreads();
14408 (arg1)->SetDialogTitle((wxString const &)*arg2);
14409 wxPyEndAllowThreads(__tstate);
14410 if (PyErr_Occurred()) SWIG_fail;
14411 }
14412 resultobj = SWIG_Py_Void();
14413 {
14414 if (temp2)
14415 delete arg2;
14416 }
14417 return resultobj;
14418 fail:
14419 {
14420 if (temp2)
14421 delete arg2;
14422 }
14423 return NULL;
14424 }
14425
14426
14427 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14428 PyObject *obj;
14429 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14430 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14431 return SWIG_Py_Void();
14432 }
14433
14434 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14435 return SWIG_Python_InitShadowInstance(args);
14436 }
14437
14438 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14439 PyObject *resultobj = 0;
14440 int arg1 ;
14441 int arg2 ;
14442 int arg3 ;
14443 int arg4 ;
14444 bool arg5 = (bool) false ;
14445 wxString const &arg6_defvalue = wxPyEmptyString ;
14446 wxString *arg6 = (wxString *) &arg6_defvalue ;
14447 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14448 wxFont *result = 0 ;
14449 int val1 ;
14450 int ecode1 = 0 ;
14451 int val2 ;
14452 int ecode2 = 0 ;
14453 int val3 ;
14454 int ecode3 = 0 ;
14455 int val4 ;
14456 int ecode4 = 0 ;
14457 bool val5 ;
14458 int ecode5 = 0 ;
14459 bool temp6 = false ;
14460 int val7 ;
14461 int ecode7 = 0 ;
14462 PyObject * obj0 = 0 ;
14463 PyObject * obj1 = 0 ;
14464 PyObject * obj2 = 0 ;
14465 PyObject * obj3 = 0 ;
14466 PyObject * obj4 = 0 ;
14467 PyObject * obj5 = 0 ;
14468 PyObject * obj6 = 0 ;
14469 char * kwnames[] = {
14470 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14471 };
14472
14473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14474 ecode1 = SWIG_AsVal_int(obj0, &val1);
14475 if (!SWIG_IsOK(ecode1)) {
14476 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14477 }
14478 arg1 = static_cast< int >(val1);
14479 ecode2 = SWIG_AsVal_int(obj1, &val2);
14480 if (!SWIG_IsOK(ecode2)) {
14481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14482 }
14483 arg2 = static_cast< int >(val2);
14484 ecode3 = SWIG_AsVal_int(obj2, &val3);
14485 if (!SWIG_IsOK(ecode3)) {
14486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14487 }
14488 arg3 = static_cast< int >(val3);
14489 ecode4 = SWIG_AsVal_int(obj3, &val4);
14490 if (!SWIG_IsOK(ecode4)) {
14491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14492 }
14493 arg4 = static_cast< int >(val4);
14494 if (obj4) {
14495 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14496 if (!SWIG_IsOK(ecode5)) {
14497 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14498 }
14499 arg5 = static_cast< bool >(val5);
14500 }
14501 if (obj5) {
14502 {
14503 arg6 = wxString_in_helper(obj5);
14504 if (arg6 == NULL) SWIG_fail;
14505 temp6 = true;
14506 }
14507 }
14508 if (obj6) {
14509 ecode7 = SWIG_AsVal_int(obj6, &val7);
14510 if (!SWIG_IsOK(ecode7)) {
14511 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14512 }
14513 arg7 = static_cast< wxFontEncoding >(val7);
14514 }
14515 {
14516 if (!wxPyCheckForApp()) SWIG_fail;
14517 PyThreadState* __tstate = wxPyBeginAllowThreads();
14518 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14519 wxPyEndAllowThreads(__tstate);
14520 if (PyErr_Occurred()) SWIG_fail;
14521 }
14522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14523 {
14524 if (temp6)
14525 delete arg6;
14526 }
14527 return resultobj;
14528 fail:
14529 {
14530 if (temp6)
14531 delete arg6;
14532 }
14533 return NULL;
14534 }
14535
14536
14537 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14538 PyObject *resultobj = 0;
14539 wxFont *arg1 = (wxFont *) 0 ;
14540 void *argp1 = 0 ;
14541 int res1 = 0 ;
14542 PyObject *swig_obj[1] ;
14543
14544 if (!args) SWIG_fail;
14545 swig_obj[0] = args;
14546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14547 if (!SWIG_IsOK(res1)) {
14548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14549 }
14550 arg1 = reinterpret_cast< wxFont * >(argp1);
14551 {
14552 PyThreadState* __tstate = wxPyBeginAllowThreads();
14553 delete arg1;
14554
14555 wxPyEndAllowThreads(__tstate);
14556 if (PyErr_Occurred()) SWIG_fail;
14557 }
14558 resultobj = SWIG_Py_Void();
14559 return resultobj;
14560 fail:
14561 return NULL;
14562 }
14563
14564
14565 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14566 PyObject *resultobj = 0;
14567 wxNativeFontInfo *arg1 = 0 ;
14568 wxFont *result = 0 ;
14569 void *argp1 = 0 ;
14570 int res1 = 0 ;
14571 PyObject * obj0 = 0 ;
14572 char * kwnames[] = {
14573 (char *) "info", NULL
14574 };
14575
14576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14577 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14578 if (!SWIG_IsOK(res1)) {
14579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14580 }
14581 if (!argp1) {
14582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14583 }
14584 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14585 {
14586 if (!wxPyCheckForApp()) SWIG_fail;
14587 PyThreadState* __tstate = wxPyBeginAllowThreads();
14588 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14589 wxPyEndAllowThreads(__tstate);
14590 if (PyErr_Occurred()) SWIG_fail;
14591 }
14592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14593 return resultobj;
14594 fail:
14595 return NULL;
14596 }
14597
14598
14599 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14600 PyObject *resultobj = 0;
14601 wxString *arg1 = 0 ;
14602 wxFont *result = 0 ;
14603 bool temp1 = false ;
14604 PyObject * obj0 = 0 ;
14605 char * kwnames[] = {
14606 (char *) "info", NULL
14607 };
14608
14609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14610 {
14611 arg1 = wxString_in_helper(obj0);
14612 if (arg1 == NULL) SWIG_fail;
14613 temp1 = true;
14614 }
14615 {
14616 if (!wxPyCheckForApp()) SWIG_fail;
14617 PyThreadState* __tstate = wxPyBeginAllowThreads();
14618 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14619 wxPyEndAllowThreads(__tstate);
14620 if (PyErr_Occurred()) SWIG_fail;
14621 }
14622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14623 {
14624 if (temp1)
14625 delete arg1;
14626 }
14627 return resultobj;
14628 fail:
14629 {
14630 if (temp1)
14631 delete arg1;
14632 }
14633 return NULL;
14634 }
14635
14636
14637 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14638 PyObject *resultobj = 0;
14639 int arg1 ;
14640 wxFontFamily arg2 ;
14641 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14642 wxString const &arg4_defvalue = wxPyEmptyString ;
14643 wxString *arg4 = (wxString *) &arg4_defvalue ;
14644 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14645 wxFont *result = 0 ;
14646 int val1 ;
14647 int ecode1 = 0 ;
14648 int val2 ;
14649 int ecode2 = 0 ;
14650 int val3 ;
14651 int ecode3 = 0 ;
14652 bool temp4 = false ;
14653 int val5 ;
14654 int ecode5 = 0 ;
14655 PyObject * obj0 = 0 ;
14656 PyObject * obj1 = 0 ;
14657 PyObject * obj2 = 0 ;
14658 PyObject * obj3 = 0 ;
14659 PyObject * obj4 = 0 ;
14660 char * kwnames[] = {
14661 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14662 };
14663
14664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14665 ecode1 = SWIG_AsVal_int(obj0, &val1);
14666 if (!SWIG_IsOK(ecode1)) {
14667 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14668 }
14669 arg1 = static_cast< int >(val1);
14670 ecode2 = SWIG_AsVal_int(obj1, &val2);
14671 if (!SWIG_IsOK(ecode2)) {
14672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14673 }
14674 arg2 = static_cast< wxFontFamily >(val2);
14675 if (obj2) {
14676 ecode3 = SWIG_AsVal_int(obj2, &val3);
14677 if (!SWIG_IsOK(ecode3)) {
14678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14679 }
14680 arg3 = static_cast< int >(val3);
14681 }
14682 if (obj3) {
14683 {
14684 arg4 = wxString_in_helper(obj3);
14685 if (arg4 == NULL) SWIG_fail;
14686 temp4 = true;
14687 }
14688 }
14689 if (obj4) {
14690 ecode5 = SWIG_AsVal_int(obj4, &val5);
14691 if (!SWIG_IsOK(ecode5)) {
14692 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14693 }
14694 arg5 = static_cast< wxFontEncoding >(val5);
14695 }
14696 {
14697 if (!wxPyCheckForApp()) SWIG_fail;
14698 PyThreadState* __tstate = wxPyBeginAllowThreads();
14699 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14700 wxPyEndAllowThreads(__tstate);
14701 if (PyErr_Occurred()) SWIG_fail;
14702 }
14703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14704 {
14705 if (temp4)
14706 delete arg4;
14707 }
14708 return resultobj;
14709 fail:
14710 {
14711 if (temp4)
14712 delete arg4;
14713 }
14714 return NULL;
14715 }
14716
14717
14718 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14719 PyObject *resultobj = 0;
14720 wxSize *arg1 = 0 ;
14721 int arg2 ;
14722 int arg3 ;
14723 int arg4 ;
14724 bool arg5 = (bool) false ;
14725 wxString const &arg6_defvalue = wxEmptyString ;
14726 wxString *arg6 = (wxString *) &arg6_defvalue ;
14727 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14728 wxFont *result = 0 ;
14729 wxSize temp1 ;
14730 int val2 ;
14731 int ecode2 = 0 ;
14732 int val3 ;
14733 int ecode3 = 0 ;
14734 int val4 ;
14735 int ecode4 = 0 ;
14736 bool val5 ;
14737 int ecode5 = 0 ;
14738 bool temp6 = false ;
14739 int val7 ;
14740 int ecode7 = 0 ;
14741 PyObject * obj0 = 0 ;
14742 PyObject * obj1 = 0 ;
14743 PyObject * obj2 = 0 ;
14744 PyObject * obj3 = 0 ;
14745 PyObject * obj4 = 0 ;
14746 PyObject * obj5 = 0 ;
14747 PyObject * obj6 = 0 ;
14748 char * kwnames[] = {
14749 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14750 };
14751
14752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14753 {
14754 arg1 = &temp1;
14755 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14756 }
14757 ecode2 = SWIG_AsVal_int(obj1, &val2);
14758 if (!SWIG_IsOK(ecode2)) {
14759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14760 }
14761 arg2 = static_cast< int >(val2);
14762 ecode3 = SWIG_AsVal_int(obj2, &val3);
14763 if (!SWIG_IsOK(ecode3)) {
14764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14765 }
14766 arg3 = static_cast< int >(val3);
14767 ecode4 = SWIG_AsVal_int(obj3, &val4);
14768 if (!SWIG_IsOK(ecode4)) {
14769 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14770 }
14771 arg4 = static_cast< int >(val4);
14772 if (obj4) {
14773 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14774 if (!SWIG_IsOK(ecode5)) {
14775 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14776 }
14777 arg5 = static_cast< bool >(val5);
14778 }
14779 if (obj5) {
14780 {
14781 arg6 = wxString_in_helper(obj5);
14782 if (arg6 == NULL) SWIG_fail;
14783 temp6 = true;
14784 }
14785 }
14786 if (obj6) {
14787 ecode7 = SWIG_AsVal_int(obj6, &val7);
14788 if (!SWIG_IsOK(ecode7)) {
14789 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14790 }
14791 arg7 = static_cast< wxFontEncoding >(val7);
14792 }
14793 {
14794 if (!wxPyCheckForApp()) SWIG_fail;
14795 PyThreadState* __tstate = wxPyBeginAllowThreads();
14796 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14797 wxPyEndAllowThreads(__tstate);
14798 if (PyErr_Occurred()) SWIG_fail;
14799 }
14800 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14801 {
14802 if (temp6)
14803 delete arg6;
14804 }
14805 return resultobj;
14806 fail:
14807 {
14808 if (temp6)
14809 delete arg6;
14810 }
14811 return NULL;
14812 }
14813
14814
14815 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14816 PyObject *resultobj = 0;
14817 wxSize *arg1 = 0 ;
14818 wxFontFamily arg2 ;
14819 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14820 wxString const &arg4_defvalue = wxEmptyString ;
14821 wxString *arg4 = (wxString *) &arg4_defvalue ;
14822 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14823 wxFont *result = 0 ;
14824 wxSize temp1 ;
14825 int val2 ;
14826 int ecode2 = 0 ;
14827 int val3 ;
14828 int ecode3 = 0 ;
14829 bool temp4 = false ;
14830 int val5 ;
14831 int ecode5 = 0 ;
14832 PyObject * obj0 = 0 ;
14833 PyObject * obj1 = 0 ;
14834 PyObject * obj2 = 0 ;
14835 PyObject * obj3 = 0 ;
14836 PyObject * obj4 = 0 ;
14837 char * kwnames[] = {
14838 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14839 };
14840
14841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14842 {
14843 arg1 = &temp1;
14844 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14845 }
14846 ecode2 = SWIG_AsVal_int(obj1, &val2);
14847 if (!SWIG_IsOK(ecode2)) {
14848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14849 }
14850 arg2 = static_cast< wxFontFamily >(val2);
14851 if (obj2) {
14852 ecode3 = SWIG_AsVal_int(obj2, &val3);
14853 if (!SWIG_IsOK(ecode3)) {
14854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14855 }
14856 arg3 = static_cast< int >(val3);
14857 }
14858 if (obj3) {
14859 {
14860 arg4 = wxString_in_helper(obj3);
14861 if (arg4 == NULL) SWIG_fail;
14862 temp4 = true;
14863 }
14864 }
14865 if (obj4) {
14866 ecode5 = SWIG_AsVal_int(obj4, &val5);
14867 if (!SWIG_IsOK(ecode5)) {
14868 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14869 }
14870 arg5 = static_cast< wxFontEncoding >(val5);
14871 }
14872 {
14873 if (!wxPyCheckForApp()) SWIG_fail;
14874 PyThreadState* __tstate = wxPyBeginAllowThreads();
14875 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14876 wxPyEndAllowThreads(__tstate);
14877 if (PyErr_Occurred()) SWIG_fail;
14878 }
14879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14880 {
14881 if (temp4)
14882 delete arg4;
14883 }
14884 return resultobj;
14885 fail:
14886 {
14887 if (temp4)
14888 delete arg4;
14889 }
14890 return NULL;
14891 }
14892
14893
14894 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14895 PyObject *resultobj = 0;
14896 wxFont *arg1 = (wxFont *) 0 ;
14897 bool result;
14898 void *argp1 = 0 ;
14899 int res1 = 0 ;
14900 PyObject *swig_obj[1] ;
14901
14902 if (!args) SWIG_fail;
14903 swig_obj[0] = args;
14904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14905 if (!SWIG_IsOK(res1)) {
14906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14907 }
14908 arg1 = reinterpret_cast< wxFont * >(argp1);
14909 {
14910 PyThreadState* __tstate = wxPyBeginAllowThreads();
14911 result = (bool)((wxFont const *)arg1)->IsOk();
14912 wxPyEndAllowThreads(__tstate);
14913 if (PyErr_Occurred()) SWIG_fail;
14914 }
14915 {
14916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14917 }
14918 return resultobj;
14919 fail:
14920 return NULL;
14921 }
14922
14923
14924 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14925 PyObject *resultobj = 0;
14926 wxFont *arg1 = (wxFont *) 0 ;
14927 wxFont *arg2 = (wxFont *) 0 ;
14928 bool result;
14929 void *argp1 = 0 ;
14930 int res1 = 0 ;
14931 void *argp2 = 0 ;
14932 int res2 = 0 ;
14933 PyObject * obj0 = 0 ;
14934 PyObject * obj1 = 0 ;
14935 char * kwnames[] = {
14936 (char *) "self",(char *) "other", NULL
14937 };
14938
14939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14941 if (!SWIG_IsOK(res1)) {
14942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14943 }
14944 arg1 = reinterpret_cast< wxFont * >(argp1);
14945 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14946 if (!SWIG_IsOK(res2)) {
14947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14948 }
14949 arg2 = reinterpret_cast< wxFont * >(argp2);
14950 {
14951 PyThreadState* __tstate = wxPyBeginAllowThreads();
14952 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14953 wxPyEndAllowThreads(__tstate);
14954 if (PyErr_Occurred()) SWIG_fail;
14955 }
14956 {
14957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14958 }
14959 return resultobj;
14960 fail:
14961 return NULL;
14962 }
14963
14964
14965 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14966 PyObject *resultobj = 0;
14967 wxFont *arg1 = (wxFont *) 0 ;
14968 wxFont *arg2 = (wxFont *) 0 ;
14969 bool result;
14970 void *argp1 = 0 ;
14971 int res1 = 0 ;
14972 void *argp2 = 0 ;
14973 int res2 = 0 ;
14974 PyObject * obj0 = 0 ;
14975 PyObject * obj1 = 0 ;
14976 char * kwnames[] = {
14977 (char *) "self",(char *) "other", NULL
14978 };
14979
14980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14982 if (!SWIG_IsOK(res1)) {
14983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14984 }
14985 arg1 = reinterpret_cast< wxFont * >(argp1);
14986 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14987 if (!SWIG_IsOK(res2)) {
14988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14989 }
14990 arg2 = reinterpret_cast< wxFont * >(argp2);
14991 {
14992 PyThreadState* __tstate = wxPyBeginAllowThreads();
14993 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14994 wxPyEndAllowThreads(__tstate);
14995 if (PyErr_Occurred()) SWIG_fail;
14996 }
14997 {
14998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14999 }
15000 return resultobj;
15001 fail:
15002 return NULL;
15003 }
15004
15005
15006 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15007 PyObject *resultobj = 0;
15008 wxFont *arg1 = (wxFont *) 0 ;
15009 int result;
15010 void *argp1 = 0 ;
15011 int res1 = 0 ;
15012 PyObject *swig_obj[1] ;
15013
15014 if (!args) SWIG_fail;
15015 swig_obj[0] = args;
15016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15017 if (!SWIG_IsOK(res1)) {
15018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15019 }
15020 arg1 = reinterpret_cast< wxFont * >(argp1);
15021 {
15022 PyThreadState* __tstate = wxPyBeginAllowThreads();
15023 result = (int)((wxFont const *)arg1)->GetPointSize();
15024 wxPyEndAllowThreads(__tstate);
15025 if (PyErr_Occurred()) SWIG_fail;
15026 }
15027 resultobj = SWIG_From_int(static_cast< int >(result));
15028 return resultobj;
15029 fail:
15030 return NULL;
15031 }
15032
15033
15034 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15035 PyObject *resultobj = 0;
15036 wxFont *arg1 = (wxFont *) 0 ;
15037 wxSize result;
15038 void *argp1 = 0 ;
15039 int res1 = 0 ;
15040 PyObject *swig_obj[1] ;
15041
15042 if (!args) SWIG_fail;
15043 swig_obj[0] = args;
15044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15045 if (!SWIG_IsOK(res1)) {
15046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15047 }
15048 arg1 = reinterpret_cast< wxFont * >(argp1);
15049 {
15050 PyThreadState* __tstate = wxPyBeginAllowThreads();
15051 result = ((wxFont const *)arg1)->GetPixelSize();
15052 wxPyEndAllowThreads(__tstate);
15053 if (PyErr_Occurred()) SWIG_fail;
15054 }
15055 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
15056 return resultobj;
15057 fail:
15058 return NULL;
15059 }
15060
15061
15062 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15063 PyObject *resultobj = 0;
15064 wxFont *arg1 = (wxFont *) 0 ;
15065 bool result;
15066 void *argp1 = 0 ;
15067 int res1 = 0 ;
15068 PyObject *swig_obj[1] ;
15069
15070 if (!args) SWIG_fail;
15071 swig_obj[0] = args;
15072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15073 if (!SWIG_IsOK(res1)) {
15074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
15075 }
15076 arg1 = reinterpret_cast< wxFont * >(argp1);
15077 {
15078 PyThreadState* __tstate = wxPyBeginAllowThreads();
15079 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
15080 wxPyEndAllowThreads(__tstate);
15081 if (PyErr_Occurred()) SWIG_fail;
15082 }
15083 {
15084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15085 }
15086 return resultobj;
15087 fail:
15088 return NULL;
15089 }
15090
15091
15092 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15093 PyObject *resultobj = 0;
15094 wxFont *arg1 = (wxFont *) 0 ;
15095 int result;
15096 void *argp1 = 0 ;
15097 int res1 = 0 ;
15098 PyObject *swig_obj[1] ;
15099
15100 if (!args) SWIG_fail;
15101 swig_obj[0] = args;
15102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15103 if (!SWIG_IsOK(res1)) {
15104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
15105 }
15106 arg1 = reinterpret_cast< wxFont * >(argp1);
15107 {
15108 PyThreadState* __tstate = wxPyBeginAllowThreads();
15109 result = (int)((wxFont const *)arg1)->GetFamily();
15110 wxPyEndAllowThreads(__tstate);
15111 if (PyErr_Occurred()) SWIG_fail;
15112 }
15113 resultobj = SWIG_From_int(static_cast< int >(result));
15114 return resultobj;
15115 fail:
15116 return NULL;
15117 }
15118
15119
15120 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15121 PyObject *resultobj = 0;
15122 wxFont *arg1 = (wxFont *) 0 ;
15123 int result;
15124 void *argp1 = 0 ;
15125 int res1 = 0 ;
15126 PyObject *swig_obj[1] ;
15127
15128 if (!args) SWIG_fail;
15129 swig_obj[0] = args;
15130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15131 if (!SWIG_IsOK(res1)) {
15132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
15133 }
15134 arg1 = reinterpret_cast< wxFont * >(argp1);
15135 {
15136 PyThreadState* __tstate = wxPyBeginAllowThreads();
15137 result = (int)((wxFont const *)arg1)->GetStyle();
15138 wxPyEndAllowThreads(__tstate);
15139 if (PyErr_Occurred()) SWIG_fail;
15140 }
15141 resultobj = SWIG_From_int(static_cast< int >(result));
15142 return resultobj;
15143 fail:
15144 return NULL;
15145 }
15146
15147
15148 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15149 PyObject *resultobj = 0;
15150 wxFont *arg1 = (wxFont *) 0 ;
15151 int result;
15152 void *argp1 = 0 ;
15153 int res1 = 0 ;
15154 PyObject *swig_obj[1] ;
15155
15156 if (!args) SWIG_fail;
15157 swig_obj[0] = args;
15158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15159 if (!SWIG_IsOK(res1)) {
15160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
15161 }
15162 arg1 = reinterpret_cast< wxFont * >(argp1);
15163 {
15164 PyThreadState* __tstate = wxPyBeginAllowThreads();
15165 result = (int)((wxFont const *)arg1)->GetWeight();
15166 wxPyEndAllowThreads(__tstate);
15167 if (PyErr_Occurred()) SWIG_fail;
15168 }
15169 resultobj = SWIG_From_int(static_cast< int >(result));
15170 return resultobj;
15171 fail:
15172 return NULL;
15173 }
15174
15175
15176 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15177 PyObject *resultobj = 0;
15178 wxFont *arg1 = (wxFont *) 0 ;
15179 bool result;
15180 void *argp1 = 0 ;
15181 int res1 = 0 ;
15182 PyObject *swig_obj[1] ;
15183
15184 if (!args) SWIG_fail;
15185 swig_obj[0] = args;
15186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15187 if (!SWIG_IsOK(res1)) {
15188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
15189 }
15190 arg1 = reinterpret_cast< wxFont * >(argp1);
15191 {
15192 PyThreadState* __tstate = wxPyBeginAllowThreads();
15193 result = (bool)((wxFont const *)arg1)->GetUnderlined();
15194 wxPyEndAllowThreads(__tstate);
15195 if (PyErr_Occurred()) SWIG_fail;
15196 }
15197 {
15198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15199 }
15200 return resultobj;
15201 fail:
15202 return NULL;
15203 }
15204
15205
15206 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15207 PyObject *resultobj = 0;
15208 wxFont *arg1 = (wxFont *) 0 ;
15209 wxString result;
15210 void *argp1 = 0 ;
15211 int res1 = 0 ;
15212 PyObject *swig_obj[1] ;
15213
15214 if (!args) SWIG_fail;
15215 swig_obj[0] = args;
15216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15217 if (!SWIG_IsOK(res1)) {
15218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
15219 }
15220 arg1 = reinterpret_cast< wxFont * >(argp1);
15221 {
15222 PyThreadState* __tstate = wxPyBeginAllowThreads();
15223 result = ((wxFont const *)arg1)->GetFaceName();
15224 wxPyEndAllowThreads(__tstate);
15225 if (PyErr_Occurred()) SWIG_fail;
15226 }
15227 {
15228 #if wxUSE_UNICODE
15229 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15230 #else
15231 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15232 #endif
15233 }
15234 return resultobj;
15235 fail:
15236 return NULL;
15237 }
15238
15239
15240 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15241 PyObject *resultobj = 0;
15242 wxFont *arg1 = (wxFont *) 0 ;
15243 wxFontEncoding result;
15244 void *argp1 = 0 ;
15245 int res1 = 0 ;
15246 PyObject *swig_obj[1] ;
15247
15248 if (!args) SWIG_fail;
15249 swig_obj[0] = args;
15250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15251 if (!SWIG_IsOK(res1)) {
15252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
15253 }
15254 arg1 = reinterpret_cast< wxFont * >(argp1);
15255 {
15256 PyThreadState* __tstate = wxPyBeginAllowThreads();
15257 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
15258 wxPyEndAllowThreads(__tstate);
15259 if (PyErr_Occurred()) SWIG_fail;
15260 }
15261 resultobj = SWIG_From_int(static_cast< int >(result));
15262 return resultobj;
15263 fail:
15264 return NULL;
15265 }
15266
15267
15268 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15269 PyObject *resultobj = 0;
15270 wxFont *arg1 = (wxFont *) 0 ;
15271 wxNativeFontInfo *result = 0 ;
15272 void *argp1 = 0 ;
15273 int res1 = 0 ;
15274 PyObject *swig_obj[1] ;
15275
15276 if (!args) SWIG_fail;
15277 swig_obj[0] = args;
15278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15279 if (!SWIG_IsOK(res1)) {
15280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
15281 }
15282 arg1 = reinterpret_cast< wxFont * >(argp1);
15283 {
15284 PyThreadState* __tstate = wxPyBeginAllowThreads();
15285 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
15286 wxPyEndAllowThreads(__tstate);
15287 if (PyErr_Occurred()) SWIG_fail;
15288 }
15289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
15290 return resultobj;
15291 fail:
15292 return NULL;
15293 }
15294
15295
15296 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15297 PyObject *resultobj = 0;
15298 wxFont *arg1 = (wxFont *) 0 ;
15299 bool result;
15300 void *argp1 = 0 ;
15301 int res1 = 0 ;
15302 PyObject *swig_obj[1] ;
15303
15304 if (!args) SWIG_fail;
15305 swig_obj[0] = args;
15306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15307 if (!SWIG_IsOK(res1)) {
15308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
15309 }
15310 arg1 = reinterpret_cast< wxFont * >(argp1);
15311 {
15312 PyThreadState* __tstate = wxPyBeginAllowThreads();
15313 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
15314 wxPyEndAllowThreads(__tstate);
15315 if (PyErr_Occurred()) SWIG_fail;
15316 }
15317 {
15318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15319 }
15320 return resultobj;
15321 fail:
15322 return NULL;
15323 }
15324
15325
15326 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15327 PyObject *resultobj = 0;
15328 wxFont *arg1 = (wxFont *) 0 ;
15329 wxString result;
15330 void *argp1 = 0 ;
15331 int res1 = 0 ;
15332 PyObject *swig_obj[1] ;
15333
15334 if (!args) SWIG_fail;
15335 swig_obj[0] = args;
15336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15337 if (!SWIG_IsOK(res1)) {
15338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15339 }
15340 arg1 = reinterpret_cast< wxFont * >(argp1);
15341 {
15342 PyThreadState* __tstate = wxPyBeginAllowThreads();
15343 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
15344 wxPyEndAllowThreads(__tstate);
15345 if (PyErr_Occurred()) SWIG_fail;
15346 }
15347 {
15348 #if wxUSE_UNICODE
15349 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15350 #else
15351 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15352 #endif
15353 }
15354 return resultobj;
15355 fail:
15356 return NULL;
15357 }
15358
15359
15360 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15361 PyObject *resultobj = 0;
15362 wxFont *arg1 = (wxFont *) 0 ;
15363 wxString result;
15364 void *argp1 = 0 ;
15365 int res1 = 0 ;
15366 PyObject *swig_obj[1] ;
15367
15368 if (!args) SWIG_fail;
15369 swig_obj[0] = args;
15370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15371 if (!SWIG_IsOK(res1)) {
15372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15373 }
15374 arg1 = reinterpret_cast< wxFont * >(argp1);
15375 {
15376 PyThreadState* __tstate = wxPyBeginAllowThreads();
15377 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15378 wxPyEndAllowThreads(__tstate);
15379 if (PyErr_Occurred()) SWIG_fail;
15380 }
15381 {
15382 #if wxUSE_UNICODE
15383 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15384 #else
15385 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15386 #endif
15387 }
15388 return resultobj;
15389 fail:
15390 return NULL;
15391 }
15392
15393
15394 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15395 PyObject *resultobj = 0;
15396 wxFont *arg1 = (wxFont *) 0 ;
15397 int arg2 ;
15398 void *argp1 = 0 ;
15399 int res1 = 0 ;
15400 int val2 ;
15401 int ecode2 = 0 ;
15402 PyObject * obj0 = 0 ;
15403 PyObject * obj1 = 0 ;
15404 char * kwnames[] = {
15405 (char *) "self",(char *) "pointSize", NULL
15406 };
15407
15408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15410 if (!SWIG_IsOK(res1)) {
15411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15412 }
15413 arg1 = reinterpret_cast< wxFont * >(argp1);
15414 ecode2 = SWIG_AsVal_int(obj1, &val2);
15415 if (!SWIG_IsOK(ecode2)) {
15416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15417 }
15418 arg2 = static_cast< int >(val2);
15419 {
15420 PyThreadState* __tstate = wxPyBeginAllowThreads();
15421 (arg1)->SetPointSize(arg2);
15422 wxPyEndAllowThreads(__tstate);
15423 if (PyErr_Occurred()) SWIG_fail;
15424 }
15425 resultobj = SWIG_Py_Void();
15426 return resultobj;
15427 fail:
15428 return NULL;
15429 }
15430
15431
15432 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15433 PyObject *resultobj = 0;
15434 wxFont *arg1 = (wxFont *) 0 ;
15435 wxSize *arg2 = 0 ;
15436 void *argp1 = 0 ;
15437 int res1 = 0 ;
15438 wxSize temp2 ;
15439 PyObject * obj0 = 0 ;
15440 PyObject * obj1 = 0 ;
15441 char * kwnames[] = {
15442 (char *) "self",(char *) "pixelSize", NULL
15443 };
15444
15445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15447 if (!SWIG_IsOK(res1)) {
15448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15449 }
15450 arg1 = reinterpret_cast< wxFont * >(argp1);
15451 {
15452 arg2 = &temp2;
15453 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15454 }
15455 {
15456 PyThreadState* __tstate = wxPyBeginAllowThreads();
15457 (arg1)->SetPixelSize((wxSize const &)*arg2);
15458 wxPyEndAllowThreads(__tstate);
15459 if (PyErr_Occurred()) SWIG_fail;
15460 }
15461 resultobj = SWIG_Py_Void();
15462 return resultobj;
15463 fail:
15464 return NULL;
15465 }
15466
15467
15468 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15469 PyObject *resultobj = 0;
15470 wxFont *arg1 = (wxFont *) 0 ;
15471 int arg2 ;
15472 void *argp1 = 0 ;
15473 int res1 = 0 ;
15474 int val2 ;
15475 int ecode2 = 0 ;
15476 PyObject * obj0 = 0 ;
15477 PyObject * obj1 = 0 ;
15478 char * kwnames[] = {
15479 (char *) "self",(char *) "family", NULL
15480 };
15481
15482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15484 if (!SWIG_IsOK(res1)) {
15485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15486 }
15487 arg1 = reinterpret_cast< wxFont * >(argp1);
15488 ecode2 = SWIG_AsVal_int(obj1, &val2);
15489 if (!SWIG_IsOK(ecode2)) {
15490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15491 }
15492 arg2 = static_cast< int >(val2);
15493 {
15494 PyThreadState* __tstate = wxPyBeginAllowThreads();
15495 (arg1)->SetFamily(arg2);
15496 wxPyEndAllowThreads(__tstate);
15497 if (PyErr_Occurred()) SWIG_fail;
15498 }
15499 resultobj = SWIG_Py_Void();
15500 return resultobj;
15501 fail:
15502 return NULL;
15503 }
15504
15505
15506 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15507 PyObject *resultobj = 0;
15508 wxFont *arg1 = (wxFont *) 0 ;
15509 int arg2 ;
15510 void *argp1 = 0 ;
15511 int res1 = 0 ;
15512 int val2 ;
15513 int ecode2 = 0 ;
15514 PyObject * obj0 = 0 ;
15515 PyObject * obj1 = 0 ;
15516 char * kwnames[] = {
15517 (char *) "self",(char *) "style", NULL
15518 };
15519
15520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15522 if (!SWIG_IsOK(res1)) {
15523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15524 }
15525 arg1 = reinterpret_cast< wxFont * >(argp1);
15526 ecode2 = SWIG_AsVal_int(obj1, &val2);
15527 if (!SWIG_IsOK(ecode2)) {
15528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15529 }
15530 arg2 = static_cast< int >(val2);
15531 {
15532 PyThreadState* __tstate = wxPyBeginAllowThreads();
15533 (arg1)->SetStyle(arg2);
15534 wxPyEndAllowThreads(__tstate);
15535 if (PyErr_Occurred()) SWIG_fail;
15536 }
15537 resultobj = SWIG_Py_Void();
15538 return resultobj;
15539 fail:
15540 return NULL;
15541 }
15542
15543
15544 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15545 PyObject *resultobj = 0;
15546 wxFont *arg1 = (wxFont *) 0 ;
15547 int arg2 ;
15548 void *argp1 = 0 ;
15549 int res1 = 0 ;
15550 int val2 ;
15551 int ecode2 = 0 ;
15552 PyObject * obj0 = 0 ;
15553 PyObject * obj1 = 0 ;
15554 char * kwnames[] = {
15555 (char *) "self",(char *) "weight", NULL
15556 };
15557
15558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15560 if (!SWIG_IsOK(res1)) {
15561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15562 }
15563 arg1 = reinterpret_cast< wxFont * >(argp1);
15564 ecode2 = SWIG_AsVal_int(obj1, &val2);
15565 if (!SWIG_IsOK(ecode2)) {
15566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15567 }
15568 arg2 = static_cast< int >(val2);
15569 {
15570 PyThreadState* __tstate = wxPyBeginAllowThreads();
15571 (arg1)->SetWeight(arg2);
15572 wxPyEndAllowThreads(__tstate);
15573 if (PyErr_Occurred()) SWIG_fail;
15574 }
15575 resultobj = SWIG_Py_Void();
15576 return resultobj;
15577 fail:
15578 return NULL;
15579 }
15580
15581
15582 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15583 PyObject *resultobj = 0;
15584 wxFont *arg1 = (wxFont *) 0 ;
15585 wxString *arg2 = 0 ;
15586 bool result;
15587 void *argp1 = 0 ;
15588 int res1 = 0 ;
15589 bool temp2 = false ;
15590 PyObject * obj0 = 0 ;
15591 PyObject * obj1 = 0 ;
15592 char * kwnames[] = {
15593 (char *) "self",(char *) "faceName", NULL
15594 };
15595
15596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15598 if (!SWIG_IsOK(res1)) {
15599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15600 }
15601 arg1 = reinterpret_cast< wxFont * >(argp1);
15602 {
15603 arg2 = wxString_in_helper(obj1);
15604 if (arg2 == NULL) SWIG_fail;
15605 temp2 = true;
15606 }
15607 {
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
15609 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15610 wxPyEndAllowThreads(__tstate);
15611 if (PyErr_Occurred()) SWIG_fail;
15612 }
15613 {
15614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15615 }
15616 {
15617 if (temp2)
15618 delete arg2;
15619 }
15620 return resultobj;
15621 fail:
15622 {
15623 if (temp2)
15624 delete arg2;
15625 }
15626 return NULL;
15627 }
15628
15629
15630 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15631 PyObject *resultobj = 0;
15632 wxFont *arg1 = (wxFont *) 0 ;
15633 bool arg2 ;
15634 void *argp1 = 0 ;
15635 int res1 = 0 ;
15636 bool val2 ;
15637 int ecode2 = 0 ;
15638 PyObject * obj0 = 0 ;
15639 PyObject * obj1 = 0 ;
15640 char * kwnames[] = {
15641 (char *) "self",(char *) "underlined", NULL
15642 };
15643
15644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15646 if (!SWIG_IsOK(res1)) {
15647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15648 }
15649 arg1 = reinterpret_cast< wxFont * >(argp1);
15650 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15651 if (!SWIG_IsOK(ecode2)) {
15652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15653 }
15654 arg2 = static_cast< bool >(val2);
15655 {
15656 PyThreadState* __tstate = wxPyBeginAllowThreads();
15657 (arg1)->SetUnderlined(arg2);
15658 wxPyEndAllowThreads(__tstate);
15659 if (PyErr_Occurred()) SWIG_fail;
15660 }
15661 resultobj = SWIG_Py_Void();
15662 return resultobj;
15663 fail:
15664 return NULL;
15665 }
15666
15667
15668 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15669 PyObject *resultobj = 0;
15670 wxFont *arg1 = (wxFont *) 0 ;
15671 wxFontEncoding arg2 ;
15672 void *argp1 = 0 ;
15673 int res1 = 0 ;
15674 int val2 ;
15675 int ecode2 = 0 ;
15676 PyObject * obj0 = 0 ;
15677 PyObject * obj1 = 0 ;
15678 char * kwnames[] = {
15679 (char *) "self",(char *) "encoding", NULL
15680 };
15681
15682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15684 if (!SWIG_IsOK(res1)) {
15685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15686 }
15687 arg1 = reinterpret_cast< wxFont * >(argp1);
15688 ecode2 = SWIG_AsVal_int(obj1, &val2);
15689 if (!SWIG_IsOK(ecode2)) {
15690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15691 }
15692 arg2 = static_cast< wxFontEncoding >(val2);
15693 {
15694 PyThreadState* __tstate = wxPyBeginAllowThreads();
15695 (arg1)->SetEncoding(arg2);
15696 wxPyEndAllowThreads(__tstate);
15697 if (PyErr_Occurred()) SWIG_fail;
15698 }
15699 resultobj = SWIG_Py_Void();
15700 return resultobj;
15701 fail:
15702 return NULL;
15703 }
15704
15705
15706 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15707 PyObject *resultobj = 0;
15708 wxFont *arg1 = (wxFont *) 0 ;
15709 wxNativeFontInfo *arg2 = 0 ;
15710 void *argp1 = 0 ;
15711 int res1 = 0 ;
15712 void *argp2 = 0 ;
15713 int res2 = 0 ;
15714 PyObject * obj0 = 0 ;
15715 PyObject * obj1 = 0 ;
15716 char * kwnames[] = {
15717 (char *) "self",(char *) "info", NULL
15718 };
15719
15720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15722 if (!SWIG_IsOK(res1)) {
15723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15724 }
15725 arg1 = reinterpret_cast< wxFont * >(argp1);
15726 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15727 if (!SWIG_IsOK(res2)) {
15728 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15729 }
15730 if (!argp2) {
15731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15732 }
15733 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15734 {
15735 PyThreadState* __tstate = wxPyBeginAllowThreads();
15736 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15737 wxPyEndAllowThreads(__tstate);
15738 if (PyErr_Occurred()) SWIG_fail;
15739 }
15740 resultobj = SWIG_Py_Void();
15741 return resultobj;
15742 fail:
15743 return NULL;
15744 }
15745
15746
15747 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15748 PyObject *resultobj = 0;
15749 wxFont *arg1 = (wxFont *) 0 ;
15750 wxString *arg2 = 0 ;
15751 bool result;
15752 void *argp1 = 0 ;
15753 int res1 = 0 ;
15754 bool temp2 = false ;
15755 PyObject * obj0 = 0 ;
15756 PyObject * obj1 = 0 ;
15757 char * kwnames[] = {
15758 (char *) "self",(char *) "info", NULL
15759 };
15760
15761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15763 if (!SWIG_IsOK(res1)) {
15764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15765 }
15766 arg1 = reinterpret_cast< wxFont * >(argp1);
15767 {
15768 arg2 = wxString_in_helper(obj1);
15769 if (arg2 == NULL) SWIG_fail;
15770 temp2 = true;
15771 }
15772 {
15773 PyThreadState* __tstate = wxPyBeginAllowThreads();
15774 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15775 wxPyEndAllowThreads(__tstate);
15776 if (PyErr_Occurred()) SWIG_fail;
15777 }
15778 {
15779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15780 }
15781 {
15782 if (temp2)
15783 delete arg2;
15784 }
15785 return resultobj;
15786 fail:
15787 {
15788 if (temp2)
15789 delete arg2;
15790 }
15791 return NULL;
15792 }
15793
15794
15795 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15796 PyObject *resultobj = 0;
15797 wxFont *arg1 = (wxFont *) 0 ;
15798 wxString *arg2 = 0 ;
15799 bool result;
15800 void *argp1 = 0 ;
15801 int res1 = 0 ;
15802 bool temp2 = false ;
15803 PyObject * obj0 = 0 ;
15804 PyObject * obj1 = 0 ;
15805 char * kwnames[] = {
15806 (char *) "self",(char *) "info", NULL
15807 };
15808
15809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15811 if (!SWIG_IsOK(res1)) {
15812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15813 }
15814 arg1 = reinterpret_cast< wxFont * >(argp1);
15815 {
15816 arg2 = wxString_in_helper(obj1);
15817 if (arg2 == NULL) SWIG_fail;
15818 temp2 = true;
15819 }
15820 {
15821 PyThreadState* __tstate = wxPyBeginAllowThreads();
15822 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15823 wxPyEndAllowThreads(__tstate);
15824 if (PyErr_Occurred()) SWIG_fail;
15825 }
15826 {
15827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15828 }
15829 {
15830 if (temp2)
15831 delete arg2;
15832 }
15833 return resultobj;
15834 fail:
15835 {
15836 if (temp2)
15837 delete arg2;
15838 }
15839 return NULL;
15840 }
15841
15842
15843 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15844 PyObject *resultobj = 0;
15845 wxFont *arg1 = (wxFont *) 0 ;
15846 wxString result;
15847 void *argp1 = 0 ;
15848 int res1 = 0 ;
15849 PyObject *swig_obj[1] ;
15850
15851 if (!args) SWIG_fail;
15852 swig_obj[0] = args;
15853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15854 if (!SWIG_IsOK(res1)) {
15855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15856 }
15857 arg1 = reinterpret_cast< wxFont * >(argp1);
15858 {
15859 PyThreadState* __tstate = wxPyBeginAllowThreads();
15860 result = ((wxFont const *)arg1)->GetFamilyString();
15861 wxPyEndAllowThreads(__tstate);
15862 if (PyErr_Occurred()) SWIG_fail;
15863 }
15864 {
15865 #if wxUSE_UNICODE
15866 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15867 #else
15868 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15869 #endif
15870 }
15871 return resultobj;
15872 fail:
15873 return NULL;
15874 }
15875
15876
15877 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15878 PyObject *resultobj = 0;
15879 wxFont *arg1 = (wxFont *) 0 ;
15880 wxString result;
15881 void *argp1 = 0 ;
15882 int res1 = 0 ;
15883 PyObject *swig_obj[1] ;
15884
15885 if (!args) SWIG_fail;
15886 swig_obj[0] = args;
15887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15888 if (!SWIG_IsOK(res1)) {
15889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15890 }
15891 arg1 = reinterpret_cast< wxFont * >(argp1);
15892 {
15893 PyThreadState* __tstate = wxPyBeginAllowThreads();
15894 result = ((wxFont const *)arg1)->GetStyleString();
15895 wxPyEndAllowThreads(__tstate);
15896 if (PyErr_Occurred()) SWIG_fail;
15897 }
15898 {
15899 #if wxUSE_UNICODE
15900 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15901 #else
15902 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15903 #endif
15904 }
15905 return resultobj;
15906 fail:
15907 return NULL;
15908 }
15909
15910
15911 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15912 PyObject *resultobj = 0;
15913 wxFont *arg1 = (wxFont *) 0 ;
15914 wxString result;
15915 void *argp1 = 0 ;
15916 int res1 = 0 ;
15917 PyObject *swig_obj[1] ;
15918
15919 if (!args) SWIG_fail;
15920 swig_obj[0] = args;
15921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15922 if (!SWIG_IsOK(res1)) {
15923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15924 }
15925 arg1 = reinterpret_cast< wxFont * >(argp1);
15926 {
15927 PyThreadState* __tstate = wxPyBeginAllowThreads();
15928 result = ((wxFont const *)arg1)->GetWeightString();
15929 wxPyEndAllowThreads(__tstate);
15930 if (PyErr_Occurred()) SWIG_fail;
15931 }
15932 {
15933 #if wxUSE_UNICODE
15934 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15935 #else
15936 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15937 #endif
15938 }
15939 return resultobj;
15940 fail:
15941 return NULL;
15942 }
15943
15944
15945 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15946 PyObject *resultobj = 0;
15947 wxFont *arg1 = (wxFont *) 0 ;
15948 bool arg2 = (bool) true ;
15949 void *argp1 = 0 ;
15950 int res1 = 0 ;
15951 bool val2 ;
15952 int ecode2 = 0 ;
15953 PyObject * obj0 = 0 ;
15954 PyObject * obj1 = 0 ;
15955 char * kwnames[] = {
15956 (char *) "self",(char *) "no", NULL
15957 };
15958
15959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15961 if (!SWIG_IsOK(res1)) {
15962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15963 }
15964 arg1 = reinterpret_cast< wxFont * >(argp1);
15965 if (obj1) {
15966 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15967 if (!SWIG_IsOK(ecode2)) {
15968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15969 }
15970 arg2 = static_cast< bool >(val2);
15971 }
15972 {
15973 PyThreadState* __tstate = wxPyBeginAllowThreads();
15974 (arg1)->SetNoAntiAliasing(arg2);
15975 wxPyEndAllowThreads(__tstate);
15976 if (PyErr_Occurred()) SWIG_fail;
15977 }
15978 resultobj = SWIG_Py_Void();
15979 return resultobj;
15980 fail:
15981 return NULL;
15982 }
15983
15984
15985 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15986 PyObject *resultobj = 0;
15987 wxFont *arg1 = (wxFont *) 0 ;
15988 bool result;
15989 void *argp1 = 0 ;
15990 int res1 = 0 ;
15991 PyObject *swig_obj[1] ;
15992
15993 if (!args) SWIG_fail;
15994 swig_obj[0] = args;
15995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15996 if (!SWIG_IsOK(res1)) {
15997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15998 }
15999 arg1 = reinterpret_cast< wxFont * >(argp1);
16000 {
16001 PyThreadState* __tstate = wxPyBeginAllowThreads();
16002 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
16003 wxPyEndAllowThreads(__tstate);
16004 if (PyErr_Occurred()) SWIG_fail;
16005 }
16006 {
16007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16008 }
16009 return resultobj;
16010 fail:
16011 return NULL;
16012 }
16013
16014
16015 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16016 PyObject *resultobj = 0;
16017 wxFontEncoding result;
16018
16019 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
16020 {
16021 if (!wxPyCheckForApp()) SWIG_fail;
16022 PyThreadState* __tstate = wxPyBeginAllowThreads();
16023 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
16024 wxPyEndAllowThreads(__tstate);
16025 if (PyErr_Occurred()) SWIG_fail;
16026 }
16027 resultobj = SWIG_From_int(static_cast< int >(result));
16028 return resultobj;
16029 fail:
16030 return NULL;
16031 }
16032
16033
16034 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16035 PyObject *resultobj = 0;
16036 wxFontEncoding arg1 ;
16037 int val1 ;
16038 int ecode1 = 0 ;
16039 PyObject * obj0 = 0 ;
16040 char * kwnames[] = {
16041 (char *) "encoding", NULL
16042 };
16043
16044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
16045 ecode1 = SWIG_AsVal_int(obj0, &val1);
16046 if (!SWIG_IsOK(ecode1)) {
16047 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16048 }
16049 arg1 = static_cast< wxFontEncoding >(val1);
16050 {
16051 if (!wxPyCheckForApp()) SWIG_fail;
16052 PyThreadState* __tstate = wxPyBeginAllowThreads();
16053 wxFont::SetDefaultEncoding(arg1);
16054 wxPyEndAllowThreads(__tstate);
16055 if (PyErr_Occurred()) SWIG_fail;
16056 }
16057 resultobj = SWIG_Py_Void();
16058 return resultobj;
16059 fail:
16060 return NULL;
16061 }
16062
16063
16064 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16065 PyObject *obj;
16066 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16067 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
16068 return SWIG_Py_Void();
16069 }
16070
16071 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16072 return SWIG_Python_InitShadowInstance(args);
16073 }
16074
16075 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16076 PyObject *resultobj = 0;
16077 wxPyFontEnumerator *result = 0 ;
16078
16079 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
16080 {
16081 if (!wxPyCheckForApp()) SWIG_fail;
16082 PyThreadState* __tstate = wxPyBeginAllowThreads();
16083 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
16084 wxPyEndAllowThreads(__tstate);
16085 if (PyErr_Occurred()) SWIG_fail;
16086 }
16087 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
16088 return resultobj;
16089 fail:
16090 return NULL;
16091 }
16092
16093
16094 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16095 PyObject *resultobj = 0;
16096 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16097 void *argp1 = 0 ;
16098 int res1 = 0 ;
16099 PyObject *swig_obj[1] ;
16100
16101 if (!args) SWIG_fail;
16102 swig_obj[0] = args;
16103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
16104 if (!SWIG_IsOK(res1)) {
16105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16106 }
16107 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16108 {
16109 PyThreadState* __tstate = wxPyBeginAllowThreads();
16110 delete arg1;
16111
16112 wxPyEndAllowThreads(__tstate);
16113 if (PyErr_Occurred()) SWIG_fail;
16114 }
16115 resultobj = SWIG_Py_Void();
16116 return resultobj;
16117 fail:
16118 return NULL;
16119 }
16120
16121
16122 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16123 PyObject *resultobj = 0;
16124 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16125 PyObject *arg2 = (PyObject *) 0 ;
16126 PyObject *arg3 = (PyObject *) 0 ;
16127 int arg4 = (int) 0 ;
16128 void *argp1 = 0 ;
16129 int res1 = 0 ;
16130 int val4 ;
16131 int ecode4 = 0 ;
16132 PyObject * obj0 = 0 ;
16133 PyObject * obj1 = 0 ;
16134 PyObject * obj2 = 0 ;
16135 PyObject * obj3 = 0 ;
16136 char * kwnames[] = {
16137 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
16138 };
16139
16140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16142 if (!SWIG_IsOK(res1)) {
16143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16144 }
16145 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16146 arg2 = obj1;
16147 arg3 = obj2;
16148 if (obj3) {
16149 ecode4 = SWIG_AsVal_int(obj3, &val4);
16150 if (!SWIG_IsOK(ecode4)) {
16151 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
16152 }
16153 arg4 = static_cast< int >(val4);
16154 }
16155 {
16156 PyThreadState* __tstate = wxPyBeginAllowThreads();
16157 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
16158 wxPyEndAllowThreads(__tstate);
16159 if (PyErr_Occurred()) SWIG_fail;
16160 }
16161 resultobj = SWIG_Py_Void();
16162 return resultobj;
16163 fail:
16164 return NULL;
16165 }
16166
16167
16168 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16169 PyObject *resultobj = 0;
16170 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16171 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
16172 bool arg3 = (bool) false ;
16173 bool result;
16174 void *argp1 = 0 ;
16175 int res1 = 0 ;
16176 int val2 ;
16177 int ecode2 = 0 ;
16178 bool val3 ;
16179 int ecode3 = 0 ;
16180 PyObject * obj0 = 0 ;
16181 PyObject * obj1 = 0 ;
16182 PyObject * obj2 = 0 ;
16183 char * kwnames[] = {
16184 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
16185 };
16186
16187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16189 if (!SWIG_IsOK(res1)) {
16190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16191 }
16192 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16193 if (obj1) {
16194 ecode2 = SWIG_AsVal_int(obj1, &val2);
16195 if (!SWIG_IsOK(ecode2)) {
16196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16197 }
16198 arg2 = static_cast< wxFontEncoding >(val2);
16199 }
16200 if (obj2) {
16201 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16202 if (!SWIG_IsOK(ecode3)) {
16203 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
16204 }
16205 arg3 = static_cast< bool >(val3);
16206 }
16207 {
16208 PyThreadState* __tstate = wxPyBeginAllowThreads();
16209 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
16210 wxPyEndAllowThreads(__tstate);
16211 if (PyErr_Occurred()) SWIG_fail;
16212 }
16213 {
16214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16215 }
16216 return resultobj;
16217 fail:
16218 return NULL;
16219 }
16220
16221
16222 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16223 PyObject *resultobj = 0;
16224 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16225 wxString const &arg2_defvalue = wxPyEmptyString ;
16226 wxString *arg2 = (wxString *) &arg2_defvalue ;
16227 bool result;
16228 void *argp1 = 0 ;
16229 int res1 = 0 ;
16230 bool temp2 = false ;
16231 PyObject * obj0 = 0 ;
16232 PyObject * obj1 = 0 ;
16233 char * kwnames[] = {
16234 (char *) "self",(char *) "facename", NULL
16235 };
16236
16237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
16238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16239 if (!SWIG_IsOK(res1)) {
16240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16241 }
16242 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16243 if (obj1) {
16244 {
16245 arg2 = wxString_in_helper(obj1);
16246 if (arg2 == NULL) SWIG_fail;
16247 temp2 = true;
16248 }
16249 }
16250 {
16251 PyThreadState* __tstate = wxPyBeginAllowThreads();
16252 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
16253 wxPyEndAllowThreads(__tstate);
16254 if (PyErr_Occurred()) SWIG_fail;
16255 }
16256 {
16257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16258 }
16259 {
16260 if (temp2)
16261 delete arg2;
16262 }
16263 return resultobj;
16264 fail:
16265 {
16266 if (temp2)
16267 delete arg2;
16268 }
16269 return NULL;
16270 }
16271
16272
16273 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16274 PyObject *resultobj = 0;
16275 PyObject *result = 0 ;
16276
16277 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
16278 {
16279 PyThreadState* __tstate = wxPyBeginAllowThreads();
16280 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
16281 wxPyEndAllowThreads(__tstate);
16282 if (PyErr_Occurred()) SWIG_fail;
16283 }
16284 resultobj = result;
16285 return resultobj;
16286 fail:
16287 return NULL;
16288 }
16289
16290
16291 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16292 PyObject *resultobj = 0;
16293 PyObject *result = 0 ;
16294
16295 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
16296 {
16297 PyThreadState* __tstate = wxPyBeginAllowThreads();
16298 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
16299 wxPyEndAllowThreads(__tstate);
16300 if (PyErr_Occurred()) SWIG_fail;
16301 }
16302 resultobj = result;
16303 return resultobj;
16304 fail:
16305 return NULL;
16306 }
16307
16308
16309 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16310 PyObject *resultobj = 0;
16311 wxString *arg1 = 0 ;
16312 bool result;
16313 bool temp1 = false ;
16314 PyObject * obj0 = 0 ;
16315 char * kwnames[] = {
16316 (char *) "str", NULL
16317 };
16318
16319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
16320 {
16321 arg1 = wxString_in_helper(obj0);
16322 if (arg1 == NULL) SWIG_fail;
16323 temp1 = true;
16324 }
16325 {
16326 PyThreadState* __tstate = wxPyBeginAllowThreads();
16327 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
16328 wxPyEndAllowThreads(__tstate);
16329 if (PyErr_Occurred()) SWIG_fail;
16330 }
16331 {
16332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16333 }
16334 {
16335 if (temp1)
16336 delete arg1;
16337 }
16338 return resultobj;
16339 fail:
16340 {
16341 if (temp1)
16342 delete arg1;
16343 }
16344 return NULL;
16345 }
16346
16347
16348 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16349 PyObject *obj;
16350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16351 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16352 return SWIG_Py_Void();
16353 }
16354
16355 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16356 return SWIG_Python_InitShadowInstance(args);
16357 }
16358
16359 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16360 PyObject *resultobj = 0;
16361 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16362 int arg2 ;
16363 void *argp1 = 0 ;
16364 int res1 = 0 ;
16365 int val2 ;
16366 int ecode2 = 0 ;
16367 PyObject *swig_obj[2] ;
16368
16369 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16371 if (!SWIG_IsOK(res1)) {
16372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16373 }
16374 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16375 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16376 if (!SWIG_IsOK(ecode2)) {
16377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16378 }
16379 arg2 = static_cast< int >(val2);
16380 if (arg1) (arg1)->Language = arg2;
16381
16382 resultobj = SWIG_Py_Void();
16383 return resultobj;
16384 fail:
16385 return NULL;
16386 }
16387
16388
16389 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16390 PyObject *resultobj = 0;
16391 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16392 int result;
16393 void *argp1 = 0 ;
16394 int res1 = 0 ;
16395 PyObject *swig_obj[1] ;
16396
16397 if (!args) SWIG_fail;
16398 swig_obj[0] = args;
16399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16400 if (!SWIG_IsOK(res1)) {
16401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16402 }
16403 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16404 result = (int) ((arg1)->Language);
16405 resultobj = SWIG_From_int(static_cast< int >(result));
16406 return resultobj;
16407 fail:
16408 return NULL;
16409 }
16410
16411
16412 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16413 PyObject *resultobj = 0;
16414 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16415 wxString *arg2 = (wxString *) 0 ;
16416 void *argp1 = 0 ;
16417 int res1 = 0 ;
16418 bool temp2 = false ;
16419 PyObject *swig_obj[2] ;
16420
16421 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16423 if (!SWIG_IsOK(res1)) {
16424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16425 }
16426 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16427 {
16428 arg2 = wxString_in_helper(swig_obj[1]);
16429 if (arg2 == NULL) SWIG_fail;
16430 temp2 = true;
16431 }
16432 if (arg1) (arg1)->CanonicalName = *arg2;
16433
16434 resultobj = SWIG_Py_Void();
16435 {
16436 if (temp2)
16437 delete arg2;
16438 }
16439 return resultobj;
16440 fail:
16441 {
16442 if (temp2)
16443 delete arg2;
16444 }
16445 return NULL;
16446 }
16447
16448
16449 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16450 PyObject *resultobj = 0;
16451 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16452 wxString *result = 0 ;
16453 void *argp1 = 0 ;
16454 int res1 = 0 ;
16455 PyObject *swig_obj[1] ;
16456
16457 if (!args) SWIG_fail;
16458 swig_obj[0] = args;
16459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16460 if (!SWIG_IsOK(res1)) {
16461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16462 }
16463 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16464 result = (wxString *)& ((arg1)->CanonicalName);
16465 {
16466 #if wxUSE_UNICODE
16467 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16468 #else
16469 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16470 #endif
16471 }
16472 return resultobj;
16473 fail:
16474 return NULL;
16475 }
16476
16477
16478 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16479 PyObject *resultobj = 0;
16480 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16481 wxString *arg2 = (wxString *) 0 ;
16482 void *argp1 = 0 ;
16483 int res1 = 0 ;
16484 bool temp2 = false ;
16485 PyObject *swig_obj[2] ;
16486
16487 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16489 if (!SWIG_IsOK(res1)) {
16490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16491 }
16492 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16493 {
16494 arg2 = wxString_in_helper(swig_obj[1]);
16495 if (arg2 == NULL) SWIG_fail;
16496 temp2 = true;
16497 }
16498 if (arg1) (arg1)->Description = *arg2;
16499
16500 resultobj = SWIG_Py_Void();
16501 {
16502 if (temp2)
16503 delete arg2;
16504 }
16505 return resultobj;
16506 fail:
16507 {
16508 if (temp2)
16509 delete arg2;
16510 }
16511 return NULL;
16512 }
16513
16514
16515 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16516 PyObject *resultobj = 0;
16517 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16518 wxString *result = 0 ;
16519 void *argp1 = 0 ;
16520 int res1 = 0 ;
16521 PyObject *swig_obj[1] ;
16522
16523 if (!args) SWIG_fail;
16524 swig_obj[0] = args;
16525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16526 if (!SWIG_IsOK(res1)) {
16527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16528 }
16529 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16530 result = (wxString *)& ((arg1)->Description);
16531 {
16532 #if wxUSE_UNICODE
16533 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16534 #else
16535 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16536 #endif
16537 }
16538 return resultobj;
16539 fail:
16540 return NULL;
16541 }
16542
16543
16544 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16545 PyObject *obj;
16546 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16547 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16548 return SWIG_Py_Void();
16549 }
16550
16551 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16552 PyObject *resultobj = 0;
16553 int arg1 = (int) -1 ;
16554 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16555 wxLocale *result = 0 ;
16556 int val1 ;
16557 int ecode1 = 0 ;
16558 int val2 ;
16559 int ecode2 = 0 ;
16560 PyObject * obj0 = 0 ;
16561 PyObject * obj1 = 0 ;
16562 char * kwnames[] = {
16563 (char *) "language",(char *) "flags", NULL
16564 };
16565
16566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16567 if (obj0) {
16568 ecode1 = SWIG_AsVal_int(obj0, &val1);
16569 if (!SWIG_IsOK(ecode1)) {
16570 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16571 }
16572 arg1 = static_cast< int >(val1);
16573 }
16574 if (obj1) {
16575 ecode2 = SWIG_AsVal_int(obj1, &val2);
16576 if (!SWIG_IsOK(ecode2)) {
16577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16578 }
16579 arg2 = static_cast< int >(val2);
16580 }
16581 {
16582 PyThreadState* __tstate = wxPyBeginAllowThreads();
16583 result = (wxLocale *)new_wxLocale(arg1,arg2);
16584 wxPyEndAllowThreads(__tstate);
16585 if (PyErr_Occurred()) SWIG_fail;
16586 }
16587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16588 return resultobj;
16589 fail:
16590 return NULL;
16591 }
16592
16593
16594 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16595 PyObject *resultobj = 0;
16596 wxLocale *arg1 = (wxLocale *) 0 ;
16597 void *argp1 = 0 ;
16598 int res1 = 0 ;
16599 PyObject *swig_obj[1] ;
16600
16601 if (!args) SWIG_fail;
16602 swig_obj[0] = args;
16603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16604 if (!SWIG_IsOK(res1)) {
16605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16606 }
16607 arg1 = reinterpret_cast< wxLocale * >(argp1);
16608 {
16609 PyThreadState* __tstate = wxPyBeginAllowThreads();
16610 delete arg1;
16611
16612 wxPyEndAllowThreads(__tstate);
16613 if (PyErr_Occurred()) SWIG_fail;
16614 }
16615 resultobj = SWIG_Py_Void();
16616 return resultobj;
16617 fail:
16618 return NULL;
16619 }
16620
16621
16622 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16623 PyObject *resultobj = 0;
16624 wxLocale *arg1 = (wxLocale *) 0 ;
16625 wxString *arg2 = 0 ;
16626 wxString const &arg3_defvalue = wxPyEmptyString ;
16627 wxString *arg3 = (wxString *) &arg3_defvalue ;
16628 wxString const &arg4_defvalue = wxPyEmptyString ;
16629 wxString *arg4 = (wxString *) &arg4_defvalue ;
16630 bool arg5 = (bool) true ;
16631 bool arg6 = (bool) false ;
16632 bool result;
16633 void *argp1 = 0 ;
16634 int res1 = 0 ;
16635 bool temp2 = false ;
16636 bool temp3 = false ;
16637 bool temp4 = false ;
16638 bool val5 ;
16639 int ecode5 = 0 ;
16640 bool val6 ;
16641 int ecode6 = 0 ;
16642 PyObject * obj0 = 0 ;
16643 PyObject * obj1 = 0 ;
16644 PyObject * obj2 = 0 ;
16645 PyObject * obj3 = 0 ;
16646 PyObject * obj4 = 0 ;
16647 PyObject * obj5 = 0 ;
16648 char * kwnames[] = {
16649 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16650 };
16651
16652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16654 if (!SWIG_IsOK(res1)) {
16655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16656 }
16657 arg1 = reinterpret_cast< wxLocale * >(argp1);
16658 {
16659 arg2 = wxString_in_helper(obj1);
16660 if (arg2 == NULL) SWIG_fail;
16661 temp2 = true;
16662 }
16663 if (obj2) {
16664 {
16665 arg3 = wxString_in_helper(obj2);
16666 if (arg3 == NULL) SWIG_fail;
16667 temp3 = true;
16668 }
16669 }
16670 if (obj3) {
16671 {
16672 arg4 = wxString_in_helper(obj3);
16673 if (arg4 == NULL) SWIG_fail;
16674 temp4 = true;
16675 }
16676 }
16677 if (obj4) {
16678 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16679 if (!SWIG_IsOK(ecode5)) {
16680 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16681 }
16682 arg5 = static_cast< bool >(val5);
16683 }
16684 if (obj5) {
16685 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16686 if (!SWIG_IsOK(ecode6)) {
16687 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16688 }
16689 arg6 = static_cast< bool >(val6);
16690 }
16691 {
16692 PyThreadState* __tstate = wxPyBeginAllowThreads();
16693 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16694 wxPyEndAllowThreads(__tstate);
16695 if (PyErr_Occurred()) SWIG_fail;
16696 }
16697 {
16698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16699 }
16700 {
16701 if (temp2)
16702 delete arg2;
16703 }
16704 {
16705 if (temp3)
16706 delete arg3;
16707 }
16708 {
16709 if (temp4)
16710 delete arg4;
16711 }
16712 return resultobj;
16713 fail:
16714 {
16715 if (temp2)
16716 delete arg2;
16717 }
16718 {
16719 if (temp3)
16720 delete arg3;
16721 }
16722 {
16723 if (temp4)
16724 delete arg4;
16725 }
16726 return NULL;
16727 }
16728
16729
16730 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16731 PyObject *resultobj = 0;
16732 wxLocale *arg1 = (wxLocale *) 0 ;
16733 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16734 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16735 bool result;
16736 void *argp1 = 0 ;
16737 int res1 = 0 ;
16738 int val2 ;
16739 int ecode2 = 0 ;
16740 int val3 ;
16741 int ecode3 = 0 ;
16742 PyObject * obj0 = 0 ;
16743 PyObject * obj1 = 0 ;
16744 PyObject * obj2 = 0 ;
16745 char * kwnames[] = {
16746 (char *) "self",(char *) "language",(char *) "flags", NULL
16747 };
16748
16749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16751 if (!SWIG_IsOK(res1)) {
16752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16753 }
16754 arg1 = reinterpret_cast< wxLocale * >(argp1);
16755 if (obj1) {
16756 ecode2 = SWIG_AsVal_int(obj1, &val2);
16757 if (!SWIG_IsOK(ecode2)) {
16758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16759 }
16760 arg2 = static_cast< int >(val2);
16761 }
16762 if (obj2) {
16763 ecode3 = SWIG_AsVal_int(obj2, &val3);
16764 if (!SWIG_IsOK(ecode3)) {
16765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16766 }
16767 arg3 = static_cast< int >(val3);
16768 }
16769 {
16770 PyThreadState* __tstate = wxPyBeginAllowThreads();
16771 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16772 wxPyEndAllowThreads(__tstate);
16773 if (PyErr_Occurred()) SWIG_fail;
16774 }
16775 {
16776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16777 }
16778 return resultobj;
16779 fail:
16780 return NULL;
16781 }
16782
16783
16784 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16785 PyObject *resultobj = 0;
16786 int result;
16787
16788 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16789 {
16790 PyThreadState* __tstate = wxPyBeginAllowThreads();
16791 result = (int)wxLocale::GetSystemLanguage();
16792 wxPyEndAllowThreads(__tstate);
16793 if (PyErr_Occurred()) SWIG_fail;
16794 }
16795 resultobj = SWIG_From_int(static_cast< int >(result));
16796 return resultobj;
16797 fail:
16798 return NULL;
16799 }
16800
16801
16802 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16803 PyObject *resultobj = 0;
16804 wxFontEncoding result;
16805
16806 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16807 {
16808 PyThreadState* __tstate = wxPyBeginAllowThreads();
16809 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16810 wxPyEndAllowThreads(__tstate);
16811 if (PyErr_Occurred()) SWIG_fail;
16812 }
16813 resultobj = SWIG_From_int(static_cast< int >(result));
16814 return resultobj;
16815 fail:
16816 return NULL;
16817 }
16818
16819
16820 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16821 PyObject *resultobj = 0;
16822 wxString result;
16823
16824 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16825 {
16826 PyThreadState* __tstate = wxPyBeginAllowThreads();
16827 result = wxLocale::GetSystemEncodingName();
16828 wxPyEndAllowThreads(__tstate);
16829 if (PyErr_Occurred()) SWIG_fail;
16830 }
16831 {
16832 #if wxUSE_UNICODE
16833 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16834 #else
16835 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16836 #endif
16837 }
16838 return resultobj;
16839 fail:
16840 return NULL;
16841 }
16842
16843
16844 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16845 PyObject *resultobj = 0;
16846 wxLocale *arg1 = (wxLocale *) 0 ;
16847 bool result;
16848 void *argp1 = 0 ;
16849 int res1 = 0 ;
16850 PyObject *swig_obj[1] ;
16851
16852 if (!args) SWIG_fail;
16853 swig_obj[0] = args;
16854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16855 if (!SWIG_IsOK(res1)) {
16856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16857 }
16858 arg1 = reinterpret_cast< wxLocale * >(argp1);
16859 {
16860 PyThreadState* __tstate = wxPyBeginAllowThreads();
16861 result = (bool)((wxLocale const *)arg1)->IsOk();
16862 wxPyEndAllowThreads(__tstate);
16863 if (PyErr_Occurred()) SWIG_fail;
16864 }
16865 {
16866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16867 }
16868 return resultobj;
16869 fail:
16870 return NULL;
16871 }
16872
16873
16874 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16875 PyObject *resultobj = 0;
16876 wxLocale *arg1 = (wxLocale *) 0 ;
16877 wxString result;
16878 void *argp1 = 0 ;
16879 int res1 = 0 ;
16880 PyObject *swig_obj[1] ;
16881
16882 if (!args) SWIG_fail;
16883 swig_obj[0] = args;
16884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16885 if (!SWIG_IsOK(res1)) {
16886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16887 }
16888 arg1 = reinterpret_cast< wxLocale * >(argp1);
16889 {
16890 PyThreadState* __tstate = wxPyBeginAllowThreads();
16891 result = ((wxLocale const *)arg1)->GetLocale();
16892 wxPyEndAllowThreads(__tstate);
16893 if (PyErr_Occurred()) SWIG_fail;
16894 }
16895 {
16896 #if wxUSE_UNICODE
16897 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16898 #else
16899 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16900 #endif
16901 }
16902 return resultobj;
16903 fail:
16904 return NULL;
16905 }
16906
16907
16908 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16909 PyObject *resultobj = 0;
16910 wxLocale *arg1 = (wxLocale *) 0 ;
16911 int result;
16912 void *argp1 = 0 ;
16913 int res1 = 0 ;
16914 PyObject *swig_obj[1] ;
16915
16916 if (!args) SWIG_fail;
16917 swig_obj[0] = args;
16918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16919 if (!SWIG_IsOK(res1)) {
16920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16921 }
16922 arg1 = reinterpret_cast< wxLocale * >(argp1);
16923 {
16924 PyThreadState* __tstate = wxPyBeginAllowThreads();
16925 result = (int)((wxLocale const *)arg1)->GetLanguage();
16926 wxPyEndAllowThreads(__tstate);
16927 if (PyErr_Occurred()) SWIG_fail;
16928 }
16929 resultobj = SWIG_From_int(static_cast< int >(result));
16930 return resultobj;
16931 fail:
16932 return NULL;
16933 }
16934
16935
16936 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16937 PyObject *resultobj = 0;
16938 wxLocale *arg1 = (wxLocale *) 0 ;
16939 wxString result;
16940 void *argp1 = 0 ;
16941 int res1 = 0 ;
16942 PyObject *swig_obj[1] ;
16943
16944 if (!args) SWIG_fail;
16945 swig_obj[0] = args;
16946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16947 if (!SWIG_IsOK(res1)) {
16948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16949 }
16950 arg1 = reinterpret_cast< wxLocale * >(argp1);
16951 {
16952 PyThreadState* __tstate = wxPyBeginAllowThreads();
16953 result = ((wxLocale const *)arg1)->GetSysName();
16954 wxPyEndAllowThreads(__tstate);
16955 if (PyErr_Occurred()) SWIG_fail;
16956 }
16957 {
16958 #if wxUSE_UNICODE
16959 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16960 #else
16961 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16962 #endif
16963 }
16964 return resultobj;
16965 fail:
16966 return NULL;
16967 }
16968
16969
16970 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16971 PyObject *resultobj = 0;
16972 wxLocale *arg1 = (wxLocale *) 0 ;
16973 wxString result;
16974 void *argp1 = 0 ;
16975 int res1 = 0 ;
16976 PyObject *swig_obj[1] ;
16977
16978 if (!args) SWIG_fail;
16979 swig_obj[0] = args;
16980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16981 if (!SWIG_IsOK(res1)) {
16982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16983 }
16984 arg1 = reinterpret_cast< wxLocale * >(argp1);
16985 {
16986 PyThreadState* __tstate = wxPyBeginAllowThreads();
16987 result = ((wxLocale const *)arg1)->GetCanonicalName();
16988 wxPyEndAllowThreads(__tstate);
16989 if (PyErr_Occurred()) SWIG_fail;
16990 }
16991 {
16992 #if wxUSE_UNICODE
16993 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16994 #else
16995 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16996 #endif
16997 }
16998 return resultobj;
16999 fail:
17000 return NULL;
17001 }
17002
17003
17004 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17005 PyObject *resultobj = 0;
17006 wxString *arg1 = 0 ;
17007 bool temp1 = false ;
17008 PyObject * obj0 = 0 ;
17009 char * kwnames[] = {
17010 (char *) "prefix", NULL
17011 };
17012
17013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
17014 {
17015 arg1 = wxString_in_helper(obj0);
17016 if (arg1 == NULL) SWIG_fail;
17017 temp1 = true;
17018 }
17019 {
17020 PyThreadState* __tstate = wxPyBeginAllowThreads();
17021 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
17022 wxPyEndAllowThreads(__tstate);
17023 if (PyErr_Occurred()) SWIG_fail;
17024 }
17025 resultobj = SWIG_Py_Void();
17026 {
17027 if (temp1)
17028 delete arg1;
17029 }
17030 return resultobj;
17031 fail:
17032 {
17033 if (temp1)
17034 delete arg1;
17035 }
17036 return NULL;
17037 }
17038
17039
17040 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17041 PyObject *resultobj = 0;
17042 wxLocale *arg1 = (wxLocale *) 0 ;
17043 wxString *arg2 = 0 ;
17044 bool result;
17045 void *argp1 = 0 ;
17046 int res1 = 0 ;
17047 bool temp2 = false ;
17048 PyObject * obj0 = 0 ;
17049 PyObject * obj1 = 0 ;
17050 char * kwnames[] = {
17051 (char *) "self",(char *) "szDomain", NULL
17052 };
17053
17054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
17055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17056 if (!SWIG_IsOK(res1)) {
17057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
17058 }
17059 arg1 = reinterpret_cast< wxLocale * >(argp1);
17060 {
17061 arg2 = wxString_in_helper(obj1);
17062 if (arg2 == NULL) SWIG_fail;
17063 temp2 = true;
17064 }
17065 {
17066 PyThreadState* __tstate = wxPyBeginAllowThreads();
17067 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
17068 wxPyEndAllowThreads(__tstate);
17069 if (PyErr_Occurred()) SWIG_fail;
17070 }
17071 {
17072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17073 }
17074 {
17075 if (temp2)
17076 delete arg2;
17077 }
17078 return resultobj;
17079 fail:
17080 {
17081 if (temp2)
17082 delete arg2;
17083 }
17084 return NULL;
17085 }
17086
17087
17088 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17089 PyObject *resultobj = 0;
17090 int arg1 ;
17091 bool result;
17092 int val1 ;
17093 int ecode1 = 0 ;
17094 PyObject * obj0 = 0 ;
17095 char * kwnames[] = {
17096 (char *) "lang", NULL
17097 };
17098
17099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
17100 ecode1 = SWIG_AsVal_int(obj0, &val1);
17101 if (!SWIG_IsOK(ecode1)) {
17102 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
17103 }
17104 arg1 = static_cast< int >(val1);
17105 {
17106 PyThreadState* __tstate = wxPyBeginAllowThreads();
17107 result = (bool)wxLocale::IsAvailable(arg1);
17108 wxPyEndAllowThreads(__tstate);
17109 if (PyErr_Occurred()) SWIG_fail;
17110 }
17111 {
17112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17113 }
17114 return resultobj;
17115 fail:
17116 return NULL;
17117 }
17118
17119
17120 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17121 PyObject *resultobj = 0;
17122 wxLocale *arg1 = (wxLocale *) 0 ;
17123 wxString *arg2 = 0 ;
17124 bool result;
17125 void *argp1 = 0 ;
17126 int res1 = 0 ;
17127 bool temp2 = false ;
17128 PyObject * obj0 = 0 ;
17129 PyObject * obj1 = 0 ;
17130 char * kwnames[] = {
17131 (char *) "self",(char *) "szDomain", NULL
17132 };
17133
17134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
17135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17136 if (!SWIG_IsOK(res1)) {
17137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
17138 }
17139 arg1 = reinterpret_cast< wxLocale * >(argp1);
17140 {
17141 arg2 = wxString_in_helper(obj1);
17142 if (arg2 == NULL) SWIG_fail;
17143 temp2 = true;
17144 }
17145 {
17146 PyThreadState* __tstate = wxPyBeginAllowThreads();
17147 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
17148 wxPyEndAllowThreads(__tstate);
17149 if (PyErr_Occurred()) SWIG_fail;
17150 }
17151 {
17152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17153 }
17154 {
17155 if (temp2)
17156 delete arg2;
17157 }
17158 return resultobj;
17159 fail:
17160 {
17161 if (temp2)
17162 delete arg2;
17163 }
17164 return NULL;
17165 }
17166
17167
17168 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17169 PyObject *resultobj = 0;
17170 int arg1 ;
17171 wxLanguageInfo *result = 0 ;
17172 int val1 ;
17173 int ecode1 = 0 ;
17174 PyObject * obj0 = 0 ;
17175 char * kwnames[] = {
17176 (char *) "lang", NULL
17177 };
17178
17179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
17180 ecode1 = SWIG_AsVal_int(obj0, &val1);
17181 if (!SWIG_IsOK(ecode1)) {
17182 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
17183 }
17184 arg1 = static_cast< int >(val1);
17185 {
17186 PyThreadState* __tstate = wxPyBeginAllowThreads();
17187 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
17188 wxPyEndAllowThreads(__tstate);
17189 if (PyErr_Occurred()) SWIG_fail;
17190 }
17191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17192 return resultobj;
17193 fail:
17194 return NULL;
17195 }
17196
17197
17198 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17199 PyObject *resultobj = 0;
17200 int arg1 ;
17201 wxString result;
17202 int val1 ;
17203 int ecode1 = 0 ;
17204 PyObject * obj0 = 0 ;
17205 char * kwnames[] = {
17206 (char *) "lang", NULL
17207 };
17208
17209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
17210 ecode1 = SWIG_AsVal_int(obj0, &val1);
17211 if (!SWIG_IsOK(ecode1)) {
17212 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
17213 }
17214 arg1 = static_cast< int >(val1);
17215 {
17216 PyThreadState* __tstate = wxPyBeginAllowThreads();
17217 result = wxLocale::GetLanguageName(arg1);
17218 wxPyEndAllowThreads(__tstate);
17219 if (PyErr_Occurred()) SWIG_fail;
17220 }
17221 {
17222 #if wxUSE_UNICODE
17223 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17224 #else
17225 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17226 #endif
17227 }
17228 return resultobj;
17229 fail:
17230 return NULL;
17231 }
17232
17233
17234 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17235 PyObject *resultobj = 0;
17236 wxString *arg1 = 0 ;
17237 wxLanguageInfo *result = 0 ;
17238 bool temp1 = false ;
17239 PyObject * obj0 = 0 ;
17240 char * kwnames[] = {
17241 (char *) "locale", NULL
17242 };
17243
17244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
17245 {
17246 arg1 = wxString_in_helper(obj0);
17247 if (arg1 == NULL) SWIG_fail;
17248 temp1 = true;
17249 }
17250 {
17251 PyThreadState* __tstate = wxPyBeginAllowThreads();
17252 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
17253 wxPyEndAllowThreads(__tstate);
17254 if (PyErr_Occurred()) SWIG_fail;
17255 }
17256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17257 {
17258 if (temp1)
17259 delete arg1;
17260 }
17261 return resultobj;
17262 fail:
17263 {
17264 if (temp1)
17265 delete arg1;
17266 }
17267 return NULL;
17268 }
17269
17270
17271 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17272 PyObject *resultobj = 0;
17273 wxLanguageInfo *arg1 = 0 ;
17274 void *argp1 = 0 ;
17275 int res1 = 0 ;
17276 PyObject * obj0 = 0 ;
17277 char * kwnames[] = {
17278 (char *) "info", NULL
17279 };
17280
17281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
17282 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
17283 if (!SWIG_IsOK(res1)) {
17284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17285 }
17286 if (!argp1) {
17287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17288 }
17289 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
17290 {
17291 PyThreadState* __tstate = wxPyBeginAllowThreads();
17292 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
17293 wxPyEndAllowThreads(__tstate);
17294 if (PyErr_Occurred()) SWIG_fail;
17295 }
17296 resultobj = SWIG_Py_Void();
17297 return resultobj;
17298 fail:
17299 return NULL;
17300 }
17301
17302
17303 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17304 PyObject *resultobj = 0;
17305 wxLocale *arg1 = (wxLocale *) 0 ;
17306 wxString *arg2 = 0 ;
17307 wxString const &arg3_defvalue = wxPyEmptyString ;
17308 wxString *arg3 = (wxString *) &arg3_defvalue ;
17309 wxString result;
17310 void *argp1 = 0 ;
17311 int res1 = 0 ;
17312 bool temp2 = false ;
17313 bool temp3 = false ;
17314 PyObject * obj0 = 0 ;
17315 PyObject * obj1 = 0 ;
17316 PyObject * obj2 = 0 ;
17317 char * kwnames[] = {
17318 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17319 };
17320
17321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17323 if (!SWIG_IsOK(res1)) {
17324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
17325 }
17326 arg1 = reinterpret_cast< wxLocale * >(argp1);
17327 {
17328 arg2 = wxString_in_helper(obj1);
17329 if (arg2 == NULL) SWIG_fail;
17330 temp2 = true;
17331 }
17332 if (obj2) {
17333 {
17334 arg3 = wxString_in_helper(obj2);
17335 if (arg3 == NULL) SWIG_fail;
17336 temp3 = true;
17337 }
17338 }
17339 {
17340 PyThreadState* __tstate = wxPyBeginAllowThreads();
17341 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
17342 wxPyEndAllowThreads(__tstate);
17343 if (PyErr_Occurred()) SWIG_fail;
17344 }
17345 {
17346 #if wxUSE_UNICODE
17347 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17348 #else
17349 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17350 #endif
17351 }
17352 {
17353 if (temp2)
17354 delete arg2;
17355 }
17356 {
17357 if (temp3)
17358 delete arg3;
17359 }
17360 return resultobj;
17361 fail:
17362 {
17363 if (temp2)
17364 delete arg2;
17365 }
17366 {
17367 if (temp3)
17368 delete arg3;
17369 }
17370 return NULL;
17371 }
17372
17373
17374 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17375 PyObject *resultobj = 0;
17376 wxLocale *arg1 = (wxLocale *) 0 ;
17377 wxString *result = 0 ;
17378 void *argp1 = 0 ;
17379 int res1 = 0 ;
17380 PyObject *swig_obj[1] ;
17381
17382 if (!args) SWIG_fail;
17383 swig_obj[0] = args;
17384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17385 if (!SWIG_IsOK(res1)) {
17386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17387 }
17388 arg1 = reinterpret_cast< wxLocale * >(argp1);
17389 {
17390 PyThreadState* __tstate = wxPyBeginAllowThreads();
17391 {
17392 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17393 result = (wxString *) &_result_ref;
17394 }
17395 wxPyEndAllowThreads(__tstate);
17396 if (PyErr_Occurred()) SWIG_fail;
17397 }
17398 {
17399 #if wxUSE_UNICODE
17400 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17401 #else
17402 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17403 #endif
17404 }
17405 return resultobj;
17406 fail:
17407 return NULL;
17408 }
17409
17410
17411 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17412 PyObject *obj;
17413 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17414 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17415 return SWIG_Py_Void();
17416 }
17417
17418 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17419 return SWIG_Python_InitShadowInstance(args);
17420 }
17421
17422 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17423 PyObject *resultobj = 0;
17424 int arg1 = (int) -1 ;
17425 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17426 wxPyLocale *result = 0 ;
17427 int val1 ;
17428 int ecode1 = 0 ;
17429 int val2 ;
17430 int ecode2 = 0 ;
17431 PyObject * obj0 = 0 ;
17432 PyObject * obj1 = 0 ;
17433 char * kwnames[] = {
17434 (char *) "language",(char *) "flags", NULL
17435 };
17436
17437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17438 if (obj0) {
17439 ecode1 = SWIG_AsVal_int(obj0, &val1);
17440 if (!SWIG_IsOK(ecode1)) {
17441 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17442 }
17443 arg1 = static_cast< int >(val1);
17444 }
17445 if (obj1) {
17446 ecode2 = SWIG_AsVal_int(obj1, &val2);
17447 if (!SWIG_IsOK(ecode2)) {
17448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17449 }
17450 arg2 = static_cast< int >(val2);
17451 }
17452 {
17453 PyThreadState* __tstate = wxPyBeginAllowThreads();
17454 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17455 wxPyEndAllowThreads(__tstate);
17456 if (PyErr_Occurred()) SWIG_fail;
17457 }
17458 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17459 return resultobj;
17460 fail:
17461 return NULL;
17462 }
17463
17464
17465 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17466 PyObject *resultobj = 0;
17467 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17468 void *argp1 = 0 ;
17469 int res1 = 0 ;
17470 PyObject *swig_obj[1] ;
17471
17472 if (!args) SWIG_fail;
17473 swig_obj[0] = args;
17474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17475 if (!SWIG_IsOK(res1)) {
17476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17477 }
17478 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17479 {
17480 PyThreadState* __tstate = wxPyBeginAllowThreads();
17481 delete arg1;
17482
17483 wxPyEndAllowThreads(__tstate);
17484 if (PyErr_Occurred()) SWIG_fail;
17485 }
17486 resultobj = SWIG_Py_Void();
17487 return resultobj;
17488 fail:
17489 return NULL;
17490 }
17491
17492
17493 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17494 PyObject *resultobj = 0;
17495 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17496 PyObject *arg2 = (PyObject *) 0 ;
17497 PyObject *arg3 = (PyObject *) 0 ;
17498 void *argp1 = 0 ;
17499 int res1 = 0 ;
17500 PyObject * obj0 = 0 ;
17501 PyObject * obj1 = 0 ;
17502 PyObject * obj2 = 0 ;
17503 char * kwnames[] = {
17504 (char *) "self",(char *) "self",(char *) "_class", NULL
17505 };
17506
17507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17509 if (!SWIG_IsOK(res1)) {
17510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17511 }
17512 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17513 arg2 = obj1;
17514 arg3 = obj2;
17515 {
17516 PyThreadState* __tstate = wxPyBeginAllowThreads();
17517 (arg1)->_setCallbackInfo(arg2,arg3);
17518 wxPyEndAllowThreads(__tstate);
17519 if (PyErr_Occurred()) SWIG_fail;
17520 }
17521 resultobj = SWIG_Py_Void();
17522 return resultobj;
17523 fail:
17524 return NULL;
17525 }
17526
17527
17528 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17529 PyObject *resultobj = 0;
17530 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17531 wxChar *arg2 = (wxChar *) 0 ;
17532 wxChar *arg3 = (wxChar *) NULL ;
17533 wxChar *result = 0 ;
17534 void *argp1 = 0 ;
17535 int res1 = 0 ;
17536 void *argp2 = 0 ;
17537 int res2 = 0 ;
17538 void *argp3 = 0 ;
17539 int res3 = 0 ;
17540 PyObject * obj0 = 0 ;
17541 PyObject * obj1 = 0 ;
17542 PyObject * obj2 = 0 ;
17543 char * kwnames[] = {
17544 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17545 };
17546
17547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17549 if (!SWIG_IsOK(res1)) {
17550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17551 }
17552 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17553 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17554 if (!SWIG_IsOK(res2)) {
17555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
17556 }
17557 arg2 = reinterpret_cast< wxChar * >(argp2);
17558 if (obj2) {
17559 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17560 if (!SWIG_IsOK(res3)) {
17561 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
17562 }
17563 arg3 = reinterpret_cast< wxChar * >(argp3);
17564 }
17565 {
17566 PyThreadState* __tstate = wxPyBeginAllowThreads();
17567 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
17568 wxPyEndAllowThreads(__tstate);
17569 if (PyErr_Occurred()) SWIG_fail;
17570 }
17571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17572 return resultobj;
17573 fail:
17574 return NULL;
17575 }
17576
17577
17578 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17579 PyObject *resultobj = 0;
17580 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17581 wxChar *arg2 = (wxChar *) 0 ;
17582 wxChar *arg3 = (wxChar *) 0 ;
17583 size_t arg4 ;
17584 wxChar *arg5 = (wxChar *) NULL ;
17585 wxChar *result = 0 ;
17586 void *argp1 = 0 ;
17587 int res1 = 0 ;
17588 void *argp2 = 0 ;
17589 int res2 = 0 ;
17590 void *argp3 = 0 ;
17591 int res3 = 0 ;
17592 size_t val4 ;
17593 int ecode4 = 0 ;
17594 void *argp5 = 0 ;
17595 int res5 = 0 ;
17596 PyObject * obj0 = 0 ;
17597 PyObject * obj1 = 0 ;
17598 PyObject * obj2 = 0 ;
17599 PyObject * obj3 = 0 ;
17600 PyObject * obj4 = 0 ;
17601 char * kwnames[] = {
17602 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17603 };
17604
17605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17607 if (!SWIG_IsOK(res1)) {
17608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17609 }
17610 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17611 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17612 if (!SWIG_IsOK(res2)) {
17613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17614 }
17615 arg2 = reinterpret_cast< wxChar * >(argp2);
17616 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17617 if (!SWIG_IsOK(res3)) {
17618 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17619 }
17620 arg3 = reinterpret_cast< wxChar * >(argp3);
17621 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17622 if (!SWIG_IsOK(ecode4)) {
17623 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17624 }
17625 arg4 = static_cast< size_t >(val4);
17626 if (obj4) {
17627 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17628 if (!SWIG_IsOK(res5)) {
17629 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17630 }
17631 arg5 = reinterpret_cast< wxChar * >(argp5);
17632 }
17633 {
17634 PyThreadState* __tstate = wxPyBeginAllowThreads();
17635 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17636 wxPyEndAllowThreads(__tstate);
17637 if (PyErr_Occurred()) SWIG_fail;
17638 }
17639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17640 return resultobj;
17641 fail:
17642 return NULL;
17643 }
17644
17645
17646 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17647 PyObject *obj;
17648 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17649 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17650 return SWIG_Py_Void();
17651 }
17652
17653 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17654 return SWIG_Python_InitShadowInstance(args);
17655 }
17656
17657 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17658 PyObject *resultobj = 0;
17659 wxLocale *result = 0 ;
17660
17661 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17662 {
17663 PyThreadState* __tstate = wxPyBeginAllowThreads();
17664 result = (wxLocale *)wxGetLocale();
17665 wxPyEndAllowThreads(__tstate);
17666 if (PyErr_Occurred()) SWIG_fail;
17667 }
17668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17669 return resultobj;
17670 fail:
17671 return NULL;
17672 }
17673
17674
17675 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17676 PyObject *resultobj = 0;
17677 wxString *arg1 = 0 ;
17678 wxString result;
17679 bool temp1 = false ;
17680
17681 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17682 {
17683 arg1 = wxString_in_helper(swig_obj[0]);
17684 if (arg1 == NULL) SWIG_fail;
17685 temp1 = true;
17686 }
17687 {
17688 PyThreadState* __tstate = wxPyBeginAllowThreads();
17689 result = wxGetTranslation((wxString const &)*arg1);
17690 wxPyEndAllowThreads(__tstate);
17691 if (PyErr_Occurred()) SWIG_fail;
17692 }
17693 {
17694 #if wxUSE_UNICODE
17695 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17696 #else
17697 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17698 #endif
17699 }
17700 {
17701 if (temp1)
17702 delete arg1;
17703 }
17704 return resultobj;
17705 fail:
17706 {
17707 if (temp1)
17708 delete arg1;
17709 }
17710 return NULL;
17711 }
17712
17713
17714 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17715 PyObject *resultobj = 0;
17716 wxString *arg1 = 0 ;
17717 wxString *arg2 = 0 ;
17718 wxString result;
17719 bool temp1 = false ;
17720 bool temp2 = false ;
17721
17722 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17723 {
17724 arg1 = wxString_in_helper(swig_obj[0]);
17725 if (arg1 == NULL) SWIG_fail;
17726 temp1 = true;
17727 }
17728 {
17729 arg2 = wxString_in_helper(swig_obj[1]);
17730 if (arg2 == NULL) SWIG_fail;
17731 temp2 = true;
17732 }
17733 {
17734 PyThreadState* __tstate = wxPyBeginAllowThreads();
17735 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17736 wxPyEndAllowThreads(__tstate);
17737 if (PyErr_Occurred()) SWIG_fail;
17738 }
17739 {
17740 #if wxUSE_UNICODE
17741 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17742 #else
17743 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17744 #endif
17745 }
17746 {
17747 if (temp1)
17748 delete arg1;
17749 }
17750 {
17751 if (temp2)
17752 delete arg2;
17753 }
17754 return resultobj;
17755 fail:
17756 {
17757 if (temp1)
17758 delete arg1;
17759 }
17760 {
17761 if (temp2)
17762 delete arg2;
17763 }
17764 return NULL;
17765 }
17766
17767
17768 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17769 PyObject *resultobj = 0;
17770 wxString *arg1 = 0 ;
17771 wxString *arg2 = 0 ;
17772 size_t arg3 ;
17773 wxString result;
17774 bool temp1 = false ;
17775 bool temp2 = false ;
17776 size_t val3 ;
17777 int ecode3 = 0 ;
17778
17779 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17780 {
17781 arg1 = wxString_in_helper(swig_obj[0]);
17782 if (arg1 == NULL) SWIG_fail;
17783 temp1 = true;
17784 }
17785 {
17786 arg2 = wxString_in_helper(swig_obj[1]);
17787 if (arg2 == NULL) SWIG_fail;
17788 temp2 = true;
17789 }
17790 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17791 if (!SWIG_IsOK(ecode3)) {
17792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17793 }
17794 arg3 = static_cast< size_t >(val3);
17795 {
17796 PyThreadState* __tstate = wxPyBeginAllowThreads();
17797 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17798 wxPyEndAllowThreads(__tstate);
17799 if (PyErr_Occurred()) SWIG_fail;
17800 }
17801 {
17802 #if wxUSE_UNICODE
17803 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17804 #else
17805 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17806 #endif
17807 }
17808 {
17809 if (temp1)
17810 delete arg1;
17811 }
17812 {
17813 if (temp2)
17814 delete arg2;
17815 }
17816 return resultobj;
17817 fail:
17818 {
17819 if (temp1)
17820 delete arg1;
17821 }
17822 {
17823 if (temp2)
17824 delete arg2;
17825 }
17826 return NULL;
17827 }
17828
17829
17830 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17831 PyObject *resultobj = 0;
17832 wxString *arg1 = 0 ;
17833 wxString *arg2 = 0 ;
17834 size_t arg3 ;
17835 wxString *arg4 = 0 ;
17836 wxString result;
17837 bool temp1 = false ;
17838 bool temp2 = false ;
17839 size_t val3 ;
17840 int ecode3 = 0 ;
17841 bool temp4 = false ;
17842
17843 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17844 {
17845 arg1 = wxString_in_helper(swig_obj[0]);
17846 if (arg1 == NULL) SWIG_fail;
17847 temp1 = true;
17848 }
17849 {
17850 arg2 = wxString_in_helper(swig_obj[1]);
17851 if (arg2 == NULL) SWIG_fail;
17852 temp2 = true;
17853 }
17854 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17855 if (!SWIG_IsOK(ecode3)) {
17856 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17857 }
17858 arg3 = static_cast< size_t >(val3);
17859 {
17860 arg4 = wxString_in_helper(swig_obj[3]);
17861 if (arg4 == NULL) SWIG_fail;
17862 temp4 = true;
17863 }
17864 {
17865 PyThreadState* __tstate = wxPyBeginAllowThreads();
17866 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17867 wxPyEndAllowThreads(__tstate);
17868 if (PyErr_Occurred()) SWIG_fail;
17869 }
17870 {
17871 #if wxUSE_UNICODE
17872 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17873 #else
17874 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17875 #endif
17876 }
17877 {
17878 if (temp1)
17879 delete arg1;
17880 }
17881 {
17882 if (temp2)
17883 delete arg2;
17884 }
17885 {
17886 if (temp4)
17887 delete arg4;
17888 }
17889 return resultobj;
17890 fail:
17891 {
17892 if (temp1)
17893 delete arg1;
17894 }
17895 {
17896 if (temp2)
17897 delete arg2;
17898 }
17899 {
17900 if (temp4)
17901 delete arg4;
17902 }
17903 return NULL;
17904 }
17905
17906
17907 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17908 int argc;
17909 PyObject *argv[5];
17910
17911 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17912 --argc;
17913 if (argc == 1) {
17914 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17915 }
17916 if (argc == 2) {
17917 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17918 }
17919 if (argc == 3) {
17920 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17921 }
17922 if (argc == 4) {
17923 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17924 }
17925
17926 fail:
17927 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17928 return NULL;
17929 }
17930
17931
17932 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17933 PyObject *resultobj = 0;
17934 wxEncodingConverter *result = 0 ;
17935
17936 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17937 {
17938 PyThreadState* __tstate = wxPyBeginAllowThreads();
17939 result = (wxEncodingConverter *)new wxEncodingConverter();
17940 wxPyEndAllowThreads(__tstate);
17941 if (PyErr_Occurred()) SWIG_fail;
17942 }
17943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17944 return resultobj;
17945 fail:
17946 return NULL;
17947 }
17948
17949
17950 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17951 PyObject *resultobj = 0;
17952 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17953 void *argp1 = 0 ;
17954 int res1 = 0 ;
17955 PyObject *swig_obj[1] ;
17956
17957 if (!args) SWIG_fail;
17958 swig_obj[0] = args;
17959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17960 if (!SWIG_IsOK(res1)) {
17961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17962 }
17963 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17964 {
17965 PyThreadState* __tstate = wxPyBeginAllowThreads();
17966 delete arg1;
17967
17968 wxPyEndAllowThreads(__tstate);
17969 if (PyErr_Occurred()) SWIG_fail;
17970 }
17971 resultobj = SWIG_Py_Void();
17972 return resultobj;
17973 fail:
17974 return NULL;
17975 }
17976
17977
17978 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17979 PyObject *resultobj = 0;
17980 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17981 wxFontEncoding arg2 ;
17982 wxFontEncoding arg3 ;
17983 int arg4 = (int) wxCONVERT_STRICT ;
17984 bool result;
17985 void *argp1 = 0 ;
17986 int res1 = 0 ;
17987 int val2 ;
17988 int ecode2 = 0 ;
17989 int val3 ;
17990 int ecode3 = 0 ;
17991 int val4 ;
17992 int ecode4 = 0 ;
17993 PyObject * obj0 = 0 ;
17994 PyObject * obj1 = 0 ;
17995 PyObject * obj2 = 0 ;
17996 PyObject * obj3 = 0 ;
17997 char * kwnames[] = {
17998 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17999 };
18000
18001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18003 if (!SWIG_IsOK(res1)) {
18004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18005 }
18006 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18007 ecode2 = SWIG_AsVal_int(obj1, &val2);
18008 if (!SWIG_IsOK(ecode2)) {
18009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18010 }
18011 arg2 = static_cast< wxFontEncoding >(val2);
18012 ecode3 = SWIG_AsVal_int(obj2, &val3);
18013 if (!SWIG_IsOK(ecode3)) {
18014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
18015 }
18016 arg3 = static_cast< wxFontEncoding >(val3);
18017 if (obj3) {
18018 ecode4 = SWIG_AsVal_int(obj3, &val4);
18019 if (!SWIG_IsOK(ecode4)) {
18020 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
18021 }
18022 arg4 = static_cast< int >(val4);
18023 }
18024 {
18025 PyThreadState* __tstate = wxPyBeginAllowThreads();
18026 result = (bool)(arg1)->Init(arg2,arg3,arg4);
18027 wxPyEndAllowThreads(__tstate);
18028 if (PyErr_Occurred()) SWIG_fail;
18029 }
18030 {
18031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18032 }
18033 return resultobj;
18034 fail:
18035 return NULL;
18036 }
18037
18038
18039 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18040 PyObject *resultobj = 0;
18041 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
18042 wxString *arg2 = 0 ;
18043 wxString result;
18044 void *argp1 = 0 ;
18045 int res1 = 0 ;
18046 bool temp2 = false ;
18047 PyObject * obj0 = 0 ;
18048 PyObject * obj1 = 0 ;
18049 char * kwnames[] = {
18050 (char *) "self",(char *) "input", NULL
18051 };
18052
18053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
18054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18055 if (!SWIG_IsOK(res1)) {
18056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18057 }
18058 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18059 {
18060 arg2 = wxString_in_helper(obj1);
18061 if (arg2 == NULL) SWIG_fail;
18062 temp2 = true;
18063 }
18064 {
18065 PyThreadState* __tstate = wxPyBeginAllowThreads();
18066 result = (arg1)->Convert((wxString const &)*arg2);
18067 wxPyEndAllowThreads(__tstate);
18068 if (PyErr_Occurred()) SWIG_fail;
18069 }
18070 {
18071 #if wxUSE_UNICODE
18072 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18073 #else
18074 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18075 #endif
18076 }
18077 {
18078 if (temp2)
18079 delete arg2;
18080 }
18081 return resultobj;
18082 fail:
18083 {
18084 if (temp2)
18085 delete arg2;
18086 }
18087 return NULL;
18088 }
18089
18090
18091 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18092 PyObject *resultobj = 0;
18093 wxFontEncoding arg1 ;
18094 int arg2 = (int) wxPLATFORM_CURRENT ;
18095 wxFontEncodingArray result;
18096 int val1 ;
18097 int ecode1 = 0 ;
18098 int val2 ;
18099 int ecode2 = 0 ;
18100 PyObject * obj0 = 0 ;
18101 PyObject * obj1 = 0 ;
18102 char * kwnames[] = {
18103 (char *) "enc",(char *) "platform", NULL
18104 };
18105
18106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
18107 ecode1 = SWIG_AsVal_int(obj0, &val1);
18108 if (!SWIG_IsOK(ecode1)) {
18109 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18110 }
18111 arg1 = static_cast< wxFontEncoding >(val1);
18112 if (obj1) {
18113 ecode2 = SWIG_AsVal_int(obj1, &val2);
18114 if (!SWIG_IsOK(ecode2)) {
18115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
18116 }
18117 arg2 = static_cast< int >(val2);
18118 }
18119 {
18120 PyThreadState* __tstate = wxPyBeginAllowThreads();
18121 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
18122 wxPyEndAllowThreads(__tstate);
18123 if (PyErr_Occurred()) SWIG_fail;
18124 }
18125 {
18126 resultobj = PyList_New(0);
18127 for (size_t i=0; i < (&result)->GetCount(); i++) {
18128 PyObject* number = PyInt_FromLong((&result)->Item(i));
18129 PyList_Append(resultobj, number);
18130 Py_DECREF(number);
18131 }
18132 }
18133 return resultobj;
18134 fail:
18135 return NULL;
18136 }
18137
18138
18139 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18140 PyObject *resultobj = 0;
18141 wxFontEncoding arg1 ;
18142 wxFontEncodingArray result;
18143 int val1 ;
18144 int ecode1 = 0 ;
18145 PyObject * obj0 = 0 ;
18146 char * kwnames[] = {
18147 (char *) "enc", NULL
18148 };
18149
18150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
18151 ecode1 = SWIG_AsVal_int(obj0, &val1);
18152 if (!SWIG_IsOK(ecode1)) {
18153 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18154 }
18155 arg1 = static_cast< wxFontEncoding >(val1);
18156 {
18157 PyThreadState* __tstate = wxPyBeginAllowThreads();
18158 result = wxEncodingConverter::GetAllEquivalents(arg1);
18159 wxPyEndAllowThreads(__tstate);
18160 if (PyErr_Occurred()) SWIG_fail;
18161 }
18162 {
18163 resultobj = PyList_New(0);
18164 for (size_t i=0; i < (&result)->GetCount(); i++) {
18165 PyObject* number = PyInt_FromLong((&result)->Item(i));
18166 PyList_Append(resultobj, number);
18167 Py_DECREF(number);
18168 }
18169 }
18170 return resultobj;
18171 fail:
18172 return NULL;
18173 }
18174
18175
18176 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18177 PyObject *resultobj = 0;
18178 wxFontEncoding arg1 ;
18179 wxFontEncoding arg2 ;
18180 bool result;
18181 int val1 ;
18182 int ecode1 = 0 ;
18183 int val2 ;
18184 int ecode2 = 0 ;
18185 PyObject * obj0 = 0 ;
18186 PyObject * obj1 = 0 ;
18187 char * kwnames[] = {
18188 (char *) "encIn",(char *) "encOut", NULL
18189 };
18190
18191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
18192 ecode1 = SWIG_AsVal_int(obj0, &val1);
18193 if (!SWIG_IsOK(ecode1)) {
18194 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18195 }
18196 arg1 = static_cast< wxFontEncoding >(val1);
18197 ecode2 = SWIG_AsVal_int(obj1, &val2);
18198 if (!SWIG_IsOK(ecode2)) {
18199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18200 }
18201 arg2 = static_cast< wxFontEncoding >(val2);
18202 {
18203 PyThreadState* __tstate = wxPyBeginAllowThreads();
18204 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
18205 wxPyEndAllowThreads(__tstate);
18206 if (PyErr_Occurred()) SWIG_fail;
18207 }
18208 {
18209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18210 }
18211 return resultobj;
18212 fail:
18213 return NULL;
18214 }
18215
18216
18217 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18218 PyObject *obj;
18219 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18220 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
18221 return SWIG_Py_Void();
18222 }
18223
18224 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18225 return SWIG_Python_InitShadowInstance(args);
18226 }
18227
18228 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18229 PyObject *resultobj = 0;
18230 wxDC *arg1 = (wxDC *) 0 ;
18231 void *argp1 = 0 ;
18232 int res1 = 0 ;
18233 PyObject *swig_obj[1] ;
18234
18235 if (!args) SWIG_fail;
18236 swig_obj[0] = args;
18237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
18238 if (!SWIG_IsOK(res1)) {
18239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
18240 }
18241 arg1 = reinterpret_cast< wxDC * >(argp1);
18242 {
18243 PyThreadState* __tstate = wxPyBeginAllowThreads();
18244 delete arg1;
18245
18246 wxPyEndAllowThreads(__tstate);
18247 if (PyErr_Occurred()) SWIG_fail;
18248 }
18249 resultobj = SWIG_Py_Void();
18250 return resultobj;
18251 fail:
18252 return NULL;
18253 }
18254
18255
18256 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18257 PyObject *resultobj = 0;
18258 wxDC *arg1 = (wxDC *) 0 ;
18259 int arg2 ;
18260 int arg3 ;
18261 wxColour *arg4 = 0 ;
18262 int arg5 = (int) wxFLOOD_SURFACE ;
18263 bool result;
18264 void *argp1 = 0 ;
18265 int res1 = 0 ;
18266 int val2 ;
18267 int ecode2 = 0 ;
18268 int val3 ;
18269 int ecode3 = 0 ;
18270 wxColour temp4 ;
18271 int val5 ;
18272 int ecode5 = 0 ;
18273 PyObject * obj0 = 0 ;
18274 PyObject * obj1 = 0 ;
18275 PyObject * obj2 = 0 ;
18276 PyObject * obj3 = 0 ;
18277 PyObject * obj4 = 0 ;
18278 char * kwnames[] = {
18279 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
18280 };
18281
18282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18284 if (!SWIG_IsOK(res1)) {
18285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
18286 }
18287 arg1 = reinterpret_cast< wxDC * >(argp1);
18288 ecode2 = SWIG_AsVal_int(obj1, &val2);
18289 if (!SWIG_IsOK(ecode2)) {
18290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
18291 }
18292 arg2 = static_cast< int >(val2);
18293 ecode3 = SWIG_AsVal_int(obj2, &val3);
18294 if (!SWIG_IsOK(ecode3)) {
18295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
18296 }
18297 arg3 = static_cast< int >(val3);
18298 {
18299 arg4 = &temp4;
18300 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18301 }
18302 if (obj4) {
18303 ecode5 = SWIG_AsVal_int(obj4, &val5);
18304 if (!SWIG_IsOK(ecode5)) {
18305 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
18306 }
18307 arg5 = static_cast< int >(val5);
18308 }
18309 {
18310 PyThreadState* __tstate = wxPyBeginAllowThreads();
18311 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
18312 wxPyEndAllowThreads(__tstate);
18313 if (PyErr_Occurred()) SWIG_fail;
18314 }
18315 {
18316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18317 }
18318 return resultobj;
18319 fail:
18320 return NULL;
18321 }
18322
18323
18324 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18325 PyObject *resultobj = 0;
18326 wxDC *arg1 = (wxDC *) 0 ;
18327 wxPoint *arg2 = 0 ;
18328 wxColour *arg3 = 0 ;
18329 int arg4 = (int) wxFLOOD_SURFACE ;
18330 bool result;
18331 void *argp1 = 0 ;
18332 int res1 = 0 ;
18333 wxPoint temp2 ;
18334 wxColour temp3 ;
18335 int val4 ;
18336 int ecode4 = 0 ;
18337 PyObject * obj0 = 0 ;
18338 PyObject * obj1 = 0 ;
18339 PyObject * obj2 = 0 ;
18340 PyObject * obj3 = 0 ;
18341 char * kwnames[] = {
18342 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
18343 };
18344
18345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18347 if (!SWIG_IsOK(res1)) {
18348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18349 }
18350 arg1 = reinterpret_cast< wxDC * >(argp1);
18351 {
18352 arg2 = &temp2;
18353 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18354 }
18355 {
18356 arg3 = &temp3;
18357 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18358 }
18359 if (obj3) {
18360 ecode4 = SWIG_AsVal_int(obj3, &val4);
18361 if (!SWIG_IsOK(ecode4)) {
18362 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18363 }
18364 arg4 = static_cast< int >(val4);
18365 }
18366 {
18367 PyThreadState* __tstate = wxPyBeginAllowThreads();
18368 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18369 wxPyEndAllowThreads(__tstate);
18370 if (PyErr_Occurred()) SWIG_fail;
18371 }
18372 {
18373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18374 }
18375 return resultobj;
18376 fail:
18377 return NULL;
18378 }
18379
18380
18381 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18382 PyObject *resultobj = 0;
18383 wxDC *arg1 = (wxDC *) 0 ;
18384 wxRect *arg2 = 0 ;
18385 wxColour *arg3 = 0 ;
18386 wxColour *arg4 = 0 ;
18387 wxPoint *arg5 = 0 ;
18388 void *argp1 = 0 ;
18389 int res1 = 0 ;
18390 wxRect temp2 ;
18391 wxColour temp3 ;
18392 wxColour temp4 ;
18393 wxPoint temp5 ;
18394 PyObject * obj0 = 0 ;
18395 PyObject * obj1 = 0 ;
18396 PyObject * obj2 = 0 ;
18397 PyObject * obj3 = 0 ;
18398 PyObject * obj4 = 0 ;
18399 char * kwnames[] = {
18400 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18401 };
18402
18403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18405 if (!SWIG_IsOK(res1)) {
18406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18407 }
18408 arg1 = reinterpret_cast< wxDC * >(argp1);
18409 {
18410 arg2 = &temp2;
18411 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18412 }
18413 {
18414 arg3 = &temp3;
18415 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18416 }
18417 {
18418 arg4 = &temp4;
18419 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18420 }
18421 {
18422 arg5 = &temp5;
18423 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18424 }
18425 {
18426 PyThreadState* __tstate = wxPyBeginAllowThreads();
18427 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18428 wxPyEndAllowThreads(__tstate);
18429 if (PyErr_Occurred()) SWIG_fail;
18430 }
18431 resultobj = SWIG_Py_Void();
18432 return resultobj;
18433 fail:
18434 return NULL;
18435 }
18436
18437
18438 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18439 PyObject *resultobj = 0;
18440 wxDC *arg1 = (wxDC *) 0 ;
18441 wxRect *arg2 = 0 ;
18442 wxColour *arg3 = 0 ;
18443 wxColour *arg4 = 0 ;
18444 wxDirection arg5 = (wxDirection) wxEAST ;
18445 void *argp1 = 0 ;
18446 int res1 = 0 ;
18447 wxRect temp2 ;
18448 wxColour temp3 ;
18449 wxColour temp4 ;
18450 int val5 ;
18451 int ecode5 = 0 ;
18452 PyObject * obj0 = 0 ;
18453 PyObject * obj1 = 0 ;
18454 PyObject * obj2 = 0 ;
18455 PyObject * obj3 = 0 ;
18456 PyObject * obj4 = 0 ;
18457 char * kwnames[] = {
18458 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18459 };
18460
18461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18463 if (!SWIG_IsOK(res1)) {
18464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18465 }
18466 arg1 = reinterpret_cast< wxDC * >(argp1);
18467 {
18468 arg2 = &temp2;
18469 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18470 }
18471 {
18472 arg3 = &temp3;
18473 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18474 }
18475 {
18476 arg4 = &temp4;
18477 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18478 }
18479 if (obj4) {
18480 ecode5 = SWIG_AsVal_int(obj4, &val5);
18481 if (!SWIG_IsOK(ecode5)) {
18482 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18483 }
18484 arg5 = static_cast< wxDirection >(val5);
18485 }
18486 {
18487 PyThreadState* __tstate = wxPyBeginAllowThreads();
18488 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18489 wxPyEndAllowThreads(__tstate);
18490 if (PyErr_Occurred()) SWIG_fail;
18491 }
18492 resultobj = SWIG_Py_Void();
18493 return resultobj;
18494 fail:
18495 return NULL;
18496 }
18497
18498
18499 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18500 PyObject *resultobj = 0;
18501 wxDC *arg1 = (wxDC *) 0 ;
18502 int arg2 ;
18503 int arg3 ;
18504 wxColour result;
18505 void *argp1 = 0 ;
18506 int res1 = 0 ;
18507 int val2 ;
18508 int ecode2 = 0 ;
18509 int val3 ;
18510 int ecode3 = 0 ;
18511 PyObject * obj0 = 0 ;
18512 PyObject * obj1 = 0 ;
18513 PyObject * obj2 = 0 ;
18514 char * kwnames[] = {
18515 (char *) "self",(char *) "x",(char *) "y", NULL
18516 };
18517
18518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18520 if (!SWIG_IsOK(res1)) {
18521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18522 }
18523 arg1 = reinterpret_cast< wxDC * >(argp1);
18524 ecode2 = SWIG_AsVal_int(obj1, &val2);
18525 if (!SWIG_IsOK(ecode2)) {
18526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18527 }
18528 arg2 = static_cast< int >(val2);
18529 ecode3 = SWIG_AsVal_int(obj2, &val3);
18530 if (!SWIG_IsOK(ecode3)) {
18531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18532 }
18533 arg3 = static_cast< int >(val3);
18534 {
18535 PyThreadState* __tstate = wxPyBeginAllowThreads();
18536 result = wxDC_GetPixel(arg1,arg2,arg3);
18537 wxPyEndAllowThreads(__tstate);
18538 if (PyErr_Occurred()) SWIG_fail;
18539 }
18540 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18541 return resultobj;
18542 fail:
18543 return NULL;
18544 }
18545
18546
18547 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18548 PyObject *resultobj = 0;
18549 wxDC *arg1 = (wxDC *) 0 ;
18550 wxPoint *arg2 = 0 ;
18551 wxColour result;
18552 void *argp1 = 0 ;
18553 int res1 = 0 ;
18554 wxPoint temp2 ;
18555 PyObject * obj0 = 0 ;
18556 PyObject * obj1 = 0 ;
18557 char * kwnames[] = {
18558 (char *) "self",(char *) "pt", NULL
18559 };
18560
18561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18563 if (!SWIG_IsOK(res1)) {
18564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18565 }
18566 arg1 = reinterpret_cast< wxDC * >(argp1);
18567 {
18568 arg2 = &temp2;
18569 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18570 }
18571 {
18572 PyThreadState* __tstate = wxPyBeginAllowThreads();
18573 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18574 wxPyEndAllowThreads(__tstate);
18575 if (PyErr_Occurred()) SWIG_fail;
18576 }
18577 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18578 return resultobj;
18579 fail:
18580 return NULL;
18581 }
18582
18583
18584 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18585 PyObject *resultobj = 0;
18586 wxDC *arg1 = (wxDC *) 0 ;
18587 int arg2 ;
18588 int arg3 ;
18589 int arg4 ;
18590 int arg5 ;
18591 void *argp1 = 0 ;
18592 int res1 = 0 ;
18593 int val2 ;
18594 int ecode2 = 0 ;
18595 int val3 ;
18596 int ecode3 = 0 ;
18597 int val4 ;
18598 int ecode4 = 0 ;
18599 int val5 ;
18600 int ecode5 = 0 ;
18601 PyObject * obj0 = 0 ;
18602 PyObject * obj1 = 0 ;
18603 PyObject * obj2 = 0 ;
18604 PyObject * obj3 = 0 ;
18605 PyObject * obj4 = 0 ;
18606 char * kwnames[] = {
18607 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18608 };
18609
18610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18612 if (!SWIG_IsOK(res1)) {
18613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18614 }
18615 arg1 = reinterpret_cast< wxDC * >(argp1);
18616 ecode2 = SWIG_AsVal_int(obj1, &val2);
18617 if (!SWIG_IsOK(ecode2)) {
18618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18619 }
18620 arg2 = static_cast< int >(val2);
18621 ecode3 = SWIG_AsVal_int(obj2, &val3);
18622 if (!SWIG_IsOK(ecode3)) {
18623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18624 }
18625 arg3 = static_cast< int >(val3);
18626 ecode4 = SWIG_AsVal_int(obj3, &val4);
18627 if (!SWIG_IsOK(ecode4)) {
18628 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18629 }
18630 arg4 = static_cast< int >(val4);
18631 ecode5 = SWIG_AsVal_int(obj4, &val5);
18632 if (!SWIG_IsOK(ecode5)) {
18633 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18634 }
18635 arg5 = static_cast< int >(val5);
18636 {
18637 PyThreadState* __tstate = wxPyBeginAllowThreads();
18638 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18639 wxPyEndAllowThreads(__tstate);
18640 if (PyErr_Occurred()) SWIG_fail;
18641 }
18642 resultobj = SWIG_Py_Void();
18643 return resultobj;
18644 fail:
18645 return NULL;
18646 }
18647
18648
18649 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18650 PyObject *resultobj = 0;
18651 wxDC *arg1 = (wxDC *) 0 ;
18652 wxPoint *arg2 = 0 ;
18653 wxPoint *arg3 = 0 ;
18654 void *argp1 = 0 ;
18655 int res1 = 0 ;
18656 wxPoint temp2 ;
18657 wxPoint temp3 ;
18658 PyObject * obj0 = 0 ;
18659 PyObject * obj1 = 0 ;
18660 PyObject * obj2 = 0 ;
18661 char * kwnames[] = {
18662 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18663 };
18664
18665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18667 if (!SWIG_IsOK(res1)) {
18668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18669 }
18670 arg1 = reinterpret_cast< wxDC * >(argp1);
18671 {
18672 arg2 = &temp2;
18673 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18674 }
18675 {
18676 arg3 = &temp3;
18677 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18678 }
18679 {
18680 PyThreadState* __tstate = wxPyBeginAllowThreads();
18681 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18682 wxPyEndAllowThreads(__tstate);
18683 if (PyErr_Occurred()) SWIG_fail;
18684 }
18685 resultobj = SWIG_Py_Void();
18686 return resultobj;
18687 fail:
18688 return NULL;
18689 }
18690
18691
18692 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18693 PyObject *resultobj = 0;
18694 wxDC *arg1 = (wxDC *) 0 ;
18695 int arg2 ;
18696 int arg3 ;
18697 void *argp1 = 0 ;
18698 int res1 = 0 ;
18699 int val2 ;
18700 int ecode2 = 0 ;
18701 int val3 ;
18702 int ecode3 = 0 ;
18703 PyObject * obj0 = 0 ;
18704 PyObject * obj1 = 0 ;
18705 PyObject * obj2 = 0 ;
18706 char * kwnames[] = {
18707 (char *) "self",(char *) "x",(char *) "y", NULL
18708 };
18709
18710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18712 if (!SWIG_IsOK(res1)) {
18713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18714 }
18715 arg1 = reinterpret_cast< wxDC * >(argp1);
18716 ecode2 = SWIG_AsVal_int(obj1, &val2);
18717 if (!SWIG_IsOK(ecode2)) {
18718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18719 }
18720 arg2 = static_cast< int >(val2);
18721 ecode3 = SWIG_AsVal_int(obj2, &val3);
18722 if (!SWIG_IsOK(ecode3)) {
18723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18724 }
18725 arg3 = static_cast< int >(val3);
18726 {
18727 PyThreadState* __tstate = wxPyBeginAllowThreads();
18728 (arg1)->CrossHair(arg2,arg3);
18729 wxPyEndAllowThreads(__tstate);
18730 if (PyErr_Occurred()) SWIG_fail;
18731 }
18732 resultobj = SWIG_Py_Void();
18733 return resultobj;
18734 fail:
18735 return NULL;
18736 }
18737
18738
18739 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18740 PyObject *resultobj = 0;
18741 wxDC *arg1 = (wxDC *) 0 ;
18742 wxPoint *arg2 = 0 ;
18743 void *argp1 = 0 ;
18744 int res1 = 0 ;
18745 wxPoint temp2 ;
18746 PyObject * obj0 = 0 ;
18747 PyObject * obj1 = 0 ;
18748 char * kwnames[] = {
18749 (char *) "self",(char *) "pt", NULL
18750 };
18751
18752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18754 if (!SWIG_IsOK(res1)) {
18755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18756 }
18757 arg1 = reinterpret_cast< wxDC * >(argp1);
18758 {
18759 arg2 = &temp2;
18760 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18761 }
18762 {
18763 PyThreadState* __tstate = wxPyBeginAllowThreads();
18764 (arg1)->CrossHair((wxPoint const &)*arg2);
18765 wxPyEndAllowThreads(__tstate);
18766 if (PyErr_Occurred()) SWIG_fail;
18767 }
18768 resultobj = SWIG_Py_Void();
18769 return resultobj;
18770 fail:
18771 return NULL;
18772 }
18773
18774
18775 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18776 PyObject *resultobj = 0;
18777 wxDC *arg1 = (wxDC *) 0 ;
18778 int arg2 ;
18779 int arg3 ;
18780 int arg4 ;
18781 int arg5 ;
18782 int arg6 ;
18783 int arg7 ;
18784 void *argp1 = 0 ;
18785 int res1 = 0 ;
18786 int val2 ;
18787 int ecode2 = 0 ;
18788 int val3 ;
18789 int ecode3 = 0 ;
18790 int val4 ;
18791 int ecode4 = 0 ;
18792 int val5 ;
18793 int ecode5 = 0 ;
18794 int val6 ;
18795 int ecode6 = 0 ;
18796 int val7 ;
18797 int ecode7 = 0 ;
18798 PyObject * obj0 = 0 ;
18799 PyObject * obj1 = 0 ;
18800 PyObject * obj2 = 0 ;
18801 PyObject * obj3 = 0 ;
18802 PyObject * obj4 = 0 ;
18803 PyObject * obj5 = 0 ;
18804 PyObject * obj6 = 0 ;
18805 char * kwnames[] = {
18806 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18807 };
18808
18809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18811 if (!SWIG_IsOK(res1)) {
18812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18813 }
18814 arg1 = reinterpret_cast< wxDC * >(argp1);
18815 ecode2 = SWIG_AsVal_int(obj1, &val2);
18816 if (!SWIG_IsOK(ecode2)) {
18817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18818 }
18819 arg2 = static_cast< int >(val2);
18820 ecode3 = SWIG_AsVal_int(obj2, &val3);
18821 if (!SWIG_IsOK(ecode3)) {
18822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18823 }
18824 arg3 = static_cast< int >(val3);
18825 ecode4 = SWIG_AsVal_int(obj3, &val4);
18826 if (!SWIG_IsOK(ecode4)) {
18827 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18828 }
18829 arg4 = static_cast< int >(val4);
18830 ecode5 = SWIG_AsVal_int(obj4, &val5);
18831 if (!SWIG_IsOK(ecode5)) {
18832 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18833 }
18834 arg5 = static_cast< int >(val5);
18835 ecode6 = SWIG_AsVal_int(obj5, &val6);
18836 if (!SWIG_IsOK(ecode6)) {
18837 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18838 }
18839 arg6 = static_cast< int >(val6);
18840 ecode7 = SWIG_AsVal_int(obj6, &val7);
18841 if (!SWIG_IsOK(ecode7)) {
18842 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18843 }
18844 arg7 = static_cast< int >(val7);
18845 {
18846 PyThreadState* __tstate = wxPyBeginAllowThreads();
18847 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18848 wxPyEndAllowThreads(__tstate);
18849 if (PyErr_Occurred()) SWIG_fail;
18850 }
18851 resultobj = SWIG_Py_Void();
18852 return resultobj;
18853 fail:
18854 return NULL;
18855 }
18856
18857
18858 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18859 PyObject *resultobj = 0;
18860 wxDC *arg1 = (wxDC *) 0 ;
18861 wxPoint *arg2 = 0 ;
18862 wxPoint *arg3 = 0 ;
18863 wxPoint *arg4 = 0 ;
18864 void *argp1 = 0 ;
18865 int res1 = 0 ;
18866 wxPoint temp2 ;
18867 wxPoint temp3 ;
18868 wxPoint temp4 ;
18869 PyObject * obj0 = 0 ;
18870 PyObject * obj1 = 0 ;
18871 PyObject * obj2 = 0 ;
18872 PyObject * obj3 = 0 ;
18873 char * kwnames[] = {
18874 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18875 };
18876
18877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18879 if (!SWIG_IsOK(res1)) {
18880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18881 }
18882 arg1 = reinterpret_cast< wxDC * >(argp1);
18883 {
18884 arg2 = &temp2;
18885 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18886 }
18887 {
18888 arg3 = &temp3;
18889 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18890 }
18891 {
18892 arg4 = &temp4;
18893 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18894 }
18895 {
18896 PyThreadState* __tstate = wxPyBeginAllowThreads();
18897 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18898 wxPyEndAllowThreads(__tstate);
18899 if (PyErr_Occurred()) SWIG_fail;
18900 }
18901 resultobj = SWIG_Py_Void();
18902 return resultobj;
18903 fail:
18904 return NULL;
18905 }
18906
18907
18908 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18909 PyObject *resultobj = 0;
18910 wxDC *arg1 = (wxDC *) 0 ;
18911 int arg2 ;
18912 int arg3 ;
18913 int arg4 ;
18914 int arg5 ;
18915 void *argp1 = 0 ;
18916 int res1 = 0 ;
18917 int val2 ;
18918 int ecode2 = 0 ;
18919 int val3 ;
18920 int ecode3 = 0 ;
18921 int val4 ;
18922 int ecode4 = 0 ;
18923 int val5 ;
18924 int ecode5 = 0 ;
18925 PyObject * obj0 = 0 ;
18926 PyObject * obj1 = 0 ;
18927 PyObject * obj2 = 0 ;
18928 PyObject * obj3 = 0 ;
18929 PyObject * obj4 = 0 ;
18930 char * kwnames[] = {
18931 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18932 };
18933
18934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18936 if (!SWIG_IsOK(res1)) {
18937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18938 }
18939 arg1 = reinterpret_cast< wxDC * >(argp1);
18940 ecode2 = SWIG_AsVal_int(obj1, &val2);
18941 if (!SWIG_IsOK(ecode2)) {
18942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18943 }
18944 arg2 = static_cast< int >(val2);
18945 ecode3 = SWIG_AsVal_int(obj2, &val3);
18946 if (!SWIG_IsOK(ecode3)) {
18947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18948 }
18949 arg3 = static_cast< int >(val3);
18950 ecode4 = SWIG_AsVal_int(obj3, &val4);
18951 if (!SWIG_IsOK(ecode4)) {
18952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18953 }
18954 arg4 = static_cast< int >(val4);
18955 ecode5 = SWIG_AsVal_int(obj4, &val5);
18956 if (!SWIG_IsOK(ecode5)) {
18957 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18958 }
18959 arg5 = static_cast< int >(val5);
18960 {
18961 PyThreadState* __tstate = wxPyBeginAllowThreads();
18962 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18963 wxPyEndAllowThreads(__tstate);
18964 if (PyErr_Occurred()) SWIG_fail;
18965 }
18966 resultobj = SWIG_Py_Void();
18967 return resultobj;
18968 fail:
18969 return NULL;
18970 }
18971
18972
18973 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18974 PyObject *resultobj = 0;
18975 wxDC *arg1 = (wxDC *) 0 ;
18976 wxRect *arg2 = 0 ;
18977 void *argp1 = 0 ;
18978 int res1 = 0 ;
18979 wxRect temp2 ;
18980 PyObject * obj0 = 0 ;
18981 PyObject * obj1 = 0 ;
18982 char * kwnames[] = {
18983 (char *) "self",(char *) "rect", NULL
18984 };
18985
18986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18988 if (!SWIG_IsOK(res1)) {
18989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18990 }
18991 arg1 = reinterpret_cast< wxDC * >(argp1);
18992 {
18993 arg2 = &temp2;
18994 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18995 }
18996 {
18997 PyThreadState* __tstate = wxPyBeginAllowThreads();
18998 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18999 wxPyEndAllowThreads(__tstate);
19000 if (PyErr_Occurred()) SWIG_fail;
19001 }
19002 resultobj = SWIG_Py_Void();
19003 return resultobj;
19004 fail:
19005 return NULL;
19006 }
19007
19008
19009 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19010 PyObject *resultobj = 0;
19011 wxDC *arg1 = (wxDC *) 0 ;
19012 int arg2 ;
19013 int arg3 ;
19014 int arg4 ;
19015 int arg5 ;
19016 double arg6 ;
19017 double arg7 ;
19018 void *argp1 = 0 ;
19019 int res1 = 0 ;
19020 int val2 ;
19021 int ecode2 = 0 ;
19022 int val3 ;
19023 int ecode3 = 0 ;
19024 int val4 ;
19025 int ecode4 = 0 ;
19026 int val5 ;
19027 int ecode5 = 0 ;
19028 double val6 ;
19029 int ecode6 = 0 ;
19030 double val7 ;
19031 int ecode7 = 0 ;
19032 PyObject * obj0 = 0 ;
19033 PyObject * obj1 = 0 ;
19034 PyObject * obj2 = 0 ;
19035 PyObject * obj3 = 0 ;
19036 PyObject * obj4 = 0 ;
19037 PyObject * obj5 = 0 ;
19038 PyObject * obj6 = 0 ;
19039 char * kwnames[] = {
19040 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
19041 };
19042
19043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
19044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19045 if (!SWIG_IsOK(res1)) {
19046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
19047 }
19048 arg1 = reinterpret_cast< wxDC * >(argp1);
19049 ecode2 = SWIG_AsVal_int(obj1, &val2);
19050 if (!SWIG_IsOK(ecode2)) {
19051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
19052 }
19053 arg2 = static_cast< int >(val2);
19054 ecode3 = SWIG_AsVal_int(obj2, &val3);
19055 if (!SWIG_IsOK(ecode3)) {
19056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
19057 }
19058 arg3 = static_cast< int >(val3);
19059 ecode4 = SWIG_AsVal_int(obj3, &val4);
19060 if (!SWIG_IsOK(ecode4)) {
19061 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
19062 }
19063 arg4 = static_cast< int >(val4);
19064 ecode5 = SWIG_AsVal_int(obj4, &val5);
19065 if (!SWIG_IsOK(ecode5)) {
19066 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
19067 }
19068 arg5 = static_cast< int >(val5);
19069 ecode6 = SWIG_AsVal_double(obj5, &val6);
19070 if (!SWIG_IsOK(ecode6)) {
19071 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
19072 }
19073 arg6 = static_cast< double >(val6);
19074 ecode7 = SWIG_AsVal_double(obj6, &val7);
19075 if (!SWIG_IsOK(ecode7)) {
19076 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
19077 }
19078 arg7 = static_cast< double >(val7);
19079 {
19080 PyThreadState* __tstate = wxPyBeginAllowThreads();
19081 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
19082 wxPyEndAllowThreads(__tstate);
19083 if (PyErr_Occurred()) SWIG_fail;
19084 }
19085 resultobj = SWIG_Py_Void();
19086 return resultobj;
19087 fail:
19088 return NULL;
19089 }
19090
19091
19092 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19093 PyObject *resultobj = 0;
19094 wxDC *arg1 = (wxDC *) 0 ;
19095 wxPoint *arg2 = 0 ;
19096 wxSize *arg3 = 0 ;
19097 double arg4 ;
19098 double arg5 ;
19099 void *argp1 = 0 ;
19100 int res1 = 0 ;
19101 wxPoint temp2 ;
19102 wxSize temp3 ;
19103 double val4 ;
19104 int ecode4 = 0 ;
19105 double val5 ;
19106 int ecode5 = 0 ;
19107 PyObject * obj0 = 0 ;
19108 PyObject * obj1 = 0 ;
19109 PyObject * obj2 = 0 ;
19110 PyObject * obj3 = 0 ;
19111 PyObject * obj4 = 0 ;
19112 char * kwnames[] = {
19113 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
19114 };
19115
19116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19118 if (!SWIG_IsOK(res1)) {
19119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19120 }
19121 arg1 = reinterpret_cast< wxDC * >(argp1);
19122 {
19123 arg2 = &temp2;
19124 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19125 }
19126 {
19127 arg3 = &temp3;
19128 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19129 }
19130 ecode4 = SWIG_AsVal_double(obj3, &val4);
19131 if (!SWIG_IsOK(ecode4)) {
19132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
19133 }
19134 arg4 = static_cast< double >(val4);
19135 ecode5 = SWIG_AsVal_double(obj4, &val5);
19136 if (!SWIG_IsOK(ecode5)) {
19137 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
19138 }
19139 arg5 = static_cast< double >(val5);
19140 {
19141 PyThreadState* __tstate = wxPyBeginAllowThreads();
19142 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
19143 wxPyEndAllowThreads(__tstate);
19144 if (PyErr_Occurred()) SWIG_fail;
19145 }
19146 resultobj = SWIG_Py_Void();
19147 return resultobj;
19148 fail:
19149 return NULL;
19150 }
19151
19152
19153 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19154 PyObject *resultobj = 0;
19155 wxDC *arg1 = (wxDC *) 0 ;
19156 int arg2 ;
19157 int arg3 ;
19158 void *argp1 = 0 ;
19159 int res1 = 0 ;
19160 int val2 ;
19161 int ecode2 = 0 ;
19162 int val3 ;
19163 int ecode3 = 0 ;
19164 PyObject * obj0 = 0 ;
19165 PyObject * obj1 = 0 ;
19166 PyObject * obj2 = 0 ;
19167 char * kwnames[] = {
19168 (char *) "self",(char *) "x",(char *) "y", NULL
19169 };
19170
19171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19173 if (!SWIG_IsOK(res1)) {
19174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19175 }
19176 arg1 = reinterpret_cast< wxDC * >(argp1);
19177 ecode2 = SWIG_AsVal_int(obj1, &val2);
19178 if (!SWIG_IsOK(ecode2)) {
19179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
19180 }
19181 arg2 = static_cast< int >(val2);
19182 ecode3 = SWIG_AsVal_int(obj2, &val3);
19183 if (!SWIG_IsOK(ecode3)) {
19184 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
19185 }
19186 arg3 = static_cast< int >(val3);
19187 {
19188 PyThreadState* __tstate = wxPyBeginAllowThreads();
19189 (arg1)->DrawPoint(arg2,arg3);
19190 wxPyEndAllowThreads(__tstate);
19191 if (PyErr_Occurred()) SWIG_fail;
19192 }
19193 resultobj = SWIG_Py_Void();
19194 return resultobj;
19195 fail:
19196 return NULL;
19197 }
19198
19199
19200 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19201 PyObject *resultobj = 0;
19202 wxDC *arg1 = (wxDC *) 0 ;
19203 wxPoint *arg2 = 0 ;
19204 void *argp1 = 0 ;
19205 int res1 = 0 ;
19206 wxPoint temp2 ;
19207 PyObject * obj0 = 0 ;
19208 PyObject * obj1 = 0 ;
19209 char * kwnames[] = {
19210 (char *) "self",(char *) "pt", NULL
19211 };
19212
19213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19215 if (!SWIG_IsOK(res1)) {
19216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19217 }
19218 arg1 = reinterpret_cast< wxDC * >(argp1);
19219 {
19220 arg2 = &temp2;
19221 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19222 }
19223 {
19224 PyThreadState* __tstate = wxPyBeginAllowThreads();
19225 (arg1)->DrawPoint((wxPoint const &)*arg2);
19226 wxPyEndAllowThreads(__tstate);
19227 if (PyErr_Occurred()) SWIG_fail;
19228 }
19229 resultobj = SWIG_Py_Void();
19230 return resultobj;
19231 fail:
19232 return NULL;
19233 }
19234
19235
19236 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19237 PyObject *resultobj = 0;
19238 wxDC *arg1 = (wxDC *) 0 ;
19239 int arg2 ;
19240 int arg3 ;
19241 int arg4 ;
19242 int arg5 ;
19243 void *argp1 = 0 ;
19244 int res1 = 0 ;
19245 int val2 ;
19246 int ecode2 = 0 ;
19247 int val3 ;
19248 int ecode3 = 0 ;
19249 int val4 ;
19250 int ecode4 = 0 ;
19251 int val5 ;
19252 int ecode5 = 0 ;
19253 PyObject * obj0 = 0 ;
19254 PyObject * obj1 = 0 ;
19255 PyObject * obj2 = 0 ;
19256 PyObject * obj3 = 0 ;
19257 PyObject * obj4 = 0 ;
19258 char * kwnames[] = {
19259 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19260 };
19261
19262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19264 if (!SWIG_IsOK(res1)) {
19265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19266 }
19267 arg1 = reinterpret_cast< wxDC * >(argp1);
19268 ecode2 = SWIG_AsVal_int(obj1, &val2);
19269 if (!SWIG_IsOK(ecode2)) {
19270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
19271 }
19272 arg2 = static_cast< int >(val2);
19273 ecode3 = SWIG_AsVal_int(obj2, &val3);
19274 if (!SWIG_IsOK(ecode3)) {
19275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
19276 }
19277 arg3 = static_cast< int >(val3);
19278 ecode4 = SWIG_AsVal_int(obj3, &val4);
19279 if (!SWIG_IsOK(ecode4)) {
19280 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
19281 }
19282 arg4 = static_cast< int >(val4);
19283 ecode5 = SWIG_AsVal_int(obj4, &val5);
19284 if (!SWIG_IsOK(ecode5)) {
19285 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
19286 }
19287 arg5 = static_cast< int >(val5);
19288 {
19289 PyThreadState* __tstate = wxPyBeginAllowThreads();
19290 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
19291 wxPyEndAllowThreads(__tstate);
19292 if (PyErr_Occurred()) SWIG_fail;
19293 }
19294 resultobj = SWIG_Py_Void();
19295 return resultobj;
19296 fail:
19297 return NULL;
19298 }
19299
19300
19301 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19302 PyObject *resultobj = 0;
19303 wxDC *arg1 = (wxDC *) 0 ;
19304 wxRect *arg2 = 0 ;
19305 void *argp1 = 0 ;
19306 int res1 = 0 ;
19307 wxRect temp2 ;
19308 PyObject * obj0 = 0 ;
19309 PyObject * obj1 = 0 ;
19310 char * kwnames[] = {
19311 (char *) "self",(char *) "rect", NULL
19312 };
19313
19314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
19315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19316 if (!SWIG_IsOK(res1)) {
19317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19318 }
19319 arg1 = reinterpret_cast< wxDC * >(argp1);
19320 {
19321 arg2 = &temp2;
19322 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19323 }
19324 {
19325 PyThreadState* __tstate = wxPyBeginAllowThreads();
19326 (arg1)->DrawRectangle((wxRect const &)*arg2);
19327 wxPyEndAllowThreads(__tstate);
19328 if (PyErr_Occurred()) SWIG_fail;
19329 }
19330 resultobj = SWIG_Py_Void();
19331 return resultobj;
19332 fail:
19333 return NULL;
19334 }
19335
19336
19337 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19338 PyObject *resultobj = 0;
19339 wxDC *arg1 = (wxDC *) 0 ;
19340 wxPoint *arg2 = 0 ;
19341 wxSize *arg3 = 0 ;
19342 void *argp1 = 0 ;
19343 int res1 = 0 ;
19344 wxPoint temp2 ;
19345 wxSize temp3 ;
19346 PyObject * obj0 = 0 ;
19347 PyObject * obj1 = 0 ;
19348 PyObject * obj2 = 0 ;
19349 char * kwnames[] = {
19350 (char *) "self",(char *) "pt",(char *) "sz", NULL
19351 };
19352
19353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19355 if (!SWIG_IsOK(res1)) {
19356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19357 }
19358 arg1 = reinterpret_cast< wxDC * >(argp1);
19359 {
19360 arg2 = &temp2;
19361 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19362 }
19363 {
19364 arg3 = &temp3;
19365 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19366 }
19367 {
19368 PyThreadState* __tstate = wxPyBeginAllowThreads();
19369 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19370 wxPyEndAllowThreads(__tstate);
19371 if (PyErr_Occurred()) SWIG_fail;
19372 }
19373 resultobj = SWIG_Py_Void();
19374 return resultobj;
19375 fail:
19376 return NULL;
19377 }
19378
19379
19380 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19381 PyObject *resultobj = 0;
19382 wxDC *arg1 = (wxDC *) 0 ;
19383 int arg2 ;
19384 int arg3 ;
19385 int arg4 ;
19386 int arg5 ;
19387 double arg6 ;
19388 void *argp1 = 0 ;
19389 int res1 = 0 ;
19390 int val2 ;
19391 int ecode2 = 0 ;
19392 int val3 ;
19393 int ecode3 = 0 ;
19394 int val4 ;
19395 int ecode4 = 0 ;
19396 int val5 ;
19397 int ecode5 = 0 ;
19398 double val6 ;
19399 int ecode6 = 0 ;
19400 PyObject * obj0 = 0 ;
19401 PyObject * obj1 = 0 ;
19402 PyObject * obj2 = 0 ;
19403 PyObject * obj3 = 0 ;
19404 PyObject * obj4 = 0 ;
19405 PyObject * obj5 = 0 ;
19406 char * kwnames[] = {
19407 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19408 };
19409
19410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19412 if (!SWIG_IsOK(res1)) {
19413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19414 }
19415 arg1 = reinterpret_cast< wxDC * >(argp1);
19416 ecode2 = SWIG_AsVal_int(obj1, &val2);
19417 if (!SWIG_IsOK(ecode2)) {
19418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19419 }
19420 arg2 = static_cast< int >(val2);
19421 ecode3 = SWIG_AsVal_int(obj2, &val3);
19422 if (!SWIG_IsOK(ecode3)) {
19423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19424 }
19425 arg3 = static_cast< int >(val3);
19426 ecode4 = SWIG_AsVal_int(obj3, &val4);
19427 if (!SWIG_IsOK(ecode4)) {
19428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19429 }
19430 arg4 = static_cast< int >(val4);
19431 ecode5 = SWIG_AsVal_int(obj4, &val5);
19432 if (!SWIG_IsOK(ecode5)) {
19433 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19434 }
19435 arg5 = static_cast< int >(val5);
19436 ecode6 = SWIG_AsVal_double(obj5, &val6);
19437 if (!SWIG_IsOK(ecode6)) {
19438 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19439 }
19440 arg6 = static_cast< double >(val6);
19441 {
19442 PyThreadState* __tstate = wxPyBeginAllowThreads();
19443 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19444 wxPyEndAllowThreads(__tstate);
19445 if (PyErr_Occurred()) SWIG_fail;
19446 }
19447 resultobj = SWIG_Py_Void();
19448 return resultobj;
19449 fail:
19450 return NULL;
19451 }
19452
19453
19454 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19455 PyObject *resultobj = 0;
19456 wxDC *arg1 = (wxDC *) 0 ;
19457 wxRect *arg2 = 0 ;
19458 double arg3 ;
19459 void *argp1 = 0 ;
19460 int res1 = 0 ;
19461 wxRect temp2 ;
19462 double val3 ;
19463 int ecode3 = 0 ;
19464 PyObject * obj0 = 0 ;
19465 PyObject * obj1 = 0 ;
19466 PyObject * obj2 = 0 ;
19467 char * kwnames[] = {
19468 (char *) "self",(char *) "r",(char *) "radius", NULL
19469 };
19470
19471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19473 if (!SWIG_IsOK(res1)) {
19474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19475 }
19476 arg1 = reinterpret_cast< wxDC * >(argp1);
19477 {
19478 arg2 = &temp2;
19479 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19480 }
19481 ecode3 = SWIG_AsVal_double(obj2, &val3);
19482 if (!SWIG_IsOK(ecode3)) {
19483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19484 }
19485 arg3 = static_cast< double >(val3);
19486 {
19487 PyThreadState* __tstate = wxPyBeginAllowThreads();
19488 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19489 wxPyEndAllowThreads(__tstate);
19490 if (PyErr_Occurred()) SWIG_fail;
19491 }
19492 resultobj = SWIG_Py_Void();
19493 return resultobj;
19494 fail:
19495 return NULL;
19496 }
19497
19498
19499 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19500 PyObject *resultobj = 0;
19501 wxDC *arg1 = (wxDC *) 0 ;
19502 wxPoint *arg2 = 0 ;
19503 wxSize *arg3 = 0 ;
19504 double arg4 ;
19505 void *argp1 = 0 ;
19506 int res1 = 0 ;
19507 wxPoint temp2 ;
19508 wxSize temp3 ;
19509 double val4 ;
19510 int ecode4 = 0 ;
19511 PyObject * obj0 = 0 ;
19512 PyObject * obj1 = 0 ;
19513 PyObject * obj2 = 0 ;
19514 PyObject * obj3 = 0 ;
19515 char * kwnames[] = {
19516 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19517 };
19518
19519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19521 if (!SWIG_IsOK(res1)) {
19522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19523 }
19524 arg1 = reinterpret_cast< wxDC * >(argp1);
19525 {
19526 arg2 = &temp2;
19527 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19528 }
19529 {
19530 arg3 = &temp3;
19531 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19532 }
19533 ecode4 = SWIG_AsVal_double(obj3, &val4);
19534 if (!SWIG_IsOK(ecode4)) {
19535 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19536 }
19537 arg4 = static_cast< double >(val4);
19538 {
19539 PyThreadState* __tstate = wxPyBeginAllowThreads();
19540 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19541 wxPyEndAllowThreads(__tstate);
19542 if (PyErr_Occurred()) SWIG_fail;
19543 }
19544 resultobj = SWIG_Py_Void();
19545 return resultobj;
19546 fail:
19547 return NULL;
19548 }
19549
19550
19551 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19552 PyObject *resultobj = 0;
19553 wxDC *arg1 = (wxDC *) 0 ;
19554 int arg2 ;
19555 int arg3 ;
19556 int arg4 ;
19557 void *argp1 = 0 ;
19558 int res1 = 0 ;
19559 int val2 ;
19560 int ecode2 = 0 ;
19561 int val3 ;
19562 int ecode3 = 0 ;
19563 int val4 ;
19564 int ecode4 = 0 ;
19565 PyObject * obj0 = 0 ;
19566 PyObject * obj1 = 0 ;
19567 PyObject * obj2 = 0 ;
19568 PyObject * obj3 = 0 ;
19569 char * kwnames[] = {
19570 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19571 };
19572
19573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19575 if (!SWIG_IsOK(res1)) {
19576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19577 }
19578 arg1 = reinterpret_cast< wxDC * >(argp1);
19579 ecode2 = SWIG_AsVal_int(obj1, &val2);
19580 if (!SWIG_IsOK(ecode2)) {
19581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19582 }
19583 arg2 = static_cast< int >(val2);
19584 ecode3 = SWIG_AsVal_int(obj2, &val3);
19585 if (!SWIG_IsOK(ecode3)) {
19586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19587 }
19588 arg3 = static_cast< int >(val3);
19589 ecode4 = SWIG_AsVal_int(obj3, &val4);
19590 if (!SWIG_IsOK(ecode4)) {
19591 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19592 }
19593 arg4 = static_cast< int >(val4);
19594 {
19595 PyThreadState* __tstate = wxPyBeginAllowThreads();
19596 (arg1)->DrawCircle(arg2,arg3,arg4);
19597 wxPyEndAllowThreads(__tstate);
19598 if (PyErr_Occurred()) SWIG_fail;
19599 }
19600 resultobj = SWIG_Py_Void();
19601 return resultobj;
19602 fail:
19603 return NULL;
19604 }
19605
19606
19607 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19608 PyObject *resultobj = 0;
19609 wxDC *arg1 = (wxDC *) 0 ;
19610 wxPoint *arg2 = 0 ;
19611 int arg3 ;
19612 void *argp1 = 0 ;
19613 int res1 = 0 ;
19614 wxPoint temp2 ;
19615 int val3 ;
19616 int ecode3 = 0 ;
19617 PyObject * obj0 = 0 ;
19618 PyObject * obj1 = 0 ;
19619 PyObject * obj2 = 0 ;
19620 char * kwnames[] = {
19621 (char *) "self",(char *) "pt",(char *) "radius", NULL
19622 };
19623
19624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19626 if (!SWIG_IsOK(res1)) {
19627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19628 }
19629 arg1 = reinterpret_cast< wxDC * >(argp1);
19630 {
19631 arg2 = &temp2;
19632 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19633 }
19634 ecode3 = SWIG_AsVal_int(obj2, &val3);
19635 if (!SWIG_IsOK(ecode3)) {
19636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19637 }
19638 arg3 = static_cast< int >(val3);
19639 {
19640 PyThreadState* __tstate = wxPyBeginAllowThreads();
19641 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19642 wxPyEndAllowThreads(__tstate);
19643 if (PyErr_Occurred()) SWIG_fail;
19644 }
19645 resultobj = SWIG_Py_Void();
19646 return resultobj;
19647 fail:
19648 return NULL;
19649 }
19650
19651
19652 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19653 PyObject *resultobj = 0;
19654 wxDC *arg1 = (wxDC *) 0 ;
19655 int arg2 ;
19656 int arg3 ;
19657 int arg4 ;
19658 int arg5 ;
19659 void *argp1 = 0 ;
19660 int res1 = 0 ;
19661 int val2 ;
19662 int ecode2 = 0 ;
19663 int val3 ;
19664 int ecode3 = 0 ;
19665 int val4 ;
19666 int ecode4 = 0 ;
19667 int val5 ;
19668 int ecode5 = 0 ;
19669 PyObject * obj0 = 0 ;
19670 PyObject * obj1 = 0 ;
19671 PyObject * obj2 = 0 ;
19672 PyObject * obj3 = 0 ;
19673 PyObject * obj4 = 0 ;
19674 char * kwnames[] = {
19675 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19676 };
19677
19678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19680 if (!SWIG_IsOK(res1)) {
19681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19682 }
19683 arg1 = reinterpret_cast< wxDC * >(argp1);
19684 ecode2 = SWIG_AsVal_int(obj1, &val2);
19685 if (!SWIG_IsOK(ecode2)) {
19686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19687 }
19688 arg2 = static_cast< int >(val2);
19689 ecode3 = SWIG_AsVal_int(obj2, &val3);
19690 if (!SWIG_IsOK(ecode3)) {
19691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19692 }
19693 arg3 = static_cast< int >(val3);
19694 ecode4 = SWIG_AsVal_int(obj3, &val4);
19695 if (!SWIG_IsOK(ecode4)) {
19696 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19697 }
19698 arg4 = static_cast< int >(val4);
19699 ecode5 = SWIG_AsVal_int(obj4, &val5);
19700 if (!SWIG_IsOK(ecode5)) {
19701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19702 }
19703 arg5 = static_cast< int >(val5);
19704 {
19705 PyThreadState* __tstate = wxPyBeginAllowThreads();
19706 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19707 wxPyEndAllowThreads(__tstate);
19708 if (PyErr_Occurred()) SWIG_fail;
19709 }
19710 resultobj = SWIG_Py_Void();
19711 return resultobj;
19712 fail:
19713 return NULL;
19714 }
19715
19716
19717 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19718 PyObject *resultobj = 0;
19719 wxDC *arg1 = (wxDC *) 0 ;
19720 wxRect *arg2 = 0 ;
19721 void *argp1 = 0 ;
19722 int res1 = 0 ;
19723 wxRect temp2 ;
19724 PyObject * obj0 = 0 ;
19725 PyObject * obj1 = 0 ;
19726 char * kwnames[] = {
19727 (char *) "self",(char *) "rect", NULL
19728 };
19729
19730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19732 if (!SWIG_IsOK(res1)) {
19733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19734 }
19735 arg1 = reinterpret_cast< wxDC * >(argp1);
19736 {
19737 arg2 = &temp2;
19738 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19739 }
19740 {
19741 PyThreadState* __tstate = wxPyBeginAllowThreads();
19742 (arg1)->DrawEllipse((wxRect const &)*arg2);
19743 wxPyEndAllowThreads(__tstate);
19744 if (PyErr_Occurred()) SWIG_fail;
19745 }
19746 resultobj = SWIG_Py_Void();
19747 return resultobj;
19748 fail:
19749 return NULL;
19750 }
19751
19752
19753 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19754 PyObject *resultobj = 0;
19755 wxDC *arg1 = (wxDC *) 0 ;
19756 wxPoint *arg2 = 0 ;
19757 wxSize *arg3 = 0 ;
19758 void *argp1 = 0 ;
19759 int res1 = 0 ;
19760 wxPoint temp2 ;
19761 wxSize temp3 ;
19762 PyObject * obj0 = 0 ;
19763 PyObject * obj1 = 0 ;
19764 PyObject * obj2 = 0 ;
19765 char * kwnames[] = {
19766 (char *) "self",(char *) "pt",(char *) "sz", NULL
19767 };
19768
19769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19771 if (!SWIG_IsOK(res1)) {
19772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19773 }
19774 arg1 = reinterpret_cast< wxDC * >(argp1);
19775 {
19776 arg2 = &temp2;
19777 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19778 }
19779 {
19780 arg3 = &temp3;
19781 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19782 }
19783 {
19784 PyThreadState* __tstate = wxPyBeginAllowThreads();
19785 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19786 wxPyEndAllowThreads(__tstate);
19787 if (PyErr_Occurred()) SWIG_fail;
19788 }
19789 resultobj = SWIG_Py_Void();
19790 return resultobj;
19791 fail:
19792 return NULL;
19793 }
19794
19795
19796 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19797 PyObject *resultobj = 0;
19798 wxDC *arg1 = (wxDC *) 0 ;
19799 wxIcon *arg2 = 0 ;
19800 int arg3 ;
19801 int arg4 ;
19802 void *argp1 = 0 ;
19803 int res1 = 0 ;
19804 void *argp2 = 0 ;
19805 int res2 = 0 ;
19806 int val3 ;
19807 int ecode3 = 0 ;
19808 int val4 ;
19809 int ecode4 = 0 ;
19810 PyObject * obj0 = 0 ;
19811 PyObject * obj1 = 0 ;
19812 PyObject * obj2 = 0 ;
19813 PyObject * obj3 = 0 ;
19814 char * kwnames[] = {
19815 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19816 };
19817
19818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19820 if (!SWIG_IsOK(res1)) {
19821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19822 }
19823 arg1 = reinterpret_cast< wxDC * >(argp1);
19824 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19825 if (!SWIG_IsOK(res2)) {
19826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19827 }
19828 if (!argp2) {
19829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19830 }
19831 arg2 = reinterpret_cast< wxIcon * >(argp2);
19832 ecode3 = SWIG_AsVal_int(obj2, &val3);
19833 if (!SWIG_IsOK(ecode3)) {
19834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19835 }
19836 arg3 = static_cast< int >(val3);
19837 ecode4 = SWIG_AsVal_int(obj3, &val4);
19838 if (!SWIG_IsOK(ecode4)) {
19839 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19840 }
19841 arg4 = static_cast< int >(val4);
19842 {
19843 PyThreadState* __tstate = wxPyBeginAllowThreads();
19844 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19845 wxPyEndAllowThreads(__tstate);
19846 if (PyErr_Occurred()) SWIG_fail;
19847 }
19848 resultobj = SWIG_Py_Void();
19849 return resultobj;
19850 fail:
19851 return NULL;
19852 }
19853
19854
19855 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19856 PyObject *resultobj = 0;
19857 wxDC *arg1 = (wxDC *) 0 ;
19858 wxIcon *arg2 = 0 ;
19859 wxPoint *arg3 = 0 ;
19860 void *argp1 = 0 ;
19861 int res1 = 0 ;
19862 void *argp2 = 0 ;
19863 int res2 = 0 ;
19864 wxPoint temp3 ;
19865 PyObject * obj0 = 0 ;
19866 PyObject * obj1 = 0 ;
19867 PyObject * obj2 = 0 ;
19868 char * kwnames[] = {
19869 (char *) "self",(char *) "icon",(char *) "pt", NULL
19870 };
19871
19872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19874 if (!SWIG_IsOK(res1)) {
19875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19876 }
19877 arg1 = reinterpret_cast< wxDC * >(argp1);
19878 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19879 if (!SWIG_IsOK(res2)) {
19880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19881 }
19882 if (!argp2) {
19883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19884 }
19885 arg2 = reinterpret_cast< wxIcon * >(argp2);
19886 {
19887 arg3 = &temp3;
19888 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19889 }
19890 {
19891 PyThreadState* __tstate = wxPyBeginAllowThreads();
19892 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19893 wxPyEndAllowThreads(__tstate);
19894 if (PyErr_Occurred()) SWIG_fail;
19895 }
19896 resultobj = SWIG_Py_Void();
19897 return resultobj;
19898 fail:
19899 return NULL;
19900 }
19901
19902
19903 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19904 PyObject *resultobj = 0;
19905 wxDC *arg1 = (wxDC *) 0 ;
19906 wxBitmap *arg2 = 0 ;
19907 int arg3 ;
19908 int arg4 ;
19909 bool arg5 = (bool) false ;
19910 void *argp1 = 0 ;
19911 int res1 = 0 ;
19912 void *argp2 = 0 ;
19913 int res2 = 0 ;
19914 int val3 ;
19915 int ecode3 = 0 ;
19916 int val4 ;
19917 int ecode4 = 0 ;
19918 bool val5 ;
19919 int ecode5 = 0 ;
19920 PyObject * obj0 = 0 ;
19921 PyObject * obj1 = 0 ;
19922 PyObject * obj2 = 0 ;
19923 PyObject * obj3 = 0 ;
19924 PyObject * obj4 = 0 ;
19925 char * kwnames[] = {
19926 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19927 };
19928
19929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19931 if (!SWIG_IsOK(res1)) {
19932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19933 }
19934 arg1 = reinterpret_cast< wxDC * >(argp1);
19935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19936 if (!SWIG_IsOK(res2)) {
19937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19938 }
19939 if (!argp2) {
19940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19941 }
19942 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19943 ecode3 = SWIG_AsVal_int(obj2, &val3);
19944 if (!SWIG_IsOK(ecode3)) {
19945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19946 }
19947 arg3 = static_cast< int >(val3);
19948 ecode4 = SWIG_AsVal_int(obj3, &val4);
19949 if (!SWIG_IsOK(ecode4)) {
19950 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19951 }
19952 arg4 = static_cast< int >(val4);
19953 if (obj4) {
19954 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19955 if (!SWIG_IsOK(ecode5)) {
19956 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19957 }
19958 arg5 = static_cast< bool >(val5);
19959 }
19960 {
19961 PyThreadState* __tstate = wxPyBeginAllowThreads();
19962 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19963 wxPyEndAllowThreads(__tstate);
19964 if (PyErr_Occurred()) SWIG_fail;
19965 }
19966 resultobj = SWIG_Py_Void();
19967 return resultobj;
19968 fail:
19969 return NULL;
19970 }
19971
19972
19973 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19974 PyObject *resultobj = 0;
19975 wxDC *arg1 = (wxDC *) 0 ;
19976 wxBitmap *arg2 = 0 ;
19977 wxPoint *arg3 = 0 ;
19978 bool arg4 = (bool) false ;
19979 void *argp1 = 0 ;
19980 int res1 = 0 ;
19981 void *argp2 = 0 ;
19982 int res2 = 0 ;
19983 wxPoint temp3 ;
19984 bool val4 ;
19985 int ecode4 = 0 ;
19986 PyObject * obj0 = 0 ;
19987 PyObject * obj1 = 0 ;
19988 PyObject * obj2 = 0 ;
19989 PyObject * obj3 = 0 ;
19990 char * kwnames[] = {
19991 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19992 };
19993
19994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19996 if (!SWIG_IsOK(res1)) {
19997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19998 }
19999 arg1 = reinterpret_cast< wxDC * >(argp1);
20000 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20001 if (!SWIG_IsOK(res2)) {
20002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20003 }
20004 if (!argp2) {
20005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20006 }
20007 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20008 {
20009 arg3 = &temp3;
20010 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20011 }
20012 if (obj3) {
20013 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20014 if (!SWIG_IsOK(ecode4)) {
20015 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
20016 }
20017 arg4 = static_cast< bool >(val4);
20018 }
20019 {
20020 PyThreadState* __tstate = wxPyBeginAllowThreads();
20021 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
20022 wxPyEndAllowThreads(__tstate);
20023 if (PyErr_Occurred()) SWIG_fail;
20024 }
20025 resultobj = SWIG_Py_Void();
20026 return resultobj;
20027 fail:
20028 return NULL;
20029 }
20030
20031
20032 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20033 PyObject *resultobj = 0;
20034 wxDC *arg1 = (wxDC *) 0 ;
20035 wxString *arg2 = 0 ;
20036 int arg3 ;
20037 int arg4 ;
20038 void *argp1 = 0 ;
20039 int res1 = 0 ;
20040 bool temp2 = false ;
20041 int val3 ;
20042 int ecode3 = 0 ;
20043 int val4 ;
20044 int ecode4 = 0 ;
20045 PyObject * obj0 = 0 ;
20046 PyObject * obj1 = 0 ;
20047 PyObject * obj2 = 0 ;
20048 PyObject * obj3 = 0 ;
20049 char * kwnames[] = {
20050 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
20051 };
20052
20053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20055 if (!SWIG_IsOK(res1)) {
20056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
20057 }
20058 arg1 = reinterpret_cast< wxDC * >(argp1);
20059 {
20060 arg2 = wxString_in_helper(obj1);
20061 if (arg2 == NULL) SWIG_fail;
20062 temp2 = true;
20063 }
20064 ecode3 = SWIG_AsVal_int(obj2, &val3);
20065 if (!SWIG_IsOK(ecode3)) {
20066 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
20067 }
20068 arg3 = static_cast< int >(val3);
20069 ecode4 = SWIG_AsVal_int(obj3, &val4);
20070 if (!SWIG_IsOK(ecode4)) {
20071 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
20072 }
20073 arg4 = static_cast< int >(val4);
20074 {
20075 PyThreadState* __tstate = wxPyBeginAllowThreads();
20076 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
20077 wxPyEndAllowThreads(__tstate);
20078 if (PyErr_Occurred()) SWIG_fail;
20079 }
20080 resultobj = SWIG_Py_Void();
20081 {
20082 if (temp2)
20083 delete arg2;
20084 }
20085 return resultobj;
20086 fail:
20087 {
20088 if (temp2)
20089 delete arg2;
20090 }
20091 return NULL;
20092 }
20093
20094
20095 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20096 PyObject *resultobj = 0;
20097 wxDC *arg1 = (wxDC *) 0 ;
20098 wxString *arg2 = 0 ;
20099 wxPoint *arg3 = 0 ;
20100 void *argp1 = 0 ;
20101 int res1 = 0 ;
20102 bool temp2 = false ;
20103 wxPoint temp3 ;
20104 PyObject * obj0 = 0 ;
20105 PyObject * obj1 = 0 ;
20106 PyObject * obj2 = 0 ;
20107 char * kwnames[] = {
20108 (char *) "self",(char *) "text",(char *) "pt", NULL
20109 };
20110
20111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20113 if (!SWIG_IsOK(res1)) {
20114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20115 }
20116 arg1 = reinterpret_cast< wxDC * >(argp1);
20117 {
20118 arg2 = wxString_in_helper(obj1);
20119 if (arg2 == NULL) SWIG_fail;
20120 temp2 = true;
20121 }
20122 {
20123 arg3 = &temp3;
20124 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20125 }
20126 {
20127 PyThreadState* __tstate = wxPyBeginAllowThreads();
20128 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
20129 wxPyEndAllowThreads(__tstate);
20130 if (PyErr_Occurred()) SWIG_fail;
20131 }
20132 resultobj = SWIG_Py_Void();
20133 {
20134 if (temp2)
20135 delete arg2;
20136 }
20137 return resultobj;
20138 fail:
20139 {
20140 if (temp2)
20141 delete arg2;
20142 }
20143 return NULL;
20144 }
20145
20146
20147 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20148 PyObject *resultobj = 0;
20149 wxDC *arg1 = (wxDC *) 0 ;
20150 wxString *arg2 = 0 ;
20151 int arg3 ;
20152 int arg4 ;
20153 double arg5 ;
20154 void *argp1 = 0 ;
20155 int res1 = 0 ;
20156 bool temp2 = false ;
20157 int val3 ;
20158 int ecode3 = 0 ;
20159 int val4 ;
20160 int ecode4 = 0 ;
20161 double val5 ;
20162 int ecode5 = 0 ;
20163 PyObject * obj0 = 0 ;
20164 PyObject * obj1 = 0 ;
20165 PyObject * obj2 = 0 ;
20166 PyObject * obj3 = 0 ;
20167 PyObject * obj4 = 0 ;
20168 char * kwnames[] = {
20169 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
20170 };
20171
20172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20174 if (!SWIG_IsOK(res1)) {
20175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
20176 }
20177 arg1 = reinterpret_cast< wxDC * >(argp1);
20178 {
20179 arg2 = wxString_in_helper(obj1);
20180 if (arg2 == NULL) SWIG_fail;
20181 temp2 = true;
20182 }
20183 ecode3 = SWIG_AsVal_int(obj2, &val3);
20184 if (!SWIG_IsOK(ecode3)) {
20185 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
20186 }
20187 arg3 = static_cast< int >(val3);
20188 ecode4 = SWIG_AsVal_int(obj3, &val4);
20189 if (!SWIG_IsOK(ecode4)) {
20190 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
20191 }
20192 arg4 = static_cast< int >(val4);
20193 ecode5 = SWIG_AsVal_double(obj4, &val5);
20194 if (!SWIG_IsOK(ecode5)) {
20195 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
20196 }
20197 arg5 = static_cast< double >(val5);
20198 {
20199 PyThreadState* __tstate = wxPyBeginAllowThreads();
20200 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
20201 wxPyEndAllowThreads(__tstate);
20202 if (PyErr_Occurred()) SWIG_fail;
20203 }
20204 resultobj = SWIG_Py_Void();
20205 {
20206 if (temp2)
20207 delete arg2;
20208 }
20209 return resultobj;
20210 fail:
20211 {
20212 if (temp2)
20213 delete arg2;
20214 }
20215 return NULL;
20216 }
20217
20218
20219 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20220 PyObject *resultobj = 0;
20221 wxDC *arg1 = (wxDC *) 0 ;
20222 wxString *arg2 = 0 ;
20223 wxPoint *arg3 = 0 ;
20224 double arg4 ;
20225 void *argp1 = 0 ;
20226 int res1 = 0 ;
20227 bool temp2 = false ;
20228 wxPoint temp3 ;
20229 double val4 ;
20230 int ecode4 = 0 ;
20231 PyObject * obj0 = 0 ;
20232 PyObject * obj1 = 0 ;
20233 PyObject * obj2 = 0 ;
20234 PyObject * obj3 = 0 ;
20235 char * kwnames[] = {
20236 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
20237 };
20238
20239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20241 if (!SWIG_IsOK(res1)) {
20242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20243 }
20244 arg1 = reinterpret_cast< wxDC * >(argp1);
20245 {
20246 arg2 = wxString_in_helper(obj1);
20247 if (arg2 == NULL) SWIG_fail;
20248 temp2 = true;
20249 }
20250 {
20251 arg3 = &temp3;
20252 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20253 }
20254 ecode4 = SWIG_AsVal_double(obj3, &val4);
20255 if (!SWIG_IsOK(ecode4)) {
20256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
20257 }
20258 arg4 = static_cast< double >(val4);
20259 {
20260 PyThreadState* __tstate = wxPyBeginAllowThreads();
20261 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
20262 wxPyEndAllowThreads(__tstate);
20263 if (PyErr_Occurred()) SWIG_fail;
20264 }
20265 resultobj = SWIG_Py_Void();
20266 {
20267 if (temp2)
20268 delete arg2;
20269 }
20270 return resultobj;
20271 fail:
20272 {
20273 if (temp2)
20274 delete arg2;
20275 }
20276 return NULL;
20277 }
20278
20279
20280 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20281 PyObject *resultobj = 0;
20282 wxDC *arg1 = (wxDC *) 0 ;
20283 int arg2 ;
20284 int arg3 ;
20285 int arg4 ;
20286 int arg5 ;
20287 wxDC *arg6 = (wxDC *) 0 ;
20288 int arg7 ;
20289 int arg8 ;
20290 int arg9 = (int) wxCOPY ;
20291 bool arg10 = (bool) false ;
20292 int arg11 = (int) -1 ;
20293 int arg12 = (int) -1 ;
20294 bool result;
20295 void *argp1 = 0 ;
20296 int res1 = 0 ;
20297 int val2 ;
20298 int ecode2 = 0 ;
20299 int val3 ;
20300 int ecode3 = 0 ;
20301 int val4 ;
20302 int ecode4 = 0 ;
20303 int val5 ;
20304 int ecode5 = 0 ;
20305 void *argp6 = 0 ;
20306 int res6 = 0 ;
20307 int val7 ;
20308 int ecode7 = 0 ;
20309 int val8 ;
20310 int ecode8 = 0 ;
20311 int val9 ;
20312 int ecode9 = 0 ;
20313 bool val10 ;
20314 int ecode10 = 0 ;
20315 int val11 ;
20316 int ecode11 = 0 ;
20317 int val12 ;
20318 int ecode12 = 0 ;
20319 PyObject * obj0 = 0 ;
20320 PyObject * obj1 = 0 ;
20321 PyObject * obj2 = 0 ;
20322 PyObject * obj3 = 0 ;
20323 PyObject * obj4 = 0 ;
20324 PyObject * obj5 = 0 ;
20325 PyObject * obj6 = 0 ;
20326 PyObject * obj7 = 0 ;
20327 PyObject * obj8 = 0 ;
20328 PyObject * obj9 = 0 ;
20329 PyObject * obj10 = 0 ;
20330 PyObject * obj11 = 0 ;
20331 char * kwnames[] = {
20332 (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
20333 };
20334
20335 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;
20336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20337 if (!SWIG_IsOK(res1)) {
20338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
20339 }
20340 arg1 = reinterpret_cast< wxDC * >(argp1);
20341 ecode2 = SWIG_AsVal_int(obj1, &val2);
20342 if (!SWIG_IsOK(ecode2)) {
20343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
20344 }
20345 arg2 = static_cast< int >(val2);
20346 ecode3 = SWIG_AsVal_int(obj2, &val3);
20347 if (!SWIG_IsOK(ecode3)) {
20348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20349 }
20350 arg3 = static_cast< int >(val3);
20351 ecode4 = SWIG_AsVal_int(obj3, &val4);
20352 if (!SWIG_IsOK(ecode4)) {
20353 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20354 }
20355 arg4 = static_cast< int >(val4);
20356 ecode5 = SWIG_AsVal_int(obj4, &val5);
20357 if (!SWIG_IsOK(ecode5)) {
20358 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20359 }
20360 arg5 = static_cast< int >(val5);
20361 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20362 if (!SWIG_IsOK(res6)) {
20363 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20364 }
20365 arg6 = reinterpret_cast< wxDC * >(argp6);
20366 ecode7 = SWIG_AsVal_int(obj6, &val7);
20367 if (!SWIG_IsOK(ecode7)) {
20368 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20369 }
20370 arg7 = static_cast< int >(val7);
20371 ecode8 = SWIG_AsVal_int(obj7, &val8);
20372 if (!SWIG_IsOK(ecode8)) {
20373 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20374 }
20375 arg8 = static_cast< int >(val8);
20376 if (obj8) {
20377 ecode9 = SWIG_AsVal_int(obj8, &val9);
20378 if (!SWIG_IsOK(ecode9)) {
20379 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20380 }
20381 arg9 = static_cast< int >(val9);
20382 }
20383 if (obj9) {
20384 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20385 if (!SWIG_IsOK(ecode10)) {
20386 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20387 }
20388 arg10 = static_cast< bool >(val10);
20389 }
20390 if (obj10) {
20391 ecode11 = SWIG_AsVal_int(obj10, &val11);
20392 if (!SWIG_IsOK(ecode11)) {
20393 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20394 }
20395 arg11 = static_cast< int >(val11);
20396 }
20397 if (obj11) {
20398 ecode12 = SWIG_AsVal_int(obj11, &val12);
20399 if (!SWIG_IsOK(ecode12)) {
20400 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20401 }
20402 arg12 = static_cast< int >(val12);
20403 }
20404 {
20405 PyThreadState* __tstate = wxPyBeginAllowThreads();
20406 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20407 wxPyEndAllowThreads(__tstate);
20408 if (PyErr_Occurred()) SWIG_fail;
20409 }
20410 {
20411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20412 }
20413 return resultobj;
20414 fail:
20415 return NULL;
20416 }
20417
20418
20419 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20420 PyObject *resultobj = 0;
20421 wxDC *arg1 = (wxDC *) 0 ;
20422 wxPoint *arg2 = 0 ;
20423 wxSize *arg3 = 0 ;
20424 wxDC *arg4 = (wxDC *) 0 ;
20425 wxPoint *arg5 = 0 ;
20426 int arg6 = (int) wxCOPY ;
20427 bool arg7 = (bool) false ;
20428 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20429 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20430 bool result;
20431 void *argp1 = 0 ;
20432 int res1 = 0 ;
20433 wxPoint temp2 ;
20434 wxSize temp3 ;
20435 void *argp4 = 0 ;
20436 int res4 = 0 ;
20437 wxPoint temp5 ;
20438 int val6 ;
20439 int ecode6 = 0 ;
20440 bool val7 ;
20441 int ecode7 = 0 ;
20442 wxPoint temp8 ;
20443 PyObject * obj0 = 0 ;
20444 PyObject * obj1 = 0 ;
20445 PyObject * obj2 = 0 ;
20446 PyObject * obj3 = 0 ;
20447 PyObject * obj4 = 0 ;
20448 PyObject * obj5 = 0 ;
20449 PyObject * obj6 = 0 ;
20450 PyObject * obj7 = 0 ;
20451 char * kwnames[] = {
20452 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20453 };
20454
20455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20457 if (!SWIG_IsOK(res1)) {
20458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20459 }
20460 arg1 = reinterpret_cast< wxDC * >(argp1);
20461 {
20462 arg2 = &temp2;
20463 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20464 }
20465 {
20466 arg3 = &temp3;
20467 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20468 }
20469 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20470 if (!SWIG_IsOK(res4)) {
20471 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20472 }
20473 arg4 = reinterpret_cast< wxDC * >(argp4);
20474 {
20475 arg5 = &temp5;
20476 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20477 }
20478 if (obj5) {
20479 ecode6 = SWIG_AsVal_int(obj5, &val6);
20480 if (!SWIG_IsOK(ecode6)) {
20481 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20482 }
20483 arg6 = static_cast< int >(val6);
20484 }
20485 if (obj6) {
20486 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20487 if (!SWIG_IsOK(ecode7)) {
20488 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20489 }
20490 arg7 = static_cast< bool >(val7);
20491 }
20492 if (obj7) {
20493 {
20494 arg8 = &temp8;
20495 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20496 }
20497 }
20498 {
20499 PyThreadState* __tstate = wxPyBeginAllowThreads();
20500 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20501 wxPyEndAllowThreads(__tstate);
20502 if (PyErr_Occurred()) SWIG_fail;
20503 }
20504 {
20505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20506 }
20507 return resultobj;
20508 fail:
20509 return NULL;
20510 }
20511
20512
20513 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20514 PyObject *resultobj = 0;
20515 wxDC *arg1 = (wxDC *) 0 ;
20516 wxRect *arg2 = (wxRect *) NULL ;
20517 SwigValueWrapper<wxBitmap > result;
20518 void *argp1 = 0 ;
20519 int res1 = 0 ;
20520 void *argp2 = 0 ;
20521 int res2 = 0 ;
20522 PyObject * obj0 = 0 ;
20523 PyObject * obj1 = 0 ;
20524 char * kwnames[] = {
20525 (char *) "self",(char *) "subrect", NULL
20526 };
20527
20528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
20529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20530 if (!SWIG_IsOK(res1)) {
20531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
20532 }
20533 arg1 = reinterpret_cast< wxDC * >(argp1);
20534 if (obj1) {
20535 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20536 if (!SWIG_IsOK(res2)) {
20537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
20538 }
20539 arg2 = reinterpret_cast< wxRect * >(argp2);
20540 }
20541 {
20542 PyThreadState* __tstate = wxPyBeginAllowThreads();
20543 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
20544 wxPyEndAllowThreads(__tstate);
20545 if (PyErr_Occurred()) SWIG_fail;
20546 }
20547 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20548 return resultobj;
20549 fail:
20550 return NULL;
20551 }
20552
20553
20554 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20555 PyObject *resultobj = 0;
20556 wxDC *arg1 = (wxDC *) 0 ;
20557 int arg2 ;
20558 int arg3 ;
20559 int arg4 ;
20560 int arg5 ;
20561 void *argp1 = 0 ;
20562 int res1 = 0 ;
20563 int val2 ;
20564 int ecode2 = 0 ;
20565 int val3 ;
20566 int ecode3 = 0 ;
20567 int val4 ;
20568 int ecode4 = 0 ;
20569 int val5 ;
20570 int ecode5 = 0 ;
20571 PyObject * obj0 = 0 ;
20572 PyObject * obj1 = 0 ;
20573 PyObject * obj2 = 0 ;
20574 PyObject * obj3 = 0 ;
20575 PyObject * obj4 = 0 ;
20576 char * kwnames[] = {
20577 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20578 };
20579
20580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20582 if (!SWIG_IsOK(res1)) {
20583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20584 }
20585 arg1 = reinterpret_cast< wxDC * >(argp1);
20586 ecode2 = SWIG_AsVal_int(obj1, &val2);
20587 if (!SWIG_IsOK(ecode2)) {
20588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20589 }
20590 arg2 = static_cast< int >(val2);
20591 ecode3 = SWIG_AsVal_int(obj2, &val3);
20592 if (!SWIG_IsOK(ecode3)) {
20593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20594 }
20595 arg3 = static_cast< int >(val3);
20596 ecode4 = SWIG_AsVal_int(obj3, &val4);
20597 if (!SWIG_IsOK(ecode4)) {
20598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20599 }
20600 arg4 = static_cast< int >(val4);
20601 ecode5 = SWIG_AsVal_int(obj4, &val5);
20602 if (!SWIG_IsOK(ecode5)) {
20603 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20604 }
20605 arg5 = static_cast< int >(val5);
20606 {
20607 PyThreadState* __tstate = wxPyBeginAllowThreads();
20608 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20609 wxPyEndAllowThreads(__tstate);
20610 if (PyErr_Occurred()) SWIG_fail;
20611 }
20612 resultobj = SWIG_Py_Void();
20613 return resultobj;
20614 fail:
20615 return NULL;
20616 }
20617
20618
20619 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20620 PyObject *resultobj = 0;
20621 wxDC *arg1 = (wxDC *) 0 ;
20622 wxPoint *arg2 = 0 ;
20623 wxSize *arg3 = 0 ;
20624 void *argp1 = 0 ;
20625 int res1 = 0 ;
20626 wxPoint temp2 ;
20627 wxSize temp3 ;
20628 PyObject * obj0 = 0 ;
20629 PyObject * obj1 = 0 ;
20630 PyObject * obj2 = 0 ;
20631 char * kwnames[] = {
20632 (char *) "self",(char *) "pt",(char *) "sz", NULL
20633 };
20634
20635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20637 if (!SWIG_IsOK(res1)) {
20638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20639 }
20640 arg1 = reinterpret_cast< wxDC * >(argp1);
20641 {
20642 arg2 = &temp2;
20643 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20644 }
20645 {
20646 arg3 = &temp3;
20647 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20648 }
20649 {
20650 PyThreadState* __tstate = wxPyBeginAllowThreads();
20651 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20652 wxPyEndAllowThreads(__tstate);
20653 if (PyErr_Occurred()) SWIG_fail;
20654 }
20655 resultobj = SWIG_Py_Void();
20656 return resultobj;
20657 fail:
20658 return NULL;
20659 }
20660
20661
20662 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20663 PyObject *resultobj = 0;
20664 wxDC *arg1 = (wxDC *) 0 ;
20665 wxRegion *arg2 = 0 ;
20666 void *argp1 = 0 ;
20667 int res1 = 0 ;
20668 void *argp2 = 0 ;
20669 int res2 = 0 ;
20670 PyObject * obj0 = 0 ;
20671 PyObject * obj1 = 0 ;
20672 char * kwnames[] = {
20673 (char *) "self",(char *) "region", NULL
20674 };
20675
20676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20678 if (!SWIG_IsOK(res1)) {
20679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20680 }
20681 arg1 = reinterpret_cast< wxDC * >(argp1);
20682 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20683 if (!SWIG_IsOK(res2)) {
20684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20685 }
20686 if (!argp2) {
20687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20688 }
20689 arg2 = reinterpret_cast< wxRegion * >(argp2);
20690 {
20691 PyThreadState* __tstate = wxPyBeginAllowThreads();
20692 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20693 wxPyEndAllowThreads(__tstate);
20694 if (PyErr_Occurred()) SWIG_fail;
20695 }
20696 resultobj = SWIG_Py_Void();
20697 return resultobj;
20698 fail:
20699 return NULL;
20700 }
20701
20702
20703 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20704 PyObject *resultobj = 0;
20705 wxDC *arg1 = (wxDC *) 0 ;
20706 wxRect *arg2 = 0 ;
20707 void *argp1 = 0 ;
20708 int res1 = 0 ;
20709 wxRect temp2 ;
20710 PyObject * obj0 = 0 ;
20711 PyObject * obj1 = 0 ;
20712 char * kwnames[] = {
20713 (char *) "self",(char *) "rect", NULL
20714 };
20715
20716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20718 if (!SWIG_IsOK(res1)) {
20719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20720 }
20721 arg1 = reinterpret_cast< wxDC * >(argp1);
20722 {
20723 arg2 = &temp2;
20724 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20725 }
20726 {
20727 PyThreadState* __tstate = wxPyBeginAllowThreads();
20728 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20729 wxPyEndAllowThreads(__tstate);
20730 if (PyErr_Occurred()) SWIG_fail;
20731 }
20732 resultobj = SWIG_Py_Void();
20733 return resultobj;
20734 fail:
20735 return NULL;
20736 }
20737
20738
20739 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20740 PyObject *resultobj = 0;
20741 wxDC *arg1 = (wxDC *) 0 ;
20742 int arg2 ;
20743 wxPoint *arg3 = (wxPoint *) 0 ;
20744 int arg4 = (int) 0 ;
20745 int arg5 = (int) 0 ;
20746 void *argp1 = 0 ;
20747 int res1 = 0 ;
20748 int val4 ;
20749 int ecode4 = 0 ;
20750 int val5 ;
20751 int ecode5 = 0 ;
20752 PyObject * obj0 = 0 ;
20753 PyObject * obj1 = 0 ;
20754 PyObject * obj2 = 0 ;
20755 PyObject * obj3 = 0 ;
20756 char * kwnames[] = {
20757 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20758 };
20759
20760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20762 if (!SWIG_IsOK(res1)) {
20763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20764 }
20765 arg1 = reinterpret_cast< wxDC * >(argp1);
20766 {
20767 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20768 if (arg3 == NULL) SWIG_fail;
20769 }
20770 if (obj2) {
20771 ecode4 = SWIG_AsVal_int(obj2, &val4);
20772 if (!SWIG_IsOK(ecode4)) {
20773 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20774 }
20775 arg4 = static_cast< int >(val4);
20776 }
20777 if (obj3) {
20778 ecode5 = SWIG_AsVal_int(obj3, &val5);
20779 if (!SWIG_IsOK(ecode5)) {
20780 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20781 }
20782 arg5 = static_cast< int >(val5);
20783 }
20784 {
20785 PyThreadState* __tstate = wxPyBeginAllowThreads();
20786 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20787 wxPyEndAllowThreads(__tstate);
20788 if (PyErr_Occurred()) SWIG_fail;
20789 }
20790 resultobj = SWIG_Py_Void();
20791 {
20792 if (arg3) delete [] arg3;
20793 }
20794 return resultobj;
20795 fail:
20796 {
20797 if (arg3) delete [] arg3;
20798 }
20799 return NULL;
20800 }
20801
20802
20803 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20804 PyObject *resultobj = 0;
20805 wxDC *arg1 = (wxDC *) 0 ;
20806 int arg2 ;
20807 wxPoint *arg3 = (wxPoint *) 0 ;
20808 int arg4 = (int) 0 ;
20809 int arg5 = (int) 0 ;
20810 int arg6 = (int) wxODDEVEN_RULE ;
20811 void *argp1 = 0 ;
20812 int res1 = 0 ;
20813 int val4 ;
20814 int ecode4 = 0 ;
20815 int val5 ;
20816 int ecode5 = 0 ;
20817 int val6 ;
20818 int ecode6 = 0 ;
20819 PyObject * obj0 = 0 ;
20820 PyObject * obj1 = 0 ;
20821 PyObject * obj2 = 0 ;
20822 PyObject * obj3 = 0 ;
20823 PyObject * obj4 = 0 ;
20824 char * kwnames[] = {
20825 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20826 };
20827
20828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20830 if (!SWIG_IsOK(res1)) {
20831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20832 }
20833 arg1 = reinterpret_cast< wxDC * >(argp1);
20834 {
20835 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20836 if (arg3 == NULL) SWIG_fail;
20837 }
20838 if (obj2) {
20839 ecode4 = SWIG_AsVal_int(obj2, &val4);
20840 if (!SWIG_IsOK(ecode4)) {
20841 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20842 }
20843 arg4 = static_cast< int >(val4);
20844 }
20845 if (obj3) {
20846 ecode5 = SWIG_AsVal_int(obj3, &val5);
20847 if (!SWIG_IsOK(ecode5)) {
20848 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20849 }
20850 arg5 = static_cast< int >(val5);
20851 }
20852 if (obj4) {
20853 ecode6 = SWIG_AsVal_int(obj4, &val6);
20854 if (!SWIG_IsOK(ecode6)) {
20855 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20856 }
20857 arg6 = static_cast< int >(val6);
20858 }
20859 {
20860 PyThreadState* __tstate = wxPyBeginAllowThreads();
20861 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20862 wxPyEndAllowThreads(__tstate);
20863 if (PyErr_Occurred()) SWIG_fail;
20864 }
20865 resultobj = SWIG_Py_Void();
20866 {
20867 if (arg3) delete [] arg3;
20868 }
20869 return resultobj;
20870 fail:
20871 {
20872 if (arg3) delete [] arg3;
20873 }
20874 return NULL;
20875 }
20876
20877
20878 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20879 PyObject *resultobj = 0;
20880 wxDC *arg1 = (wxDC *) 0 ;
20881 wxString *arg2 = 0 ;
20882 wxRect *arg3 = 0 ;
20883 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20884 int arg5 = (int) -1 ;
20885 void *argp1 = 0 ;
20886 int res1 = 0 ;
20887 bool temp2 = false ;
20888 wxRect temp3 ;
20889 int val4 ;
20890 int ecode4 = 0 ;
20891 int val5 ;
20892 int ecode5 = 0 ;
20893 PyObject * obj0 = 0 ;
20894 PyObject * obj1 = 0 ;
20895 PyObject * obj2 = 0 ;
20896 PyObject * obj3 = 0 ;
20897 PyObject * obj4 = 0 ;
20898 char * kwnames[] = {
20899 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20900 };
20901
20902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20904 if (!SWIG_IsOK(res1)) {
20905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20906 }
20907 arg1 = reinterpret_cast< wxDC * >(argp1);
20908 {
20909 arg2 = wxString_in_helper(obj1);
20910 if (arg2 == NULL) SWIG_fail;
20911 temp2 = true;
20912 }
20913 {
20914 arg3 = &temp3;
20915 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20916 }
20917 if (obj3) {
20918 ecode4 = SWIG_AsVal_int(obj3, &val4);
20919 if (!SWIG_IsOK(ecode4)) {
20920 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20921 }
20922 arg4 = static_cast< int >(val4);
20923 }
20924 if (obj4) {
20925 ecode5 = SWIG_AsVal_int(obj4, &val5);
20926 if (!SWIG_IsOK(ecode5)) {
20927 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20928 }
20929 arg5 = static_cast< int >(val5);
20930 }
20931 {
20932 PyThreadState* __tstate = wxPyBeginAllowThreads();
20933 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20934 wxPyEndAllowThreads(__tstate);
20935 if (PyErr_Occurred()) SWIG_fail;
20936 }
20937 resultobj = SWIG_Py_Void();
20938 {
20939 if (temp2)
20940 delete arg2;
20941 }
20942 return resultobj;
20943 fail:
20944 {
20945 if (temp2)
20946 delete arg2;
20947 }
20948 return NULL;
20949 }
20950
20951
20952 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20953 PyObject *resultobj = 0;
20954 wxDC *arg1 = (wxDC *) 0 ;
20955 wxString *arg2 = 0 ;
20956 wxBitmap *arg3 = 0 ;
20957 wxRect *arg4 = 0 ;
20958 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20959 int arg6 = (int) -1 ;
20960 wxRect result;
20961 void *argp1 = 0 ;
20962 int res1 = 0 ;
20963 bool temp2 = false ;
20964 void *argp3 = 0 ;
20965 int res3 = 0 ;
20966 wxRect temp4 ;
20967 int val5 ;
20968 int ecode5 = 0 ;
20969 int val6 ;
20970 int ecode6 = 0 ;
20971 PyObject * obj0 = 0 ;
20972 PyObject * obj1 = 0 ;
20973 PyObject * obj2 = 0 ;
20974 PyObject * obj3 = 0 ;
20975 PyObject * obj4 = 0 ;
20976 PyObject * obj5 = 0 ;
20977 char * kwnames[] = {
20978 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20979 };
20980
20981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20983 if (!SWIG_IsOK(res1)) {
20984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20985 }
20986 arg1 = reinterpret_cast< wxDC * >(argp1);
20987 {
20988 arg2 = wxString_in_helper(obj1);
20989 if (arg2 == NULL) SWIG_fail;
20990 temp2 = true;
20991 }
20992 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20993 if (!SWIG_IsOK(res3)) {
20994 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20995 }
20996 if (!argp3) {
20997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20998 }
20999 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21000 {
21001 arg4 = &temp4;
21002 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21003 }
21004 if (obj4) {
21005 ecode5 = SWIG_AsVal_int(obj4, &val5);
21006 if (!SWIG_IsOK(ecode5)) {
21007 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
21008 }
21009 arg5 = static_cast< int >(val5);
21010 }
21011 if (obj5) {
21012 ecode6 = SWIG_AsVal_int(obj5, &val6);
21013 if (!SWIG_IsOK(ecode6)) {
21014 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
21015 }
21016 arg6 = static_cast< int >(val6);
21017 }
21018 {
21019 PyThreadState* __tstate = wxPyBeginAllowThreads();
21020 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
21021 wxPyEndAllowThreads(__tstate);
21022 if (PyErr_Occurred()) SWIG_fail;
21023 }
21024 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21025 {
21026 if (temp2)
21027 delete arg2;
21028 }
21029 return resultobj;
21030 fail:
21031 {
21032 if (temp2)
21033 delete arg2;
21034 }
21035 return NULL;
21036 }
21037
21038
21039 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21040 PyObject *resultobj = 0;
21041 wxDC *arg1 = (wxDC *) 0 ;
21042 int arg2 ;
21043 wxPoint *arg3 = (wxPoint *) 0 ;
21044 void *argp1 = 0 ;
21045 int res1 = 0 ;
21046 PyObject * obj0 = 0 ;
21047 PyObject * obj1 = 0 ;
21048 char * kwnames[] = {
21049 (char *) "self",(char *) "points", NULL
21050 };
21051
21052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
21053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21054 if (!SWIG_IsOK(res1)) {
21055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
21056 }
21057 arg1 = reinterpret_cast< wxDC * >(argp1);
21058 {
21059 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21060 if (arg3 == NULL) SWIG_fail;
21061 }
21062 {
21063 PyThreadState* __tstate = wxPyBeginAllowThreads();
21064 (arg1)->DrawSpline(arg2,arg3);
21065 wxPyEndAllowThreads(__tstate);
21066 if (PyErr_Occurred()) SWIG_fail;
21067 }
21068 resultobj = SWIG_Py_Void();
21069 {
21070 if (arg3) delete [] arg3;
21071 }
21072 return resultobj;
21073 fail:
21074 {
21075 if (arg3) delete [] arg3;
21076 }
21077 return NULL;
21078 }
21079
21080
21081 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21082 PyObject *resultobj = 0;
21083 wxDC *arg1 = (wxDC *) 0 ;
21084 void *argp1 = 0 ;
21085 int res1 = 0 ;
21086 PyObject *swig_obj[1] ;
21087
21088 if (!args) SWIG_fail;
21089 swig_obj[0] = args;
21090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21091 if (!SWIG_IsOK(res1)) {
21092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
21093 }
21094 arg1 = reinterpret_cast< wxDC * >(argp1);
21095 {
21096 PyThreadState* __tstate = wxPyBeginAllowThreads();
21097 (arg1)->Clear();
21098 wxPyEndAllowThreads(__tstate);
21099 if (PyErr_Occurred()) SWIG_fail;
21100 }
21101 resultobj = SWIG_Py_Void();
21102 return resultobj;
21103 fail:
21104 return NULL;
21105 }
21106
21107
21108 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21109 PyObject *resultobj = 0;
21110 wxDC *arg1 = (wxDC *) 0 ;
21111 wxString *arg2 = 0 ;
21112 bool result;
21113 void *argp1 = 0 ;
21114 int res1 = 0 ;
21115 bool temp2 = false ;
21116 PyObject * obj0 = 0 ;
21117 PyObject * obj1 = 0 ;
21118 char * kwnames[] = {
21119 (char *) "self",(char *) "message", NULL
21120 };
21121
21122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
21123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21124 if (!SWIG_IsOK(res1)) {
21125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21126 }
21127 arg1 = reinterpret_cast< wxDC * >(argp1);
21128 {
21129 arg2 = wxString_in_helper(obj1);
21130 if (arg2 == NULL) SWIG_fail;
21131 temp2 = true;
21132 }
21133 {
21134 PyThreadState* __tstate = wxPyBeginAllowThreads();
21135 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
21136 wxPyEndAllowThreads(__tstate);
21137 if (PyErr_Occurred()) SWIG_fail;
21138 }
21139 {
21140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21141 }
21142 {
21143 if (temp2)
21144 delete arg2;
21145 }
21146 return resultobj;
21147 fail:
21148 {
21149 if (temp2)
21150 delete arg2;
21151 }
21152 return NULL;
21153 }
21154
21155
21156 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21157 PyObject *resultobj = 0;
21158 wxDC *arg1 = (wxDC *) 0 ;
21159 void *argp1 = 0 ;
21160 int res1 = 0 ;
21161 PyObject *swig_obj[1] ;
21162
21163 if (!args) SWIG_fail;
21164 swig_obj[0] = args;
21165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21166 if (!SWIG_IsOK(res1)) {
21167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21168 }
21169 arg1 = reinterpret_cast< wxDC * >(argp1);
21170 {
21171 PyThreadState* __tstate = wxPyBeginAllowThreads();
21172 (arg1)->EndDoc();
21173 wxPyEndAllowThreads(__tstate);
21174 if (PyErr_Occurred()) SWIG_fail;
21175 }
21176 resultobj = SWIG_Py_Void();
21177 return resultobj;
21178 fail:
21179 return NULL;
21180 }
21181
21182
21183 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21184 PyObject *resultobj = 0;
21185 wxDC *arg1 = (wxDC *) 0 ;
21186 void *argp1 = 0 ;
21187 int res1 = 0 ;
21188 PyObject *swig_obj[1] ;
21189
21190 if (!args) SWIG_fail;
21191 swig_obj[0] = args;
21192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21193 if (!SWIG_IsOK(res1)) {
21194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
21195 }
21196 arg1 = reinterpret_cast< wxDC * >(argp1);
21197 {
21198 PyThreadState* __tstate = wxPyBeginAllowThreads();
21199 (arg1)->StartPage();
21200 wxPyEndAllowThreads(__tstate);
21201 if (PyErr_Occurred()) SWIG_fail;
21202 }
21203 resultobj = SWIG_Py_Void();
21204 return resultobj;
21205 fail:
21206 return NULL;
21207 }
21208
21209
21210 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21211 PyObject *resultobj = 0;
21212 wxDC *arg1 = (wxDC *) 0 ;
21213 void *argp1 = 0 ;
21214 int res1 = 0 ;
21215 PyObject *swig_obj[1] ;
21216
21217 if (!args) SWIG_fail;
21218 swig_obj[0] = args;
21219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21220 if (!SWIG_IsOK(res1)) {
21221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21222 }
21223 arg1 = reinterpret_cast< wxDC * >(argp1);
21224 {
21225 PyThreadState* __tstate = wxPyBeginAllowThreads();
21226 (arg1)->EndPage();
21227 wxPyEndAllowThreads(__tstate);
21228 if (PyErr_Occurred()) SWIG_fail;
21229 }
21230 resultobj = SWIG_Py_Void();
21231 return resultobj;
21232 fail:
21233 return NULL;
21234 }
21235
21236
21237 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21238 PyObject *resultobj = 0;
21239 wxDC *arg1 = (wxDC *) 0 ;
21240 wxFont *arg2 = 0 ;
21241 void *argp1 = 0 ;
21242 int res1 = 0 ;
21243 void *argp2 = 0 ;
21244 int res2 = 0 ;
21245 PyObject * obj0 = 0 ;
21246 PyObject * obj1 = 0 ;
21247 char * kwnames[] = {
21248 (char *) "self",(char *) "font", NULL
21249 };
21250
21251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21253 if (!SWIG_IsOK(res1)) {
21254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21255 }
21256 arg1 = reinterpret_cast< wxDC * >(argp1);
21257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21258 if (!SWIG_IsOK(res2)) {
21259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21260 }
21261 if (!argp2) {
21262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21263 }
21264 arg2 = reinterpret_cast< wxFont * >(argp2);
21265 {
21266 PyThreadState* __tstate = wxPyBeginAllowThreads();
21267 (arg1)->SetFont((wxFont const &)*arg2);
21268 wxPyEndAllowThreads(__tstate);
21269 if (PyErr_Occurred()) SWIG_fail;
21270 }
21271 resultobj = SWIG_Py_Void();
21272 return resultobj;
21273 fail:
21274 return NULL;
21275 }
21276
21277
21278 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21279 PyObject *resultobj = 0;
21280 wxDC *arg1 = (wxDC *) 0 ;
21281 wxPen *arg2 = 0 ;
21282 void *argp1 = 0 ;
21283 int res1 = 0 ;
21284 void *argp2 = 0 ;
21285 int res2 = 0 ;
21286 PyObject * obj0 = 0 ;
21287 PyObject * obj1 = 0 ;
21288 char * kwnames[] = {
21289 (char *) "self",(char *) "pen", NULL
21290 };
21291
21292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21294 if (!SWIG_IsOK(res1)) {
21295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21296 }
21297 arg1 = reinterpret_cast< wxDC * >(argp1);
21298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21299 if (!SWIG_IsOK(res2)) {
21300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21301 }
21302 if (!argp2) {
21303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21304 }
21305 arg2 = reinterpret_cast< wxPen * >(argp2);
21306 {
21307 PyThreadState* __tstate = wxPyBeginAllowThreads();
21308 (arg1)->SetPen((wxPen const &)*arg2);
21309 wxPyEndAllowThreads(__tstate);
21310 if (PyErr_Occurred()) SWIG_fail;
21311 }
21312 resultobj = SWIG_Py_Void();
21313 return resultobj;
21314 fail:
21315 return NULL;
21316 }
21317
21318
21319 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21320 PyObject *resultobj = 0;
21321 wxDC *arg1 = (wxDC *) 0 ;
21322 wxBrush *arg2 = 0 ;
21323 void *argp1 = 0 ;
21324 int res1 = 0 ;
21325 void *argp2 = 0 ;
21326 int res2 = 0 ;
21327 PyObject * obj0 = 0 ;
21328 PyObject * obj1 = 0 ;
21329 char * kwnames[] = {
21330 (char *) "self",(char *) "brush", NULL
21331 };
21332
21333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21335 if (!SWIG_IsOK(res1)) {
21336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21337 }
21338 arg1 = reinterpret_cast< wxDC * >(argp1);
21339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21340 if (!SWIG_IsOK(res2)) {
21341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21342 }
21343 if (!argp2) {
21344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21345 }
21346 arg2 = reinterpret_cast< wxBrush * >(argp2);
21347 {
21348 PyThreadState* __tstate = wxPyBeginAllowThreads();
21349 (arg1)->SetBrush((wxBrush const &)*arg2);
21350 wxPyEndAllowThreads(__tstate);
21351 if (PyErr_Occurred()) SWIG_fail;
21352 }
21353 resultobj = SWIG_Py_Void();
21354 return resultobj;
21355 fail:
21356 return NULL;
21357 }
21358
21359
21360 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21361 PyObject *resultobj = 0;
21362 wxDC *arg1 = (wxDC *) 0 ;
21363 wxBrush *arg2 = 0 ;
21364 void *argp1 = 0 ;
21365 int res1 = 0 ;
21366 void *argp2 = 0 ;
21367 int res2 = 0 ;
21368 PyObject * obj0 = 0 ;
21369 PyObject * obj1 = 0 ;
21370 char * kwnames[] = {
21371 (char *) "self",(char *) "brush", NULL
21372 };
21373
21374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21376 if (!SWIG_IsOK(res1)) {
21377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21378 }
21379 arg1 = reinterpret_cast< wxDC * >(argp1);
21380 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21381 if (!SWIG_IsOK(res2)) {
21382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21383 }
21384 if (!argp2) {
21385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21386 }
21387 arg2 = reinterpret_cast< wxBrush * >(argp2);
21388 {
21389 PyThreadState* __tstate = wxPyBeginAllowThreads();
21390 (arg1)->SetBackground((wxBrush const &)*arg2);
21391 wxPyEndAllowThreads(__tstate);
21392 if (PyErr_Occurred()) SWIG_fail;
21393 }
21394 resultobj = SWIG_Py_Void();
21395 return resultobj;
21396 fail:
21397 return NULL;
21398 }
21399
21400
21401 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21402 PyObject *resultobj = 0;
21403 wxDC *arg1 = (wxDC *) 0 ;
21404 int arg2 ;
21405 void *argp1 = 0 ;
21406 int res1 = 0 ;
21407 int val2 ;
21408 int ecode2 = 0 ;
21409 PyObject * obj0 = 0 ;
21410 PyObject * obj1 = 0 ;
21411 char * kwnames[] = {
21412 (char *) "self",(char *) "mode", NULL
21413 };
21414
21415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21417 if (!SWIG_IsOK(res1)) {
21418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21419 }
21420 arg1 = reinterpret_cast< wxDC * >(argp1);
21421 ecode2 = SWIG_AsVal_int(obj1, &val2);
21422 if (!SWIG_IsOK(ecode2)) {
21423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21424 }
21425 arg2 = static_cast< int >(val2);
21426 {
21427 PyThreadState* __tstate = wxPyBeginAllowThreads();
21428 (arg1)->SetBackgroundMode(arg2);
21429 wxPyEndAllowThreads(__tstate);
21430 if (PyErr_Occurred()) SWIG_fail;
21431 }
21432 resultobj = SWIG_Py_Void();
21433 return resultobj;
21434 fail:
21435 return NULL;
21436 }
21437
21438
21439 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21440 PyObject *resultobj = 0;
21441 wxDC *arg1 = (wxDC *) 0 ;
21442 wxPalette *arg2 = 0 ;
21443 void *argp1 = 0 ;
21444 int res1 = 0 ;
21445 void *argp2 = 0 ;
21446 int res2 = 0 ;
21447 PyObject * obj0 = 0 ;
21448 PyObject * obj1 = 0 ;
21449 char * kwnames[] = {
21450 (char *) "self",(char *) "palette", NULL
21451 };
21452
21453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21455 if (!SWIG_IsOK(res1)) {
21456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21457 }
21458 arg1 = reinterpret_cast< wxDC * >(argp1);
21459 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21460 if (!SWIG_IsOK(res2)) {
21461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21462 }
21463 if (!argp2) {
21464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21465 }
21466 arg2 = reinterpret_cast< wxPalette * >(argp2);
21467 {
21468 PyThreadState* __tstate = wxPyBeginAllowThreads();
21469 (arg1)->SetPalette((wxPalette const &)*arg2);
21470 wxPyEndAllowThreads(__tstate);
21471 if (PyErr_Occurred()) SWIG_fail;
21472 }
21473 resultobj = SWIG_Py_Void();
21474 return resultobj;
21475 fail:
21476 return NULL;
21477 }
21478
21479
21480 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21481 PyObject *resultobj = 0;
21482 wxDC *arg1 = (wxDC *) 0 ;
21483 void *argp1 = 0 ;
21484 int res1 = 0 ;
21485 PyObject *swig_obj[1] ;
21486
21487 if (!args) SWIG_fail;
21488 swig_obj[0] = args;
21489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21490 if (!SWIG_IsOK(res1)) {
21491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21492 }
21493 arg1 = reinterpret_cast< wxDC * >(argp1);
21494 {
21495 PyThreadState* __tstate = wxPyBeginAllowThreads();
21496 (arg1)->DestroyClippingRegion();
21497 wxPyEndAllowThreads(__tstate);
21498 if (PyErr_Occurred()) SWIG_fail;
21499 }
21500 resultobj = SWIG_Py_Void();
21501 return resultobj;
21502 fail:
21503 return NULL;
21504 }
21505
21506
21507 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21508 PyObject *resultobj = 0;
21509 wxDC *arg1 = (wxDC *) 0 ;
21510 int *arg2 = (int *) 0 ;
21511 int *arg3 = (int *) 0 ;
21512 int *arg4 = (int *) 0 ;
21513 int *arg5 = (int *) 0 ;
21514 void *argp1 = 0 ;
21515 int res1 = 0 ;
21516 int temp2 ;
21517 int res2 = SWIG_TMPOBJ ;
21518 int temp3 ;
21519 int res3 = SWIG_TMPOBJ ;
21520 int temp4 ;
21521 int res4 = SWIG_TMPOBJ ;
21522 int temp5 ;
21523 int res5 = SWIG_TMPOBJ ;
21524 PyObject *swig_obj[1] ;
21525
21526 arg2 = &temp2;
21527 arg3 = &temp3;
21528 arg4 = &temp4;
21529 arg5 = &temp5;
21530 if (!args) SWIG_fail;
21531 swig_obj[0] = args;
21532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21533 if (!SWIG_IsOK(res1)) {
21534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21535 }
21536 arg1 = reinterpret_cast< wxDC * >(argp1);
21537 {
21538 PyThreadState* __tstate = wxPyBeginAllowThreads();
21539 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21540 wxPyEndAllowThreads(__tstate);
21541 if (PyErr_Occurred()) SWIG_fail;
21542 }
21543 resultobj = SWIG_Py_Void();
21544 if (SWIG_IsTmpObj(res2)) {
21545 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21546 } else {
21547 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21548 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21549 }
21550 if (SWIG_IsTmpObj(res3)) {
21551 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21552 } else {
21553 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21554 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21555 }
21556 if (SWIG_IsTmpObj(res4)) {
21557 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21558 } else {
21559 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21560 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21561 }
21562 if (SWIG_IsTmpObj(res5)) {
21563 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21564 } else {
21565 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21566 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21567 }
21568 return resultobj;
21569 fail:
21570 return NULL;
21571 }
21572
21573
21574 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21575 PyObject *resultobj = 0;
21576 wxDC *arg1 = (wxDC *) 0 ;
21577 wxRect result;
21578 void *argp1 = 0 ;
21579 int res1 = 0 ;
21580 PyObject *swig_obj[1] ;
21581
21582 if (!args) SWIG_fail;
21583 swig_obj[0] = args;
21584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21585 if (!SWIG_IsOK(res1)) {
21586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21587 }
21588 arg1 = reinterpret_cast< wxDC * >(argp1);
21589 {
21590 PyThreadState* __tstate = wxPyBeginAllowThreads();
21591 result = wxDC_GetClippingRect(arg1);
21592 wxPyEndAllowThreads(__tstate);
21593 if (PyErr_Occurred()) SWIG_fail;
21594 }
21595 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21596 return resultobj;
21597 fail:
21598 return NULL;
21599 }
21600
21601
21602 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21603 PyObject *resultobj = 0;
21604 wxDC *arg1 = (wxDC *) 0 ;
21605 int result;
21606 void *argp1 = 0 ;
21607 int res1 = 0 ;
21608 PyObject *swig_obj[1] ;
21609
21610 if (!args) SWIG_fail;
21611 swig_obj[0] = args;
21612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21613 if (!SWIG_IsOK(res1)) {
21614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21615 }
21616 arg1 = reinterpret_cast< wxDC * >(argp1);
21617 {
21618 PyThreadState* __tstate = wxPyBeginAllowThreads();
21619 result = (int)((wxDC const *)arg1)->GetCharHeight();
21620 wxPyEndAllowThreads(__tstate);
21621 if (PyErr_Occurred()) SWIG_fail;
21622 }
21623 resultobj = SWIG_From_int(static_cast< int >(result));
21624 return resultobj;
21625 fail:
21626 return NULL;
21627 }
21628
21629
21630 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21631 PyObject *resultobj = 0;
21632 wxDC *arg1 = (wxDC *) 0 ;
21633 int result;
21634 void *argp1 = 0 ;
21635 int res1 = 0 ;
21636 PyObject *swig_obj[1] ;
21637
21638 if (!args) SWIG_fail;
21639 swig_obj[0] = args;
21640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21641 if (!SWIG_IsOK(res1)) {
21642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21643 }
21644 arg1 = reinterpret_cast< wxDC * >(argp1);
21645 {
21646 PyThreadState* __tstate = wxPyBeginAllowThreads();
21647 result = (int)((wxDC const *)arg1)->GetCharWidth();
21648 wxPyEndAllowThreads(__tstate);
21649 if (PyErr_Occurred()) SWIG_fail;
21650 }
21651 resultobj = SWIG_From_int(static_cast< int >(result));
21652 return resultobj;
21653 fail:
21654 return NULL;
21655 }
21656
21657
21658 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21659 PyObject *resultobj = 0;
21660 wxDC *arg1 = (wxDC *) 0 ;
21661 wxString *arg2 = 0 ;
21662 int *arg3 = (int *) 0 ;
21663 int *arg4 = (int *) 0 ;
21664 void *argp1 = 0 ;
21665 int res1 = 0 ;
21666 bool temp2 = false ;
21667 int temp3 ;
21668 int res3 = SWIG_TMPOBJ ;
21669 int temp4 ;
21670 int res4 = SWIG_TMPOBJ ;
21671 PyObject * obj0 = 0 ;
21672 PyObject * obj1 = 0 ;
21673 char * kwnames[] = {
21674 (char *) "self",(char *) "string", NULL
21675 };
21676
21677 arg3 = &temp3;
21678 arg4 = &temp4;
21679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21681 if (!SWIG_IsOK(res1)) {
21682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21683 }
21684 arg1 = reinterpret_cast< wxDC * >(argp1);
21685 {
21686 arg2 = wxString_in_helper(obj1);
21687 if (arg2 == NULL) SWIG_fail;
21688 temp2 = true;
21689 }
21690 {
21691 PyThreadState* __tstate = wxPyBeginAllowThreads();
21692 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21693 wxPyEndAllowThreads(__tstate);
21694 if (PyErr_Occurred()) SWIG_fail;
21695 }
21696 resultobj = SWIG_Py_Void();
21697 if (SWIG_IsTmpObj(res3)) {
21698 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21699 } else {
21700 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21701 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21702 }
21703 if (SWIG_IsTmpObj(res4)) {
21704 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21705 } else {
21706 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21707 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21708 }
21709 {
21710 if (temp2)
21711 delete arg2;
21712 }
21713 return resultobj;
21714 fail:
21715 {
21716 if (temp2)
21717 delete arg2;
21718 }
21719 return NULL;
21720 }
21721
21722
21723 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21724 PyObject *resultobj = 0;
21725 wxDC *arg1 = (wxDC *) 0 ;
21726 wxString *arg2 = 0 ;
21727 int *arg3 = (int *) 0 ;
21728 int *arg4 = (int *) 0 ;
21729 int *arg5 = (int *) 0 ;
21730 int *arg6 = (int *) 0 ;
21731 wxFont *arg7 = (wxFont *) NULL ;
21732 void *argp1 = 0 ;
21733 int res1 = 0 ;
21734 bool temp2 = false ;
21735 int temp3 ;
21736 int res3 = SWIG_TMPOBJ ;
21737 int temp4 ;
21738 int res4 = SWIG_TMPOBJ ;
21739 int temp5 ;
21740 int res5 = SWIG_TMPOBJ ;
21741 int temp6 ;
21742 int res6 = SWIG_TMPOBJ ;
21743 void *argp7 = 0 ;
21744 int res7 = 0 ;
21745 PyObject * obj0 = 0 ;
21746 PyObject * obj1 = 0 ;
21747 PyObject * obj2 = 0 ;
21748 char * kwnames[] = {
21749 (char *) "self",(char *) "string",(char *) "font", NULL
21750 };
21751
21752 arg3 = &temp3;
21753 arg4 = &temp4;
21754 arg5 = &temp5;
21755 arg6 = &temp6;
21756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21758 if (!SWIG_IsOK(res1)) {
21759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21760 }
21761 arg1 = reinterpret_cast< wxDC * >(argp1);
21762 {
21763 arg2 = wxString_in_helper(obj1);
21764 if (arg2 == NULL) SWIG_fail;
21765 temp2 = true;
21766 }
21767 if (obj2) {
21768 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21769 if (!SWIG_IsOK(res7)) {
21770 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21771 }
21772 arg7 = reinterpret_cast< wxFont * >(argp7);
21773 }
21774 {
21775 PyThreadState* __tstate = wxPyBeginAllowThreads();
21776 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21777 wxPyEndAllowThreads(__tstate);
21778 if (PyErr_Occurred()) SWIG_fail;
21779 }
21780 resultobj = SWIG_Py_Void();
21781 if (SWIG_IsTmpObj(res3)) {
21782 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21783 } else {
21784 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21785 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21786 }
21787 if (SWIG_IsTmpObj(res4)) {
21788 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21789 } else {
21790 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21791 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21792 }
21793 if (SWIG_IsTmpObj(res5)) {
21794 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21795 } else {
21796 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21797 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21798 }
21799 if (SWIG_IsTmpObj(res6)) {
21800 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21801 } else {
21802 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21803 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21804 }
21805 {
21806 if (temp2)
21807 delete arg2;
21808 }
21809 return resultobj;
21810 fail:
21811 {
21812 if (temp2)
21813 delete arg2;
21814 }
21815 return NULL;
21816 }
21817
21818
21819 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21820 PyObject *resultobj = 0;
21821 wxDC *arg1 = (wxDC *) 0 ;
21822 wxString *arg2 = 0 ;
21823 int *arg3 = (int *) 0 ;
21824 int *arg4 = (int *) 0 ;
21825 int *arg5 = (int *) 0 ;
21826 wxFont *arg6 = (wxFont *) NULL ;
21827 void *argp1 = 0 ;
21828 int res1 = 0 ;
21829 bool temp2 = false ;
21830 int temp3 ;
21831 int res3 = SWIG_TMPOBJ ;
21832 int temp4 ;
21833 int res4 = SWIG_TMPOBJ ;
21834 int temp5 ;
21835 int res5 = SWIG_TMPOBJ ;
21836 void *argp6 = 0 ;
21837 int res6 = 0 ;
21838 PyObject * obj0 = 0 ;
21839 PyObject * obj1 = 0 ;
21840 PyObject * obj2 = 0 ;
21841 char * kwnames[] = {
21842 (char *) "self",(char *) "text",(char *) "font", NULL
21843 };
21844
21845 arg3 = &temp3;
21846 arg4 = &temp4;
21847 arg5 = &temp5;
21848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21850 if (!SWIG_IsOK(res1)) {
21851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21852 }
21853 arg1 = reinterpret_cast< wxDC * >(argp1);
21854 {
21855 arg2 = wxString_in_helper(obj1);
21856 if (arg2 == NULL) SWIG_fail;
21857 temp2 = true;
21858 }
21859 if (obj2) {
21860 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21861 if (!SWIG_IsOK(res6)) {
21862 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21863 }
21864 arg6 = reinterpret_cast< wxFont * >(argp6);
21865 }
21866 {
21867 PyThreadState* __tstate = wxPyBeginAllowThreads();
21868 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21869 wxPyEndAllowThreads(__tstate);
21870 if (PyErr_Occurred()) SWIG_fail;
21871 }
21872 resultobj = SWIG_Py_Void();
21873 if (SWIG_IsTmpObj(res3)) {
21874 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21875 } else {
21876 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21877 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21878 }
21879 if (SWIG_IsTmpObj(res4)) {
21880 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21881 } else {
21882 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21883 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21884 }
21885 if (SWIG_IsTmpObj(res5)) {
21886 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21887 } else {
21888 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21889 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21890 }
21891 {
21892 if (temp2)
21893 delete arg2;
21894 }
21895 return resultobj;
21896 fail:
21897 {
21898 if (temp2)
21899 delete arg2;
21900 }
21901 return NULL;
21902 }
21903
21904
21905 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21906 PyObject *resultobj = 0;
21907 wxDC *arg1 = (wxDC *) 0 ;
21908 wxString *arg2 = 0 ;
21909 wxArrayInt result;
21910 void *argp1 = 0 ;
21911 int res1 = 0 ;
21912 bool temp2 = false ;
21913 PyObject * obj0 = 0 ;
21914 PyObject * obj1 = 0 ;
21915 char * kwnames[] = {
21916 (char *) "self",(char *) "text", NULL
21917 };
21918
21919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21921 if (!SWIG_IsOK(res1)) {
21922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21923 }
21924 arg1 = reinterpret_cast< wxDC * >(argp1);
21925 {
21926 arg2 = wxString_in_helper(obj1);
21927 if (arg2 == NULL) SWIG_fail;
21928 temp2 = true;
21929 }
21930 {
21931 PyThreadState* __tstate = wxPyBeginAllowThreads();
21932 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21933 wxPyEndAllowThreads(__tstate);
21934 if (PyErr_Occurred()) SWIG_fail;
21935 }
21936 {
21937 resultobj = wxArrayInt2PyList_helper(result);
21938 }
21939 {
21940 if (temp2)
21941 delete arg2;
21942 }
21943 return resultobj;
21944 fail:
21945 {
21946 if (temp2)
21947 delete arg2;
21948 }
21949 return NULL;
21950 }
21951
21952
21953 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21954 PyObject *resultobj = 0;
21955 wxDC *arg1 = (wxDC *) 0 ;
21956 wxSize result;
21957 void *argp1 = 0 ;
21958 int res1 = 0 ;
21959 PyObject *swig_obj[1] ;
21960
21961 if (!args) SWIG_fail;
21962 swig_obj[0] = args;
21963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21964 if (!SWIG_IsOK(res1)) {
21965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21966 }
21967 arg1 = reinterpret_cast< wxDC * >(argp1);
21968 {
21969 PyThreadState* __tstate = wxPyBeginAllowThreads();
21970 result = (arg1)->GetSize();
21971 wxPyEndAllowThreads(__tstate);
21972 if (PyErr_Occurred()) SWIG_fail;
21973 }
21974 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21975 return resultobj;
21976 fail:
21977 return NULL;
21978 }
21979
21980
21981 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21982 PyObject *resultobj = 0;
21983 wxDC *arg1 = (wxDC *) 0 ;
21984 int *arg2 = (int *) 0 ;
21985 int *arg3 = (int *) 0 ;
21986 void *argp1 = 0 ;
21987 int res1 = 0 ;
21988 int temp2 ;
21989 int res2 = SWIG_TMPOBJ ;
21990 int temp3 ;
21991 int res3 = SWIG_TMPOBJ ;
21992 PyObject *swig_obj[1] ;
21993
21994 arg2 = &temp2;
21995 arg3 = &temp3;
21996 if (!args) SWIG_fail;
21997 swig_obj[0] = args;
21998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21999 if (!SWIG_IsOK(res1)) {
22000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
22001 }
22002 arg1 = reinterpret_cast< wxDC * >(argp1);
22003 {
22004 PyThreadState* __tstate = wxPyBeginAllowThreads();
22005 (arg1)->GetSize(arg2,arg3);
22006 wxPyEndAllowThreads(__tstate);
22007 if (PyErr_Occurred()) SWIG_fail;
22008 }
22009 resultobj = SWIG_Py_Void();
22010 if (SWIG_IsTmpObj(res2)) {
22011 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22012 } else {
22013 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22014 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22015 }
22016 if (SWIG_IsTmpObj(res3)) {
22017 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22018 } else {
22019 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22020 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22021 }
22022 return resultobj;
22023 fail:
22024 return NULL;
22025 }
22026
22027
22028 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22029 PyObject *resultobj = 0;
22030 wxDC *arg1 = (wxDC *) 0 ;
22031 wxSize result;
22032 void *argp1 = 0 ;
22033 int res1 = 0 ;
22034 PyObject *swig_obj[1] ;
22035
22036 if (!args) SWIG_fail;
22037 swig_obj[0] = args;
22038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22039 if (!SWIG_IsOK(res1)) {
22040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
22041 }
22042 arg1 = reinterpret_cast< wxDC * >(argp1);
22043 {
22044 PyThreadState* __tstate = wxPyBeginAllowThreads();
22045 result = ((wxDC const *)arg1)->GetSizeMM();
22046 wxPyEndAllowThreads(__tstate);
22047 if (PyErr_Occurred()) SWIG_fail;
22048 }
22049 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22050 return resultobj;
22051 fail:
22052 return NULL;
22053 }
22054
22055
22056 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22057 PyObject *resultobj = 0;
22058 wxDC *arg1 = (wxDC *) 0 ;
22059 int *arg2 = (int *) 0 ;
22060 int *arg3 = (int *) 0 ;
22061 void *argp1 = 0 ;
22062 int res1 = 0 ;
22063 int temp2 ;
22064 int res2 = SWIG_TMPOBJ ;
22065 int temp3 ;
22066 int res3 = SWIG_TMPOBJ ;
22067 PyObject *swig_obj[1] ;
22068
22069 arg2 = &temp2;
22070 arg3 = &temp3;
22071 if (!args) SWIG_fail;
22072 swig_obj[0] = args;
22073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22074 if (!SWIG_IsOK(res1)) {
22075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22076 }
22077 arg1 = reinterpret_cast< wxDC * >(argp1);
22078 {
22079 PyThreadState* __tstate = wxPyBeginAllowThreads();
22080 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
22081 wxPyEndAllowThreads(__tstate);
22082 if (PyErr_Occurred()) SWIG_fail;
22083 }
22084 resultobj = SWIG_Py_Void();
22085 if (SWIG_IsTmpObj(res2)) {
22086 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22087 } else {
22088 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22089 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22090 }
22091 if (SWIG_IsTmpObj(res3)) {
22092 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22093 } else {
22094 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22095 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22096 }
22097 return resultobj;
22098 fail:
22099 return NULL;
22100 }
22101
22102
22103 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22104 PyObject *resultobj = 0;
22105 wxDC *arg1 = (wxDC *) 0 ;
22106 int arg2 ;
22107 int result;
22108 void *argp1 = 0 ;
22109 int res1 = 0 ;
22110 int val2 ;
22111 int ecode2 = 0 ;
22112 PyObject * obj0 = 0 ;
22113 PyObject * obj1 = 0 ;
22114 char * kwnames[] = {
22115 (char *) "self",(char *) "x", NULL
22116 };
22117
22118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
22119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22120 if (!SWIG_IsOK(res1)) {
22121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
22122 }
22123 arg1 = reinterpret_cast< wxDC * >(argp1);
22124 ecode2 = SWIG_AsVal_int(obj1, &val2);
22125 if (!SWIG_IsOK(ecode2)) {
22126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
22127 }
22128 arg2 = static_cast< int >(val2);
22129 {
22130 PyThreadState* __tstate = wxPyBeginAllowThreads();
22131 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
22132 wxPyEndAllowThreads(__tstate);
22133 if (PyErr_Occurred()) SWIG_fail;
22134 }
22135 resultobj = SWIG_From_int(static_cast< int >(result));
22136 return resultobj;
22137 fail:
22138 return NULL;
22139 }
22140
22141
22142 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22143 PyObject *resultobj = 0;
22144 wxDC *arg1 = (wxDC *) 0 ;
22145 int arg2 ;
22146 int result;
22147 void *argp1 = 0 ;
22148 int res1 = 0 ;
22149 int val2 ;
22150 int ecode2 = 0 ;
22151 PyObject * obj0 = 0 ;
22152 PyObject * obj1 = 0 ;
22153 char * kwnames[] = {
22154 (char *) "self",(char *) "y", NULL
22155 };
22156
22157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
22158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22159 if (!SWIG_IsOK(res1)) {
22160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
22161 }
22162 arg1 = reinterpret_cast< wxDC * >(argp1);
22163 ecode2 = SWIG_AsVal_int(obj1, &val2);
22164 if (!SWIG_IsOK(ecode2)) {
22165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
22166 }
22167 arg2 = static_cast< int >(val2);
22168 {
22169 PyThreadState* __tstate = wxPyBeginAllowThreads();
22170 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
22171 wxPyEndAllowThreads(__tstate);
22172 if (PyErr_Occurred()) SWIG_fail;
22173 }
22174 resultobj = SWIG_From_int(static_cast< int >(result));
22175 return resultobj;
22176 fail:
22177 return NULL;
22178 }
22179
22180
22181 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22182 PyObject *resultobj = 0;
22183 wxDC *arg1 = (wxDC *) 0 ;
22184 int arg2 ;
22185 int result;
22186 void *argp1 = 0 ;
22187 int res1 = 0 ;
22188 int val2 ;
22189 int ecode2 = 0 ;
22190 PyObject * obj0 = 0 ;
22191 PyObject * obj1 = 0 ;
22192 char * kwnames[] = {
22193 (char *) "self",(char *) "x", NULL
22194 };
22195
22196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22198 if (!SWIG_IsOK(res1)) {
22199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22200 }
22201 arg1 = reinterpret_cast< wxDC * >(argp1);
22202 ecode2 = SWIG_AsVal_int(obj1, &val2);
22203 if (!SWIG_IsOK(ecode2)) {
22204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
22205 }
22206 arg2 = static_cast< int >(val2);
22207 {
22208 PyThreadState* __tstate = wxPyBeginAllowThreads();
22209 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
22210 wxPyEndAllowThreads(__tstate);
22211 if (PyErr_Occurred()) SWIG_fail;
22212 }
22213 resultobj = SWIG_From_int(static_cast< int >(result));
22214 return resultobj;
22215 fail:
22216 return NULL;
22217 }
22218
22219
22220 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22221 PyObject *resultobj = 0;
22222 wxDC *arg1 = (wxDC *) 0 ;
22223 int arg2 ;
22224 int result;
22225 void *argp1 = 0 ;
22226 int res1 = 0 ;
22227 int val2 ;
22228 int ecode2 = 0 ;
22229 PyObject * obj0 = 0 ;
22230 PyObject * obj1 = 0 ;
22231 char * kwnames[] = {
22232 (char *) "self",(char *) "y", NULL
22233 };
22234
22235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22237 if (!SWIG_IsOK(res1)) {
22238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22239 }
22240 arg1 = reinterpret_cast< wxDC * >(argp1);
22241 ecode2 = SWIG_AsVal_int(obj1, &val2);
22242 if (!SWIG_IsOK(ecode2)) {
22243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22244 }
22245 arg2 = static_cast< int >(val2);
22246 {
22247 PyThreadState* __tstate = wxPyBeginAllowThreads();
22248 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22249 wxPyEndAllowThreads(__tstate);
22250 if (PyErr_Occurred()) SWIG_fail;
22251 }
22252 resultobj = SWIG_From_int(static_cast< int >(result));
22253 return resultobj;
22254 fail:
22255 return NULL;
22256 }
22257
22258
22259 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22260 PyObject *resultobj = 0;
22261 wxDC *arg1 = (wxDC *) 0 ;
22262 int arg2 ;
22263 int result;
22264 void *argp1 = 0 ;
22265 int res1 = 0 ;
22266 int val2 ;
22267 int ecode2 = 0 ;
22268 PyObject * obj0 = 0 ;
22269 PyObject * obj1 = 0 ;
22270 char * kwnames[] = {
22271 (char *) "self",(char *) "x", NULL
22272 };
22273
22274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22276 if (!SWIG_IsOK(res1)) {
22277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22278 }
22279 arg1 = reinterpret_cast< wxDC * >(argp1);
22280 ecode2 = SWIG_AsVal_int(obj1, &val2);
22281 if (!SWIG_IsOK(ecode2)) {
22282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22283 }
22284 arg2 = static_cast< int >(val2);
22285 {
22286 PyThreadState* __tstate = wxPyBeginAllowThreads();
22287 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22288 wxPyEndAllowThreads(__tstate);
22289 if (PyErr_Occurred()) SWIG_fail;
22290 }
22291 resultobj = SWIG_From_int(static_cast< int >(result));
22292 return resultobj;
22293 fail:
22294 return NULL;
22295 }
22296
22297
22298 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22299 PyObject *resultobj = 0;
22300 wxDC *arg1 = (wxDC *) 0 ;
22301 int arg2 ;
22302 int result;
22303 void *argp1 = 0 ;
22304 int res1 = 0 ;
22305 int val2 ;
22306 int ecode2 = 0 ;
22307 PyObject * obj0 = 0 ;
22308 PyObject * obj1 = 0 ;
22309 char * kwnames[] = {
22310 (char *) "self",(char *) "y", NULL
22311 };
22312
22313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22315 if (!SWIG_IsOK(res1)) {
22316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22317 }
22318 arg1 = reinterpret_cast< wxDC * >(argp1);
22319 ecode2 = SWIG_AsVal_int(obj1, &val2);
22320 if (!SWIG_IsOK(ecode2)) {
22321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22322 }
22323 arg2 = static_cast< int >(val2);
22324 {
22325 PyThreadState* __tstate = wxPyBeginAllowThreads();
22326 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22327 wxPyEndAllowThreads(__tstate);
22328 if (PyErr_Occurred()) SWIG_fail;
22329 }
22330 resultobj = SWIG_From_int(static_cast< int >(result));
22331 return resultobj;
22332 fail:
22333 return NULL;
22334 }
22335
22336
22337 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22338 PyObject *resultobj = 0;
22339 wxDC *arg1 = (wxDC *) 0 ;
22340 int arg2 ;
22341 int result;
22342 void *argp1 = 0 ;
22343 int res1 = 0 ;
22344 int val2 ;
22345 int ecode2 = 0 ;
22346 PyObject * obj0 = 0 ;
22347 PyObject * obj1 = 0 ;
22348 char * kwnames[] = {
22349 (char *) "self",(char *) "x", NULL
22350 };
22351
22352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22354 if (!SWIG_IsOK(res1)) {
22355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22356 }
22357 arg1 = reinterpret_cast< wxDC * >(argp1);
22358 ecode2 = SWIG_AsVal_int(obj1, &val2);
22359 if (!SWIG_IsOK(ecode2)) {
22360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22361 }
22362 arg2 = static_cast< int >(val2);
22363 {
22364 PyThreadState* __tstate = wxPyBeginAllowThreads();
22365 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22366 wxPyEndAllowThreads(__tstate);
22367 if (PyErr_Occurred()) SWIG_fail;
22368 }
22369 resultobj = SWIG_From_int(static_cast< int >(result));
22370 return resultobj;
22371 fail:
22372 return NULL;
22373 }
22374
22375
22376 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22377 PyObject *resultobj = 0;
22378 wxDC *arg1 = (wxDC *) 0 ;
22379 int arg2 ;
22380 int result;
22381 void *argp1 = 0 ;
22382 int res1 = 0 ;
22383 int val2 ;
22384 int ecode2 = 0 ;
22385 PyObject * obj0 = 0 ;
22386 PyObject * obj1 = 0 ;
22387 char * kwnames[] = {
22388 (char *) "self",(char *) "y", NULL
22389 };
22390
22391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22393 if (!SWIG_IsOK(res1)) {
22394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22395 }
22396 arg1 = reinterpret_cast< wxDC * >(argp1);
22397 ecode2 = SWIG_AsVal_int(obj1, &val2);
22398 if (!SWIG_IsOK(ecode2)) {
22399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22400 }
22401 arg2 = static_cast< int >(val2);
22402 {
22403 PyThreadState* __tstate = wxPyBeginAllowThreads();
22404 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22405 wxPyEndAllowThreads(__tstate);
22406 if (PyErr_Occurred()) SWIG_fail;
22407 }
22408 resultobj = SWIG_From_int(static_cast< int >(result));
22409 return resultobj;
22410 fail:
22411 return NULL;
22412 }
22413
22414
22415 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22416 PyObject *resultobj = 0;
22417 wxDC *arg1 = (wxDC *) 0 ;
22418 bool result;
22419 void *argp1 = 0 ;
22420 int res1 = 0 ;
22421 PyObject *swig_obj[1] ;
22422
22423 if (!args) SWIG_fail;
22424 swig_obj[0] = args;
22425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22426 if (!SWIG_IsOK(res1)) {
22427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22428 }
22429 arg1 = reinterpret_cast< wxDC * >(argp1);
22430 {
22431 PyThreadState* __tstate = wxPyBeginAllowThreads();
22432 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22433 wxPyEndAllowThreads(__tstate);
22434 if (PyErr_Occurred()) SWIG_fail;
22435 }
22436 {
22437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22438 }
22439 return resultobj;
22440 fail:
22441 return NULL;
22442 }
22443
22444
22445 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22446 PyObject *resultobj = 0;
22447 wxDC *arg1 = (wxDC *) 0 ;
22448 bool result;
22449 void *argp1 = 0 ;
22450 int res1 = 0 ;
22451 PyObject *swig_obj[1] ;
22452
22453 if (!args) SWIG_fail;
22454 swig_obj[0] = args;
22455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22456 if (!SWIG_IsOK(res1)) {
22457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22458 }
22459 arg1 = reinterpret_cast< wxDC * >(argp1);
22460 {
22461 PyThreadState* __tstate = wxPyBeginAllowThreads();
22462 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22463 wxPyEndAllowThreads(__tstate);
22464 if (PyErr_Occurred()) SWIG_fail;
22465 }
22466 {
22467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22468 }
22469 return resultobj;
22470 fail:
22471 return NULL;
22472 }
22473
22474
22475 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22476 PyObject *resultobj = 0;
22477 wxDC *arg1 = (wxDC *) 0 ;
22478 int result;
22479 void *argp1 = 0 ;
22480 int res1 = 0 ;
22481 PyObject *swig_obj[1] ;
22482
22483 if (!args) SWIG_fail;
22484 swig_obj[0] = args;
22485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22486 if (!SWIG_IsOK(res1)) {
22487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22488 }
22489 arg1 = reinterpret_cast< wxDC * >(argp1);
22490 {
22491 PyThreadState* __tstate = wxPyBeginAllowThreads();
22492 result = (int)((wxDC const *)arg1)->GetDepth();
22493 wxPyEndAllowThreads(__tstate);
22494 if (PyErr_Occurred()) SWIG_fail;
22495 }
22496 resultobj = SWIG_From_int(static_cast< int >(result));
22497 return resultobj;
22498 fail:
22499 return NULL;
22500 }
22501
22502
22503 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22504 PyObject *resultobj = 0;
22505 wxDC *arg1 = (wxDC *) 0 ;
22506 wxSize result;
22507 void *argp1 = 0 ;
22508 int res1 = 0 ;
22509 PyObject *swig_obj[1] ;
22510
22511 if (!args) SWIG_fail;
22512 swig_obj[0] = args;
22513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22514 if (!SWIG_IsOK(res1)) {
22515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22516 }
22517 arg1 = reinterpret_cast< wxDC * >(argp1);
22518 {
22519 PyThreadState* __tstate = wxPyBeginAllowThreads();
22520 result = ((wxDC const *)arg1)->GetPPI();
22521 wxPyEndAllowThreads(__tstate);
22522 if (PyErr_Occurred()) SWIG_fail;
22523 }
22524 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22525 return resultobj;
22526 fail:
22527 return NULL;
22528 }
22529
22530
22531 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22532 PyObject *resultobj = 0;
22533 wxDC *arg1 = (wxDC *) 0 ;
22534 bool result;
22535 void *argp1 = 0 ;
22536 int res1 = 0 ;
22537 PyObject *swig_obj[1] ;
22538
22539 if (!args) SWIG_fail;
22540 swig_obj[0] = args;
22541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22542 if (!SWIG_IsOK(res1)) {
22543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
22544 }
22545 arg1 = reinterpret_cast< wxDC * >(argp1);
22546 {
22547 PyThreadState* __tstate = wxPyBeginAllowThreads();
22548 result = (bool)((wxDC const *)arg1)->IsOk();
22549 wxPyEndAllowThreads(__tstate);
22550 if (PyErr_Occurred()) SWIG_fail;
22551 }
22552 {
22553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22554 }
22555 return resultobj;
22556 fail:
22557 return NULL;
22558 }
22559
22560
22561 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22562 PyObject *resultobj = 0;
22563 wxDC *arg1 = (wxDC *) 0 ;
22564 int result;
22565 void *argp1 = 0 ;
22566 int res1 = 0 ;
22567 PyObject *swig_obj[1] ;
22568
22569 if (!args) SWIG_fail;
22570 swig_obj[0] = args;
22571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22572 if (!SWIG_IsOK(res1)) {
22573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22574 }
22575 arg1 = reinterpret_cast< wxDC * >(argp1);
22576 {
22577 PyThreadState* __tstate = wxPyBeginAllowThreads();
22578 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22579 wxPyEndAllowThreads(__tstate);
22580 if (PyErr_Occurred()) SWIG_fail;
22581 }
22582 resultobj = SWIG_From_int(static_cast< int >(result));
22583 return resultobj;
22584 fail:
22585 return NULL;
22586 }
22587
22588
22589 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22590 PyObject *resultobj = 0;
22591 wxDC *arg1 = (wxDC *) 0 ;
22592 wxBrush *result = 0 ;
22593 void *argp1 = 0 ;
22594 int res1 = 0 ;
22595 PyObject *swig_obj[1] ;
22596
22597 if (!args) SWIG_fail;
22598 swig_obj[0] = args;
22599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22600 if (!SWIG_IsOK(res1)) {
22601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22602 }
22603 arg1 = reinterpret_cast< wxDC * >(argp1);
22604 {
22605 PyThreadState* __tstate = wxPyBeginAllowThreads();
22606 {
22607 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22608 result = (wxBrush *) &_result_ref;
22609 }
22610 wxPyEndAllowThreads(__tstate);
22611 if (PyErr_Occurred()) SWIG_fail;
22612 }
22613 {
22614 wxBrush* resultptr = new wxBrush(*result);
22615 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22616 }
22617 return resultobj;
22618 fail:
22619 return NULL;
22620 }
22621
22622
22623 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22624 PyObject *resultobj = 0;
22625 wxDC *arg1 = (wxDC *) 0 ;
22626 wxBrush *result = 0 ;
22627 void *argp1 = 0 ;
22628 int res1 = 0 ;
22629 PyObject *swig_obj[1] ;
22630
22631 if (!args) SWIG_fail;
22632 swig_obj[0] = args;
22633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22634 if (!SWIG_IsOK(res1)) {
22635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22636 }
22637 arg1 = reinterpret_cast< wxDC * >(argp1);
22638 {
22639 PyThreadState* __tstate = wxPyBeginAllowThreads();
22640 {
22641 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22642 result = (wxBrush *) &_result_ref;
22643 }
22644 wxPyEndAllowThreads(__tstate);
22645 if (PyErr_Occurred()) SWIG_fail;
22646 }
22647 {
22648 wxBrush* resultptr = new wxBrush(*result);
22649 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22650 }
22651 return resultobj;
22652 fail:
22653 return NULL;
22654 }
22655
22656
22657 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22658 PyObject *resultobj = 0;
22659 wxDC *arg1 = (wxDC *) 0 ;
22660 wxFont *result = 0 ;
22661 void *argp1 = 0 ;
22662 int res1 = 0 ;
22663 PyObject *swig_obj[1] ;
22664
22665 if (!args) SWIG_fail;
22666 swig_obj[0] = args;
22667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22668 if (!SWIG_IsOK(res1)) {
22669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22670 }
22671 arg1 = reinterpret_cast< wxDC * >(argp1);
22672 {
22673 PyThreadState* __tstate = wxPyBeginAllowThreads();
22674 {
22675 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22676 result = (wxFont *) &_result_ref;
22677 }
22678 wxPyEndAllowThreads(__tstate);
22679 if (PyErr_Occurred()) SWIG_fail;
22680 }
22681 {
22682 wxFont* resultptr = new wxFont(*result);
22683 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22684 }
22685 return resultobj;
22686 fail:
22687 return NULL;
22688 }
22689
22690
22691 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22692 PyObject *resultobj = 0;
22693 wxDC *arg1 = (wxDC *) 0 ;
22694 wxPen *result = 0 ;
22695 void *argp1 = 0 ;
22696 int res1 = 0 ;
22697 PyObject *swig_obj[1] ;
22698
22699 if (!args) SWIG_fail;
22700 swig_obj[0] = args;
22701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22702 if (!SWIG_IsOK(res1)) {
22703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22704 }
22705 arg1 = reinterpret_cast< wxDC * >(argp1);
22706 {
22707 PyThreadState* __tstate = wxPyBeginAllowThreads();
22708 {
22709 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22710 result = (wxPen *) &_result_ref;
22711 }
22712 wxPyEndAllowThreads(__tstate);
22713 if (PyErr_Occurred()) SWIG_fail;
22714 }
22715 {
22716 wxPen* resultptr = new wxPen(*result);
22717 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22718 }
22719 return resultobj;
22720 fail:
22721 return NULL;
22722 }
22723
22724
22725 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22726 PyObject *resultobj = 0;
22727 wxDC *arg1 = (wxDC *) 0 ;
22728 wxColour *result = 0 ;
22729 void *argp1 = 0 ;
22730 int res1 = 0 ;
22731 PyObject *swig_obj[1] ;
22732
22733 if (!args) SWIG_fail;
22734 swig_obj[0] = args;
22735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22736 if (!SWIG_IsOK(res1)) {
22737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22738 }
22739 arg1 = reinterpret_cast< wxDC * >(argp1);
22740 {
22741 PyThreadState* __tstate = wxPyBeginAllowThreads();
22742 {
22743 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22744 result = (wxColour *) &_result_ref;
22745 }
22746 wxPyEndAllowThreads(__tstate);
22747 if (PyErr_Occurred()) SWIG_fail;
22748 }
22749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22750 return resultobj;
22751 fail:
22752 return NULL;
22753 }
22754
22755
22756 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22757 PyObject *resultobj = 0;
22758 wxDC *arg1 = (wxDC *) 0 ;
22759 wxColour *result = 0 ;
22760 void *argp1 = 0 ;
22761 int res1 = 0 ;
22762 PyObject *swig_obj[1] ;
22763
22764 if (!args) SWIG_fail;
22765 swig_obj[0] = args;
22766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22767 if (!SWIG_IsOK(res1)) {
22768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22769 }
22770 arg1 = reinterpret_cast< wxDC * >(argp1);
22771 {
22772 PyThreadState* __tstate = wxPyBeginAllowThreads();
22773 {
22774 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22775 result = (wxColour *) &_result_ref;
22776 }
22777 wxPyEndAllowThreads(__tstate);
22778 if (PyErr_Occurred()) SWIG_fail;
22779 }
22780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22781 return resultobj;
22782 fail:
22783 return NULL;
22784 }
22785
22786
22787 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22788 PyObject *resultobj = 0;
22789 wxDC *arg1 = (wxDC *) 0 ;
22790 wxColour *arg2 = 0 ;
22791 void *argp1 = 0 ;
22792 int res1 = 0 ;
22793 wxColour temp2 ;
22794 PyObject * obj0 = 0 ;
22795 PyObject * obj1 = 0 ;
22796 char * kwnames[] = {
22797 (char *) "self",(char *) "colour", NULL
22798 };
22799
22800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22802 if (!SWIG_IsOK(res1)) {
22803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22804 }
22805 arg1 = reinterpret_cast< wxDC * >(argp1);
22806 {
22807 arg2 = &temp2;
22808 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22809 }
22810 {
22811 PyThreadState* __tstate = wxPyBeginAllowThreads();
22812 (arg1)->SetTextForeground((wxColour const &)*arg2);
22813 wxPyEndAllowThreads(__tstate);
22814 if (PyErr_Occurred()) SWIG_fail;
22815 }
22816 resultobj = SWIG_Py_Void();
22817 return resultobj;
22818 fail:
22819 return NULL;
22820 }
22821
22822
22823 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22824 PyObject *resultobj = 0;
22825 wxDC *arg1 = (wxDC *) 0 ;
22826 wxColour *arg2 = 0 ;
22827 void *argp1 = 0 ;
22828 int res1 = 0 ;
22829 wxColour temp2 ;
22830 PyObject * obj0 = 0 ;
22831 PyObject * obj1 = 0 ;
22832 char * kwnames[] = {
22833 (char *) "self",(char *) "colour", NULL
22834 };
22835
22836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22838 if (!SWIG_IsOK(res1)) {
22839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22840 }
22841 arg1 = reinterpret_cast< wxDC * >(argp1);
22842 {
22843 arg2 = &temp2;
22844 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22845 }
22846 {
22847 PyThreadState* __tstate = wxPyBeginAllowThreads();
22848 (arg1)->SetTextBackground((wxColour const &)*arg2);
22849 wxPyEndAllowThreads(__tstate);
22850 if (PyErr_Occurred()) SWIG_fail;
22851 }
22852 resultobj = SWIG_Py_Void();
22853 return resultobj;
22854 fail:
22855 return NULL;
22856 }
22857
22858
22859 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22860 PyObject *resultobj = 0;
22861 wxDC *arg1 = (wxDC *) 0 ;
22862 int result;
22863 void *argp1 = 0 ;
22864 int res1 = 0 ;
22865 PyObject *swig_obj[1] ;
22866
22867 if (!args) SWIG_fail;
22868 swig_obj[0] = args;
22869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22870 if (!SWIG_IsOK(res1)) {
22871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22872 }
22873 arg1 = reinterpret_cast< wxDC * >(argp1);
22874 {
22875 PyThreadState* __tstate = wxPyBeginAllowThreads();
22876 result = (int)((wxDC const *)arg1)->GetMapMode();
22877 wxPyEndAllowThreads(__tstate);
22878 if (PyErr_Occurred()) SWIG_fail;
22879 }
22880 resultobj = SWIG_From_int(static_cast< int >(result));
22881 return resultobj;
22882 fail:
22883 return NULL;
22884 }
22885
22886
22887 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22888 PyObject *resultobj = 0;
22889 wxDC *arg1 = (wxDC *) 0 ;
22890 int arg2 ;
22891 void *argp1 = 0 ;
22892 int res1 = 0 ;
22893 int val2 ;
22894 int ecode2 = 0 ;
22895 PyObject * obj0 = 0 ;
22896 PyObject * obj1 = 0 ;
22897 char * kwnames[] = {
22898 (char *) "self",(char *) "mode", NULL
22899 };
22900
22901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22903 if (!SWIG_IsOK(res1)) {
22904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22905 }
22906 arg1 = reinterpret_cast< wxDC * >(argp1);
22907 ecode2 = SWIG_AsVal_int(obj1, &val2);
22908 if (!SWIG_IsOK(ecode2)) {
22909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22910 }
22911 arg2 = static_cast< int >(val2);
22912 {
22913 PyThreadState* __tstate = wxPyBeginAllowThreads();
22914 (arg1)->SetMapMode(arg2);
22915 wxPyEndAllowThreads(__tstate);
22916 if (PyErr_Occurred()) SWIG_fail;
22917 }
22918 resultobj = SWIG_Py_Void();
22919 return resultobj;
22920 fail:
22921 return NULL;
22922 }
22923
22924
22925 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22926 PyObject *resultobj = 0;
22927 wxDC *arg1 = (wxDC *) 0 ;
22928 double *arg2 = (double *) 0 ;
22929 double *arg3 = (double *) 0 ;
22930 void *argp1 = 0 ;
22931 int res1 = 0 ;
22932 double temp2 ;
22933 int res2 = SWIG_TMPOBJ ;
22934 double temp3 ;
22935 int res3 = SWIG_TMPOBJ ;
22936 PyObject *swig_obj[1] ;
22937
22938 arg2 = &temp2;
22939 arg3 = &temp3;
22940 if (!args) SWIG_fail;
22941 swig_obj[0] = args;
22942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22943 if (!SWIG_IsOK(res1)) {
22944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22945 }
22946 arg1 = reinterpret_cast< wxDC * >(argp1);
22947 {
22948 PyThreadState* __tstate = wxPyBeginAllowThreads();
22949 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22950 wxPyEndAllowThreads(__tstate);
22951 if (PyErr_Occurred()) SWIG_fail;
22952 }
22953 resultobj = SWIG_Py_Void();
22954 if (SWIG_IsTmpObj(res2)) {
22955 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22956 } else {
22957 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22958 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22959 }
22960 if (SWIG_IsTmpObj(res3)) {
22961 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22962 } else {
22963 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22964 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22965 }
22966 return resultobj;
22967 fail:
22968 return NULL;
22969 }
22970
22971
22972 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22973 PyObject *resultobj = 0;
22974 wxDC *arg1 = (wxDC *) 0 ;
22975 double arg2 ;
22976 double arg3 ;
22977 void *argp1 = 0 ;
22978 int res1 = 0 ;
22979 double val2 ;
22980 int ecode2 = 0 ;
22981 double val3 ;
22982 int ecode3 = 0 ;
22983 PyObject * obj0 = 0 ;
22984 PyObject * obj1 = 0 ;
22985 PyObject * obj2 = 0 ;
22986 char * kwnames[] = {
22987 (char *) "self",(char *) "x",(char *) "y", NULL
22988 };
22989
22990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22992 if (!SWIG_IsOK(res1)) {
22993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22994 }
22995 arg1 = reinterpret_cast< wxDC * >(argp1);
22996 ecode2 = SWIG_AsVal_double(obj1, &val2);
22997 if (!SWIG_IsOK(ecode2)) {
22998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22999 }
23000 arg2 = static_cast< double >(val2);
23001 ecode3 = SWIG_AsVal_double(obj2, &val3);
23002 if (!SWIG_IsOK(ecode3)) {
23003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
23004 }
23005 arg3 = static_cast< double >(val3);
23006 {
23007 PyThreadState* __tstate = wxPyBeginAllowThreads();
23008 (arg1)->SetUserScale(arg2,arg3);
23009 wxPyEndAllowThreads(__tstate);
23010 if (PyErr_Occurred()) SWIG_fail;
23011 }
23012 resultobj = SWIG_Py_Void();
23013 return resultobj;
23014 fail:
23015 return NULL;
23016 }
23017
23018
23019 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23020 PyObject *resultobj = 0;
23021 wxDC *arg1 = (wxDC *) 0 ;
23022 double *arg2 = (double *) 0 ;
23023 double *arg3 = (double *) 0 ;
23024 void *argp1 = 0 ;
23025 int res1 = 0 ;
23026 double temp2 ;
23027 int res2 = SWIG_TMPOBJ ;
23028 double temp3 ;
23029 int res3 = SWIG_TMPOBJ ;
23030 PyObject *swig_obj[1] ;
23031
23032 arg2 = &temp2;
23033 arg3 = &temp3;
23034 if (!args) SWIG_fail;
23035 swig_obj[0] = args;
23036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23037 if (!SWIG_IsOK(res1)) {
23038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23039 }
23040 arg1 = reinterpret_cast< wxDC * >(argp1);
23041 {
23042 PyThreadState* __tstate = wxPyBeginAllowThreads();
23043 (arg1)->GetLogicalScale(arg2,arg3);
23044 wxPyEndAllowThreads(__tstate);
23045 if (PyErr_Occurred()) SWIG_fail;
23046 }
23047 resultobj = SWIG_Py_Void();
23048 if (SWIG_IsTmpObj(res2)) {
23049 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
23050 } else {
23051 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23052 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
23053 }
23054 if (SWIG_IsTmpObj(res3)) {
23055 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
23056 } else {
23057 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23058 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
23059 }
23060 return resultobj;
23061 fail:
23062 return NULL;
23063 }
23064
23065
23066 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23067 PyObject *resultobj = 0;
23068 wxDC *arg1 = (wxDC *) 0 ;
23069 double arg2 ;
23070 double arg3 ;
23071 void *argp1 = 0 ;
23072 int res1 = 0 ;
23073 double val2 ;
23074 int ecode2 = 0 ;
23075 double val3 ;
23076 int ecode3 = 0 ;
23077 PyObject * obj0 = 0 ;
23078 PyObject * obj1 = 0 ;
23079 PyObject * obj2 = 0 ;
23080 char * kwnames[] = {
23081 (char *) "self",(char *) "x",(char *) "y", NULL
23082 };
23083
23084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23086 if (!SWIG_IsOK(res1)) {
23087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23088 }
23089 arg1 = reinterpret_cast< wxDC * >(argp1);
23090 ecode2 = SWIG_AsVal_double(obj1, &val2);
23091 if (!SWIG_IsOK(ecode2)) {
23092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
23093 }
23094 arg2 = static_cast< double >(val2);
23095 ecode3 = SWIG_AsVal_double(obj2, &val3);
23096 if (!SWIG_IsOK(ecode3)) {
23097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
23098 }
23099 arg3 = static_cast< double >(val3);
23100 {
23101 PyThreadState* __tstate = wxPyBeginAllowThreads();
23102 (arg1)->SetLogicalScale(arg2,arg3);
23103 wxPyEndAllowThreads(__tstate);
23104 if (PyErr_Occurred()) SWIG_fail;
23105 }
23106 resultobj = SWIG_Py_Void();
23107 return resultobj;
23108 fail:
23109 return NULL;
23110 }
23111
23112
23113 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23114 PyObject *resultobj = 0;
23115 wxDC *arg1 = (wxDC *) 0 ;
23116 wxPoint result;
23117 void *argp1 = 0 ;
23118 int res1 = 0 ;
23119 PyObject *swig_obj[1] ;
23120
23121 if (!args) SWIG_fail;
23122 swig_obj[0] = args;
23123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23124 if (!SWIG_IsOK(res1)) {
23125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23126 }
23127 arg1 = reinterpret_cast< wxDC * >(argp1);
23128 {
23129 PyThreadState* __tstate = wxPyBeginAllowThreads();
23130 result = ((wxDC const *)arg1)->GetLogicalOrigin();
23131 wxPyEndAllowThreads(__tstate);
23132 if (PyErr_Occurred()) SWIG_fail;
23133 }
23134 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23135 return resultobj;
23136 fail:
23137 return NULL;
23138 }
23139
23140
23141 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23142 PyObject *resultobj = 0;
23143 wxDC *arg1 = (wxDC *) 0 ;
23144 int *arg2 = (int *) 0 ;
23145 int *arg3 = (int *) 0 ;
23146 void *argp1 = 0 ;
23147 int res1 = 0 ;
23148 int temp2 ;
23149 int res2 = SWIG_TMPOBJ ;
23150 int temp3 ;
23151 int res3 = SWIG_TMPOBJ ;
23152 PyObject *swig_obj[1] ;
23153
23154 arg2 = &temp2;
23155 arg3 = &temp3;
23156 if (!args) SWIG_fail;
23157 swig_obj[0] = args;
23158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23159 if (!SWIG_IsOK(res1)) {
23160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23161 }
23162 arg1 = reinterpret_cast< wxDC * >(argp1);
23163 {
23164 PyThreadState* __tstate = wxPyBeginAllowThreads();
23165 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
23166 wxPyEndAllowThreads(__tstate);
23167 if (PyErr_Occurred()) SWIG_fail;
23168 }
23169 resultobj = SWIG_Py_Void();
23170 if (SWIG_IsTmpObj(res2)) {
23171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23172 } else {
23173 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23175 }
23176 if (SWIG_IsTmpObj(res3)) {
23177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23178 } else {
23179 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23181 }
23182 return resultobj;
23183 fail:
23184 return NULL;
23185 }
23186
23187
23188 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23189 PyObject *resultobj = 0;
23190 wxDC *arg1 = (wxDC *) 0 ;
23191 int arg2 ;
23192 int arg3 ;
23193 void *argp1 = 0 ;
23194 int res1 = 0 ;
23195 int val2 ;
23196 int ecode2 = 0 ;
23197 int val3 ;
23198 int ecode3 = 0 ;
23199 PyObject * obj0 = 0 ;
23200 PyObject * obj1 = 0 ;
23201 PyObject * obj2 = 0 ;
23202 char * kwnames[] = {
23203 (char *) "self",(char *) "x",(char *) "y", NULL
23204 };
23205
23206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23208 if (!SWIG_IsOK(res1)) {
23209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23210 }
23211 arg1 = reinterpret_cast< wxDC * >(argp1);
23212 ecode2 = SWIG_AsVal_int(obj1, &val2);
23213 if (!SWIG_IsOK(ecode2)) {
23214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23215 }
23216 arg2 = static_cast< int >(val2);
23217 ecode3 = SWIG_AsVal_int(obj2, &val3);
23218 if (!SWIG_IsOK(ecode3)) {
23219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23220 }
23221 arg3 = static_cast< int >(val3);
23222 {
23223 PyThreadState* __tstate = wxPyBeginAllowThreads();
23224 (arg1)->SetLogicalOrigin(arg2,arg3);
23225 wxPyEndAllowThreads(__tstate);
23226 if (PyErr_Occurred()) SWIG_fail;
23227 }
23228 resultobj = SWIG_Py_Void();
23229 return resultobj;
23230 fail:
23231 return NULL;
23232 }
23233
23234
23235 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23236 PyObject *resultobj = 0;
23237 wxDC *arg1 = (wxDC *) 0 ;
23238 wxPoint *arg2 = 0 ;
23239 void *argp1 = 0 ;
23240 int res1 = 0 ;
23241 wxPoint temp2 ;
23242 PyObject * obj0 = 0 ;
23243 PyObject * obj1 = 0 ;
23244 char * kwnames[] = {
23245 (char *) "self",(char *) "point", NULL
23246 };
23247
23248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23250 if (!SWIG_IsOK(res1)) {
23251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23252 }
23253 arg1 = reinterpret_cast< wxDC * >(argp1);
23254 {
23255 arg2 = &temp2;
23256 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23257 }
23258 {
23259 PyThreadState* __tstate = wxPyBeginAllowThreads();
23260 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23261 wxPyEndAllowThreads(__tstate);
23262 if (PyErr_Occurred()) SWIG_fail;
23263 }
23264 resultobj = SWIG_Py_Void();
23265 return resultobj;
23266 fail:
23267 return NULL;
23268 }
23269
23270
23271 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23272 PyObject *resultobj = 0;
23273 wxDC *arg1 = (wxDC *) 0 ;
23274 wxPoint result;
23275 void *argp1 = 0 ;
23276 int res1 = 0 ;
23277 PyObject *swig_obj[1] ;
23278
23279 if (!args) SWIG_fail;
23280 swig_obj[0] = args;
23281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23282 if (!SWIG_IsOK(res1)) {
23283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23284 }
23285 arg1 = reinterpret_cast< wxDC * >(argp1);
23286 {
23287 PyThreadState* __tstate = wxPyBeginAllowThreads();
23288 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23289 wxPyEndAllowThreads(__tstate);
23290 if (PyErr_Occurred()) SWIG_fail;
23291 }
23292 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23293 return resultobj;
23294 fail:
23295 return NULL;
23296 }
23297
23298
23299 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23300 PyObject *resultobj = 0;
23301 wxDC *arg1 = (wxDC *) 0 ;
23302 int *arg2 = (int *) 0 ;
23303 int *arg3 = (int *) 0 ;
23304 void *argp1 = 0 ;
23305 int res1 = 0 ;
23306 int temp2 ;
23307 int res2 = SWIG_TMPOBJ ;
23308 int temp3 ;
23309 int res3 = SWIG_TMPOBJ ;
23310 PyObject *swig_obj[1] ;
23311
23312 arg2 = &temp2;
23313 arg3 = &temp3;
23314 if (!args) SWIG_fail;
23315 swig_obj[0] = args;
23316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23317 if (!SWIG_IsOK(res1)) {
23318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23319 }
23320 arg1 = reinterpret_cast< wxDC * >(argp1);
23321 {
23322 PyThreadState* __tstate = wxPyBeginAllowThreads();
23323 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23324 wxPyEndAllowThreads(__tstate);
23325 if (PyErr_Occurred()) SWIG_fail;
23326 }
23327 resultobj = SWIG_Py_Void();
23328 if (SWIG_IsTmpObj(res2)) {
23329 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23330 } else {
23331 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23332 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23333 }
23334 if (SWIG_IsTmpObj(res3)) {
23335 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23336 } else {
23337 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23338 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23339 }
23340 return resultobj;
23341 fail:
23342 return NULL;
23343 }
23344
23345
23346 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23347 PyObject *resultobj = 0;
23348 wxDC *arg1 = (wxDC *) 0 ;
23349 int arg2 ;
23350 int arg3 ;
23351 void *argp1 = 0 ;
23352 int res1 = 0 ;
23353 int val2 ;
23354 int ecode2 = 0 ;
23355 int val3 ;
23356 int ecode3 = 0 ;
23357 PyObject * obj0 = 0 ;
23358 PyObject * obj1 = 0 ;
23359 PyObject * obj2 = 0 ;
23360 char * kwnames[] = {
23361 (char *) "self",(char *) "x",(char *) "y", NULL
23362 };
23363
23364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23366 if (!SWIG_IsOK(res1)) {
23367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23368 }
23369 arg1 = reinterpret_cast< wxDC * >(argp1);
23370 ecode2 = SWIG_AsVal_int(obj1, &val2);
23371 if (!SWIG_IsOK(ecode2)) {
23372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23373 }
23374 arg2 = static_cast< int >(val2);
23375 ecode3 = SWIG_AsVal_int(obj2, &val3);
23376 if (!SWIG_IsOK(ecode3)) {
23377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23378 }
23379 arg3 = static_cast< int >(val3);
23380 {
23381 PyThreadState* __tstate = wxPyBeginAllowThreads();
23382 (arg1)->SetDeviceOrigin(arg2,arg3);
23383 wxPyEndAllowThreads(__tstate);
23384 if (PyErr_Occurred()) SWIG_fail;
23385 }
23386 resultobj = SWIG_Py_Void();
23387 return resultobj;
23388 fail:
23389 return NULL;
23390 }
23391
23392
23393 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23394 PyObject *resultobj = 0;
23395 wxDC *arg1 = (wxDC *) 0 ;
23396 wxPoint *arg2 = 0 ;
23397 void *argp1 = 0 ;
23398 int res1 = 0 ;
23399 wxPoint temp2 ;
23400 PyObject * obj0 = 0 ;
23401 PyObject * obj1 = 0 ;
23402 char * kwnames[] = {
23403 (char *) "self",(char *) "point", NULL
23404 };
23405
23406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23408 if (!SWIG_IsOK(res1)) {
23409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23410 }
23411 arg1 = reinterpret_cast< wxDC * >(argp1);
23412 {
23413 arg2 = &temp2;
23414 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23415 }
23416 {
23417 PyThreadState* __tstate = wxPyBeginAllowThreads();
23418 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23419 wxPyEndAllowThreads(__tstate);
23420 if (PyErr_Occurred()) SWIG_fail;
23421 }
23422 resultobj = SWIG_Py_Void();
23423 return resultobj;
23424 fail:
23425 return NULL;
23426 }
23427
23428
23429 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23430 PyObject *resultobj = 0;
23431 wxDC *arg1 = (wxDC *) 0 ;
23432 bool arg2 ;
23433 bool arg3 ;
23434 void *argp1 = 0 ;
23435 int res1 = 0 ;
23436 bool val2 ;
23437 int ecode2 = 0 ;
23438 bool val3 ;
23439 int ecode3 = 0 ;
23440 PyObject * obj0 = 0 ;
23441 PyObject * obj1 = 0 ;
23442 PyObject * obj2 = 0 ;
23443 char * kwnames[] = {
23444 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23445 };
23446
23447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23449 if (!SWIG_IsOK(res1)) {
23450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23451 }
23452 arg1 = reinterpret_cast< wxDC * >(argp1);
23453 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23454 if (!SWIG_IsOK(ecode2)) {
23455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23456 }
23457 arg2 = static_cast< bool >(val2);
23458 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23459 if (!SWIG_IsOK(ecode3)) {
23460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23461 }
23462 arg3 = static_cast< bool >(val3);
23463 {
23464 PyThreadState* __tstate = wxPyBeginAllowThreads();
23465 (arg1)->SetAxisOrientation(arg2,arg3);
23466 wxPyEndAllowThreads(__tstate);
23467 if (PyErr_Occurred()) SWIG_fail;
23468 }
23469 resultobj = SWIG_Py_Void();
23470 return resultobj;
23471 fail:
23472 return NULL;
23473 }
23474
23475
23476 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23477 PyObject *resultobj = 0;
23478 wxDC *arg1 = (wxDC *) 0 ;
23479 int result;
23480 void *argp1 = 0 ;
23481 int res1 = 0 ;
23482 PyObject *swig_obj[1] ;
23483
23484 if (!args) SWIG_fail;
23485 swig_obj[0] = args;
23486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23487 if (!SWIG_IsOK(res1)) {
23488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23489 }
23490 arg1 = reinterpret_cast< wxDC * >(argp1);
23491 {
23492 PyThreadState* __tstate = wxPyBeginAllowThreads();
23493 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23494 wxPyEndAllowThreads(__tstate);
23495 if (PyErr_Occurred()) SWIG_fail;
23496 }
23497 resultobj = SWIG_From_int(static_cast< int >(result));
23498 return resultobj;
23499 fail:
23500 return NULL;
23501 }
23502
23503
23504 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23505 PyObject *resultobj = 0;
23506 wxDC *arg1 = (wxDC *) 0 ;
23507 int arg2 ;
23508 void *argp1 = 0 ;
23509 int res1 = 0 ;
23510 int val2 ;
23511 int ecode2 = 0 ;
23512 PyObject * obj0 = 0 ;
23513 PyObject * obj1 = 0 ;
23514 char * kwnames[] = {
23515 (char *) "self",(char *) "function", NULL
23516 };
23517
23518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23520 if (!SWIG_IsOK(res1)) {
23521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23522 }
23523 arg1 = reinterpret_cast< wxDC * >(argp1);
23524 ecode2 = SWIG_AsVal_int(obj1, &val2);
23525 if (!SWIG_IsOK(ecode2)) {
23526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23527 }
23528 arg2 = static_cast< int >(val2);
23529 {
23530 PyThreadState* __tstate = wxPyBeginAllowThreads();
23531 (arg1)->SetLogicalFunction(arg2);
23532 wxPyEndAllowThreads(__tstate);
23533 if (PyErr_Occurred()) SWIG_fail;
23534 }
23535 resultobj = SWIG_Py_Void();
23536 return resultobj;
23537 fail:
23538 return NULL;
23539 }
23540
23541
23542 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23543 PyObject *resultobj = 0;
23544 wxDC *arg1 = (wxDC *) 0 ;
23545 void *argp1 = 0 ;
23546 int res1 = 0 ;
23547 PyObject *swig_obj[1] ;
23548
23549 if (!args) SWIG_fail;
23550 swig_obj[0] = args;
23551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23552 if (!SWIG_IsOK(res1)) {
23553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23554 }
23555 arg1 = reinterpret_cast< wxDC * >(argp1);
23556 {
23557 PyThreadState* __tstate = wxPyBeginAllowThreads();
23558 (arg1)->ComputeScaleAndOrigin();
23559 wxPyEndAllowThreads(__tstate);
23560 if (PyErr_Occurred()) SWIG_fail;
23561 }
23562 resultobj = SWIG_Py_Void();
23563 return resultobj;
23564 fail:
23565 return NULL;
23566 }
23567
23568
23569 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23570 PyObject *resultobj = 0;
23571 wxDC *arg1 = (wxDC *) 0 ;
23572 int arg2 ;
23573 int arg3 ;
23574 void *argp1 = 0 ;
23575 int res1 = 0 ;
23576 int val2 ;
23577 int ecode2 = 0 ;
23578 int val3 ;
23579 int ecode3 = 0 ;
23580 PyObject * obj0 = 0 ;
23581 PyObject * obj1 = 0 ;
23582 PyObject * obj2 = 0 ;
23583 char * kwnames[] = {
23584 (char *) "self",(char *) "x",(char *) "y", NULL
23585 };
23586
23587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23589 if (!SWIG_IsOK(res1)) {
23590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23591 }
23592 arg1 = reinterpret_cast< wxDC * >(argp1);
23593 ecode2 = SWIG_AsVal_int(obj1, &val2);
23594 if (!SWIG_IsOK(ecode2)) {
23595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23596 }
23597 arg2 = static_cast< int >(val2);
23598 ecode3 = SWIG_AsVal_int(obj2, &val3);
23599 if (!SWIG_IsOK(ecode3)) {
23600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23601 }
23602 arg3 = static_cast< int >(val3);
23603 {
23604 PyThreadState* __tstate = wxPyBeginAllowThreads();
23605 (arg1)->CalcBoundingBox(arg2,arg3);
23606 wxPyEndAllowThreads(__tstate);
23607 if (PyErr_Occurred()) SWIG_fail;
23608 }
23609 resultobj = SWIG_Py_Void();
23610 return resultobj;
23611 fail:
23612 return NULL;
23613 }
23614
23615
23616 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23617 PyObject *resultobj = 0;
23618 wxDC *arg1 = (wxDC *) 0 ;
23619 wxPoint *arg2 = 0 ;
23620 void *argp1 = 0 ;
23621 int res1 = 0 ;
23622 wxPoint temp2 ;
23623 PyObject * obj0 = 0 ;
23624 PyObject * obj1 = 0 ;
23625 char * kwnames[] = {
23626 (char *) "self",(char *) "point", NULL
23627 };
23628
23629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23631 if (!SWIG_IsOK(res1)) {
23632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23633 }
23634 arg1 = reinterpret_cast< wxDC * >(argp1);
23635 {
23636 arg2 = &temp2;
23637 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23638 }
23639 {
23640 PyThreadState* __tstate = wxPyBeginAllowThreads();
23641 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23642 wxPyEndAllowThreads(__tstate);
23643 if (PyErr_Occurred()) SWIG_fail;
23644 }
23645 resultobj = SWIG_Py_Void();
23646 return resultobj;
23647 fail:
23648 return NULL;
23649 }
23650
23651
23652 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23653 PyObject *resultobj = 0;
23654 wxDC *arg1 = (wxDC *) 0 ;
23655 void *argp1 = 0 ;
23656 int res1 = 0 ;
23657 PyObject *swig_obj[1] ;
23658
23659 if (!args) SWIG_fail;
23660 swig_obj[0] = args;
23661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23662 if (!SWIG_IsOK(res1)) {
23663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23664 }
23665 arg1 = reinterpret_cast< wxDC * >(argp1);
23666 {
23667 PyThreadState* __tstate = wxPyBeginAllowThreads();
23668 (arg1)->ResetBoundingBox();
23669 wxPyEndAllowThreads(__tstate);
23670 if (PyErr_Occurred()) SWIG_fail;
23671 }
23672 resultobj = SWIG_Py_Void();
23673 return resultobj;
23674 fail:
23675 return NULL;
23676 }
23677
23678
23679 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23680 PyObject *resultobj = 0;
23681 wxDC *arg1 = (wxDC *) 0 ;
23682 int result;
23683 void *argp1 = 0 ;
23684 int res1 = 0 ;
23685 PyObject *swig_obj[1] ;
23686
23687 if (!args) SWIG_fail;
23688 swig_obj[0] = args;
23689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23690 if (!SWIG_IsOK(res1)) {
23691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23692 }
23693 arg1 = reinterpret_cast< wxDC * >(argp1);
23694 {
23695 PyThreadState* __tstate = wxPyBeginAllowThreads();
23696 result = (int)((wxDC const *)arg1)->MinX();
23697 wxPyEndAllowThreads(__tstate);
23698 if (PyErr_Occurred()) SWIG_fail;
23699 }
23700 resultobj = SWIG_From_int(static_cast< int >(result));
23701 return resultobj;
23702 fail:
23703 return NULL;
23704 }
23705
23706
23707 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23708 PyObject *resultobj = 0;
23709 wxDC *arg1 = (wxDC *) 0 ;
23710 int result;
23711 void *argp1 = 0 ;
23712 int res1 = 0 ;
23713 PyObject *swig_obj[1] ;
23714
23715 if (!args) SWIG_fail;
23716 swig_obj[0] = args;
23717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23718 if (!SWIG_IsOK(res1)) {
23719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23720 }
23721 arg1 = reinterpret_cast< wxDC * >(argp1);
23722 {
23723 PyThreadState* __tstate = wxPyBeginAllowThreads();
23724 result = (int)((wxDC const *)arg1)->MaxX();
23725 wxPyEndAllowThreads(__tstate);
23726 if (PyErr_Occurred()) SWIG_fail;
23727 }
23728 resultobj = SWIG_From_int(static_cast< int >(result));
23729 return resultobj;
23730 fail:
23731 return NULL;
23732 }
23733
23734
23735 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23736 PyObject *resultobj = 0;
23737 wxDC *arg1 = (wxDC *) 0 ;
23738 int result;
23739 void *argp1 = 0 ;
23740 int res1 = 0 ;
23741 PyObject *swig_obj[1] ;
23742
23743 if (!args) SWIG_fail;
23744 swig_obj[0] = args;
23745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23746 if (!SWIG_IsOK(res1)) {
23747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23748 }
23749 arg1 = reinterpret_cast< wxDC * >(argp1);
23750 {
23751 PyThreadState* __tstate = wxPyBeginAllowThreads();
23752 result = (int)((wxDC const *)arg1)->MinY();
23753 wxPyEndAllowThreads(__tstate);
23754 if (PyErr_Occurred()) SWIG_fail;
23755 }
23756 resultobj = SWIG_From_int(static_cast< int >(result));
23757 return resultobj;
23758 fail:
23759 return NULL;
23760 }
23761
23762
23763 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23764 PyObject *resultobj = 0;
23765 wxDC *arg1 = (wxDC *) 0 ;
23766 int result;
23767 void *argp1 = 0 ;
23768 int res1 = 0 ;
23769 PyObject *swig_obj[1] ;
23770
23771 if (!args) SWIG_fail;
23772 swig_obj[0] = args;
23773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23774 if (!SWIG_IsOK(res1)) {
23775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23776 }
23777 arg1 = reinterpret_cast< wxDC * >(argp1);
23778 {
23779 PyThreadState* __tstate = wxPyBeginAllowThreads();
23780 result = (int)((wxDC const *)arg1)->MaxY();
23781 wxPyEndAllowThreads(__tstate);
23782 if (PyErr_Occurred()) SWIG_fail;
23783 }
23784 resultobj = SWIG_From_int(static_cast< int >(result));
23785 return resultobj;
23786 fail:
23787 return NULL;
23788 }
23789
23790
23791 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23792 PyObject *resultobj = 0;
23793 wxDC *arg1 = (wxDC *) 0 ;
23794 int *arg2 = (int *) 0 ;
23795 int *arg3 = (int *) 0 ;
23796 int *arg4 = (int *) 0 ;
23797 int *arg5 = (int *) 0 ;
23798 void *argp1 = 0 ;
23799 int res1 = 0 ;
23800 int temp2 ;
23801 int res2 = SWIG_TMPOBJ ;
23802 int temp3 ;
23803 int res3 = SWIG_TMPOBJ ;
23804 int temp4 ;
23805 int res4 = SWIG_TMPOBJ ;
23806 int temp5 ;
23807 int res5 = SWIG_TMPOBJ ;
23808 PyObject *swig_obj[1] ;
23809
23810 arg2 = &temp2;
23811 arg3 = &temp3;
23812 arg4 = &temp4;
23813 arg5 = &temp5;
23814 if (!args) SWIG_fail;
23815 swig_obj[0] = args;
23816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23817 if (!SWIG_IsOK(res1)) {
23818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23819 }
23820 arg1 = reinterpret_cast< wxDC * >(argp1);
23821 {
23822 PyThreadState* __tstate = wxPyBeginAllowThreads();
23823 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23824 wxPyEndAllowThreads(__tstate);
23825 if (PyErr_Occurred()) SWIG_fail;
23826 }
23827 resultobj = SWIG_Py_Void();
23828 if (SWIG_IsTmpObj(res2)) {
23829 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23830 } else {
23831 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23832 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23833 }
23834 if (SWIG_IsTmpObj(res3)) {
23835 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23836 } else {
23837 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23838 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23839 }
23840 if (SWIG_IsTmpObj(res4)) {
23841 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23842 } else {
23843 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23844 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23845 }
23846 if (SWIG_IsTmpObj(res5)) {
23847 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23848 } else {
23849 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23850 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23851 }
23852 return resultobj;
23853 fail:
23854 return NULL;
23855 }
23856
23857
23858 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23859 PyObject *resultobj = 0;
23860 wxDC *arg1 = (wxDC *) 0 ;
23861 wxLayoutDirection result;
23862 void *argp1 = 0 ;
23863 int res1 = 0 ;
23864 PyObject *swig_obj[1] ;
23865
23866 if (!args) SWIG_fail;
23867 swig_obj[0] = args;
23868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23869 if (!SWIG_IsOK(res1)) {
23870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23871 }
23872 arg1 = reinterpret_cast< wxDC * >(argp1);
23873 {
23874 PyThreadState* __tstate = wxPyBeginAllowThreads();
23875 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23876 wxPyEndAllowThreads(__tstate);
23877 if (PyErr_Occurred()) SWIG_fail;
23878 }
23879 resultobj = SWIG_From_int(static_cast< int >(result));
23880 return resultobj;
23881 fail:
23882 return NULL;
23883 }
23884
23885
23886 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23887 PyObject *resultobj = 0;
23888 wxDC *arg1 = (wxDC *) 0 ;
23889 wxLayoutDirection arg2 ;
23890 void *argp1 = 0 ;
23891 int res1 = 0 ;
23892 int val2 ;
23893 int ecode2 = 0 ;
23894 PyObject * obj0 = 0 ;
23895 PyObject * obj1 = 0 ;
23896 char * kwnames[] = {
23897 (char *) "self",(char *) "dir", NULL
23898 };
23899
23900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23902 if (!SWIG_IsOK(res1)) {
23903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23904 }
23905 arg1 = reinterpret_cast< wxDC * >(argp1);
23906 ecode2 = SWIG_AsVal_int(obj1, &val2);
23907 if (!SWIG_IsOK(ecode2)) {
23908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23909 }
23910 arg2 = static_cast< wxLayoutDirection >(val2);
23911 {
23912 PyThreadState* __tstate = wxPyBeginAllowThreads();
23913 (arg1)->SetLayoutDirection(arg2);
23914 wxPyEndAllowThreads(__tstate);
23915 if (PyErr_Occurred()) SWIG_fail;
23916 }
23917 resultobj = SWIG_Py_Void();
23918 return resultobj;
23919 fail:
23920 return NULL;
23921 }
23922
23923
23924 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23925 PyObject *resultobj = 0;
23926 wxDC *arg1 = (wxDC *) 0 ;
23927 long result;
23928 void *argp1 = 0 ;
23929 int res1 = 0 ;
23930 PyObject *swig_obj[1] ;
23931
23932 if (!args) SWIG_fail;
23933 swig_obj[0] = args;
23934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23935 if (!SWIG_IsOK(res1)) {
23936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23937 }
23938 arg1 = reinterpret_cast< wxDC * >(argp1);
23939 {
23940 PyThreadState* __tstate = wxPyBeginAllowThreads();
23941 result = (long)(arg1)->GetHDC();
23942 wxPyEndAllowThreads(__tstate);
23943 if (PyErr_Occurred()) SWIG_fail;
23944 }
23945 resultobj = SWIG_From_long(static_cast< long >(result));
23946 return resultobj;
23947 fail:
23948 return NULL;
23949 }
23950
23951
23952 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23953 PyObject *resultobj = 0;
23954 wxDC *arg1 = (wxDC *) 0 ;
23955 PyObject *arg2 = (PyObject *) 0 ;
23956 PyObject *arg3 = (PyObject *) 0 ;
23957 PyObject *arg4 = (PyObject *) 0 ;
23958 PyObject *result = 0 ;
23959 void *argp1 = 0 ;
23960 int res1 = 0 ;
23961 PyObject * obj0 = 0 ;
23962 PyObject * obj1 = 0 ;
23963 PyObject * obj2 = 0 ;
23964 PyObject * obj3 = 0 ;
23965 char * kwnames[] = {
23966 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23967 };
23968
23969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23971 if (!SWIG_IsOK(res1)) {
23972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23973 }
23974 arg1 = reinterpret_cast< wxDC * >(argp1);
23975 arg2 = obj1;
23976 arg3 = obj2;
23977 arg4 = obj3;
23978 {
23979 PyThreadState* __tstate = wxPyBeginAllowThreads();
23980 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23981 wxPyEndAllowThreads(__tstate);
23982 if (PyErr_Occurred()) SWIG_fail;
23983 }
23984 resultobj = result;
23985 return resultobj;
23986 fail:
23987 return NULL;
23988 }
23989
23990
23991 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23992 PyObject *resultobj = 0;
23993 wxDC *arg1 = (wxDC *) 0 ;
23994 PyObject *arg2 = (PyObject *) 0 ;
23995 PyObject *arg3 = (PyObject *) 0 ;
23996 PyObject *arg4 = (PyObject *) 0 ;
23997 PyObject *result = 0 ;
23998 void *argp1 = 0 ;
23999 int res1 = 0 ;
24000 PyObject * obj0 = 0 ;
24001 PyObject * obj1 = 0 ;
24002 PyObject * obj2 = 0 ;
24003 PyObject * obj3 = 0 ;
24004 char * kwnames[] = {
24005 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24006 };
24007
24008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24010 if (!SWIG_IsOK(res1)) {
24011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
24012 }
24013 arg1 = reinterpret_cast< wxDC * >(argp1);
24014 arg2 = obj1;
24015 arg3 = obj2;
24016 arg4 = obj3;
24017 {
24018 PyThreadState* __tstate = wxPyBeginAllowThreads();
24019 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
24020 wxPyEndAllowThreads(__tstate);
24021 if (PyErr_Occurred()) SWIG_fail;
24022 }
24023 resultobj = result;
24024 return resultobj;
24025 fail:
24026 return NULL;
24027 }
24028
24029
24030 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24031 PyObject *resultobj = 0;
24032 wxDC *arg1 = (wxDC *) 0 ;
24033 PyObject *arg2 = (PyObject *) 0 ;
24034 PyObject *arg3 = (PyObject *) 0 ;
24035 PyObject *arg4 = (PyObject *) 0 ;
24036 PyObject *result = 0 ;
24037 void *argp1 = 0 ;
24038 int res1 = 0 ;
24039 PyObject * obj0 = 0 ;
24040 PyObject * obj1 = 0 ;
24041 PyObject * obj2 = 0 ;
24042 PyObject * obj3 = 0 ;
24043 char * kwnames[] = {
24044 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24045 };
24046
24047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24049 if (!SWIG_IsOK(res1)) {
24050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
24051 }
24052 arg1 = reinterpret_cast< wxDC * >(argp1);
24053 arg2 = obj1;
24054 arg3 = obj2;
24055 arg4 = obj3;
24056 {
24057 PyThreadState* __tstate = wxPyBeginAllowThreads();
24058 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
24059 wxPyEndAllowThreads(__tstate);
24060 if (PyErr_Occurred()) SWIG_fail;
24061 }
24062 resultobj = result;
24063 return resultobj;
24064 fail:
24065 return NULL;
24066 }
24067
24068
24069 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24070 PyObject *resultobj = 0;
24071 wxDC *arg1 = (wxDC *) 0 ;
24072 PyObject *arg2 = (PyObject *) 0 ;
24073 PyObject *arg3 = (PyObject *) 0 ;
24074 PyObject *arg4 = (PyObject *) 0 ;
24075 PyObject *result = 0 ;
24076 void *argp1 = 0 ;
24077 int res1 = 0 ;
24078 PyObject * obj0 = 0 ;
24079 PyObject * obj1 = 0 ;
24080 PyObject * obj2 = 0 ;
24081 PyObject * obj3 = 0 ;
24082 char * kwnames[] = {
24083 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24084 };
24085
24086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24088 if (!SWIG_IsOK(res1)) {
24089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
24090 }
24091 arg1 = reinterpret_cast< wxDC * >(argp1);
24092 arg2 = obj1;
24093 arg3 = obj2;
24094 arg4 = obj3;
24095 {
24096 PyThreadState* __tstate = wxPyBeginAllowThreads();
24097 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
24098 wxPyEndAllowThreads(__tstate);
24099 if (PyErr_Occurred()) SWIG_fail;
24100 }
24101 resultobj = result;
24102 return resultobj;
24103 fail:
24104 return NULL;
24105 }
24106
24107
24108 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24109 PyObject *resultobj = 0;
24110 wxDC *arg1 = (wxDC *) 0 ;
24111 PyObject *arg2 = (PyObject *) 0 ;
24112 PyObject *arg3 = (PyObject *) 0 ;
24113 PyObject *arg4 = (PyObject *) 0 ;
24114 PyObject *result = 0 ;
24115 void *argp1 = 0 ;
24116 int res1 = 0 ;
24117 PyObject * obj0 = 0 ;
24118 PyObject * obj1 = 0 ;
24119 PyObject * obj2 = 0 ;
24120 PyObject * obj3 = 0 ;
24121 char * kwnames[] = {
24122 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24123 };
24124
24125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24127 if (!SWIG_IsOK(res1)) {
24128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
24129 }
24130 arg1 = reinterpret_cast< wxDC * >(argp1);
24131 arg2 = obj1;
24132 arg3 = obj2;
24133 arg4 = obj3;
24134 {
24135 PyThreadState* __tstate = wxPyBeginAllowThreads();
24136 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
24137 wxPyEndAllowThreads(__tstate);
24138 if (PyErr_Occurred()) SWIG_fail;
24139 }
24140 resultobj = result;
24141 return resultobj;
24142 fail:
24143 return NULL;
24144 }
24145
24146
24147 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24148 PyObject *resultobj = 0;
24149 wxDC *arg1 = (wxDC *) 0 ;
24150 PyObject *arg2 = (PyObject *) 0 ;
24151 PyObject *arg3 = (PyObject *) 0 ;
24152 PyObject *arg4 = (PyObject *) 0 ;
24153 PyObject *arg5 = (PyObject *) 0 ;
24154 PyObject *result = 0 ;
24155 void *argp1 = 0 ;
24156 int res1 = 0 ;
24157 PyObject * obj0 = 0 ;
24158 PyObject * obj1 = 0 ;
24159 PyObject * obj2 = 0 ;
24160 PyObject * obj3 = 0 ;
24161 PyObject * obj4 = 0 ;
24162 char * kwnames[] = {
24163 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
24164 };
24165
24166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24168 if (!SWIG_IsOK(res1)) {
24169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
24170 }
24171 arg1 = reinterpret_cast< wxDC * >(argp1);
24172 arg2 = obj1;
24173 arg3 = obj2;
24174 arg4 = obj3;
24175 arg5 = obj4;
24176 {
24177 PyThreadState* __tstate = wxPyBeginAllowThreads();
24178 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
24179 wxPyEndAllowThreads(__tstate);
24180 if (PyErr_Occurred()) SWIG_fail;
24181 }
24182 resultobj = result;
24183 return resultobj;
24184 fail:
24185 return NULL;
24186 }
24187
24188
24189 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24190 PyObject *obj;
24191 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24192 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
24193 return SWIG_Py_Void();
24194 }
24195
24196 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24197 PyObject *resultobj = 0;
24198 wxDC *arg1 = 0 ;
24199 wxColour *arg2 = 0 ;
24200 wxDCTextColourChanger *result = 0 ;
24201 void *argp1 = 0 ;
24202 int res1 = 0 ;
24203 wxColour temp2 ;
24204 PyObject * obj0 = 0 ;
24205 PyObject * obj1 = 0 ;
24206 char * kwnames[] = {
24207 (char *) "dc",(char *) "col", NULL
24208 };
24209
24210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24211 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24212 if (!SWIG_IsOK(res1)) {
24213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24214 }
24215 if (!argp1) {
24216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24217 }
24218 arg1 = reinterpret_cast< wxDC * >(argp1);
24219 {
24220 arg2 = &temp2;
24221 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24222 }
24223 {
24224 PyThreadState* __tstate = wxPyBeginAllowThreads();
24225 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24226 wxPyEndAllowThreads(__tstate);
24227 if (PyErr_Occurred()) SWIG_fail;
24228 }
24229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24230 return resultobj;
24231 fail:
24232 return NULL;
24233 }
24234
24235
24236 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24237 PyObject *resultobj = 0;
24238 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24239 void *argp1 = 0 ;
24240 int res1 = 0 ;
24241 PyObject *swig_obj[1] ;
24242
24243 if (!args) SWIG_fail;
24244 swig_obj[0] = args;
24245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24246 if (!SWIG_IsOK(res1)) {
24247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24248 }
24249 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24250 {
24251 PyThreadState* __tstate = wxPyBeginAllowThreads();
24252 delete arg1;
24253
24254 wxPyEndAllowThreads(__tstate);
24255 if (PyErr_Occurred()) SWIG_fail;
24256 }
24257 resultobj = SWIG_Py_Void();
24258 return resultobj;
24259 fail:
24260 return NULL;
24261 }
24262
24263
24264 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24265 PyObject *obj;
24266 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24267 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24268 return SWIG_Py_Void();
24269 }
24270
24271 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24272 return SWIG_Python_InitShadowInstance(args);
24273 }
24274
24275 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24276 PyObject *resultobj = 0;
24277 wxDC *arg1 = 0 ;
24278 wxPen *arg2 = 0 ;
24279 wxDCPenChanger *result = 0 ;
24280 void *argp1 = 0 ;
24281 int res1 = 0 ;
24282 void *argp2 = 0 ;
24283 int res2 = 0 ;
24284 PyObject * obj0 = 0 ;
24285 PyObject * obj1 = 0 ;
24286 char * kwnames[] = {
24287 (char *) "dc",(char *) "pen", NULL
24288 };
24289
24290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24291 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24292 if (!SWIG_IsOK(res1)) {
24293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24294 }
24295 if (!argp1) {
24296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24297 }
24298 arg1 = reinterpret_cast< wxDC * >(argp1);
24299 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24300 if (!SWIG_IsOK(res2)) {
24301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24302 }
24303 if (!argp2) {
24304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24305 }
24306 arg2 = reinterpret_cast< wxPen * >(argp2);
24307 {
24308 PyThreadState* __tstate = wxPyBeginAllowThreads();
24309 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24310 wxPyEndAllowThreads(__tstate);
24311 if (PyErr_Occurred()) SWIG_fail;
24312 }
24313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24314 return resultobj;
24315 fail:
24316 return NULL;
24317 }
24318
24319
24320 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24321 PyObject *resultobj = 0;
24322 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24323 void *argp1 = 0 ;
24324 int res1 = 0 ;
24325 PyObject *swig_obj[1] ;
24326
24327 if (!args) SWIG_fail;
24328 swig_obj[0] = args;
24329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24330 if (!SWIG_IsOK(res1)) {
24331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24332 }
24333 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24334 {
24335 PyThreadState* __tstate = wxPyBeginAllowThreads();
24336 delete arg1;
24337
24338 wxPyEndAllowThreads(__tstate);
24339 if (PyErr_Occurred()) SWIG_fail;
24340 }
24341 resultobj = SWIG_Py_Void();
24342 return resultobj;
24343 fail:
24344 return NULL;
24345 }
24346
24347
24348 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24349 PyObject *obj;
24350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24351 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24352 return SWIG_Py_Void();
24353 }
24354
24355 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24356 return SWIG_Python_InitShadowInstance(args);
24357 }
24358
24359 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24360 PyObject *resultobj = 0;
24361 wxDC *arg1 = 0 ;
24362 wxBrush *arg2 = 0 ;
24363 wxDCBrushChanger *result = 0 ;
24364 void *argp1 = 0 ;
24365 int res1 = 0 ;
24366 void *argp2 = 0 ;
24367 int res2 = 0 ;
24368 PyObject * obj0 = 0 ;
24369 PyObject * obj1 = 0 ;
24370 char * kwnames[] = {
24371 (char *) "dc",(char *) "brush", NULL
24372 };
24373
24374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24375 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24376 if (!SWIG_IsOK(res1)) {
24377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24378 }
24379 if (!argp1) {
24380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24381 }
24382 arg1 = reinterpret_cast< wxDC * >(argp1);
24383 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24384 if (!SWIG_IsOK(res2)) {
24385 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24386 }
24387 if (!argp2) {
24388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24389 }
24390 arg2 = reinterpret_cast< wxBrush * >(argp2);
24391 {
24392 PyThreadState* __tstate = wxPyBeginAllowThreads();
24393 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24394 wxPyEndAllowThreads(__tstate);
24395 if (PyErr_Occurred()) SWIG_fail;
24396 }
24397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24398 return resultobj;
24399 fail:
24400 return NULL;
24401 }
24402
24403
24404 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24405 PyObject *resultobj = 0;
24406 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24407 void *argp1 = 0 ;
24408 int res1 = 0 ;
24409 PyObject *swig_obj[1] ;
24410
24411 if (!args) SWIG_fail;
24412 swig_obj[0] = args;
24413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24414 if (!SWIG_IsOK(res1)) {
24415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24416 }
24417 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24418 {
24419 PyThreadState* __tstate = wxPyBeginAllowThreads();
24420 delete arg1;
24421
24422 wxPyEndAllowThreads(__tstate);
24423 if (PyErr_Occurred()) SWIG_fail;
24424 }
24425 resultobj = SWIG_Py_Void();
24426 return resultobj;
24427 fail:
24428 return NULL;
24429 }
24430
24431
24432 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24433 PyObject *obj;
24434 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24435 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24436 return SWIG_Py_Void();
24437 }
24438
24439 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24440 return SWIG_Python_InitShadowInstance(args);
24441 }
24442
24443 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24444 PyObject *resultobj = 0;
24445 wxDC *arg1 = 0 ;
24446 wxRegion *arg2 = 0 ;
24447 wxDCClipper *result = 0 ;
24448 void *argp1 = 0 ;
24449 int res1 = 0 ;
24450 void *argp2 = 0 ;
24451 int res2 = 0 ;
24452
24453 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24455 if (!SWIG_IsOK(res1)) {
24456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24457 }
24458 if (!argp1) {
24459 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24460 }
24461 arg1 = reinterpret_cast< wxDC * >(argp1);
24462 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24463 if (!SWIG_IsOK(res2)) {
24464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24465 }
24466 if (!argp2) {
24467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24468 }
24469 arg2 = reinterpret_cast< wxRegion * >(argp2);
24470 {
24471 PyThreadState* __tstate = wxPyBeginAllowThreads();
24472 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24473 wxPyEndAllowThreads(__tstate);
24474 if (PyErr_Occurred()) SWIG_fail;
24475 }
24476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24477 return resultobj;
24478 fail:
24479 return NULL;
24480 }
24481
24482
24483 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24484 PyObject *resultobj = 0;
24485 wxDC *arg1 = 0 ;
24486 wxRect *arg2 = 0 ;
24487 wxDCClipper *result = 0 ;
24488 void *argp1 = 0 ;
24489 int res1 = 0 ;
24490 wxRect temp2 ;
24491
24492 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24494 if (!SWIG_IsOK(res1)) {
24495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24496 }
24497 if (!argp1) {
24498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24499 }
24500 arg1 = reinterpret_cast< wxDC * >(argp1);
24501 {
24502 arg2 = &temp2;
24503 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24504 }
24505 {
24506 PyThreadState* __tstate = wxPyBeginAllowThreads();
24507 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24508 wxPyEndAllowThreads(__tstate);
24509 if (PyErr_Occurred()) SWIG_fail;
24510 }
24511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24512 return resultobj;
24513 fail:
24514 return NULL;
24515 }
24516
24517
24518 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24519 PyObject *resultobj = 0;
24520 wxDC *arg1 = 0 ;
24521 int arg2 ;
24522 int arg3 ;
24523 int arg4 ;
24524 int arg5 ;
24525 wxDCClipper *result = 0 ;
24526 void *argp1 = 0 ;
24527 int res1 = 0 ;
24528 int val2 ;
24529 int ecode2 = 0 ;
24530 int val3 ;
24531 int ecode3 = 0 ;
24532 int val4 ;
24533 int ecode4 = 0 ;
24534 int val5 ;
24535 int ecode5 = 0 ;
24536
24537 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24539 if (!SWIG_IsOK(res1)) {
24540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24541 }
24542 if (!argp1) {
24543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24544 }
24545 arg1 = reinterpret_cast< wxDC * >(argp1);
24546 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24547 if (!SWIG_IsOK(ecode2)) {
24548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24549 }
24550 arg2 = static_cast< int >(val2);
24551 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24552 if (!SWIG_IsOK(ecode3)) {
24553 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24554 }
24555 arg3 = static_cast< int >(val3);
24556 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24557 if (!SWIG_IsOK(ecode4)) {
24558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24559 }
24560 arg4 = static_cast< int >(val4);
24561 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24562 if (!SWIG_IsOK(ecode5)) {
24563 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24564 }
24565 arg5 = static_cast< int >(val5);
24566 {
24567 PyThreadState* __tstate = wxPyBeginAllowThreads();
24568 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24569 wxPyEndAllowThreads(__tstate);
24570 if (PyErr_Occurred()) SWIG_fail;
24571 }
24572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24573 return resultobj;
24574 fail:
24575 return NULL;
24576 }
24577
24578
24579 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24580 int argc;
24581 PyObject *argv[6];
24582
24583 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24584 --argc;
24585 if (argc == 2) {
24586 int _v = 0;
24587 {
24588 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24589 _v = SWIG_CheckState(res);
24590 }
24591 if (!_v) goto check_1;
24592 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24593 }
24594 check_1:
24595
24596 if (argc == 2) {
24597 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24598 }
24599 if (argc == 5) {
24600 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24601 }
24602
24603 fail:
24604 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24605 return NULL;
24606 }
24607
24608
24609 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24610 PyObject *resultobj = 0;
24611 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24612 void *argp1 = 0 ;
24613 int res1 = 0 ;
24614 PyObject *swig_obj[1] ;
24615
24616 if (!args) SWIG_fail;
24617 swig_obj[0] = args;
24618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24619 if (!SWIG_IsOK(res1)) {
24620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24621 }
24622 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24623 {
24624 PyThreadState* __tstate = wxPyBeginAllowThreads();
24625 delete arg1;
24626
24627 wxPyEndAllowThreads(__tstate);
24628 if (PyErr_Occurred()) SWIG_fail;
24629 }
24630 resultobj = SWIG_Py_Void();
24631 return resultobj;
24632 fail:
24633 return NULL;
24634 }
24635
24636
24637 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24638 PyObject *obj;
24639 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24640 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24641 return SWIG_Py_Void();
24642 }
24643
24644 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24645 return SWIG_Python_InitShadowInstance(args);
24646 }
24647
24648 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24649 PyObject *resultobj = 0;
24650 wxScreenDC *result = 0 ;
24651
24652 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24653 {
24654 if (!wxPyCheckForApp()) SWIG_fail;
24655 PyThreadState* __tstate = wxPyBeginAllowThreads();
24656 result = (wxScreenDC *)new wxScreenDC();
24657 wxPyEndAllowThreads(__tstate);
24658 if (PyErr_Occurred()) SWIG_fail;
24659 }
24660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24661 return resultobj;
24662 fail:
24663 return NULL;
24664 }
24665
24666
24667 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24668 PyObject *resultobj = 0;
24669 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24670 wxWindow *arg2 = (wxWindow *) 0 ;
24671 bool result;
24672 void *argp1 = 0 ;
24673 int res1 = 0 ;
24674 void *argp2 = 0 ;
24675 int res2 = 0 ;
24676 PyObject * obj0 = 0 ;
24677 PyObject * obj1 = 0 ;
24678 char * kwnames[] = {
24679 (char *) "self",(char *) "window", NULL
24680 };
24681
24682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24684 if (!SWIG_IsOK(res1)) {
24685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24686 }
24687 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24688 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24689 if (!SWIG_IsOK(res2)) {
24690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24691 }
24692 arg2 = reinterpret_cast< wxWindow * >(argp2);
24693 {
24694 PyThreadState* __tstate = wxPyBeginAllowThreads();
24695 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24696 wxPyEndAllowThreads(__tstate);
24697 if (PyErr_Occurred()) SWIG_fail;
24698 }
24699 {
24700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24701 }
24702 return resultobj;
24703 fail:
24704 return NULL;
24705 }
24706
24707
24708 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24709 PyObject *resultobj = 0;
24710 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24711 wxRect *arg2 = (wxRect *) NULL ;
24712 bool result;
24713 void *argp1 = 0 ;
24714 int res1 = 0 ;
24715 void *argp2 = 0 ;
24716 int res2 = 0 ;
24717 PyObject * obj0 = 0 ;
24718 PyObject * obj1 = 0 ;
24719 char * kwnames[] = {
24720 (char *) "self",(char *) "rect", NULL
24721 };
24722
24723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24725 if (!SWIG_IsOK(res1)) {
24726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24727 }
24728 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24729 if (obj1) {
24730 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24731 if (!SWIG_IsOK(res2)) {
24732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24733 }
24734 arg2 = reinterpret_cast< wxRect * >(argp2);
24735 }
24736 {
24737 PyThreadState* __tstate = wxPyBeginAllowThreads();
24738 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24739 wxPyEndAllowThreads(__tstate);
24740 if (PyErr_Occurred()) SWIG_fail;
24741 }
24742 {
24743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24744 }
24745 return resultobj;
24746 fail:
24747 return NULL;
24748 }
24749
24750
24751 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24752 PyObject *resultobj = 0;
24753 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24754 bool result;
24755 void *argp1 = 0 ;
24756 int res1 = 0 ;
24757 PyObject *swig_obj[1] ;
24758
24759 if (!args) SWIG_fail;
24760 swig_obj[0] = args;
24761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24762 if (!SWIG_IsOK(res1)) {
24763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24764 }
24765 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24766 {
24767 PyThreadState* __tstate = wxPyBeginAllowThreads();
24768 result = (bool)(arg1)->EndDrawingOnTop();
24769 wxPyEndAllowThreads(__tstate);
24770 if (PyErr_Occurred()) SWIG_fail;
24771 }
24772 {
24773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24774 }
24775 return resultobj;
24776 fail:
24777 return NULL;
24778 }
24779
24780
24781 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24782 PyObject *obj;
24783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24784 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24785 return SWIG_Py_Void();
24786 }
24787
24788 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24789 return SWIG_Python_InitShadowInstance(args);
24790 }
24791
24792 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24793 PyObject *resultobj = 0;
24794 wxWindow *arg1 = (wxWindow *) 0 ;
24795 wxWindowDC *result = 0 ;
24796 void *argp1 = 0 ;
24797 int res1 = 0 ;
24798 PyObject * obj0 = 0 ;
24799 char * kwnames[] = {
24800 (char *) "win", NULL
24801 };
24802
24803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24805 if (!SWIG_IsOK(res1)) {
24806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24807 }
24808 arg1 = reinterpret_cast< wxWindow * >(argp1);
24809 {
24810 if (!wxPyCheckForApp()) SWIG_fail;
24811 PyThreadState* __tstate = wxPyBeginAllowThreads();
24812 result = (wxWindowDC *)new wxWindowDC(arg1);
24813 wxPyEndAllowThreads(__tstate);
24814 if (PyErr_Occurred()) SWIG_fail;
24815 }
24816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24817 return resultobj;
24818 fail:
24819 return NULL;
24820 }
24821
24822
24823 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24824 PyObject *obj;
24825 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24826 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24827 return SWIG_Py_Void();
24828 }
24829
24830 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24831 return SWIG_Python_InitShadowInstance(args);
24832 }
24833
24834 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24835 PyObject *resultobj = 0;
24836 wxWindow *arg1 = (wxWindow *) 0 ;
24837 wxClientDC *result = 0 ;
24838 void *argp1 = 0 ;
24839 int res1 = 0 ;
24840 PyObject * obj0 = 0 ;
24841 char * kwnames[] = {
24842 (char *) "win", NULL
24843 };
24844
24845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24847 if (!SWIG_IsOK(res1)) {
24848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24849 }
24850 arg1 = reinterpret_cast< wxWindow * >(argp1);
24851 {
24852 if (!wxPyCheckForApp()) SWIG_fail;
24853 PyThreadState* __tstate = wxPyBeginAllowThreads();
24854 result = (wxClientDC *)new wxClientDC(arg1);
24855 wxPyEndAllowThreads(__tstate);
24856 if (PyErr_Occurred()) SWIG_fail;
24857 }
24858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24859 return resultobj;
24860 fail:
24861 return NULL;
24862 }
24863
24864
24865 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24866 PyObject *obj;
24867 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24868 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24869 return SWIG_Py_Void();
24870 }
24871
24872 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24873 return SWIG_Python_InitShadowInstance(args);
24874 }
24875
24876 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24877 PyObject *resultobj = 0;
24878 wxWindow *arg1 = (wxWindow *) 0 ;
24879 wxPaintDC *result = 0 ;
24880 void *argp1 = 0 ;
24881 int res1 = 0 ;
24882 PyObject * obj0 = 0 ;
24883 char * kwnames[] = {
24884 (char *) "win", NULL
24885 };
24886
24887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24889 if (!SWIG_IsOK(res1)) {
24890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24891 }
24892 arg1 = reinterpret_cast< wxWindow * >(argp1);
24893 {
24894 if (!wxPyCheckForApp()) SWIG_fail;
24895 PyThreadState* __tstate = wxPyBeginAllowThreads();
24896 result = (wxPaintDC *)new wxPaintDC(arg1);
24897 wxPyEndAllowThreads(__tstate);
24898 if (PyErr_Occurred()) SWIG_fail;
24899 }
24900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24901 return resultobj;
24902 fail:
24903 return NULL;
24904 }
24905
24906
24907 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24908 PyObject *obj;
24909 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24910 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24911 return SWIG_Py_Void();
24912 }
24913
24914 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24915 return SWIG_Python_InitShadowInstance(args);
24916 }
24917
24918 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24919 PyObject *resultobj = 0;
24920 wxBitmap &arg1_defvalue = wxNullBitmap ;
24921 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24922 wxMemoryDC *result = 0 ;
24923 void *argp1 = 0 ;
24924 int res1 = 0 ;
24925 PyObject * obj0 = 0 ;
24926 char * kwnames[] = {
24927 (char *) "bitmap", NULL
24928 };
24929
24930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24931 if (obj0) {
24932 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24933 if (!SWIG_IsOK(res1)) {
24934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24935 }
24936 if (!argp1) {
24937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24938 }
24939 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24940 }
24941 {
24942 if (!wxPyCheckForApp()) SWIG_fail;
24943 PyThreadState* __tstate = wxPyBeginAllowThreads();
24944 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24945 wxPyEndAllowThreads(__tstate);
24946 if (PyErr_Occurred()) SWIG_fail;
24947 }
24948 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24949 return resultobj;
24950 fail:
24951 return NULL;
24952 }
24953
24954
24955 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24956 PyObject *resultobj = 0;
24957 wxDC *arg1 = (wxDC *) 0 ;
24958 wxMemoryDC *result = 0 ;
24959 void *argp1 = 0 ;
24960 int res1 = 0 ;
24961 PyObject * obj0 = 0 ;
24962 char * kwnames[] = {
24963 (char *) "oldDC", NULL
24964 };
24965
24966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24968 if (!SWIG_IsOK(res1)) {
24969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24970 }
24971 arg1 = reinterpret_cast< wxDC * >(argp1);
24972 {
24973 if (!wxPyCheckForApp()) SWIG_fail;
24974 PyThreadState* __tstate = wxPyBeginAllowThreads();
24975 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24976 wxPyEndAllowThreads(__tstate);
24977 if (PyErr_Occurred()) SWIG_fail;
24978 }
24979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24980 return resultobj;
24981 fail:
24982 return NULL;
24983 }
24984
24985
24986 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24987 PyObject *resultobj = 0;
24988 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24989 wxBitmap *arg2 = 0 ;
24990 void *argp1 = 0 ;
24991 int res1 = 0 ;
24992 void *argp2 = 0 ;
24993 int res2 = 0 ;
24994 PyObject * obj0 = 0 ;
24995 PyObject * obj1 = 0 ;
24996 char * kwnames[] = {
24997 (char *) "self",(char *) "bitmap", NULL
24998 };
24999
25000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
25001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
25002 if (!SWIG_IsOK(res1)) {
25003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
25004 }
25005 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25006 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25007 if (!SWIG_IsOK(res2)) {
25008 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
25009 }
25010 if (!argp2) {
25011 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
25012 }
25013 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25014 {
25015 PyThreadState* __tstate = wxPyBeginAllowThreads();
25016 (arg1)->SelectObject(*arg2);
25017 wxPyEndAllowThreads(__tstate);
25018 if (PyErr_Occurred()) SWIG_fail;
25019 }
25020 resultobj = SWIG_Py_Void();
25021 return resultobj;
25022 fail:
25023 return NULL;
25024 }
25025
25026
25027 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25028 PyObject *resultobj = 0;
25029 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
25030 wxBitmap *arg2 = 0 ;
25031 void *argp1 = 0 ;
25032 int res1 = 0 ;
25033 void *argp2 = 0 ;
25034 int res2 = 0 ;
25035 PyObject * obj0 = 0 ;
25036 PyObject * obj1 = 0 ;
25037 char * kwnames[] = {
25038 (char *) "self",(char *) "bmp", NULL
25039 };
25040
25041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
25042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
25043 if (!SWIG_IsOK(res1)) {
25044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
25045 }
25046 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25047 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25048 if (!SWIG_IsOK(res2)) {
25049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25050 }
25051 if (!argp2) {
25052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25053 }
25054 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25055 {
25056 PyThreadState* __tstate = wxPyBeginAllowThreads();
25057 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
25058 wxPyEndAllowThreads(__tstate);
25059 if (PyErr_Occurred()) SWIG_fail;
25060 }
25061 resultobj = SWIG_Py_Void();
25062 return resultobj;
25063 fail:
25064 return NULL;
25065 }
25066
25067
25068 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25069 PyObject *obj;
25070 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25071 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
25072 return SWIG_Py_Void();
25073 }
25074
25075 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25076 return SWIG_Python_InitShadowInstance(args);
25077 }
25078
25079 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25080 PyObject *resultobj = 0;
25081 wxDC *arg1 = (wxDC *) 0 ;
25082 wxBitmap &arg2_defvalue = wxNullBitmap ;
25083 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25084 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25085 wxBufferedDC *result = 0 ;
25086 void *argp1 = 0 ;
25087 int res1 = 0 ;
25088 void *argp2 = 0 ;
25089 int res2 = 0 ;
25090 int val3 ;
25091 int ecode3 = 0 ;
25092
25093 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
25094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25095 if (!SWIG_IsOK(res1)) {
25096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25097 }
25098 arg1 = reinterpret_cast< wxDC * >(argp1);
25099 if (swig_obj[1]) {
25100 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
25101 if (!SWIG_IsOK(res2)) {
25102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25103 }
25104 if (!argp2) {
25105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25106 }
25107 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25108 }
25109 if (swig_obj[2]) {
25110 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25111 if (!SWIG_IsOK(ecode3)) {
25112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25113 }
25114 arg3 = static_cast< int >(val3);
25115 }
25116 {
25117 if (!wxPyCheckForApp()) SWIG_fail;
25118 PyThreadState* __tstate = wxPyBeginAllowThreads();
25119 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
25120 wxPyEndAllowThreads(__tstate);
25121 if (PyErr_Occurred()) SWIG_fail;
25122 }
25123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25124 return resultobj;
25125 fail:
25126 return NULL;
25127 }
25128
25129
25130 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25131 PyObject *resultobj = 0;
25132 wxDC *arg1 = (wxDC *) 0 ;
25133 wxSize *arg2 = 0 ;
25134 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25135 wxBufferedDC *result = 0 ;
25136 void *argp1 = 0 ;
25137 int res1 = 0 ;
25138 wxSize temp2 ;
25139 int val3 ;
25140 int ecode3 = 0 ;
25141
25142 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
25143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25144 if (!SWIG_IsOK(res1)) {
25145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25146 }
25147 arg1 = reinterpret_cast< wxDC * >(argp1);
25148 {
25149 arg2 = &temp2;
25150 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
25151 }
25152 if (swig_obj[2]) {
25153 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25154 if (!SWIG_IsOK(ecode3)) {
25155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25156 }
25157 arg3 = static_cast< int >(val3);
25158 }
25159 {
25160 if (!wxPyCheckForApp()) SWIG_fail;
25161 PyThreadState* __tstate = wxPyBeginAllowThreads();
25162 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
25163 wxPyEndAllowThreads(__tstate);
25164 if (PyErr_Occurred()) SWIG_fail;
25165 }
25166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25167 return resultobj;
25168 fail:
25169 return NULL;
25170 }
25171
25172
25173 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
25174 int argc;
25175 PyObject *argv[4];
25176
25177 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
25178 --argc;
25179 if ((argc >= 1) && (argc <= 3)) {
25180 int _v = 0;
25181 if (argc > 1) {
25182 {
25183 void *vptr = 0;
25184 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
25185 _v = SWIG_CheckState(res);
25186 }
25187 if (!_v) goto check_1;
25188 }
25189 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
25190 }
25191 check_1:
25192
25193 if ((argc >= 2) && (argc <= 3)) {
25194 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
25195 }
25196
25197 fail:
25198 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
25199 return NULL;
25200 }
25201
25202
25203 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25204 PyObject *resultobj = 0;
25205 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25206 void *argp1 = 0 ;
25207 int res1 = 0 ;
25208 PyObject *swig_obj[1] ;
25209
25210 if (!args) SWIG_fail;
25211 swig_obj[0] = args;
25212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
25213 if (!SWIG_IsOK(res1)) {
25214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25215 }
25216 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25217 {
25218 PyThreadState* __tstate = wxPyBeginAllowThreads();
25219 delete arg1;
25220
25221 wxPyEndAllowThreads(__tstate);
25222 if (PyErr_Occurred()) SWIG_fail;
25223 }
25224 resultobj = SWIG_Py_Void();
25225 return resultobj;
25226 fail:
25227 return NULL;
25228 }
25229
25230
25231 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25232 PyObject *resultobj = 0;
25233 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25234 void *argp1 = 0 ;
25235 int res1 = 0 ;
25236 PyObject *swig_obj[1] ;
25237
25238 if (!args) SWIG_fail;
25239 swig_obj[0] = args;
25240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25241 if (!SWIG_IsOK(res1)) {
25242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25243 }
25244 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25245 {
25246 PyThreadState* __tstate = wxPyBeginAllowThreads();
25247 (arg1)->UnMask();
25248 wxPyEndAllowThreads(__tstate);
25249 if (PyErr_Occurred()) SWIG_fail;
25250 }
25251 resultobj = SWIG_Py_Void();
25252 return resultobj;
25253 fail:
25254 return NULL;
25255 }
25256
25257
25258 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25259 PyObject *resultobj = 0;
25260 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25261 int arg2 ;
25262 void *argp1 = 0 ;
25263 int res1 = 0 ;
25264 int val2 ;
25265 int ecode2 = 0 ;
25266 PyObject * obj0 = 0 ;
25267 PyObject * obj1 = 0 ;
25268 char * kwnames[] = {
25269 (char *) "self",(char *) "style", NULL
25270 };
25271
25272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
25273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25274 if (!SWIG_IsOK(res1)) {
25275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25276 }
25277 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25278 ecode2 = SWIG_AsVal_int(obj1, &val2);
25279 if (!SWIG_IsOK(ecode2)) {
25280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
25281 }
25282 arg2 = static_cast< int >(val2);
25283 {
25284 PyThreadState* __tstate = wxPyBeginAllowThreads();
25285 (arg1)->SetStyle(arg2);
25286 wxPyEndAllowThreads(__tstate);
25287 if (PyErr_Occurred()) SWIG_fail;
25288 }
25289 resultobj = SWIG_Py_Void();
25290 return resultobj;
25291 fail:
25292 return NULL;
25293 }
25294
25295
25296 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25297 PyObject *resultobj = 0;
25298 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25299 int result;
25300 void *argp1 = 0 ;
25301 int res1 = 0 ;
25302 PyObject *swig_obj[1] ;
25303
25304 if (!args) SWIG_fail;
25305 swig_obj[0] = args;
25306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25307 if (!SWIG_IsOK(res1)) {
25308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
25309 }
25310 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25311 {
25312 PyThreadState* __tstate = wxPyBeginAllowThreads();
25313 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
25314 wxPyEndAllowThreads(__tstate);
25315 if (PyErr_Occurred()) SWIG_fail;
25316 }
25317 resultobj = SWIG_From_int(static_cast< int >(result));
25318 return resultobj;
25319 fail:
25320 return NULL;
25321 }
25322
25323
25324 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25325 PyObject *obj;
25326 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25327 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25328 return SWIG_Py_Void();
25329 }
25330
25331 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25332 return SWIG_Python_InitShadowInstance(args);
25333 }
25334
25335 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25336 PyObject *resultobj = 0;
25337 wxWindow *arg1 = (wxWindow *) 0 ;
25338 wxBitmap &arg2_defvalue = wxNullBitmap ;
25339 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25340 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25341 wxBufferedPaintDC *result = 0 ;
25342 void *argp1 = 0 ;
25343 int res1 = 0 ;
25344 void *argp2 = 0 ;
25345 int res2 = 0 ;
25346 int val3 ;
25347 int ecode3 = 0 ;
25348 PyObject * obj0 = 0 ;
25349 PyObject * obj1 = 0 ;
25350 PyObject * obj2 = 0 ;
25351 char * kwnames[] = {
25352 (char *) "window",(char *) "buffer",(char *) "style", NULL
25353 };
25354
25355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25357 if (!SWIG_IsOK(res1)) {
25358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25359 }
25360 arg1 = reinterpret_cast< wxWindow * >(argp1);
25361 if (obj1) {
25362 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25363 if (!SWIG_IsOK(res2)) {
25364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25365 }
25366 if (!argp2) {
25367 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25368 }
25369 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25370 }
25371 if (obj2) {
25372 ecode3 = SWIG_AsVal_int(obj2, &val3);
25373 if (!SWIG_IsOK(ecode3)) {
25374 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25375 }
25376 arg3 = static_cast< int >(val3);
25377 }
25378 {
25379 if (!wxPyCheckForApp()) SWIG_fail;
25380 PyThreadState* __tstate = wxPyBeginAllowThreads();
25381 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
25382 wxPyEndAllowThreads(__tstate);
25383 if (PyErr_Occurred()) SWIG_fail;
25384 }
25385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25386 return resultobj;
25387 fail:
25388 return NULL;
25389 }
25390
25391
25392 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25393 PyObject *obj;
25394 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25395 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25396 return SWIG_Py_Void();
25397 }
25398
25399 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25400 return SWIG_Python_InitShadowInstance(args);
25401 }
25402
25403 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25404 PyObject *resultobj = 0;
25405 wxWindow *arg1 = (wxWindow *) 0 ;
25406 wxAutoBufferedPaintDC *result = 0 ;
25407 void *argp1 = 0 ;
25408 int res1 = 0 ;
25409 PyObject * obj0 = 0 ;
25410 char * kwnames[] = {
25411 (char *) "win", NULL
25412 };
25413
25414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
25415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25416 if (!SWIG_IsOK(res1)) {
25417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25418 }
25419 arg1 = reinterpret_cast< wxWindow * >(argp1);
25420 {
25421 PyThreadState* __tstate = wxPyBeginAllowThreads();
25422 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
25423 wxPyEndAllowThreads(__tstate);
25424 if (PyErr_Occurred()) SWIG_fail;
25425 }
25426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25427 return resultobj;
25428 fail:
25429 return NULL;
25430 }
25431
25432
25433 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25434 PyObject *obj;
25435 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25436 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
25437 return SWIG_Py_Void();
25438 }
25439
25440 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25441 return SWIG_Python_InitShadowInstance(args);
25442 }
25443
25444 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25445 PyObject *resultobj = 0;
25446 wxWindow *arg1 = (wxWindow *) 0 ;
25447 wxDC *result = 0 ;
25448 void *argp1 = 0 ;
25449 int res1 = 0 ;
25450 PyObject * obj0 = 0 ;
25451 char * kwnames[] = {
25452 (char *) "window", NULL
25453 };
25454
25455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25457 if (!SWIG_IsOK(res1)) {
25458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25459 }
25460 arg1 = reinterpret_cast< wxWindow * >(argp1);
25461 {
25462 PyThreadState* __tstate = wxPyBeginAllowThreads();
25463 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25464 wxPyEndAllowThreads(__tstate);
25465 if (PyErr_Occurred()) SWIG_fail;
25466 }
25467 {
25468 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25469 }
25470 return resultobj;
25471 fail:
25472 return NULL;
25473 }
25474
25475
25476 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25477 PyObject *resultobj = 0;
25478 wxDC *arg1 = 0 ;
25479 bool arg2 ;
25480 wxMirrorDC *result = 0 ;
25481 void *argp1 = 0 ;
25482 int res1 = 0 ;
25483 bool val2 ;
25484 int ecode2 = 0 ;
25485 PyObject * obj0 = 0 ;
25486 PyObject * obj1 = 0 ;
25487 char * kwnames[] = {
25488 (char *) "dc",(char *) "mirror", NULL
25489 };
25490
25491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25492 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25493 if (!SWIG_IsOK(res1)) {
25494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25495 }
25496 if (!argp1) {
25497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25498 }
25499 arg1 = reinterpret_cast< wxDC * >(argp1);
25500 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25501 if (!SWIG_IsOK(ecode2)) {
25502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25503 }
25504 arg2 = static_cast< bool >(val2);
25505 {
25506 if (!wxPyCheckForApp()) SWIG_fail;
25507 PyThreadState* __tstate = wxPyBeginAllowThreads();
25508 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25509 wxPyEndAllowThreads(__tstate);
25510 if (PyErr_Occurred()) SWIG_fail;
25511 }
25512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25513 return resultobj;
25514 fail:
25515 return NULL;
25516 }
25517
25518
25519 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25520 PyObject *obj;
25521 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25522 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25523 return SWIG_Py_Void();
25524 }
25525
25526 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25527 return SWIG_Python_InitShadowInstance(args);
25528 }
25529
25530 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25531 PyObject *resultobj = 0;
25532 wxPrintData *arg1 = 0 ;
25533 wxPostScriptDC *result = 0 ;
25534 void *argp1 = 0 ;
25535 int res1 = 0 ;
25536 PyObject * obj0 = 0 ;
25537 char * kwnames[] = {
25538 (char *) "printData", NULL
25539 };
25540
25541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25542 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25543 if (!SWIG_IsOK(res1)) {
25544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25545 }
25546 if (!argp1) {
25547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25548 }
25549 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25550 {
25551 if (!wxPyCheckForApp()) SWIG_fail;
25552 PyThreadState* __tstate = wxPyBeginAllowThreads();
25553 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25554 wxPyEndAllowThreads(__tstate);
25555 if (PyErr_Occurred()) SWIG_fail;
25556 }
25557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25558 return resultobj;
25559 fail:
25560 return NULL;
25561 }
25562
25563
25564 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25565 PyObject *resultobj = 0;
25566 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25567 wxPrintData *result = 0 ;
25568 void *argp1 = 0 ;
25569 int res1 = 0 ;
25570 PyObject *swig_obj[1] ;
25571
25572 if (!args) SWIG_fail;
25573 swig_obj[0] = args;
25574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25575 if (!SWIG_IsOK(res1)) {
25576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25577 }
25578 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25579 {
25580 PyThreadState* __tstate = wxPyBeginAllowThreads();
25581 {
25582 wxPrintData &_result_ref = (arg1)->GetPrintData();
25583 result = (wxPrintData *) &_result_ref;
25584 }
25585 wxPyEndAllowThreads(__tstate);
25586 if (PyErr_Occurred()) SWIG_fail;
25587 }
25588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25589 return resultobj;
25590 fail:
25591 return NULL;
25592 }
25593
25594
25595 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25596 PyObject *resultobj = 0;
25597 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25598 wxPrintData *arg2 = 0 ;
25599 void *argp1 = 0 ;
25600 int res1 = 0 ;
25601 void *argp2 = 0 ;
25602 int res2 = 0 ;
25603 PyObject * obj0 = 0 ;
25604 PyObject * obj1 = 0 ;
25605 char * kwnames[] = {
25606 (char *) "self",(char *) "data", NULL
25607 };
25608
25609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25611 if (!SWIG_IsOK(res1)) {
25612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25613 }
25614 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25615 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25616 if (!SWIG_IsOK(res2)) {
25617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25618 }
25619 if (!argp2) {
25620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25621 }
25622 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25623 {
25624 PyThreadState* __tstate = wxPyBeginAllowThreads();
25625 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25626 wxPyEndAllowThreads(__tstate);
25627 if (PyErr_Occurred()) SWIG_fail;
25628 }
25629 resultobj = SWIG_Py_Void();
25630 return resultobj;
25631 fail:
25632 return NULL;
25633 }
25634
25635
25636 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25637 PyObject *resultobj = 0;
25638 int arg1 ;
25639 int val1 ;
25640 int ecode1 = 0 ;
25641 PyObject * obj0 = 0 ;
25642 char * kwnames[] = {
25643 (char *) "ppi", NULL
25644 };
25645
25646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25647 ecode1 = SWIG_AsVal_int(obj0, &val1);
25648 if (!SWIG_IsOK(ecode1)) {
25649 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25650 }
25651 arg1 = static_cast< int >(val1);
25652 {
25653 PyThreadState* __tstate = wxPyBeginAllowThreads();
25654 wxPostScriptDC::SetResolution(arg1);
25655 wxPyEndAllowThreads(__tstate);
25656 if (PyErr_Occurred()) SWIG_fail;
25657 }
25658 resultobj = SWIG_Py_Void();
25659 return resultobj;
25660 fail:
25661 return NULL;
25662 }
25663
25664
25665 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25666 PyObject *resultobj = 0;
25667 int result;
25668
25669 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25670 {
25671 PyThreadState* __tstate = wxPyBeginAllowThreads();
25672 result = (int)wxPostScriptDC::GetResolution();
25673 wxPyEndAllowThreads(__tstate);
25674 if (PyErr_Occurred()) SWIG_fail;
25675 }
25676 resultobj = SWIG_From_int(static_cast< int >(result));
25677 return resultobj;
25678 fail:
25679 return NULL;
25680 }
25681
25682
25683 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25684 PyObject *obj;
25685 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25686 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25687 return SWIG_Py_Void();
25688 }
25689
25690 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25691 return SWIG_Python_InitShadowInstance(args);
25692 }
25693
25694 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25695 PyObject *resultobj = 0;
25696 wxString const &arg1_defvalue = wxPyEmptyString ;
25697 wxString *arg1 = (wxString *) &arg1_defvalue ;
25698 wxMetaFile *result = 0 ;
25699 bool temp1 = false ;
25700 PyObject * obj0 = 0 ;
25701 char * kwnames[] = {
25702 (char *) "filename", NULL
25703 };
25704
25705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25706 if (obj0) {
25707 {
25708 arg1 = wxString_in_helper(obj0);
25709 if (arg1 == NULL) SWIG_fail;
25710 temp1 = true;
25711 }
25712 }
25713 {
25714 if (!wxPyCheckForApp()) SWIG_fail;
25715 PyThreadState* __tstate = wxPyBeginAllowThreads();
25716 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25717 wxPyEndAllowThreads(__tstate);
25718 if (PyErr_Occurred()) SWIG_fail;
25719 }
25720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25721 {
25722 if (temp1)
25723 delete arg1;
25724 }
25725 return resultobj;
25726 fail:
25727 {
25728 if (temp1)
25729 delete arg1;
25730 }
25731 return NULL;
25732 }
25733
25734
25735 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25736 PyObject *resultobj = 0;
25737 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25738 void *argp1 = 0 ;
25739 int res1 = 0 ;
25740 PyObject *swig_obj[1] ;
25741
25742 if (!args) SWIG_fail;
25743 swig_obj[0] = args;
25744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25745 if (!SWIG_IsOK(res1)) {
25746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25747 }
25748 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25749 {
25750 PyThreadState* __tstate = wxPyBeginAllowThreads();
25751 delete arg1;
25752
25753 wxPyEndAllowThreads(__tstate);
25754 if (PyErr_Occurred()) SWIG_fail;
25755 }
25756 resultobj = SWIG_Py_Void();
25757 return resultobj;
25758 fail:
25759 return NULL;
25760 }
25761
25762
25763 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25764 PyObject *resultobj = 0;
25765 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25766 bool result;
25767 void *argp1 = 0 ;
25768 int res1 = 0 ;
25769 PyObject *swig_obj[1] ;
25770
25771 if (!args) SWIG_fail;
25772 swig_obj[0] = args;
25773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25774 if (!SWIG_IsOK(res1)) {
25775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25776 }
25777 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25778 {
25779 PyThreadState* __tstate = wxPyBeginAllowThreads();
25780 result = (bool)(arg1)->IsOk();
25781 wxPyEndAllowThreads(__tstate);
25782 if (PyErr_Occurred()) SWIG_fail;
25783 }
25784 {
25785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25786 }
25787 return resultobj;
25788 fail:
25789 return NULL;
25790 }
25791
25792
25793 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25794 PyObject *resultobj = 0;
25795 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25796 int arg2 = (int) 0 ;
25797 int arg3 = (int) 0 ;
25798 bool result;
25799 void *argp1 = 0 ;
25800 int res1 = 0 ;
25801 int val2 ;
25802 int ecode2 = 0 ;
25803 int val3 ;
25804 int ecode3 = 0 ;
25805 PyObject * obj0 = 0 ;
25806 PyObject * obj1 = 0 ;
25807 PyObject * obj2 = 0 ;
25808 char * kwnames[] = {
25809 (char *) "self",(char *) "width",(char *) "height", NULL
25810 };
25811
25812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25814 if (!SWIG_IsOK(res1)) {
25815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25816 }
25817 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25818 if (obj1) {
25819 ecode2 = SWIG_AsVal_int(obj1, &val2);
25820 if (!SWIG_IsOK(ecode2)) {
25821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25822 }
25823 arg2 = static_cast< int >(val2);
25824 }
25825 if (obj2) {
25826 ecode3 = SWIG_AsVal_int(obj2, &val3);
25827 if (!SWIG_IsOK(ecode3)) {
25828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25829 }
25830 arg3 = static_cast< int >(val3);
25831 }
25832 {
25833 PyThreadState* __tstate = wxPyBeginAllowThreads();
25834 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25835 wxPyEndAllowThreads(__tstate);
25836 if (PyErr_Occurred()) SWIG_fail;
25837 }
25838 {
25839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25840 }
25841 return resultobj;
25842 fail:
25843 return NULL;
25844 }
25845
25846
25847 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25848 PyObject *resultobj = 0;
25849 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25850 wxSize result;
25851 void *argp1 = 0 ;
25852 int res1 = 0 ;
25853 PyObject *swig_obj[1] ;
25854
25855 if (!args) SWIG_fail;
25856 swig_obj[0] = args;
25857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25858 if (!SWIG_IsOK(res1)) {
25859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25860 }
25861 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25862 {
25863 PyThreadState* __tstate = wxPyBeginAllowThreads();
25864 result = (arg1)->GetSize();
25865 wxPyEndAllowThreads(__tstate);
25866 if (PyErr_Occurred()) SWIG_fail;
25867 }
25868 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25869 return resultobj;
25870 fail:
25871 return NULL;
25872 }
25873
25874
25875 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25876 PyObject *resultobj = 0;
25877 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25878 int result;
25879 void *argp1 = 0 ;
25880 int res1 = 0 ;
25881 PyObject *swig_obj[1] ;
25882
25883 if (!args) SWIG_fail;
25884 swig_obj[0] = args;
25885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25886 if (!SWIG_IsOK(res1)) {
25887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25888 }
25889 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25890 {
25891 PyThreadState* __tstate = wxPyBeginAllowThreads();
25892 result = (int)(arg1)->GetWidth();
25893 wxPyEndAllowThreads(__tstate);
25894 if (PyErr_Occurred()) SWIG_fail;
25895 }
25896 resultobj = SWIG_From_int(static_cast< int >(result));
25897 return resultobj;
25898 fail:
25899 return NULL;
25900 }
25901
25902
25903 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25904 PyObject *resultobj = 0;
25905 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25906 int result;
25907 void *argp1 = 0 ;
25908 int res1 = 0 ;
25909 PyObject *swig_obj[1] ;
25910
25911 if (!args) SWIG_fail;
25912 swig_obj[0] = args;
25913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25914 if (!SWIG_IsOK(res1)) {
25915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25916 }
25917 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25918 {
25919 PyThreadState* __tstate = wxPyBeginAllowThreads();
25920 result = (int)(arg1)->GetHeight();
25921 wxPyEndAllowThreads(__tstate);
25922 if (PyErr_Occurred()) SWIG_fail;
25923 }
25924 resultobj = SWIG_From_int(static_cast< int >(result));
25925 return resultobj;
25926 fail:
25927 return NULL;
25928 }
25929
25930
25931 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25932 PyObject *resultobj = 0;
25933 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25934 wxString *result = 0 ;
25935 void *argp1 = 0 ;
25936 int res1 = 0 ;
25937 PyObject *swig_obj[1] ;
25938
25939 if (!args) SWIG_fail;
25940 swig_obj[0] = args;
25941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25942 if (!SWIG_IsOK(res1)) {
25943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
25944 }
25945 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25946 {
25947 PyThreadState* __tstate = wxPyBeginAllowThreads();
25948 {
25949 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
25950 result = (wxString *) &_result_ref;
25951 }
25952 wxPyEndAllowThreads(__tstate);
25953 if (PyErr_Occurred()) SWIG_fail;
25954 }
25955 {
25956 #if wxUSE_UNICODE
25957 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25958 #else
25959 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25960 #endif
25961 }
25962 return resultobj;
25963 fail:
25964 return NULL;
25965 }
25966
25967
25968 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25969 PyObject *obj;
25970 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25971 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25972 return SWIG_Py_Void();
25973 }
25974
25975 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25976 return SWIG_Python_InitShadowInstance(args);
25977 }
25978
25979 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25980 PyObject *resultobj = 0;
25981 wxString const &arg1_defvalue = wxPyEmptyString ;
25982 wxString *arg1 = (wxString *) &arg1_defvalue ;
25983 int arg2 = (int) 0 ;
25984 int arg3 = (int) 0 ;
25985 wxString const &arg4_defvalue = wxPyEmptyString ;
25986 wxString *arg4 = (wxString *) &arg4_defvalue ;
25987 wxMetaFileDC *result = 0 ;
25988 bool temp1 = false ;
25989 int val2 ;
25990 int ecode2 = 0 ;
25991 int val3 ;
25992 int ecode3 = 0 ;
25993 bool temp4 = false ;
25994 PyObject * obj0 = 0 ;
25995 PyObject * obj1 = 0 ;
25996 PyObject * obj2 = 0 ;
25997 PyObject * obj3 = 0 ;
25998 char * kwnames[] = {
25999 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
26000 };
26001
26002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26003 if (obj0) {
26004 {
26005 arg1 = wxString_in_helper(obj0);
26006 if (arg1 == NULL) SWIG_fail;
26007 temp1 = true;
26008 }
26009 }
26010 if (obj1) {
26011 ecode2 = SWIG_AsVal_int(obj1, &val2);
26012 if (!SWIG_IsOK(ecode2)) {
26013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
26014 }
26015 arg2 = static_cast< int >(val2);
26016 }
26017 if (obj2) {
26018 ecode3 = SWIG_AsVal_int(obj2, &val3);
26019 if (!SWIG_IsOK(ecode3)) {
26020 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
26021 }
26022 arg3 = static_cast< int >(val3);
26023 }
26024 if (obj3) {
26025 {
26026 arg4 = wxString_in_helper(obj3);
26027 if (arg4 == NULL) SWIG_fail;
26028 temp4 = true;
26029 }
26030 }
26031 {
26032 if (!wxPyCheckForApp()) SWIG_fail;
26033 PyThreadState* __tstate = wxPyBeginAllowThreads();
26034 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
26035 wxPyEndAllowThreads(__tstate);
26036 if (PyErr_Occurred()) SWIG_fail;
26037 }
26038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
26039 {
26040 if (temp1)
26041 delete arg1;
26042 }
26043 {
26044 if (temp4)
26045 delete arg4;
26046 }
26047 return resultobj;
26048 fail:
26049 {
26050 if (temp1)
26051 delete arg1;
26052 }
26053 {
26054 if (temp4)
26055 delete arg4;
26056 }
26057 return NULL;
26058 }
26059
26060
26061 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26062 PyObject *resultobj = 0;
26063 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
26064 wxMetaFile *result = 0 ;
26065 void *argp1 = 0 ;
26066 int res1 = 0 ;
26067 PyObject *swig_obj[1] ;
26068
26069 if (!args) SWIG_fail;
26070 swig_obj[0] = args;
26071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
26072 if (!SWIG_IsOK(res1)) {
26073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
26074 }
26075 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
26076 {
26077 PyThreadState* __tstate = wxPyBeginAllowThreads();
26078 result = (wxMetaFile *)(arg1)->Close();
26079 wxPyEndAllowThreads(__tstate);
26080 if (PyErr_Occurred()) SWIG_fail;
26081 }
26082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
26083 return resultobj;
26084 fail:
26085 return NULL;
26086 }
26087
26088
26089 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26090 PyObject *obj;
26091 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26092 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
26093 return SWIG_Py_Void();
26094 }
26095
26096 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26097 return SWIG_Python_InitShadowInstance(args);
26098 }
26099
26100 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26101 PyObject *resultobj = 0;
26102 wxPrintData *arg1 = 0 ;
26103 wxPrinterDC *result = 0 ;
26104 void *argp1 = 0 ;
26105 int res1 = 0 ;
26106 PyObject * obj0 = 0 ;
26107 char * kwnames[] = {
26108 (char *) "printData", NULL
26109 };
26110
26111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
26112 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
26113 if (!SWIG_IsOK(res1)) {
26114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26115 }
26116 if (!argp1) {
26117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26118 }
26119 arg1 = reinterpret_cast< wxPrintData * >(argp1);
26120 {
26121 if (!wxPyCheckForApp()) SWIG_fail;
26122 PyThreadState* __tstate = wxPyBeginAllowThreads();
26123 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
26124 wxPyEndAllowThreads(__tstate);
26125 if (PyErr_Occurred()) SWIG_fail;
26126 }
26127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
26128 return resultobj;
26129 fail:
26130 return NULL;
26131 }
26132
26133
26134 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26135 PyObject *obj;
26136 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26137 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
26138 return SWIG_Py_Void();
26139 }
26140
26141 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26142 return SWIG_Python_InitShadowInstance(args);
26143 }
26144
26145 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26146 PyObject *resultobj = 0;
26147 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
26148 wxGraphicsObject *result = 0 ;
26149 void *argp1 = 0 ;
26150 int res1 = 0 ;
26151 PyObject * obj0 = 0 ;
26152 char * kwnames[] = {
26153 (char *) "renderer", NULL
26154 };
26155
26156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
26157 if (obj0) {
26158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26159 if (!SWIG_IsOK(res1)) {
26160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
26161 }
26162 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
26163 }
26164 {
26165 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
26166 if (PyErr_Occurred()) SWIG_fail;
26167 }
26168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
26169 return resultobj;
26170 fail:
26171 return NULL;
26172 }
26173
26174
26175 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26176 PyObject *resultobj = 0;
26177 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26178 void *argp1 = 0 ;
26179 int res1 = 0 ;
26180 PyObject *swig_obj[1] ;
26181
26182 if (!args) SWIG_fail;
26183 swig_obj[0] = args;
26184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
26185 if (!SWIG_IsOK(res1)) {
26186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
26187 }
26188 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26189 {
26190 delete arg1;
26191
26192 if (PyErr_Occurred()) SWIG_fail;
26193 }
26194 resultobj = SWIG_Py_Void();
26195 return resultobj;
26196 fail:
26197 return NULL;
26198 }
26199
26200
26201 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26202 PyObject *resultobj = 0;
26203 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26204 bool result;
26205 void *argp1 = 0 ;
26206 int res1 = 0 ;
26207 PyObject *swig_obj[1] ;
26208
26209 if (!args) SWIG_fail;
26210 swig_obj[0] = args;
26211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26212 if (!SWIG_IsOK(res1)) {
26213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26214 }
26215 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26216 {
26217 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
26218 if (PyErr_Occurred()) SWIG_fail;
26219 }
26220 {
26221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26222 }
26223 return resultobj;
26224 fail:
26225 return NULL;
26226 }
26227
26228
26229 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26230 PyObject *resultobj = 0;
26231 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26232 wxGraphicsRenderer *result = 0 ;
26233 void *argp1 = 0 ;
26234 int res1 = 0 ;
26235 PyObject *swig_obj[1] ;
26236
26237 if (!args) SWIG_fail;
26238 swig_obj[0] = args;
26239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26240 if (!SWIG_IsOK(res1)) {
26241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26242 }
26243 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26244 {
26245 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
26246 if (PyErr_Occurred()) SWIG_fail;
26247 }
26248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26249 return resultobj;
26250 fail:
26251 return NULL;
26252 }
26253
26254
26255 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26256 PyObject *obj;
26257 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26258 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
26259 return SWIG_Py_Void();
26260 }
26261
26262 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26263 return SWIG_Python_InitShadowInstance(args);
26264 }
26265
26266 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26267 PyObject *resultobj = 0;
26268 wxGraphicsPen *result = 0 ;
26269
26270 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
26271 {
26272 result = (wxGraphicsPen *)new wxGraphicsPen();
26273 if (PyErr_Occurred()) SWIG_fail;
26274 }
26275 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
26276 return resultobj;
26277 fail:
26278 return NULL;
26279 }
26280
26281
26282 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26283 PyObject *resultobj = 0;
26284 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
26285 void *argp1 = 0 ;
26286 int res1 = 0 ;
26287 PyObject *swig_obj[1] ;
26288
26289 if (!args) SWIG_fail;
26290 swig_obj[0] = args;
26291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
26292 if (!SWIG_IsOK(res1)) {
26293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
26294 }
26295 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
26296 {
26297 delete arg1;
26298
26299 if (PyErr_Occurred()) SWIG_fail;
26300 }
26301 resultobj = SWIG_Py_Void();
26302 return resultobj;
26303 fail:
26304 return NULL;
26305 }
26306
26307
26308 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26309 PyObject *obj;
26310 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26311 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
26312 return SWIG_Py_Void();
26313 }
26314
26315 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26316 return SWIG_Python_InitShadowInstance(args);
26317 }
26318
26319 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26320 PyObject *resultobj = 0;
26321 wxGraphicsBrush *result = 0 ;
26322
26323 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26324 {
26325 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26326 if (PyErr_Occurred()) SWIG_fail;
26327 }
26328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26329 return resultobj;
26330 fail:
26331 return NULL;
26332 }
26333
26334
26335 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26336 PyObject *resultobj = 0;
26337 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26338 void *argp1 = 0 ;
26339 int res1 = 0 ;
26340 PyObject *swig_obj[1] ;
26341
26342 if (!args) SWIG_fail;
26343 swig_obj[0] = args;
26344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26345 if (!SWIG_IsOK(res1)) {
26346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26347 }
26348 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26349 {
26350 delete arg1;
26351
26352 if (PyErr_Occurred()) SWIG_fail;
26353 }
26354 resultobj = SWIG_Py_Void();
26355 return resultobj;
26356 fail:
26357 return NULL;
26358 }
26359
26360
26361 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26362 PyObject *obj;
26363 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26364 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26365 return SWIG_Py_Void();
26366 }
26367
26368 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26369 return SWIG_Python_InitShadowInstance(args);
26370 }
26371
26372 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26373 PyObject *resultobj = 0;
26374 wxGraphicsFont *result = 0 ;
26375
26376 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26377 {
26378 result = (wxGraphicsFont *)new wxGraphicsFont();
26379 if (PyErr_Occurred()) SWIG_fail;
26380 }
26381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26382 return resultobj;
26383 fail:
26384 return NULL;
26385 }
26386
26387
26388 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26389 PyObject *resultobj = 0;
26390 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26391 void *argp1 = 0 ;
26392 int res1 = 0 ;
26393 PyObject *swig_obj[1] ;
26394
26395 if (!args) SWIG_fail;
26396 swig_obj[0] = args;
26397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26398 if (!SWIG_IsOK(res1)) {
26399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26400 }
26401 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26402 {
26403 delete arg1;
26404
26405 if (PyErr_Occurred()) SWIG_fail;
26406 }
26407 resultobj = SWIG_Py_Void();
26408 return resultobj;
26409 fail:
26410 return NULL;
26411 }
26412
26413
26414 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26415 PyObject *obj;
26416 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26417 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26418 return SWIG_Py_Void();
26419 }
26420
26421 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26422 return SWIG_Python_InitShadowInstance(args);
26423 }
26424
26425 SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26426 PyObject *resultobj = 0;
26427 wxGraphicsMatrix *result = 0 ;
26428
26429 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
26430 {
26431 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
26432 if (PyErr_Occurred()) SWIG_fail;
26433 }
26434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
26435 return resultobj;
26436 fail:
26437 return NULL;
26438 }
26439
26440
26441 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26442 PyObject *resultobj = 0;
26443 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26444 void *argp1 = 0 ;
26445 int res1 = 0 ;
26446 PyObject *swig_obj[1] ;
26447
26448 if (!args) SWIG_fail;
26449 swig_obj[0] = args;
26450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
26451 if (!SWIG_IsOK(res1)) {
26452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26453 }
26454 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26455 {
26456 delete arg1;
26457
26458 if (PyErr_Occurred()) SWIG_fail;
26459 }
26460 resultobj = SWIG_Py_Void();
26461 return resultobj;
26462 fail:
26463 return NULL;
26464 }
26465
26466
26467 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26468 PyObject *resultobj = 0;
26469 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26470 wxGraphicsMatrix *arg2 = 0 ;
26471 void *argp1 = 0 ;
26472 int res1 = 0 ;
26473 void *argp2 = 0 ;
26474 int res2 = 0 ;
26475 PyObject * obj0 = 0 ;
26476 PyObject * obj1 = 0 ;
26477 char * kwnames[] = {
26478 (char *) "self",(char *) "t", NULL
26479 };
26480
26481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26483 if (!SWIG_IsOK(res1)) {
26484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26485 }
26486 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26487 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26488 if (!SWIG_IsOK(res2)) {
26489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26490 }
26491 if (!argp2) {
26492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26493 }
26494 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26495 {
26496 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
26497 if (PyErr_Occurred()) SWIG_fail;
26498 }
26499 resultobj = SWIG_Py_Void();
26500 return resultobj;
26501 fail:
26502 return NULL;
26503 }
26504
26505
26506 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26507 PyObject *resultobj = 0;
26508 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26509 wxDouble arg2 = (wxDouble) 1.0 ;
26510 wxDouble arg3 = (wxDouble) 0.0 ;
26511 wxDouble arg4 = (wxDouble) 0.0 ;
26512 wxDouble arg5 = (wxDouble) 1.0 ;
26513 wxDouble arg6 = (wxDouble) 0.0 ;
26514 wxDouble arg7 = (wxDouble) 0.0 ;
26515 void *argp1 = 0 ;
26516 int res1 = 0 ;
26517 double val2 ;
26518 int ecode2 = 0 ;
26519 double val3 ;
26520 int ecode3 = 0 ;
26521 double val4 ;
26522 int ecode4 = 0 ;
26523 double val5 ;
26524 int ecode5 = 0 ;
26525 double val6 ;
26526 int ecode6 = 0 ;
26527 double val7 ;
26528 int ecode7 = 0 ;
26529 PyObject * obj0 = 0 ;
26530 PyObject * obj1 = 0 ;
26531 PyObject * obj2 = 0 ;
26532 PyObject * obj3 = 0 ;
26533 PyObject * obj4 = 0 ;
26534 PyObject * obj5 = 0 ;
26535 PyObject * obj6 = 0 ;
26536 char * kwnames[] = {
26537 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26538 };
26539
26540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26542 if (!SWIG_IsOK(res1)) {
26543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26544 }
26545 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26546 if (obj1) {
26547 ecode2 = SWIG_AsVal_double(obj1, &val2);
26548 if (!SWIG_IsOK(ecode2)) {
26549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26550 }
26551 arg2 = static_cast< wxDouble >(val2);
26552 }
26553 if (obj2) {
26554 ecode3 = SWIG_AsVal_double(obj2, &val3);
26555 if (!SWIG_IsOK(ecode3)) {
26556 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26557 }
26558 arg3 = static_cast< wxDouble >(val3);
26559 }
26560 if (obj3) {
26561 ecode4 = SWIG_AsVal_double(obj3, &val4);
26562 if (!SWIG_IsOK(ecode4)) {
26563 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26564 }
26565 arg4 = static_cast< wxDouble >(val4);
26566 }
26567 if (obj4) {
26568 ecode5 = SWIG_AsVal_double(obj4, &val5);
26569 if (!SWIG_IsOK(ecode5)) {
26570 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26571 }
26572 arg5 = static_cast< wxDouble >(val5);
26573 }
26574 if (obj5) {
26575 ecode6 = SWIG_AsVal_double(obj5, &val6);
26576 if (!SWIG_IsOK(ecode6)) {
26577 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26578 }
26579 arg6 = static_cast< wxDouble >(val6);
26580 }
26581 if (obj6) {
26582 ecode7 = SWIG_AsVal_double(obj6, &val7);
26583 if (!SWIG_IsOK(ecode7)) {
26584 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26585 }
26586 arg7 = static_cast< wxDouble >(val7);
26587 }
26588 {
26589 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
26590 if (PyErr_Occurred()) SWIG_fail;
26591 }
26592 resultobj = SWIG_Py_Void();
26593 return resultobj;
26594 fail:
26595 return NULL;
26596 }
26597
26598
26599 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26600 PyObject *resultobj = 0;
26601 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26602 wxDouble *arg2 = (wxDouble *) 0 ;
26603 wxDouble *arg3 = (wxDouble *) 0 ;
26604 wxDouble *arg4 = (wxDouble *) 0 ;
26605 wxDouble *arg5 = (wxDouble *) 0 ;
26606 wxDouble *arg6 = (wxDouble *) 0 ;
26607 wxDouble *arg7 = (wxDouble *) 0 ;
26608 void *argp1 = 0 ;
26609 int res1 = 0 ;
26610 wxDouble temp2 ;
26611 int res2 = SWIG_TMPOBJ ;
26612 wxDouble temp3 ;
26613 int res3 = SWIG_TMPOBJ ;
26614 wxDouble temp4 ;
26615 int res4 = SWIG_TMPOBJ ;
26616 wxDouble temp5 ;
26617 int res5 = SWIG_TMPOBJ ;
26618 wxDouble temp6 ;
26619 int res6 = SWIG_TMPOBJ ;
26620 wxDouble temp7 ;
26621 int res7 = SWIG_TMPOBJ ;
26622 PyObject *swig_obj[1] ;
26623
26624 arg2 = &temp2;
26625 arg3 = &temp3;
26626 arg4 = &temp4;
26627 arg5 = &temp5;
26628 arg6 = &temp6;
26629 arg7 = &temp7;
26630 if (!args) SWIG_fail;
26631 swig_obj[0] = args;
26632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26633 if (!SWIG_IsOK(res1)) {
26634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26635 }
26636 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26637 {
26638 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
26639 if (PyErr_Occurred()) SWIG_fail;
26640 }
26641 resultobj = SWIG_Py_Void();
26642 if (SWIG_IsTmpObj(res2)) {
26643 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26644 } else {
26645 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26646 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26647 }
26648 if (SWIG_IsTmpObj(res3)) {
26649 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26650 } else {
26651 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26653 }
26654 if (SWIG_IsTmpObj(res4)) {
26655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26656 } else {
26657 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26659 }
26660 if (SWIG_IsTmpObj(res5)) {
26661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26662 } else {
26663 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26664 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26665 }
26666 if (SWIG_IsTmpObj(res6)) {
26667 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26668 } else {
26669 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26670 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26671 }
26672 if (SWIG_IsTmpObj(res7)) {
26673 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
26674 } else {
26675 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26676 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
26677 }
26678 return resultobj;
26679 fail:
26680 return NULL;
26681 }
26682
26683
26684 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26685 PyObject *resultobj = 0;
26686 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26687 void *argp1 = 0 ;
26688 int res1 = 0 ;
26689 PyObject *swig_obj[1] ;
26690
26691 if (!args) SWIG_fail;
26692 swig_obj[0] = args;
26693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26694 if (!SWIG_IsOK(res1)) {
26695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26696 }
26697 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26698 {
26699 (arg1)->Invert();
26700 if (PyErr_Occurred()) SWIG_fail;
26701 }
26702 resultobj = SWIG_Py_Void();
26703 return resultobj;
26704 fail:
26705 return NULL;
26706 }
26707
26708
26709 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26710 PyObject *resultobj = 0;
26711 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26712 wxGraphicsMatrix *arg2 = 0 ;
26713 bool result;
26714 void *argp1 = 0 ;
26715 int res1 = 0 ;
26716 void *argp2 = 0 ;
26717 int res2 = 0 ;
26718 PyObject * obj0 = 0 ;
26719 PyObject * obj1 = 0 ;
26720 char * kwnames[] = {
26721 (char *) "self",(char *) "t", NULL
26722 };
26723
26724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26726 if (!SWIG_IsOK(res1)) {
26727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26728 }
26729 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26730 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26731 if (!SWIG_IsOK(res2)) {
26732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26733 }
26734 if (!argp2) {
26735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26736 }
26737 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26738 {
26739 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
26740 if (PyErr_Occurred()) SWIG_fail;
26741 }
26742 {
26743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26744 }
26745 return resultobj;
26746 fail:
26747 return NULL;
26748 }
26749
26750
26751 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26752 PyObject *resultobj = 0;
26753 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26754 bool result;
26755 void *argp1 = 0 ;
26756 int res1 = 0 ;
26757 PyObject *swig_obj[1] ;
26758
26759 if (!args) SWIG_fail;
26760 swig_obj[0] = args;
26761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26762 if (!SWIG_IsOK(res1)) {
26763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26764 }
26765 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26766 {
26767 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
26768 if (PyErr_Occurred()) SWIG_fail;
26769 }
26770 {
26771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26772 }
26773 return resultobj;
26774 fail:
26775 return NULL;
26776 }
26777
26778
26779 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26780 PyObject *resultobj = 0;
26781 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26782 wxDouble arg2 ;
26783 wxDouble arg3 ;
26784 void *argp1 = 0 ;
26785 int res1 = 0 ;
26786 double val2 ;
26787 int ecode2 = 0 ;
26788 double val3 ;
26789 int ecode3 = 0 ;
26790 PyObject * obj0 = 0 ;
26791 PyObject * obj1 = 0 ;
26792 PyObject * obj2 = 0 ;
26793 char * kwnames[] = {
26794 (char *) "self",(char *) "dx",(char *) "dy", NULL
26795 };
26796
26797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26799 if (!SWIG_IsOK(res1)) {
26800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26801 }
26802 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26803 ecode2 = SWIG_AsVal_double(obj1, &val2);
26804 if (!SWIG_IsOK(ecode2)) {
26805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26806 }
26807 arg2 = static_cast< wxDouble >(val2);
26808 ecode3 = SWIG_AsVal_double(obj2, &val3);
26809 if (!SWIG_IsOK(ecode3)) {
26810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26811 }
26812 arg3 = static_cast< wxDouble >(val3);
26813 {
26814 (arg1)->Translate(arg2,arg3);
26815 if (PyErr_Occurred()) SWIG_fail;
26816 }
26817 resultobj = SWIG_Py_Void();
26818 return resultobj;
26819 fail:
26820 return NULL;
26821 }
26822
26823
26824 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26825 PyObject *resultobj = 0;
26826 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26827 wxDouble arg2 ;
26828 wxDouble arg3 ;
26829 void *argp1 = 0 ;
26830 int res1 = 0 ;
26831 double val2 ;
26832 int ecode2 = 0 ;
26833 double val3 ;
26834 int ecode3 = 0 ;
26835 PyObject * obj0 = 0 ;
26836 PyObject * obj1 = 0 ;
26837 PyObject * obj2 = 0 ;
26838 char * kwnames[] = {
26839 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26840 };
26841
26842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26844 if (!SWIG_IsOK(res1)) {
26845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26846 }
26847 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26848 ecode2 = SWIG_AsVal_double(obj1, &val2);
26849 if (!SWIG_IsOK(ecode2)) {
26850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26851 }
26852 arg2 = static_cast< wxDouble >(val2);
26853 ecode3 = SWIG_AsVal_double(obj2, &val3);
26854 if (!SWIG_IsOK(ecode3)) {
26855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26856 }
26857 arg3 = static_cast< wxDouble >(val3);
26858 {
26859 (arg1)->Scale(arg2,arg3);
26860 if (PyErr_Occurred()) SWIG_fail;
26861 }
26862 resultobj = SWIG_Py_Void();
26863 return resultobj;
26864 fail:
26865 return NULL;
26866 }
26867
26868
26869 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26870 PyObject *resultobj = 0;
26871 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26872 wxDouble arg2 ;
26873 void *argp1 = 0 ;
26874 int res1 = 0 ;
26875 double val2 ;
26876 int ecode2 = 0 ;
26877 PyObject * obj0 = 0 ;
26878 PyObject * obj1 = 0 ;
26879 char * kwnames[] = {
26880 (char *) "self",(char *) "angle", NULL
26881 };
26882
26883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26885 if (!SWIG_IsOK(res1)) {
26886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26887 }
26888 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26889 ecode2 = SWIG_AsVal_double(obj1, &val2);
26890 if (!SWIG_IsOK(ecode2)) {
26891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26892 }
26893 arg2 = static_cast< wxDouble >(val2);
26894 {
26895 (arg1)->Rotate(arg2);
26896 if (PyErr_Occurred()) SWIG_fail;
26897 }
26898 resultobj = SWIG_Py_Void();
26899 return resultobj;
26900 fail:
26901 return NULL;
26902 }
26903
26904
26905 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26906 PyObject *resultobj = 0;
26907 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26908 wxDouble *arg2 = (wxDouble *) 0 ;
26909 wxDouble *arg3 = (wxDouble *) 0 ;
26910 void *argp1 = 0 ;
26911 int res1 = 0 ;
26912 wxDouble temp2 ;
26913 int res2 = 0 ;
26914 wxDouble temp3 ;
26915 int res3 = 0 ;
26916 PyObject * obj0 = 0 ;
26917 PyObject * obj1 = 0 ;
26918 PyObject * obj2 = 0 ;
26919 char * kwnames[] = {
26920 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26921 };
26922
26923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26925 if (!SWIG_IsOK(res1)) {
26926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26927 }
26928 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26929 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26930 double val;
26931 int ecode = SWIG_AsVal_double(obj1, &val);
26932 if (!SWIG_IsOK(ecode)) {
26933 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26934 }
26935 temp2 = static_cast< wxDouble >(val);
26936 arg2 = &temp2;
26937 res2 = SWIG_AddTmpMask(ecode);
26938 }
26939 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26940 double val;
26941 int ecode = SWIG_AsVal_double(obj2, &val);
26942 if (!SWIG_IsOK(ecode)) {
26943 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26944 }
26945 temp3 = static_cast< wxDouble >(val);
26946 arg3 = &temp3;
26947 res3 = SWIG_AddTmpMask(ecode);
26948 }
26949 {
26950 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
26951 if (PyErr_Occurred()) SWIG_fail;
26952 }
26953 resultobj = SWIG_Py_Void();
26954 if (SWIG_IsTmpObj(res2)) {
26955 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26956 } else {
26957 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26958 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26959 }
26960 if (SWIG_IsTmpObj(res3)) {
26961 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26962 } else {
26963 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26964 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26965 }
26966 return resultobj;
26967 fail:
26968 return NULL;
26969 }
26970
26971
26972 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26973 PyObject *resultobj = 0;
26974 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26975 wxDouble *arg2 = (wxDouble *) 0 ;
26976 wxDouble *arg3 = (wxDouble *) 0 ;
26977 void *argp1 = 0 ;
26978 int res1 = 0 ;
26979 wxDouble temp2 ;
26980 int res2 = 0 ;
26981 wxDouble temp3 ;
26982 int res3 = 0 ;
26983 PyObject * obj0 = 0 ;
26984 PyObject * obj1 = 0 ;
26985 PyObject * obj2 = 0 ;
26986 char * kwnames[] = {
26987 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26988 };
26989
26990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26992 if (!SWIG_IsOK(res1)) {
26993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26994 }
26995 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26996 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26997 double val;
26998 int ecode = SWIG_AsVal_double(obj1, &val);
26999 if (!SWIG_IsOK(ecode)) {
27000 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
27001 }
27002 temp2 = static_cast< wxDouble >(val);
27003 arg2 = &temp2;
27004 res2 = SWIG_AddTmpMask(ecode);
27005 }
27006 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
27007 double val;
27008 int ecode = SWIG_AsVal_double(obj2, &val);
27009 if (!SWIG_IsOK(ecode)) {
27010 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
27011 }
27012 temp3 = static_cast< wxDouble >(val);
27013 arg3 = &temp3;
27014 res3 = SWIG_AddTmpMask(ecode);
27015 }
27016 {
27017 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
27018 if (PyErr_Occurred()) SWIG_fail;
27019 }
27020 resultobj = SWIG_Py_Void();
27021 if (SWIG_IsTmpObj(res2)) {
27022 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27023 } else {
27024 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27026 }
27027 if (SWIG_IsTmpObj(res3)) {
27028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27029 } else {
27030 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27031 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27032 }
27033 return resultobj;
27034 fail:
27035 return NULL;
27036 }
27037
27038
27039 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27040 PyObject *resultobj = 0;
27041 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27042 void *result = 0 ;
27043 void *argp1 = 0 ;
27044 int res1 = 0 ;
27045 PyObject *swig_obj[1] ;
27046
27047 if (!args) SWIG_fail;
27048 swig_obj[0] = args;
27049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27050 if (!SWIG_IsOK(res1)) {
27051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27052 }
27053 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27054 {
27055 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
27056 if (PyErr_Occurred()) SWIG_fail;
27057 }
27058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27059 return resultobj;
27060 fail:
27061 return NULL;
27062 }
27063
27064
27065 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27066 PyObject *obj;
27067 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27068 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
27069 return SWIG_Py_Void();
27070 }
27071
27072 SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27073 return SWIG_Python_InitShadowInstance(args);
27074 }
27075
27076 SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27077 PyObject *resultobj = 0;
27078 wxGraphicsPath *result = 0 ;
27079
27080 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
27081 {
27082 if (!wxPyCheckForApp()) SWIG_fail;
27083 PyThreadState* __tstate = wxPyBeginAllowThreads();
27084 result = (wxGraphicsPath *)new wxGraphicsPath();
27085 wxPyEndAllowThreads(__tstate);
27086 if (PyErr_Occurred()) SWIG_fail;
27087 }
27088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
27089 return resultobj;
27090 fail:
27091 return NULL;
27092 }
27093
27094
27095 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27096 PyObject *resultobj = 0;
27097 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27098 void *argp1 = 0 ;
27099 int res1 = 0 ;
27100 PyObject *swig_obj[1] ;
27101
27102 if (!args) SWIG_fail;
27103 swig_obj[0] = args;
27104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
27105 if (!SWIG_IsOK(res1)) {
27106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27107 }
27108 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27109 {
27110 delete arg1;
27111
27112 if (PyErr_Occurred()) SWIG_fail;
27113 }
27114 resultobj = SWIG_Py_Void();
27115 return resultobj;
27116 fail:
27117 return NULL;
27118 }
27119
27120
27121 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27122 PyObject *resultobj = 0;
27123 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27124 wxDouble arg2 ;
27125 wxDouble arg3 ;
27126 void *argp1 = 0 ;
27127 int res1 = 0 ;
27128 double val2 ;
27129 int ecode2 = 0 ;
27130 double val3 ;
27131 int ecode3 = 0 ;
27132
27133 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27135 if (!SWIG_IsOK(res1)) {
27136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27137 }
27138 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27139 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27140 if (!SWIG_IsOK(ecode2)) {
27141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27142 }
27143 arg2 = static_cast< wxDouble >(val2);
27144 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27145 if (!SWIG_IsOK(ecode3)) {
27146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27147 }
27148 arg3 = static_cast< wxDouble >(val3);
27149 {
27150 (arg1)->MoveToPoint(arg2,arg3);
27151 if (PyErr_Occurred()) SWIG_fail;
27152 }
27153 resultobj = SWIG_Py_Void();
27154 return resultobj;
27155 fail:
27156 return NULL;
27157 }
27158
27159
27160 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27161 PyObject *resultobj = 0;
27162 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27163 wxPoint2D *arg2 = 0 ;
27164 void *argp1 = 0 ;
27165 int res1 = 0 ;
27166 wxPoint2D temp2 ;
27167
27168 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27170 if (!SWIG_IsOK(res1)) {
27171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27172 }
27173 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27174 {
27175 arg2 = &temp2;
27176 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27177 }
27178 {
27179 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
27180 if (PyErr_Occurred()) SWIG_fail;
27181 }
27182 resultobj = SWIG_Py_Void();
27183 return resultobj;
27184 fail:
27185 return NULL;
27186 }
27187
27188
27189 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
27190 int argc;
27191 PyObject *argv[4];
27192
27193 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
27194 --argc;
27195 if (argc == 2) {
27196 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
27197 }
27198 if (argc == 3) {
27199 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
27200 }
27201
27202 fail:
27203 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
27204 return NULL;
27205 }
27206
27207
27208 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27209 PyObject *resultobj = 0;
27210 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27211 wxDouble arg2 ;
27212 wxDouble arg3 ;
27213 void *argp1 = 0 ;
27214 int res1 = 0 ;
27215 double val2 ;
27216 int ecode2 = 0 ;
27217 double val3 ;
27218 int ecode3 = 0 ;
27219
27220 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27222 if (!SWIG_IsOK(res1)) {
27223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27224 }
27225 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27226 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27227 if (!SWIG_IsOK(ecode2)) {
27228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27229 }
27230 arg2 = static_cast< wxDouble >(val2);
27231 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27232 if (!SWIG_IsOK(ecode3)) {
27233 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27234 }
27235 arg3 = static_cast< wxDouble >(val3);
27236 {
27237 (arg1)->AddLineToPoint(arg2,arg3);
27238 if (PyErr_Occurred()) SWIG_fail;
27239 }
27240 resultobj = SWIG_Py_Void();
27241 return resultobj;
27242 fail:
27243 return NULL;
27244 }
27245
27246
27247 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27248 PyObject *resultobj = 0;
27249 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27250 wxPoint2D *arg2 = 0 ;
27251 void *argp1 = 0 ;
27252 int res1 = 0 ;
27253 wxPoint2D temp2 ;
27254
27255 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27257 if (!SWIG_IsOK(res1)) {
27258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27259 }
27260 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27261 {
27262 arg2 = &temp2;
27263 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27264 }
27265 {
27266 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
27267 if (PyErr_Occurred()) SWIG_fail;
27268 }
27269 resultobj = SWIG_Py_Void();
27270 return resultobj;
27271 fail:
27272 return NULL;
27273 }
27274
27275
27276 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
27277 int argc;
27278 PyObject *argv[4];
27279
27280 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
27281 --argc;
27282 if (argc == 2) {
27283 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
27284 }
27285 if (argc == 3) {
27286 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
27287 }
27288
27289 fail:
27290 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
27291 return NULL;
27292 }
27293
27294
27295 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27296 PyObject *resultobj = 0;
27297 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27298 wxDouble arg2 ;
27299 wxDouble arg3 ;
27300 wxDouble arg4 ;
27301 wxDouble arg5 ;
27302 wxDouble arg6 ;
27303 wxDouble arg7 ;
27304 void *argp1 = 0 ;
27305 int res1 = 0 ;
27306 double val2 ;
27307 int ecode2 = 0 ;
27308 double val3 ;
27309 int ecode3 = 0 ;
27310 double val4 ;
27311 int ecode4 = 0 ;
27312 double val5 ;
27313 int ecode5 = 0 ;
27314 double val6 ;
27315 int ecode6 = 0 ;
27316 double val7 ;
27317 int ecode7 = 0 ;
27318
27319 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27321 if (!SWIG_IsOK(res1)) {
27322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27323 }
27324 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27325 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27326 if (!SWIG_IsOK(ecode2)) {
27327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27328 }
27329 arg2 = static_cast< wxDouble >(val2);
27330 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27331 if (!SWIG_IsOK(ecode3)) {
27332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27333 }
27334 arg3 = static_cast< wxDouble >(val3);
27335 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27336 if (!SWIG_IsOK(ecode4)) {
27337 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27338 }
27339 arg4 = static_cast< wxDouble >(val4);
27340 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27341 if (!SWIG_IsOK(ecode5)) {
27342 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27343 }
27344 arg5 = static_cast< wxDouble >(val5);
27345 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27346 if (!SWIG_IsOK(ecode6)) {
27347 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27348 }
27349 arg6 = static_cast< wxDouble >(val6);
27350 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
27351 if (!SWIG_IsOK(ecode7)) {
27352 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
27353 }
27354 arg7 = static_cast< wxDouble >(val7);
27355 {
27356 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
27357 if (PyErr_Occurred()) SWIG_fail;
27358 }
27359 resultobj = SWIG_Py_Void();
27360 return resultobj;
27361 fail:
27362 return NULL;
27363 }
27364
27365
27366 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27367 PyObject *resultobj = 0;
27368 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27369 wxPoint2D *arg2 = 0 ;
27370 wxPoint2D *arg3 = 0 ;
27371 wxPoint2D *arg4 = 0 ;
27372 void *argp1 = 0 ;
27373 int res1 = 0 ;
27374 wxPoint2D temp2 ;
27375 wxPoint2D temp3 ;
27376 wxPoint2D temp4 ;
27377
27378 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
27379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27380 if (!SWIG_IsOK(res1)) {
27381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27382 }
27383 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27384 {
27385 arg2 = &temp2;
27386 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27387 }
27388 {
27389 arg3 = &temp3;
27390 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
27391 }
27392 {
27393 arg4 = &temp4;
27394 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
27395 }
27396 {
27397 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
27398 if (PyErr_Occurred()) SWIG_fail;
27399 }
27400 resultobj = SWIG_Py_Void();
27401 return resultobj;
27402 fail:
27403 return NULL;
27404 }
27405
27406
27407 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
27408 int argc;
27409 PyObject *argv[8];
27410
27411 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
27412 --argc;
27413 if (argc == 4) {
27414 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
27415 }
27416 if (argc == 7) {
27417 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
27418 }
27419
27420 fail:
27421 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
27422 return NULL;
27423 }
27424
27425
27426 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27427 PyObject *resultobj = 0;
27428 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27429 wxGraphicsPath *arg2 = 0 ;
27430 void *argp1 = 0 ;
27431 int res1 = 0 ;
27432 void *argp2 = 0 ;
27433 int res2 = 0 ;
27434 PyObject * obj0 = 0 ;
27435 PyObject * obj1 = 0 ;
27436 char * kwnames[] = {
27437 (char *) "self",(char *) "path", NULL
27438 };
27439
27440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
27441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27442 if (!SWIG_IsOK(res1)) {
27443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27444 }
27445 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27446 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
27447 if (!SWIG_IsOK(res2)) {
27448 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27449 }
27450 if (!argp2) {
27451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27452 }
27453 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
27454 {
27455 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
27456 if (PyErr_Occurred()) SWIG_fail;
27457 }
27458 resultobj = SWIG_Py_Void();
27459 return resultobj;
27460 fail:
27461 return NULL;
27462 }
27463
27464
27465 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27466 PyObject *resultobj = 0;
27467 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27468 void *argp1 = 0 ;
27469 int res1 = 0 ;
27470 PyObject *swig_obj[1] ;
27471
27472 if (!args) SWIG_fail;
27473 swig_obj[0] = args;
27474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27475 if (!SWIG_IsOK(res1)) {
27476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27477 }
27478 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27479 {
27480 (arg1)->CloseSubpath();
27481 if (PyErr_Occurred()) SWIG_fail;
27482 }
27483 resultobj = SWIG_Py_Void();
27484 return resultobj;
27485 fail:
27486 return NULL;
27487 }
27488
27489
27490 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27491 PyObject *resultobj = 0;
27492 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27493 wxPoint2D result;
27494 void *argp1 = 0 ;
27495 int res1 = 0 ;
27496 PyObject *swig_obj[1] ;
27497
27498 if (!args) SWIG_fail;
27499 swig_obj[0] = args;
27500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27501 if (!SWIG_IsOK(res1)) {
27502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27503 }
27504 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27505 {
27506 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
27507 if (PyErr_Occurred()) SWIG_fail;
27508 }
27509 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
27510 return resultobj;
27511 fail:
27512 return NULL;
27513 }
27514
27515
27516 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27517 PyObject *resultobj = 0;
27518 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27519 wxDouble arg2 ;
27520 wxDouble arg3 ;
27521 wxDouble arg4 ;
27522 wxDouble arg5 ;
27523 wxDouble arg6 ;
27524 bool arg7 ;
27525 void *argp1 = 0 ;
27526 int res1 = 0 ;
27527 double val2 ;
27528 int ecode2 = 0 ;
27529 double val3 ;
27530 int ecode3 = 0 ;
27531 double val4 ;
27532 int ecode4 = 0 ;
27533 double val5 ;
27534 int ecode5 = 0 ;
27535 double val6 ;
27536 int ecode6 = 0 ;
27537 bool val7 ;
27538 int ecode7 = 0 ;
27539
27540 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27542 if (!SWIG_IsOK(res1)) {
27543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27544 }
27545 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27546 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27547 if (!SWIG_IsOK(ecode2)) {
27548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
27549 }
27550 arg2 = static_cast< wxDouble >(val2);
27551 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27552 if (!SWIG_IsOK(ecode3)) {
27553 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27554 }
27555 arg3 = static_cast< wxDouble >(val3);
27556 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27557 if (!SWIG_IsOK(ecode4)) {
27558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27559 }
27560 arg4 = static_cast< wxDouble >(val4);
27561 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27562 if (!SWIG_IsOK(ecode5)) {
27563 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27564 }
27565 arg5 = static_cast< wxDouble >(val5);
27566 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27567 if (!SWIG_IsOK(ecode6)) {
27568 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
27569 }
27570 arg6 = static_cast< wxDouble >(val6);
27571 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
27572 if (!SWIG_IsOK(ecode7)) {
27573 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
27574 }
27575 arg7 = static_cast< bool >(val7);
27576 {
27577 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
27578 if (PyErr_Occurred()) SWIG_fail;
27579 }
27580 resultobj = SWIG_Py_Void();
27581 return resultobj;
27582 fail:
27583 return NULL;
27584 }
27585
27586
27587 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27588 PyObject *resultobj = 0;
27589 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27590 wxPoint2D *arg2 = 0 ;
27591 wxDouble arg3 ;
27592 wxDouble arg4 ;
27593 wxDouble arg5 ;
27594 bool arg6 ;
27595 void *argp1 = 0 ;
27596 int res1 = 0 ;
27597 wxPoint2D temp2 ;
27598 double val3 ;
27599 int ecode3 = 0 ;
27600 double val4 ;
27601 int ecode4 = 0 ;
27602 double val5 ;
27603 int ecode5 = 0 ;
27604 bool val6 ;
27605 int ecode6 = 0 ;
27606
27607 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
27608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27609 if (!SWIG_IsOK(res1)) {
27610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27611 }
27612 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27613 {
27614 arg2 = &temp2;
27615 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27616 }
27617 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27618 if (!SWIG_IsOK(ecode3)) {
27619 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27620 }
27621 arg3 = static_cast< wxDouble >(val3);
27622 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27623 if (!SWIG_IsOK(ecode4)) {
27624 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27625 }
27626 arg4 = static_cast< wxDouble >(val4);
27627 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27628 if (!SWIG_IsOK(ecode5)) {
27629 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27630 }
27631 arg5 = static_cast< wxDouble >(val5);
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 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
27639 if (PyErr_Occurred()) SWIG_fail;
27640 }
27641 resultobj = SWIG_Py_Void();
27642 return resultobj;
27643 fail:
27644 return NULL;
27645 }
27646
27647
27648 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
27649 int argc;
27650 PyObject *argv[8];
27651
27652 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
27653 --argc;
27654 if (argc == 6) {
27655 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
27656 }
27657 if (argc == 7) {
27658 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
27659 }
27660
27661 fail:
27662 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
27663 return NULL;
27664 }
27665
27666
27667 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27668 PyObject *resultobj = 0;
27669 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27670 wxDouble arg2 ;
27671 wxDouble arg3 ;
27672 wxDouble arg4 ;
27673 wxDouble arg5 ;
27674 void *argp1 = 0 ;
27675 int res1 = 0 ;
27676 double val2 ;
27677 int ecode2 = 0 ;
27678 double val3 ;
27679 int ecode3 = 0 ;
27680 double val4 ;
27681 int ecode4 = 0 ;
27682 double val5 ;
27683 int ecode5 = 0 ;
27684 PyObject * obj0 = 0 ;
27685 PyObject * obj1 = 0 ;
27686 PyObject * obj2 = 0 ;
27687 PyObject * obj3 = 0 ;
27688 PyObject * obj4 = 0 ;
27689 char * kwnames[] = {
27690 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27691 };
27692
27693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27695 if (!SWIG_IsOK(res1)) {
27696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27697 }
27698 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27699 ecode2 = SWIG_AsVal_double(obj1, &val2);
27700 if (!SWIG_IsOK(ecode2)) {
27701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27702 }
27703 arg2 = static_cast< wxDouble >(val2);
27704 ecode3 = SWIG_AsVal_double(obj2, &val3);
27705 if (!SWIG_IsOK(ecode3)) {
27706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27707 }
27708 arg3 = static_cast< wxDouble >(val3);
27709 ecode4 = SWIG_AsVal_double(obj3, &val4);
27710 if (!SWIG_IsOK(ecode4)) {
27711 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27712 }
27713 arg4 = static_cast< wxDouble >(val4);
27714 ecode5 = SWIG_AsVal_double(obj4, &val5);
27715 if (!SWIG_IsOK(ecode5)) {
27716 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27717 }
27718 arg5 = static_cast< wxDouble >(val5);
27719 {
27720 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
27721 if (PyErr_Occurred()) SWIG_fail;
27722 }
27723 resultobj = SWIG_Py_Void();
27724 return resultobj;
27725 fail:
27726 return NULL;
27727 }
27728
27729
27730 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27731 PyObject *resultobj = 0;
27732 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27733 wxDouble arg2 ;
27734 wxDouble arg3 ;
27735 wxDouble arg4 ;
27736 wxDouble arg5 ;
27737 void *argp1 = 0 ;
27738 int res1 = 0 ;
27739 double val2 ;
27740 int ecode2 = 0 ;
27741 double val3 ;
27742 int ecode3 = 0 ;
27743 double val4 ;
27744 int ecode4 = 0 ;
27745 double val5 ;
27746 int ecode5 = 0 ;
27747 PyObject * obj0 = 0 ;
27748 PyObject * obj1 = 0 ;
27749 PyObject * obj2 = 0 ;
27750 PyObject * obj3 = 0 ;
27751 PyObject * obj4 = 0 ;
27752 char * kwnames[] = {
27753 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27754 };
27755
27756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27758 if (!SWIG_IsOK(res1)) {
27759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27760 }
27761 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27762 ecode2 = SWIG_AsVal_double(obj1, &val2);
27763 if (!SWIG_IsOK(ecode2)) {
27764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27765 }
27766 arg2 = static_cast< wxDouble >(val2);
27767 ecode3 = SWIG_AsVal_double(obj2, &val3);
27768 if (!SWIG_IsOK(ecode3)) {
27769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27770 }
27771 arg3 = static_cast< wxDouble >(val3);
27772 ecode4 = SWIG_AsVal_double(obj3, &val4);
27773 if (!SWIG_IsOK(ecode4)) {
27774 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27775 }
27776 arg4 = static_cast< wxDouble >(val4);
27777 ecode5 = SWIG_AsVal_double(obj4, &val5);
27778 if (!SWIG_IsOK(ecode5)) {
27779 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27780 }
27781 arg5 = static_cast< wxDouble >(val5);
27782 {
27783 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
27784 if (PyErr_Occurred()) SWIG_fail;
27785 }
27786 resultobj = SWIG_Py_Void();
27787 return resultobj;
27788 fail:
27789 return NULL;
27790 }
27791
27792
27793 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27794 PyObject *resultobj = 0;
27795 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27796 wxDouble arg2 ;
27797 wxDouble arg3 ;
27798 wxDouble arg4 ;
27799 void *argp1 = 0 ;
27800 int res1 = 0 ;
27801 double val2 ;
27802 int ecode2 = 0 ;
27803 double val3 ;
27804 int ecode3 = 0 ;
27805 double val4 ;
27806 int ecode4 = 0 ;
27807 PyObject * obj0 = 0 ;
27808 PyObject * obj1 = 0 ;
27809 PyObject * obj2 = 0 ;
27810 PyObject * obj3 = 0 ;
27811 char * kwnames[] = {
27812 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
27813 };
27814
27815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27817 if (!SWIG_IsOK(res1)) {
27818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27819 }
27820 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27821 ecode2 = SWIG_AsVal_double(obj1, &val2);
27822 if (!SWIG_IsOK(ecode2)) {
27823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27824 }
27825 arg2 = static_cast< wxDouble >(val2);
27826 ecode3 = SWIG_AsVal_double(obj2, &val3);
27827 if (!SWIG_IsOK(ecode3)) {
27828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27829 }
27830 arg3 = static_cast< wxDouble >(val3);
27831 ecode4 = SWIG_AsVal_double(obj3, &val4);
27832 if (!SWIG_IsOK(ecode4)) {
27833 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27834 }
27835 arg4 = static_cast< wxDouble >(val4);
27836 {
27837 (arg1)->AddCircle(arg2,arg3,arg4);
27838 if (PyErr_Occurred()) SWIG_fail;
27839 }
27840 resultobj = SWIG_Py_Void();
27841 return resultobj;
27842 fail:
27843 return NULL;
27844 }
27845
27846
27847 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27848 PyObject *resultobj = 0;
27849 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27850 wxDouble arg2 ;
27851 wxDouble arg3 ;
27852 wxDouble arg4 ;
27853 wxDouble arg5 ;
27854 wxDouble arg6 ;
27855 void *argp1 = 0 ;
27856 int res1 = 0 ;
27857 double val2 ;
27858 int ecode2 = 0 ;
27859 double val3 ;
27860 int ecode3 = 0 ;
27861 double val4 ;
27862 int ecode4 = 0 ;
27863 double val5 ;
27864 int ecode5 = 0 ;
27865 double val6 ;
27866 int ecode6 = 0 ;
27867 PyObject * obj0 = 0 ;
27868 PyObject * obj1 = 0 ;
27869 PyObject * obj2 = 0 ;
27870 PyObject * obj3 = 0 ;
27871 PyObject * obj4 = 0 ;
27872 PyObject * obj5 = 0 ;
27873 char * kwnames[] = {
27874 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
27875 };
27876
27877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27879 if (!SWIG_IsOK(res1)) {
27880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27881 }
27882 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27883 ecode2 = SWIG_AsVal_double(obj1, &val2);
27884 if (!SWIG_IsOK(ecode2)) {
27885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27886 }
27887 arg2 = static_cast< wxDouble >(val2);
27888 ecode3 = SWIG_AsVal_double(obj2, &val3);
27889 if (!SWIG_IsOK(ecode3)) {
27890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27891 }
27892 arg3 = static_cast< wxDouble >(val3);
27893 ecode4 = SWIG_AsVal_double(obj3, &val4);
27894 if (!SWIG_IsOK(ecode4)) {
27895 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27896 }
27897 arg4 = static_cast< wxDouble >(val4);
27898 ecode5 = SWIG_AsVal_double(obj4, &val5);
27899 if (!SWIG_IsOK(ecode5)) {
27900 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27901 }
27902 arg5 = static_cast< wxDouble >(val5);
27903 ecode6 = SWIG_AsVal_double(obj5, &val6);
27904 if (!SWIG_IsOK(ecode6)) {
27905 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27906 }
27907 arg6 = static_cast< wxDouble >(val6);
27908 {
27909 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
27910 if (PyErr_Occurred()) SWIG_fail;
27911 }
27912 resultobj = SWIG_Py_Void();
27913 return resultobj;
27914 fail:
27915 return NULL;
27916 }
27917
27918
27919 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27920 PyObject *resultobj = 0;
27921 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27922 wxDouble arg2 ;
27923 wxDouble arg3 ;
27924 wxDouble arg4 ;
27925 wxDouble arg5 ;
27926 void *argp1 = 0 ;
27927 int res1 = 0 ;
27928 double val2 ;
27929 int ecode2 = 0 ;
27930 double val3 ;
27931 int ecode3 = 0 ;
27932 double val4 ;
27933 int ecode4 = 0 ;
27934 double val5 ;
27935 int ecode5 = 0 ;
27936 PyObject * obj0 = 0 ;
27937 PyObject * obj1 = 0 ;
27938 PyObject * obj2 = 0 ;
27939 PyObject * obj3 = 0 ;
27940 PyObject * obj4 = 0 ;
27941 char * kwnames[] = {
27942 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27943 };
27944
27945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27947 if (!SWIG_IsOK(res1)) {
27948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27949 }
27950 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27951 ecode2 = SWIG_AsVal_double(obj1, &val2);
27952 if (!SWIG_IsOK(ecode2)) {
27953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27954 }
27955 arg2 = static_cast< wxDouble >(val2);
27956 ecode3 = SWIG_AsVal_double(obj2, &val3);
27957 if (!SWIG_IsOK(ecode3)) {
27958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27959 }
27960 arg3 = static_cast< wxDouble >(val3);
27961 ecode4 = SWIG_AsVal_double(obj3, &val4);
27962 if (!SWIG_IsOK(ecode4)) {
27963 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27964 }
27965 arg4 = static_cast< wxDouble >(val4);
27966 ecode5 = SWIG_AsVal_double(obj4, &val5);
27967 if (!SWIG_IsOK(ecode5)) {
27968 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27969 }
27970 arg5 = static_cast< wxDouble >(val5);
27971 {
27972 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
27973 if (PyErr_Occurred()) SWIG_fail;
27974 }
27975 resultobj = SWIG_Py_Void();
27976 return resultobj;
27977 fail:
27978 return NULL;
27979 }
27980
27981
27982 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27983 PyObject *resultobj = 0;
27984 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27985 wxDouble arg2 ;
27986 wxDouble arg3 ;
27987 wxDouble arg4 ;
27988 wxDouble arg5 ;
27989 wxDouble arg6 ;
27990 void *argp1 = 0 ;
27991 int res1 = 0 ;
27992 double val2 ;
27993 int ecode2 = 0 ;
27994 double val3 ;
27995 int ecode3 = 0 ;
27996 double val4 ;
27997 int ecode4 = 0 ;
27998 double val5 ;
27999 int ecode5 = 0 ;
28000 double val6 ;
28001 int ecode6 = 0 ;
28002 PyObject * obj0 = 0 ;
28003 PyObject * obj1 = 0 ;
28004 PyObject * obj2 = 0 ;
28005 PyObject * obj3 = 0 ;
28006 PyObject * obj4 = 0 ;
28007 PyObject * obj5 = 0 ;
28008 char * kwnames[] = {
28009 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
28010 };
28011
28012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28014 if (!SWIG_IsOK(res1)) {
28015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28016 }
28017 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28018 ecode2 = SWIG_AsVal_double(obj1, &val2);
28019 if (!SWIG_IsOK(ecode2)) {
28020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
28021 }
28022 arg2 = static_cast< wxDouble >(val2);
28023 ecode3 = SWIG_AsVal_double(obj2, &val3);
28024 if (!SWIG_IsOK(ecode3)) {
28025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
28026 }
28027 arg3 = static_cast< wxDouble >(val3);
28028 ecode4 = SWIG_AsVal_double(obj3, &val4);
28029 if (!SWIG_IsOK(ecode4)) {
28030 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
28031 }
28032 arg4 = static_cast< wxDouble >(val4);
28033 ecode5 = SWIG_AsVal_double(obj4, &val5);
28034 if (!SWIG_IsOK(ecode5)) {
28035 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
28036 }
28037 arg5 = static_cast< wxDouble >(val5);
28038 ecode6 = SWIG_AsVal_double(obj5, &val6);
28039 if (!SWIG_IsOK(ecode6)) {
28040 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
28041 }
28042 arg6 = static_cast< wxDouble >(val6);
28043 {
28044 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
28045 if (PyErr_Occurred()) SWIG_fail;
28046 }
28047 resultobj = SWIG_Py_Void();
28048 return resultobj;
28049 fail:
28050 return NULL;
28051 }
28052
28053
28054 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28055 PyObject *resultobj = 0;
28056 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28057 void *result = 0 ;
28058 void *argp1 = 0 ;
28059 int res1 = 0 ;
28060 PyObject *swig_obj[1] ;
28061
28062 if (!args) SWIG_fail;
28063 swig_obj[0] = args;
28064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28065 if (!SWIG_IsOK(res1)) {
28066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28067 }
28068 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28069 {
28070 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
28071 if (PyErr_Occurred()) SWIG_fail;
28072 }
28073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28074 return resultobj;
28075 fail:
28076 return NULL;
28077 }
28078
28079
28080 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28081 PyObject *resultobj = 0;
28082 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28083 void *arg2 = (void *) 0 ;
28084 void *argp1 = 0 ;
28085 int res1 = 0 ;
28086 int res2 ;
28087 PyObject * obj0 = 0 ;
28088 PyObject * obj1 = 0 ;
28089 char * kwnames[] = {
28090 (char *) "self",(char *) "p", NULL
28091 };
28092
28093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
28094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28095 if (!SWIG_IsOK(res1)) {
28096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28097 }
28098 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28099 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
28100 if (!SWIG_IsOK(res2)) {
28101 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
28102 }
28103 {
28104 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
28105 if (PyErr_Occurred()) SWIG_fail;
28106 }
28107 resultobj = SWIG_Py_Void();
28108 return resultobj;
28109 fail:
28110 return NULL;
28111 }
28112
28113
28114 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28115 PyObject *resultobj = 0;
28116 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28117 wxGraphicsMatrix *arg2 = 0 ;
28118 void *argp1 = 0 ;
28119 int res1 = 0 ;
28120 void *argp2 = 0 ;
28121 int res2 = 0 ;
28122 PyObject * obj0 = 0 ;
28123 PyObject * obj1 = 0 ;
28124 char * kwnames[] = {
28125 (char *) "self",(char *) "matrix", NULL
28126 };
28127
28128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
28129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28130 if (!SWIG_IsOK(res1)) {
28131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28132 }
28133 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28134 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28135 if (!SWIG_IsOK(res2)) {
28136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28137 }
28138 if (!argp2) {
28139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28140 }
28141 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28142 {
28143 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
28144 if (PyErr_Occurred()) SWIG_fail;
28145 }
28146 resultobj = SWIG_Py_Void();
28147 return resultobj;
28148 fail:
28149 return NULL;
28150 }
28151
28152
28153 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28154 PyObject *resultobj = 0;
28155 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28156 wxRect2DDouble result;
28157 void *argp1 = 0 ;
28158 int res1 = 0 ;
28159 PyObject *swig_obj[1] ;
28160
28161 if (!args) SWIG_fail;
28162 swig_obj[0] = args;
28163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28164 if (!SWIG_IsOK(res1)) {
28165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28166 }
28167 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28168 {
28169 result = ((wxGraphicsPath const *)arg1)->GetBox();
28170 if (PyErr_Occurred()) SWIG_fail;
28171 }
28172 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
28173 return resultobj;
28174 fail:
28175 return NULL;
28176 }
28177
28178
28179 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28180 PyObject *resultobj = 0;
28181 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28182 wxDouble arg2 ;
28183 wxDouble arg3 ;
28184 int arg4 = (int) wxODDEVEN_RULE ;
28185 bool result;
28186 void *argp1 = 0 ;
28187 int res1 = 0 ;
28188 double val2 ;
28189 int ecode2 = 0 ;
28190 double val3 ;
28191 int ecode3 = 0 ;
28192 int val4 ;
28193 int ecode4 = 0 ;
28194
28195 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
28196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28197 if (!SWIG_IsOK(res1)) {
28198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28199 }
28200 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28201 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28202 if (!SWIG_IsOK(ecode2)) {
28203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
28204 }
28205 arg2 = static_cast< wxDouble >(val2);
28206 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28207 if (!SWIG_IsOK(ecode3)) {
28208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
28209 }
28210 arg3 = static_cast< wxDouble >(val3);
28211 if (swig_obj[3]) {
28212 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
28213 if (!SWIG_IsOK(ecode4)) {
28214 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
28215 }
28216 arg4 = static_cast< int >(val4);
28217 }
28218 {
28219 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
28220 if (PyErr_Occurred()) SWIG_fail;
28221 }
28222 {
28223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28224 }
28225 return resultobj;
28226 fail:
28227 return NULL;
28228 }
28229
28230
28231 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28232 PyObject *resultobj = 0;
28233 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28234 wxPoint2DDouble *arg2 = 0 ;
28235 int arg3 = (int) wxODDEVEN_RULE ;
28236 bool result;
28237 void *argp1 = 0 ;
28238 int res1 = 0 ;
28239 void *argp2 = 0 ;
28240 int res2 = 0 ;
28241 int val3 ;
28242 int ecode3 = 0 ;
28243
28244 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28246 if (!SWIG_IsOK(res1)) {
28247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28248 }
28249 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28250 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
28251 if (!SWIG_IsOK(res2)) {
28252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
28253 }
28254 if (!argp2) {
28255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
28256 }
28257 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
28258 if (swig_obj[2]) {
28259 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
28260 if (!SWIG_IsOK(ecode3)) {
28261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
28262 }
28263 arg3 = static_cast< int >(val3);
28264 }
28265 {
28266 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
28267 if (PyErr_Occurred()) SWIG_fail;
28268 }
28269 {
28270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28271 }
28272 return resultobj;
28273 fail:
28274 return NULL;
28275 }
28276
28277
28278 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
28279 int argc;
28280 PyObject *argv[5];
28281
28282 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
28283 --argc;
28284 if ((argc >= 2) && (argc <= 3)) {
28285 int _v = 0;
28286 {
28287 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
28288 _v = SWIG_CheckState(res);
28289 }
28290 if (!_v) goto check_1;
28291 if (argc > 2) {
28292 {
28293 {
28294 int res = SWIG_AsVal_int(argv[2], NULL);
28295 _v = SWIG_CheckState(res);
28296 }
28297 }
28298 if (!_v) goto check_1;
28299 }
28300 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
28301 }
28302 check_1:
28303
28304 if ((argc >= 3) && (argc <= 4)) {
28305 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
28306 }
28307
28308 fail:
28309 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
28310 return NULL;
28311 }
28312
28313
28314 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28315 PyObject *obj;
28316 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28317 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
28318 return SWIG_Py_Void();
28319 }
28320
28321 SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28322 return SWIG_Python_InitShadowInstance(args);
28323 }
28324
28325 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
28326 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
28327 return 1;
28328 }
28329
28330
28331 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
28332 PyObject *pyobj = 0;
28333
28334 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
28335 return pyobj;
28336 }
28337
28338
28339 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
28340 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
28341 return 1;
28342 }
28343
28344
28345 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
28346 PyObject *pyobj = 0;
28347
28348 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
28349 return pyobj;
28350 }
28351
28352
28353 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
28354 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
28355 return 1;
28356 }
28357
28358
28359 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
28360 PyObject *pyobj = 0;
28361
28362 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
28363 return pyobj;
28364 }
28365
28366
28367 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
28368 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
28369 return 1;
28370 }
28371
28372
28373 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
28374 PyObject *pyobj = 0;
28375
28376 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
28377 return pyobj;
28378 }
28379
28380
28381 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
28382 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
28383 return 1;
28384 }
28385
28386
28387 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
28388 PyObject *pyobj = 0;
28389
28390 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
28391 return pyobj;
28392 }
28393
28394
28395 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28396 PyObject *resultobj = 0;
28397 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28398 void *argp1 = 0 ;
28399 int res1 = 0 ;
28400 PyObject *swig_obj[1] ;
28401
28402 if (!args) SWIG_fail;
28403 swig_obj[0] = args;
28404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
28405 if (!SWIG_IsOK(res1)) {
28406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28407 }
28408 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28409 {
28410 delete arg1;
28411
28412 if (PyErr_Occurred()) SWIG_fail;
28413 }
28414 resultobj = SWIG_Py_Void();
28415 return resultobj;
28416 fail:
28417 return NULL;
28418 }
28419
28420
28421 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28422 PyObject *resultobj = 0;
28423 wxWindowDC *arg1 = 0 ;
28424 wxGraphicsContext *result = 0 ;
28425 void *argp1 = 0 ;
28426 int res1 = 0 ;
28427
28428 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28430 if (!SWIG_IsOK(res1)) {
28431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28432 }
28433 if (!argp1) {
28434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28435 }
28436 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28437 {
28438 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28439 if (PyErr_Occurred()) SWIG_fail;
28440 }
28441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28442 return resultobj;
28443 fail:
28444 return NULL;
28445 }
28446
28447
28448 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28449 PyObject *resultobj = 0;
28450 wxWindow *arg1 = (wxWindow *) 0 ;
28451 wxGraphicsContext *result = 0 ;
28452 void *argp1 = 0 ;
28453 int res1 = 0 ;
28454
28455 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28457 if (!SWIG_IsOK(res1)) {
28458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28459 }
28460 arg1 = reinterpret_cast< wxWindow * >(argp1);
28461 {
28462 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28463 if (PyErr_Occurred()) SWIG_fail;
28464 }
28465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28466 return resultobj;
28467 fail:
28468 return NULL;
28469 }
28470
28471
28472 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28473 int argc;
28474 PyObject *argv[2];
28475
28476 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28477 --argc;
28478 if (argc == 1) {
28479 int _v = 0;
28480 {
28481 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28482 _v = SWIG_CheckState(res);
28483 }
28484 if (!_v) goto check_1;
28485 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28486 }
28487 check_1:
28488
28489 if (argc == 1) {
28490 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28491 }
28492
28493 fail:
28494 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28495 return NULL;
28496 }
28497
28498
28499 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28500 PyObject *resultobj = 0;
28501 wxGraphicsContext *result = 0 ;
28502
28503 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
28504 {
28505 result = (wxGraphicsContext *)wxGraphicsContext::Create();
28506 if (PyErr_Occurred()) SWIG_fail;
28507 }
28508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28509 return resultobj;
28510 fail:
28511 return NULL;
28512 }
28513
28514
28515 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28516 PyObject *resultobj = 0;
28517 void *arg1 = (void *) 0 ;
28518 wxGraphicsContext *result = 0 ;
28519 int res1 ;
28520 PyObject * obj0 = 0 ;
28521 char * kwnames[] = {
28522 (char *) "context", NULL
28523 };
28524
28525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28526 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28527 if (!SWIG_IsOK(res1)) {
28528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28529 }
28530 {
28531 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28532 if (PyErr_Occurred()) SWIG_fail;
28533 }
28534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28535 return resultobj;
28536 fail:
28537 return NULL;
28538 }
28539
28540
28541 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28542 PyObject *resultobj = 0;
28543 void *arg1 = (void *) 0 ;
28544 wxGraphicsContext *result = 0 ;
28545 int res1 ;
28546 PyObject * obj0 = 0 ;
28547 char * kwnames[] = {
28548 (char *) "window", NULL
28549 };
28550
28551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28552 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28553 if (!SWIG_IsOK(res1)) {
28554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28555 }
28556 {
28557 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28558 if (PyErr_Occurred()) SWIG_fail;
28559 }
28560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28561 return resultobj;
28562 fail:
28563 return NULL;
28564 }
28565
28566
28567 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28568 PyObject *resultobj = 0;
28569 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28570 wxGraphicsPath result;
28571 void *argp1 = 0 ;
28572 int res1 = 0 ;
28573 PyObject *swig_obj[1] ;
28574
28575 if (!args) SWIG_fail;
28576 swig_obj[0] = args;
28577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28578 if (!SWIG_IsOK(res1)) {
28579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28580 }
28581 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28582 {
28583 result = (arg1)->CreatePath();
28584 if (PyErr_Occurred()) SWIG_fail;
28585 }
28586 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
28587 return resultobj;
28588 fail:
28589 return NULL;
28590 }
28591
28592
28593 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28594 PyObject *resultobj = 0;
28595 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28596 wxPen *arg2 = 0 ;
28597 wxGraphicsPen result;
28598 void *argp1 = 0 ;
28599 int res1 = 0 ;
28600 void *argp2 = 0 ;
28601 int res2 = 0 ;
28602 PyObject * obj0 = 0 ;
28603 PyObject * obj1 = 0 ;
28604 char * kwnames[] = {
28605 (char *) "self",(char *) "pen", NULL
28606 };
28607
28608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28610 if (!SWIG_IsOK(res1)) {
28611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28612 }
28613 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28614 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28615 if (!SWIG_IsOK(res2)) {
28616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28617 }
28618 if (!argp2) {
28619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28620 }
28621 arg2 = reinterpret_cast< wxPen * >(argp2);
28622 {
28623 result = (arg1)->CreatePen((wxPen const &)*arg2);
28624 if (PyErr_Occurred()) SWIG_fail;
28625 }
28626 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
28627 return resultobj;
28628 fail:
28629 return NULL;
28630 }
28631
28632
28633 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28634 PyObject *resultobj = 0;
28635 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28636 wxBrush *arg2 = 0 ;
28637 wxGraphicsBrush result;
28638 void *argp1 = 0 ;
28639 int res1 = 0 ;
28640 void *argp2 = 0 ;
28641 int res2 = 0 ;
28642 PyObject * obj0 = 0 ;
28643 PyObject * obj1 = 0 ;
28644 char * kwnames[] = {
28645 (char *) "self",(char *) "brush", NULL
28646 };
28647
28648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28650 if (!SWIG_IsOK(res1)) {
28651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28652 }
28653 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28654 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28655 if (!SWIG_IsOK(res2)) {
28656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28657 }
28658 if (!argp2) {
28659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28660 }
28661 arg2 = reinterpret_cast< wxBrush * >(argp2);
28662 {
28663 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
28664 if (PyErr_Occurred()) SWIG_fail;
28665 }
28666 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28667 return resultobj;
28668 fail:
28669 return NULL;
28670 }
28671
28672
28673 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28674 PyObject *resultobj = 0;
28675 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28676 wxDouble arg2 ;
28677 wxDouble arg3 ;
28678 wxDouble arg4 ;
28679 wxDouble arg5 ;
28680 wxColour *arg6 = 0 ;
28681 wxColour *arg7 = 0 ;
28682 wxGraphicsBrush result;
28683 void *argp1 = 0 ;
28684 int res1 = 0 ;
28685 double val2 ;
28686 int ecode2 = 0 ;
28687 double val3 ;
28688 int ecode3 = 0 ;
28689 double val4 ;
28690 int ecode4 = 0 ;
28691 double val5 ;
28692 int ecode5 = 0 ;
28693 wxColour temp6 ;
28694 wxColour temp7 ;
28695 PyObject * obj0 = 0 ;
28696 PyObject * obj1 = 0 ;
28697 PyObject * obj2 = 0 ;
28698 PyObject * obj3 = 0 ;
28699 PyObject * obj4 = 0 ;
28700 PyObject * obj5 = 0 ;
28701 PyObject * obj6 = 0 ;
28702 char * kwnames[] = {
28703 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
28704 };
28705
28706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28708 if (!SWIG_IsOK(res1)) {
28709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28710 }
28711 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28712 ecode2 = SWIG_AsVal_double(obj1, &val2);
28713 if (!SWIG_IsOK(ecode2)) {
28714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28715 }
28716 arg2 = static_cast< wxDouble >(val2);
28717 ecode3 = SWIG_AsVal_double(obj2, &val3);
28718 if (!SWIG_IsOK(ecode3)) {
28719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28720 }
28721 arg3 = static_cast< wxDouble >(val3);
28722 ecode4 = SWIG_AsVal_double(obj3, &val4);
28723 if (!SWIG_IsOK(ecode4)) {
28724 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28725 }
28726 arg4 = static_cast< wxDouble >(val4);
28727 ecode5 = SWIG_AsVal_double(obj4, &val5);
28728 if (!SWIG_IsOK(ecode5)) {
28729 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28730 }
28731 arg5 = static_cast< wxDouble >(val5);
28732 {
28733 arg6 = &temp6;
28734 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
28735 }
28736 {
28737 arg7 = &temp7;
28738 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28739 }
28740 {
28741 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
28742 if (PyErr_Occurred()) SWIG_fail;
28743 }
28744 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28745 return resultobj;
28746 fail:
28747 return NULL;
28748 }
28749
28750
28751 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28752 PyObject *resultobj = 0;
28753 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28754 wxDouble arg2 ;
28755 wxDouble arg3 ;
28756 wxDouble arg4 ;
28757 wxDouble arg5 ;
28758 wxDouble arg6 ;
28759 wxColour *arg7 = 0 ;
28760 wxColour *arg8 = 0 ;
28761 wxGraphicsBrush result;
28762 void *argp1 = 0 ;
28763 int res1 = 0 ;
28764 double val2 ;
28765 int ecode2 = 0 ;
28766 double val3 ;
28767 int ecode3 = 0 ;
28768 double val4 ;
28769 int ecode4 = 0 ;
28770 double val5 ;
28771 int ecode5 = 0 ;
28772 double val6 ;
28773 int ecode6 = 0 ;
28774 wxColour temp7 ;
28775 wxColour temp8 ;
28776 PyObject * obj0 = 0 ;
28777 PyObject * obj1 = 0 ;
28778 PyObject * obj2 = 0 ;
28779 PyObject * obj3 = 0 ;
28780 PyObject * obj4 = 0 ;
28781 PyObject * obj5 = 0 ;
28782 PyObject * obj6 = 0 ;
28783 PyObject * obj7 = 0 ;
28784 char * kwnames[] = {
28785 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
28786 };
28787
28788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28790 if (!SWIG_IsOK(res1)) {
28791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28792 }
28793 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28794 ecode2 = SWIG_AsVal_double(obj1, &val2);
28795 if (!SWIG_IsOK(ecode2)) {
28796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28797 }
28798 arg2 = static_cast< wxDouble >(val2);
28799 ecode3 = SWIG_AsVal_double(obj2, &val3);
28800 if (!SWIG_IsOK(ecode3)) {
28801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28802 }
28803 arg3 = static_cast< wxDouble >(val3);
28804 ecode4 = SWIG_AsVal_double(obj3, &val4);
28805 if (!SWIG_IsOK(ecode4)) {
28806 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28807 }
28808 arg4 = static_cast< wxDouble >(val4);
28809 ecode5 = SWIG_AsVal_double(obj4, &val5);
28810 if (!SWIG_IsOK(ecode5)) {
28811 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28812 }
28813 arg5 = static_cast< wxDouble >(val5);
28814 ecode6 = SWIG_AsVal_double(obj5, &val6);
28815 if (!SWIG_IsOK(ecode6)) {
28816 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
28817 }
28818 arg6 = static_cast< wxDouble >(val6);
28819 {
28820 arg7 = &temp7;
28821 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28822 }
28823 {
28824 arg8 = &temp8;
28825 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28826 }
28827 {
28828 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
28829 if (PyErr_Occurred()) SWIG_fail;
28830 }
28831 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28832 return resultobj;
28833 fail:
28834 return NULL;
28835 }
28836
28837
28838 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28839 PyObject *resultobj = 0;
28840 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28841 wxFont *arg2 = 0 ;
28842 wxColour const &arg3_defvalue = *wxBLACK ;
28843 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28844 wxGraphicsFont result;
28845 void *argp1 = 0 ;
28846 int res1 = 0 ;
28847 void *argp2 = 0 ;
28848 int res2 = 0 ;
28849 wxColour temp3 ;
28850 PyObject * obj0 = 0 ;
28851 PyObject * obj1 = 0 ;
28852 PyObject * obj2 = 0 ;
28853 char * kwnames[] = {
28854 (char *) "self",(char *) "font",(char *) "col", NULL
28855 };
28856
28857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28859 if (!SWIG_IsOK(res1)) {
28860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28861 }
28862 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28863 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28864 if (!SWIG_IsOK(res2)) {
28865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28866 }
28867 if (!argp2) {
28868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28869 }
28870 arg2 = reinterpret_cast< wxFont * >(argp2);
28871 if (obj2) {
28872 {
28873 arg3 = &temp3;
28874 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28875 }
28876 }
28877 {
28878 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28879 if (PyErr_Occurred()) SWIG_fail;
28880 }
28881 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
28882 return resultobj;
28883 fail:
28884 return NULL;
28885 }
28886
28887
28888 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28889 PyObject *resultobj = 0;
28890 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28891 wxDouble arg2 = (wxDouble) 1.0 ;
28892 wxDouble arg3 = (wxDouble) 0.0 ;
28893 wxDouble arg4 = (wxDouble) 0.0 ;
28894 wxDouble arg5 = (wxDouble) 1.0 ;
28895 wxDouble arg6 = (wxDouble) 0.0 ;
28896 wxDouble arg7 = (wxDouble) 0.0 ;
28897 wxGraphicsMatrix result;
28898 void *argp1 = 0 ;
28899 int res1 = 0 ;
28900 double val2 ;
28901 int ecode2 = 0 ;
28902 double val3 ;
28903 int ecode3 = 0 ;
28904 double val4 ;
28905 int ecode4 = 0 ;
28906 double val5 ;
28907 int ecode5 = 0 ;
28908 double val6 ;
28909 int ecode6 = 0 ;
28910 double val7 ;
28911 int ecode7 = 0 ;
28912 PyObject * obj0 = 0 ;
28913 PyObject * obj1 = 0 ;
28914 PyObject * obj2 = 0 ;
28915 PyObject * obj3 = 0 ;
28916 PyObject * obj4 = 0 ;
28917 PyObject * obj5 = 0 ;
28918 PyObject * obj6 = 0 ;
28919 char * kwnames[] = {
28920 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28921 };
28922
28923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28925 if (!SWIG_IsOK(res1)) {
28926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28927 }
28928 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28929 if (obj1) {
28930 ecode2 = SWIG_AsVal_double(obj1, &val2);
28931 if (!SWIG_IsOK(ecode2)) {
28932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28933 }
28934 arg2 = static_cast< wxDouble >(val2);
28935 }
28936 if (obj2) {
28937 ecode3 = SWIG_AsVal_double(obj2, &val3);
28938 if (!SWIG_IsOK(ecode3)) {
28939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28940 }
28941 arg3 = static_cast< wxDouble >(val3);
28942 }
28943 if (obj3) {
28944 ecode4 = SWIG_AsVal_double(obj3, &val4);
28945 if (!SWIG_IsOK(ecode4)) {
28946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28947 }
28948 arg4 = static_cast< wxDouble >(val4);
28949 }
28950 if (obj4) {
28951 ecode5 = SWIG_AsVal_double(obj4, &val5);
28952 if (!SWIG_IsOK(ecode5)) {
28953 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28954 }
28955 arg5 = static_cast< wxDouble >(val5);
28956 }
28957 if (obj5) {
28958 ecode6 = SWIG_AsVal_double(obj5, &val6);
28959 if (!SWIG_IsOK(ecode6)) {
28960 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28961 }
28962 arg6 = static_cast< wxDouble >(val6);
28963 }
28964 if (obj6) {
28965 ecode7 = SWIG_AsVal_double(obj6, &val7);
28966 if (!SWIG_IsOK(ecode7)) {
28967 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28968 }
28969 arg7 = static_cast< wxDouble >(val7);
28970 }
28971 {
28972 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
28973 if (PyErr_Occurred()) SWIG_fail;
28974 }
28975 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28976 return resultobj;
28977 fail:
28978 return NULL;
28979 }
28980
28981
28982 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28983 PyObject *resultobj = 0;
28984 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28985 void *argp1 = 0 ;
28986 int res1 = 0 ;
28987 PyObject *swig_obj[1] ;
28988
28989 if (!args) SWIG_fail;
28990 swig_obj[0] = args;
28991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28992 if (!SWIG_IsOK(res1)) {
28993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28994 }
28995 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28996 {
28997 (arg1)->PushState();
28998 if (PyErr_Occurred()) SWIG_fail;
28999 }
29000 resultobj = SWIG_Py_Void();
29001 return resultobj;
29002 fail:
29003 return NULL;
29004 }
29005
29006
29007 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29008 PyObject *resultobj = 0;
29009 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29010 void *argp1 = 0 ;
29011 int res1 = 0 ;
29012 PyObject *swig_obj[1] ;
29013
29014 if (!args) SWIG_fail;
29015 swig_obj[0] = args;
29016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29017 if (!SWIG_IsOK(res1)) {
29018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29019 }
29020 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29021 {
29022 (arg1)->PopState();
29023 if (PyErr_Occurred()) SWIG_fail;
29024 }
29025 resultobj = SWIG_Py_Void();
29026 return resultobj;
29027 fail:
29028 return NULL;
29029 }
29030
29031
29032 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29033 PyObject *resultobj = 0;
29034 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29035 wxRegion *arg2 = 0 ;
29036 void *argp1 = 0 ;
29037 int res1 = 0 ;
29038 void *argp2 = 0 ;
29039 int res2 = 0 ;
29040 PyObject * obj0 = 0 ;
29041 PyObject * obj1 = 0 ;
29042 char * kwnames[] = {
29043 (char *) "self",(char *) "region", NULL
29044 };
29045
29046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
29047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29048 if (!SWIG_IsOK(res1)) {
29049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29050 }
29051 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29052 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
29053 if (!SWIG_IsOK(res2)) {
29054 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
29055 }
29056 if (!argp2) {
29057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
29058 }
29059 arg2 = reinterpret_cast< wxRegion * >(argp2);
29060 {
29061 (arg1)->Clip((wxRegion const &)*arg2);
29062 if (PyErr_Occurred()) SWIG_fail;
29063 }
29064 resultobj = SWIG_Py_Void();
29065 return resultobj;
29066 fail:
29067 return NULL;
29068 }
29069
29070
29071 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29072 PyObject *resultobj = 0;
29073 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29074 wxDouble arg2 ;
29075 wxDouble arg3 ;
29076 wxDouble arg4 ;
29077 wxDouble arg5 ;
29078 void *argp1 = 0 ;
29079 int res1 = 0 ;
29080 double val2 ;
29081 int ecode2 = 0 ;
29082 double val3 ;
29083 int ecode3 = 0 ;
29084 double val4 ;
29085 int ecode4 = 0 ;
29086 double val5 ;
29087 int ecode5 = 0 ;
29088 PyObject * obj0 = 0 ;
29089 PyObject * obj1 = 0 ;
29090 PyObject * obj2 = 0 ;
29091 PyObject * obj3 = 0 ;
29092 PyObject * obj4 = 0 ;
29093 char * kwnames[] = {
29094 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29095 };
29096
29097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29099 if (!SWIG_IsOK(res1)) {
29100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29101 }
29102 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29103 ecode2 = SWIG_AsVal_double(obj1, &val2);
29104 if (!SWIG_IsOK(ecode2)) {
29105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
29106 }
29107 arg2 = static_cast< wxDouble >(val2);
29108 ecode3 = SWIG_AsVal_double(obj2, &val3);
29109 if (!SWIG_IsOK(ecode3)) {
29110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
29111 }
29112 arg3 = static_cast< wxDouble >(val3);
29113 ecode4 = SWIG_AsVal_double(obj3, &val4);
29114 if (!SWIG_IsOK(ecode4)) {
29115 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
29116 }
29117 arg4 = static_cast< wxDouble >(val4);
29118 ecode5 = SWIG_AsVal_double(obj4, &val5);
29119 if (!SWIG_IsOK(ecode5)) {
29120 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
29121 }
29122 arg5 = static_cast< wxDouble >(val5);
29123 {
29124 (arg1)->Clip(arg2,arg3,arg4,arg5);
29125 if (PyErr_Occurred()) SWIG_fail;
29126 }
29127 resultobj = SWIG_Py_Void();
29128 return resultobj;
29129 fail:
29130 return NULL;
29131 }
29132
29133
29134 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29135 PyObject *resultobj = 0;
29136 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29137 void *argp1 = 0 ;
29138 int res1 = 0 ;
29139 PyObject *swig_obj[1] ;
29140
29141 if (!args) SWIG_fail;
29142 swig_obj[0] = args;
29143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29144 if (!SWIG_IsOK(res1)) {
29145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29146 }
29147 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29148 {
29149 (arg1)->ResetClip();
29150 if (PyErr_Occurred()) SWIG_fail;
29151 }
29152 resultobj = SWIG_Py_Void();
29153 return resultobj;
29154 fail:
29155 return NULL;
29156 }
29157
29158
29159 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29160 PyObject *resultobj = 0;
29161 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29162 void *result = 0 ;
29163 void *argp1 = 0 ;
29164 int res1 = 0 ;
29165 PyObject *swig_obj[1] ;
29166
29167 if (!args) SWIG_fail;
29168 swig_obj[0] = args;
29169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29170 if (!SWIG_IsOK(res1)) {
29171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29172 }
29173 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29174 {
29175 result = (void *)(arg1)->GetNativeContext();
29176 if (PyErr_Occurred()) SWIG_fail;
29177 }
29178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
29179 return resultobj;
29180 fail:
29181 return NULL;
29182 }
29183
29184
29185 SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29186 PyObject *resultobj = 0;
29187 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29188 int result;
29189 void *argp1 = 0 ;
29190 int res1 = 0 ;
29191 PyObject *swig_obj[1] ;
29192
29193 if (!args) SWIG_fail;
29194 swig_obj[0] = args;
29195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29196 if (!SWIG_IsOK(res1)) {
29197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29198 }
29199 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29200 {
29201 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
29202 if (PyErr_Occurred()) SWIG_fail;
29203 }
29204 resultobj = SWIG_From_int(static_cast< int >(result));
29205 return resultobj;
29206 fail:
29207 return NULL;
29208 }
29209
29210
29211 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29212 PyObject *resultobj = 0;
29213 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29214 int arg2 ;
29215 bool result;
29216 void *argp1 = 0 ;
29217 int res1 = 0 ;
29218 int val2 ;
29219 int ecode2 = 0 ;
29220 PyObject * obj0 = 0 ;
29221 PyObject * obj1 = 0 ;
29222 char * kwnames[] = {
29223 (char *) "self",(char *) "function", NULL
29224 };
29225
29226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
29227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29228 if (!SWIG_IsOK(res1)) {
29229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29230 }
29231 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29232 ecode2 = SWIG_AsVal_int(obj1, &val2);
29233 if (!SWIG_IsOK(ecode2)) {
29234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
29235 }
29236 arg2 = static_cast< int >(val2);
29237 {
29238 result = (bool)(arg1)->SetLogicalFunction(arg2);
29239 if (PyErr_Occurred()) SWIG_fail;
29240 }
29241 {
29242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29243 }
29244 return resultobj;
29245 fail:
29246 return NULL;
29247 }
29248
29249
29250 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29251 PyObject *resultobj = 0;
29252 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29253 wxDouble arg2 ;
29254 wxDouble arg3 ;
29255 void *argp1 = 0 ;
29256 int res1 = 0 ;
29257 double val2 ;
29258 int ecode2 = 0 ;
29259 double val3 ;
29260 int ecode3 = 0 ;
29261 PyObject * obj0 = 0 ;
29262 PyObject * obj1 = 0 ;
29263 PyObject * obj2 = 0 ;
29264 char * kwnames[] = {
29265 (char *) "self",(char *) "dx",(char *) "dy", NULL
29266 };
29267
29268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29270 if (!SWIG_IsOK(res1)) {
29271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29272 }
29273 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29274 ecode2 = SWIG_AsVal_double(obj1, &val2);
29275 if (!SWIG_IsOK(ecode2)) {
29276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
29277 }
29278 arg2 = static_cast< wxDouble >(val2);
29279 ecode3 = SWIG_AsVal_double(obj2, &val3);
29280 if (!SWIG_IsOK(ecode3)) {
29281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
29282 }
29283 arg3 = static_cast< wxDouble >(val3);
29284 {
29285 (arg1)->Translate(arg2,arg3);
29286 if (PyErr_Occurred()) SWIG_fail;
29287 }
29288 resultobj = SWIG_Py_Void();
29289 return resultobj;
29290 fail:
29291 return NULL;
29292 }
29293
29294
29295 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29296 PyObject *resultobj = 0;
29297 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29298 wxDouble arg2 ;
29299 wxDouble arg3 ;
29300 void *argp1 = 0 ;
29301 int res1 = 0 ;
29302 double val2 ;
29303 int ecode2 = 0 ;
29304 double val3 ;
29305 int ecode3 = 0 ;
29306 PyObject * obj0 = 0 ;
29307 PyObject * obj1 = 0 ;
29308 PyObject * obj2 = 0 ;
29309 char * kwnames[] = {
29310 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
29311 };
29312
29313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29315 if (!SWIG_IsOK(res1)) {
29316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29317 }
29318 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29319 ecode2 = SWIG_AsVal_double(obj1, &val2);
29320 if (!SWIG_IsOK(ecode2)) {
29321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
29322 }
29323 arg2 = static_cast< wxDouble >(val2);
29324 ecode3 = SWIG_AsVal_double(obj2, &val3);
29325 if (!SWIG_IsOK(ecode3)) {
29326 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
29327 }
29328 arg3 = static_cast< wxDouble >(val3);
29329 {
29330 (arg1)->Scale(arg2,arg3);
29331 if (PyErr_Occurred()) SWIG_fail;
29332 }
29333 resultobj = SWIG_Py_Void();
29334 return resultobj;
29335 fail:
29336 return NULL;
29337 }
29338
29339
29340 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29341 PyObject *resultobj = 0;
29342 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29343 wxDouble arg2 ;
29344 void *argp1 = 0 ;
29345 int res1 = 0 ;
29346 double val2 ;
29347 int ecode2 = 0 ;
29348 PyObject * obj0 = 0 ;
29349 PyObject * obj1 = 0 ;
29350 char * kwnames[] = {
29351 (char *) "self",(char *) "angle", NULL
29352 };
29353
29354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
29355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29356 if (!SWIG_IsOK(res1)) {
29357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29358 }
29359 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29360 ecode2 = SWIG_AsVal_double(obj1, &val2);
29361 if (!SWIG_IsOK(ecode2)) {
29362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
29363 }
29364 arg2 = static_cast< wxDouble >(val2);
29365 {
29366 (arg1)->Rotate(arg2);
29367 if (PyErr_Occurred()) SWIG_fail;
29368 }
29369 resultobj = SWIG_Py_Void();
29370 return resultobj;
29371 fail:
29372 return NULL;
29373 }
29374
29375
29376 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29377 PyObject *resultobj = 0;
29378 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29379 wxGraphicsMatrix *arg2 = 0 ;
29380 void *argp1 = 0 ;
29381 int res1 = 0 ;
29382 void *argp2 = 0 ;
29383 int res2 = 0 ;
29384 PyObject * obj0 = 0 ;
29385 PyObject * obj1 = 0 ;
29386 char * kwnames[] = {
29387 (char *) "self",(char *) "matrix", NULL
29388 };
29389
29390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29392 if (!SWIG_IsOK(res1)) {
29393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29394 }
29395 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29396 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29397 if (!SWIG_IsOK(res2)) {
29398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29399 }
29400 if (!argp2) {
29401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29402 }
29403 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29404 {
29405 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
29406 if (PyErr_Occurred()) SWIG_fail;
29407 }
29408 resultobj = SWIG_Py_Void();
29409 return resultobj;
29410 fail:
29411 return NULL;
29412 }
29413
29414
29415 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29416 PyObject *resultobj = 0;
29417 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29418 wxGraphicsMatrix *arg2 = 0 ;
29419 void *argp1 = 0 ;
29420 int res1 = 0 ;
29421 void *argp2 = 0 ;
29422 int res2 = 0 ;
29423 PyObject * obj0 = 0 ;
29424 PyObject * obj1 = 0 ;
29425 char * kwnames[] = {
29426 (char *) "self",(char *) "matrix", NULL
29427 };
29428
29429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29431 if (!SWIG_IsOK(res1)) {
29432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29433 }
29434 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29435 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29436 if (!SWIG_IsOK(res2)) {
29437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29438 }
29439 if (!argp2) {
29440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29441 }
29442 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29443 {
29444 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
29445 if (PyErr_Occurred()) SWIG_fail;
29446 }
29447 resultobj = SWIG_Py_Void();
29448 return resultobj;
29449 fail:
29450 return NULL;
29451 }
29452
29453
29454 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29455 PyObject *resultobj = 0;
29456 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29457 wxGraphicsMatrix result;
29458 void *argp1 = 0 ;
29459 int res1 = 0 ;
29460 PyObject *swig_obj[1] ;
29461
29462 if (!args) SWIG_fail;
29463 swig_obj[0] = args;
29464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29465 if (!SWIG_IsOK(res1)) {
29466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29467 }
29468 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29469 {
29470 result = ((wxGraphicsContext const *)arg1)->GetTransform();
29471 if (PyErr_Occurred()) SWIG_fail;
29472 }
29473 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29474 return resultobj;
29475 fail:
29476 return NULL;
29477 }
29478
29479
29480 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29481 PyObject *resultobj = 0;
29482 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29483 wxGraphicsPen *arg2 = 0 ;
29484 void *argp1 = 0 ;
29485 int res1 = 0 ;
29486 void *argp2 = 0 ;
29487 int res2 = 0 ;
29488
29489 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29491 if (!SWIG_IsOK(res1)) {
29492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29493 }
29494 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29495 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29496 if (!SWIG_IsOK(res2)) {
29497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29498 }
29499 if (!argp2) {
29500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29501 }
29502 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29503 {
29504 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29505 if (PyErr_Occurred()) SWIG_fail;
29506 }
29507 resultobj = SWIG_Py_Void();
29508 return resultobj;
29509 fail:
29510 return NULL;
29511 }
29512
29513
29514 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29515 PyObject *resultobj = 0;
29516 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29517 wxPen *arg2 = 0 ;
29518 void *argp1 = 0 ;
29519 int res1 = 0 ;
29520 void *argp2 = 0 ;
29521 int res2 = 0 ;
29522
29523 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29525 if (!SWIG_IsOK(res1)) {
29526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29527 }
29528 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29529 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29530 if (!SWIG_IsOK(res2)) {
29531 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29532 }
29533 if (!argp2) {
29534 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29535 }
29536 arg2 = reinterpret_cast< wxPen * >(argp2);
29537 {
29538 (arg1)->SetPen((wxPen const &)*arg2);
29539 if (PyErr_Occurred()) SWIG_fail;
29540 }
29541 resultobj = SWIG_Py_Void();
29542 return resultobj;
29543 fail:
29544 return NULL;
29545 }
29546
29547
29548 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
29549 int argc;
29550 PyObject *argv[3];
29551
29552 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
29553 --argc;
29554 if (argc == 2) {
29555 int _v = 0;
29556 {
29557 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
29558 _v = SWIG_CheckState(res);
29559 }
29560 if (!_v) goto check_1;
29561 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
29562 }
29563 check_1:
29564
29565 if (argc == 2) {
29566 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
29567 }
29568
29569 fail:
29570 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
29571 return NULL;
29572 }
29573
29574
29575 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29576 PyObject *resultobj = 0;
29577 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29578 wxGraphicsBrush *arg2 = 0 ;
29579 void *argp1 = 0 ;
29580 int res1 = 0 ;
29581 void *argp2 = 0 ;
29582 int res2 = 0 ;
29583
29584 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29586 if (!SWIG_IsOK(res1)) {
29587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29588 }
29589 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29590 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29591 if (!SWIG_IsOK(res2)) {
29592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29593 }
29594 if (!argp2) {
29595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29596 }
29597 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29598 {
29599 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
29600 if (PyErr_Occurred()) SWIG_fail;
29601 }
29602 resultobj = SWIG_Py_Void();
29603 return resultobj;
29604 fail:
29605 return NULL;
29606 }
29607
29608
29609 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29610 PyObject *resultobj = 0;
29611 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29612 wxBrush *arg2 = 0 ;
29613 void *argp1 = 0 ;
29614 int res1 = 0 ;
29615 void *argp2 = 0 ;
29616 int res2 = 0 ;
29617
29618 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29620 if (!SWIG_IsOK(res1)) {
29621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29622 }
29623 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29624 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
29625 if (!SWIG_IsOK(res2)) {
29626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29627 }
29628 if (!argp2) {
29629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29630 }
29631 arg2 = reinterpret_cast< wxBrush * >(argp2);
29632 {
29633 (arg1)->SetBrush((wxBrush const &)*arg2);
29634 if (PyErr_Occurred()) SWIG_fail;
29635 }
29636 resultobj = SWIG_Py_Void();
29637 return resultobj;
29638 fail:
29639 return NULL;
29640 }
29641
29642
29643 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29644 int argc;
29645 PyObject *argv[3];
29646
29647 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29648 --argc;
29649 if (argc == 2) {
29650 int _v = 0;
29651 {
29652 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29653 _v = SWIG_CheckState(res);
29654 }
29655 if (!_v) goto check_1;
29656 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
29657 }
29658 check_1:
29659
29660 if (argc == 2) {
29661 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
29662 }
29663
29664 fail:
29665 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
29666 return NULL;
29667 }
29668
29669
29670 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29671 PyObject *resultobj = 0;
29672 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29673 wxGraphicsFont *arg2 = 0 ;
29674 void *argp1 = 0 ;
29675 int res1 = 0 ;
29676 void *argp2 = 0 ;
29677 int res2 = 0 ;
29678
29679 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29681 if (!SWIG_IsOK(res1)) {
29682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29683 }
29684 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29685 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29686 if (!SWIG_IsOK(res2)) {
29687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29688 }
29689 if (!argp2) {
29690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29691 }
29692 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
29693 {
29694 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
29695 if (PyErr_Occurred()) SWIG_fail;
29696 }
29697 resultobj = SWIG_Py_Void();
29698 return resultobj;
29699 fail:
29700 return NULL;
29701 }
29702
29703
29704 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29705 PyObject *resultobj = 0;
29706 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29707 wxFont *arg2 = 0 ;
29708 wxColour const &arg3_defvalue = *wxBLACK ;
29709 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
29710 void *argp1 = 0 ;
29711 int res1 = 0 ;
29712 void *argp2 = 0 ;
29713 int res2 = 0 ;
29714 wxColour temp3 ;
29715
29716 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29718 if (!SWIG_IsOK(res1)) {
29719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29720 }
29721 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29722 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
29723 if (!SWIG_IsOK(res2)) {
29724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29725 }
29726 if (!argp2) {
29727 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29728 }
29729 arg2 = reinterpret_cast< wxFont * >(argp2);
29730 if (swig_obj[2]) {
29731 {
29732 arg3 = &temp3;
29733 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29734 }
29735 }
29736 {
29737 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
29738 if (PyErr_Occurred()) SWIG_fail;
29739 }
29740 resultobj = SWIG_Py_Void();
29741 return resultobj;
29742 fail:
29743 return NULL;
29744 }
29745
29746
29747 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29748 int argc;
29749 PyObject *argv[4];
29750
29751 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29752 --argc;
29753 if (argc == 2) {
29754 int _v = 0;
29755 {
29756 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29757 _v = SWIG_CheckState(res);
29758 }
29759 if (!_v) goto check_1;
29760 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
29761 }
29762 check_1:
29763
29764 if ((argc >= 2) && (argc <= 3)) {
29765 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
29766 }
29767
29768 fail:
29769 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
29770 return NULL;
29771 }
29772
29773
29774 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29775 PyObject *resultobj = 0;
29776 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29777 wxGraphicsPath *arg2 = 0 ;
29778 void *argp1 = 0 ;
29779 int res1 = 0 ;
29780 void *argp2 = 0 ;
29781 int res2 = 0 ;
29782 PyObject * obj0 = 0 ;
29783 PyObject * obj1 = 0 ;
29784 char * kwnames[] = {
29785 (char *) "self",(char *) "path", NULL
29786 };
29787
29788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29790 if (!SWIG_IsOK(res1)) {
29791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29792 }
29793 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29794 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29795 if (!SWIG_IsOK(res2)) {
29796 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29797 }
29798 if (!argp2) {
29799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29800 }
29801 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29802 {
29803 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
29804 if (PyErr_Occurred()) SWIG_fail;
29805 }
29806 resultobj = SWIG_Py_Void();
29807 return resultobj;
29808 fail:
29809 return NULL;
29810 }
29811
29812
29813 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29814 PyObject *resultobj = 0;
29815 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29816 wxGraphicsPath *arg2 = 0 ;
29817 int arg3 = (int) wxODDEVEN_RULE ;
29818 void *argp1 = 0 ;
29819 int res1 = 0 ;
29820 void *argp2 = 0 ;
29821 int res2 = 0 ;
29822 int val3 ;
29823 int ecode3 = 0 ;
29824 PyObject * obj0 = 0 ;
29825 PyObject * obj1 = 0 ;
29826 PyObject * obj2 = 0 ;
29827 char * kwnames[] = {
29828 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29829 };
29830
29831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29833 if (!SWIG_IsOK(res1)) {
29834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29835 }
29836 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29837 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29838 if (!SWIG_IsOK(res2)) {
29839 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29840 }
29841 if (!argp2) {
29842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29843 }
29844 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29845 if (obj2) {
29846 ecode3 = SWIG_AsVal_int(obj2, &val3);
29847 if (!SWIG_IsOK(ecode3)) {
29848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29849 }
29850 arg3 = static_cast< int >(val3);
29851 }
29852 {
29853 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
29854 if (PyErr_Occurred()) SWIG_fail;
29855 }
29856 resultobj = SWIG_Py_Void();
29857 return resultobj;
29858 fail:
29859 return NULL;
29860 }
29861
29862
29863 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29864 PyObject *resultobj = 0;
29865 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29866 wxGraphicsPath *arg2 = 0 ;
29867 int arg3 = (int) wxODDEVEN_RULE ;
29868 void *argp1 = 0 ;
29869 int res1 = 0 ;
29870 void *argp2 = 0 ;
29871 int res2 = 0 ;
29872 int val3 ;
29873 int ecode3 = 0 ;
29874 PyObject * obj0 = 0 ;
29875 PyObject * obj1 = 0 ;
29876 PyObject * obj2 = 0 ;
29877 char * kwnames[] = {
29878 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29879 };
29880
29881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29883 if (!SWIG_IsOK(res1)) {
29884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29885 }
29886 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29887 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29888 if (!SWIG_IsOK(res2)) {
29889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29890 }
29891 if (!argp2) {
29892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29893 }
29894 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29895 if (obj2) {
29896 ecode3 = SWIG_AsVal_int(obj2, &val3);
29897 if (!SWIG_IsOK(ecode3)) {
29898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29899 }
29900 arg3 = static_cast< int >(val3);
29901 }
29902 {
29903 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
29904 if (PyErr_Occurred()) SWIG_fail;
29905 }
29906 resultobj = SWIG_Py_Void();
29907 return resultobj;
29908 fail:
29909 return NULL;
29910 }
29911
29912
29913 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29914 PyObject *resultobj = 0;
29915 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29916 wxString *arg2 = 0 ;
29917 wxDouble arg3 ;
29918 wxDouble arg4 ;
29919 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29920 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
29921 void *argp1 = 0 ;
29922 int res1 = 0 ;
29923 bool temp2 = false ;
29924 double val3 ;
29925 int ecode3 = 0 ;
29926 double val4 ;
29927 int ecode4 = 0 ;
29928 void *argp5 = 0 ;
29929 int res5 = 0 ;
29930 PyObject * obj0 = 0 ;
29931 PyObject * obj1 = 0 ;
29932 PyObject * obj2 = 0 ;
29933 PyObject * obj3 = 0 ;
29934 PyObject * obj4 = 0 ;
29935 char * kwnames[] = {
29936 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
29937 };
29938
29939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29941 if (!SWIG_IsOK(res1)) {
29942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29943 }
29944 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29945 {
29946 arg2 = wxString_in_helper(obj1);
29947 if (arg2 == NULL) SWIG_fail;
29948 temp2 = true;
29949 }
29950 ecode3 = SWIG_AsVal_double(obj2, &val3);
29951 if (!SWIG_IsOK(ecode3)) {
29952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29953 }
29954 arg3 = static_cast< wxDouble >(val3);
29955 ecode4 = SWIG_AsVal_double(obj3, &val4);
29956 if (!SWIG_IsOK(ecode4)) {
29957 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29958 }
29959 arg4 = static_cast< wxDouble >(val4);
29960 if (obj4) {
29961 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29962 if (!SWIG_IsOK(res5)) {
29963 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29964 }
29965 if (!argp5) {
29966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29967 }
29968 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29969 }
29970 {
29971 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
29972 if (PyErr_Occurred()) SWIG_fail;
29973 }
29974 resultobj = SWIG_Py_Void();
29975 {
29976 if (temp2)
29977 delete arg2;
29978 }
29979 return resultobj;
29980 fail:
29981 {
29982 if (temp2)
29983 delete arg2;
29984 }
29985 return NULL;
29986 }
29987
29988
29989 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29990 PyObject *resultobj = 0;
29991 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29992 wxString *arg2 = 0 ;
29993 wxDouble arg3 ;
29994 wxDouble arg4 ;
29995 wxDouble arg5 ;
29996 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29997 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
29998 void *argp1 = 0 ;
29999 int res1 = 0 ;
30000 bool temp2 = false ;
30001 double val3 ;
30002 int ecode3 = 0 ;
30003 double val4 ;
30004 int ecode4 = 0 ;
30005 double val5 ;
30006 int ecode5 = 0 ;
30007 void *argp6 = 0 ;
30008 int res6 = 0 ;
30009 PyObject * obj0 = 0 ;
30010 PyObject * obj1 = 0 ;
30011 PyObject * obj2 = 0 ;
30012 PyObject * obj3 = 0 ;
30013 PyObject * obj4 = 0 ;
30014 PyObject * obj5 = 0 ;
30015 char * kwnames[] = {
30016 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
30017 };
30018
30019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30021 if (!SWIG_IsOK(res1)) {
30022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30023 }
30024 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30025 {
30026 arg2 = wxString_in_helper(obj1);
30027 if (arg2 == NULL) SWIG_fail;
30028 temp2 = true;
30029 }
30030 ecode3 = SWIG_AsVal_double(obj2, &val3);
30031 if (!SWIG_IsOK(ecode3)) {
30032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
30033 }
30034 arg3 = static_cast< wxDouble >(val3);
30035 ecode4 = SWIG_AsVal_double(obj3, &val4);
30036 if (!SWIG_IsOK(ecode4)) {
30037 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
30038 }
30039 arg4 = static_cast< wxDouble >(val4);
30040 ecode5 = SWIG_AsVal_double(obj4, &val5);
30041 if (!SWIG_IsOK(ecode5)) {
30042 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
30043 }
30044 arg5 = static_cast< wxDouble >(val5);
30045 if (obj5) {
30046 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
30047 if (!SWIG_IsOK(res6)) {
30048 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
30049 }
30050 if (!argp6) {
30051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
30052 }
30053 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
30054 }
30055 {
30056 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
30057 if (PyErr_Occurred()) SWIG_fail;
30058 }
30059 resultobj = SWIG_Py_Void();
30060 {
30061 if (temp2)
30062 delete arg2;
30063 }
30064 return resultobj;
30065 fail:
30066 {
30067 if (temp2)
30068 delete arg2;
30069 }
30070 return NULL;
30071 }
30072
30073
30074 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30075 PyObject *resultobj = 0;
30076 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30077 wxString *arg2 = 0 ;
30078 wxDouble *arg3 = (wxDouble *) 0 ;
30079 wxDouble *arg4 = (wxDouble *) 0 ;
30080 wxDouble *arg5 = (wxDouble *) 0 ;
30081 wxDouble *arg6 = (wxDouble *) 0 ;
30082 void *argp1 = 0 ;
30083 int res1 = 0 ;
30084 bool temp2 = false ;
30085 wxDouble temp3 ;
30086 int res3 = SWIG_TMPOBJ ;
30087 wxDouble temp4 ;
30088 int res4 = SWIG_TMPOBJ ;
30089 wxDouble temp5 ;
30090 int res5 = SWIG_TMPOBJ ;
30091 wxDouble temp6 ;
30092 int res6 = SWIG_TMPOBJ ;
30093 PyObject * obj0 = 0 ;
30094 PyObject * obj1 = 0 ;
30095 char * kwnames[] = {
30096 (char *) "self",(char *) "text", NULL
30097 };
30098
30099 arg3 = &temp3;
30100 arg4 = &temp4;
30101 arg5 = &temp5;
30102 arg6 = &temp6;
30103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
30104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30105 if (!SWIG_IsOK(res1)) {
30106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
30107 }
30108 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30109 {
30110 arg2 = wxString_in_helper(obj1);
30111 if (arg2 == NULL) SWIG_fail;
30112 temp2 = true;
30113 }
30114 {
30115 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
30116 if (PyErr_Occurred()) SWIG_fail;
30117 }
30118 resultobj = SWIG_Py_Void();
30119 if (SWIG_IsTmpObj(res3)) {
30120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
30121 } else {
30122 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
30124 }
30125 if (SWIG_IsTmpObj(res4)) {
30126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
30127 } else {
30128 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
30130 }
30131 if (SWIG_IsTmpObj(res5)) {
30132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
30133 } else {
30134 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
30136 }
30137 if (SWIG_IsTmpObj(res6)) {
30138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
30139 } else {
30140 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30141 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
30142 }
30143 {
30144 if (temp2)
30145 delete arg2;
30146 }
30147 return resultobj;
30148 fail:
30149 {
30150 if (temp2)
30151 delete arg2;
30152 }
30153 return NULL;
30154 }
30155
30156
30157 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30158 PyObject *resultobj = 0;
30159 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30160 wxString *arg2 = 0 ;
30161 PyObject *result = 0 ;
30162 void *argp1 = 0 ;
30163 int res1 = 0 ;
30164 bool temp2 = false ;
30165 PyObject * obj0 = 0 ;
30166 PyObject * obj1 = 0 ;
30167 char * kwnames[] = {
30168 (char *) "self",(char *) "text", NULL
30169 };
30170
30171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
30172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30173 if (!SWIG_IsOK(res1)) {
30174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30175 }
30176 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30177 {
30178 arg2 = wxString_in_helper(obj1);
30179 if (arg2 == NULL) SWIG_fail;
30180 temp2 = true;
30181 }
30182 {
30183 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
30184 if (PyErr_Occurred()) SWIG_fail;
30185 }
30186 resultobj = result;
30187 {
30188 if (temp2)
30189 delete arg2;
30190 }
30191 return resultobj;
30192 fail:
30193 {
30194 if (temp2)
30195 delete arg2;
30196 }
30197 return NULL;
30198 }
30199
30200
30201 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30202 PyObject *resultobj = 0;
30203 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30204 wxString *arg2 = 0 ;
30205 wxArrayDouble result;
30206 void *argp1 = 0 ;
30207 int res1 = 0 ;
30208 bool temp2 = false ;
30209 PyObject * obj0 = 0 ;
30210 PyObject * obj1 = 0 ;
30211 char * kwnames[] = {
30212 (char *) "self",(char *) "text", NULL
30213 };
30214
30215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
30216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30217 if (!SWIG_IsOK(res1)) {
30218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30219 }
30220 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30221 {
30222 arg2 = wxString_in_helper(obj1);
30223 if (arg2 == NULL) SWIG_fail;
30224 temp2 = true;
30225 }
30226 {
30227 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
30228 if (PyErr_Occurred()) SWIG_fail;
30229 }
30230 {
30231 resultobj = wxArrayDouble2PyList_helper(result);
30232 }
30233 {
30234 if (temp2)
30235 delete arg2;
30236 }
30237 return resultobj;
30238 fail:
30239 {
30240 if (temp2)
30241 delete arg2;
30242 }
30243 return NULL;
30244 }
30245
30246
30247 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30248 PyObject *resultobj = 0;
30249 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30250 wxBitmap *arg2 = 0 ;
30251 wxDouble arg3 ;
30252 wxDouble arg4 ;
30253 wxDouble arg5 ;
30254 wxDouble arg6 ;
30255 void *argp1 = 0 ;
30256 int res1 = 0 ;
30257 void *argp2 = 0 ;
30258 int res2 = 0 ;
30259 double val3 ;
30260 int ecode3 = 0 ;
30261 double val4 ;
30262 int ecode4 = 0 ;
30263 double val5 ;
30264 int ecode5 = 0 ;
30265 double val6 ;
30266 int ecode6 = 0 ;
30267 PyObject * obj0 = 0 ;
30268 PyObject * obj1 = 0 ;
30269 PyObject * obj2 = 0 ;
30270 PyObject * obj3 = 0 ;
30271 PyObject * obj4 = 0 ;
30272 PyObject * obj5 = 0 ;
30273 char * kwnames[] = {
30274 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30275 };
30276
30277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30279 if (!SWIG_IsOK(res1)) {
30280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30281 }
30282 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30284 if (!SWIG_IsOK(res2)) {
30285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30286 }
30287 if (!argp2) {
30288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30289 }
30290 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30291 ecode3 = SWIG_AsVal_double(obj2, &val3);
30292 if (!SWIG_IsOK(ecode3)) {
30293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
30294 }
30295 arg3 = static_cast< wxDouble >(val3);
30296 ecode4 = SWIG_AsVal_double(obj3, &val4);
30297 if (!SWIG_IsOK(ecode4)) {
30298 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
30299 }
30300 arg4 = static_cast< wxDouble >(val4);
30301 ecode5 = SWIG_AsVal_double(obj4, &val5);
30302 if (!SWIG_IsOK(ecode5)) {
30303 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
30304 }
30305 arg5 = static_cast< wxDouble >(val5);
30306 ecode6 = SWIG_AsVal_double(obj5, &val6);
30307 if (!SWIG_IsOK(ecode6)) {
30308 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
30309 }
30310 arg6 = static_cast< wxDouble >(val6);
30311 {
30312 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
30313 if (PyErr_Occurred()) SWIG_fail;
30314 }
30315 resultobj = SWIG_Py_Void();
30316 return resultobj;
30317 fail:
30318 return NULL;
30319 }
30320
30321
30322 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30323 PyObject *resultobj = 0;
30324 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30325 wxIcon *arg2 = 0 ;
30326 wxDouble arg3 ;
30327 wxDouble arg4 ;
30328 wxDouble arg5 ;
30329 wxDouble arg6 ;
30330 void *argp1 = 0 ;
30331 int res1 = 0 ;
30332 void *argp2 = 0 ;
30333 int res2 = 0 ;
30334 double val3 ;
30335 int ecode3 = 0 ;
30336 double val4 ;
30337 int ecode4 = 0 ;
30338 double val5 ;
30339 int ecode5 = 0 ;
30340 double val6 ;
30341 int ecode6 = 0 ;
30342 PyObject * obj0 = 0 ;
30343 PyObject * obj1 = 0 ;
30344 PyObject * obj2 = 0 ;
30345 PyObject * obj3 = 0 ;
30346 PyObject * obj4 = 0 ;
30347 PyObject * obj5 = 0 ;
30348 char * kwnames[] = {
30349 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30350 };
30351
30352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30354 if (!SWIG_IsOK(res1)) {
30355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30356 }
30357 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30358 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30359 if (!SWIG_IsOK(res2)) {
30360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30361 }
30362 if (!argp2) {
30363 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30364 }
30365 arg2 = reinterpret_cast< wxIcon * >(argp2);
30366 ecode3 = SWIG_AsVal_double(obj2, &val3);
30367 if (!SWIG_IsOK(ecode3)) {
30368 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
30369 }
30370 arg3 = static_cast< wxDouble >(val3);
30371 ecode4 = SWIG_AsVal_double(obj3, &val4);
30372 if (!SWIG_IsOK(ecode4)) {
30373 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
30374 }
30375 arg4 = static_cast< wxDouble >(val4);
30376 ecode5 = SWIG_AsVal_double(obj4, &val5);
30377 if (!SWIG_IsOK(ecode5)) {
30378 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
30379 }
30380 arg5 = static_cast< wxDouble >(val5);
30381 ecode6 = SWIG_AsVal_double(obj5, &val6);
30382 if (!SWIG_IsOK(ecode6)) {
30383 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
30384 }
30385 arg6 = static_cast< wxDouble >(val6);
30386 {
30387 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
30388 if (PyErr_Occurred()) SWIG_fail;
30389 }
30390 resultobj = SWIG_Py_Void();
30391 return resultobj;
30392 fail:
30393 return NULL;
30394 }
30395
30396
30397 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30398 PyObject *resultobj = 0;
30399 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30400 wxDouble arg2 ;
30401 wxDouble arg3 ;
30402 wxDouble arg4 ;
30403 wxDouble arg5 ;
30404 void *argp1 = 0 ;
30405 int res1 = 0 ;
30406 double val2 ;
30407 int ecode2 = 0 ;
30408 double val3 ;
30409 int ecode3 = 0 ;
30410 double val4 ;
30411 int ecode4 = 0 ;
30412 double val5 ;
30413 int ecode5 = 0 ;
30414 PyObject * obj0 = 0 ;
30415 PyObject * obj1 = 0 ;
30416 PyObject * obj2 = 0 ;
30417 PyObject * obj3 = 0 ;
30418 PyObject * obj4 = 0 ;
30419 char * kwnames[] = {
30420 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
30421 };
30422
30423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30425 if (!SWIG_IsOK(res1)) {
30426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30427 }
30428 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30429 ecode2 = SWIG_AsVal_double(obj1, &val2);
30430 if (!SWIG_IsOK(ecode2)) {
30431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
30432 }
30433 arg2 = static_cast< wxDouble >(val2);
30434 ecode3 = SWIG_AsVal_double(obj2, &val3);
30435 if (!SWIG_IsOK(ecode3)) {
30436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
30437 }
30438 arg3 = static_cast< wxDouble >(val3);
30439 ecode4 = SWIG_AsVal_double(obj3, &val4);
30440 if (!SWIG_IsOK(ecode4)) {
30441 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
30442 }
30443 arg4 = static_cast< wxDouble >(val4);
30444 ecode5 = SWIG_AsVal_double(obj4, &val5);
30445 if (!SWIG_IsOK(ecode5)) {
30446 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
30447 }
30448 arg5 = static_cast< wxDouble >(val5);
30449 {
30450 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
30451 if (PyErr_Occurred()) SWIG_fail;
30452 }
30453 resultobj = SWIG_Py_Void();
30454 return resultobj;
30455 fail:
30456 return NULL;
30457 }
30458
30459
30460 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30461 PyObject *resultobj = 0;
30462 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30463 size_t arg2 ;
30464 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30465 void *argp1 = 0 ;
30466 int res1 = 0 ;
30467 PyObject * obj0 = 0 ;
30468 PyObject * obj1 = 0 ;
30469 char * kwnames[] = {
30470 (char *) "self",(char *) "points", NULL
30471 };
30472
30473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
30474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30475 if (!SWIG_IsOK(res1)) {
30476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30477 }
30478 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30479 {
30480 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30481 if (arg3 == NULL) SWIG_fail;
30482 }
30483 {
30484 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
30485 if (PyErr_Occurred()) SWIG_fail;
30486 }
30487 resultobj = SWIG_Py_Void();
30488 {
30489 if (arg3) delete [] arg3;
30490 }
30491 return resultobj;
30492 fail:
30493 {
30494 if (arg3) delete [] arg3;
30495 }
30496 return NULL;
30497 }
30498
30499
30500 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30501 PyObject *resultobj = 0;
30502 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30503 PyObject *arg2 = (PyObject *) 0 ;
30504 PyObject *arg3 = (PyObject *) 0 ;
30505 void *argp1 = 0 ;
30506 int res1 = 0 ;
30507 PyObject * obj0 = 0 ;
30508 PyObject * obj1 = 0 ;
30509 PyObject * obj2 = 0 ;
30510 char * kwnames[] = {
30511 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30512 };
30513
30514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30516 if (!SWIG_IsOK(res1)) {
30517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30518 }
30519 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30520 arg2 = obj1;
30521 arg3 = obj2;
30522 {
30523 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30524 if (PyErr_Occurred()) SWIG_fail;
30525 }
30526 resultobj = SWIG_Py_Void();
30527 return resultobj;
30528 fail:
30529 return NULL;
30530 }
30531
30532
30533 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30534 PyObject *resultobj = 0;
30535 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30536 size_t arg2 ;
30537 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30538 int arg4 = (int) wxODDEVEN_RULE ;
30539 void *argp1 = 0 ;
30540 int res1 = 0 ;
30541 int val4 ;
30542 int ecode4 = 0 ;
30543 PyObject * obj0 = 0 ;
30544 PyObject * obj1 = 0 ;
30545 PyObject * obj2 = 0 ;
30546 char * kwnames[] = {
30547 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
30548 };
30549
30550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30552 if (!SWIG_IsOK(res1)) {
30553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30554 }
30555 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30556 {
30557 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30558 if (arg3 == NULL) SWIG_fail;
30559 }
30560 if (obj2) {
30561 ecode4 = SWIG_AsVal_int(obj2, &val4);
30562 if (!SWIG_IsOK(ecode4)) {
30563 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
30564 }
30565 arg4 = static_cast< int >(val4);
30566 }
30567 {
30568 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
30569 if (PyErr_Occurred()) SWIG_fail;
30570 }
30571 resultobj = SWIG_Py_Void();
30572 {
30573 if (arg3) delete [] arg3;
30574 }
30575 return resultobj;
30576 fail:
30577 {
30578 if (arg3) delete [] arg3;
30579 }
30580 return NULL;
30581 }
30582
30583
30584 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30585 PyObject *resultobj = 0;
30586 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30587 wxDouble arg2 ;
30588 wxDouble arg3 ;
30589 wxDouble arg4 ;
30590 wxDouble arg5 ;
30591 void *argp1 = 0 ;
30592 int res1 = 0 ;
30593 double val2 ;
30594 int ecode2 = 0 ;
30595 double val3 ;
30596 int ecode3 = 0 ;
30597 double val4 ;
30598 int ecode4 = 0 ;
30599 double val5 ;
30600 int ecode5 = 0 ;
30601 PyObject * obj0 = 0 ;
30602 PyObject * obj1 = 0 ;
30603 PyObject * obj2 = 0 ;
30604 PyObject * obj3 = 0 ;
30605 PyObject * obj4 = 0 ;
30606 char * kwnames[] = {
30607 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30608 };
30609
30610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30612 if (!SWIG_IsOK(res1)) {
30613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30614 }
30615 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30616 ecode2 = SWIG_AsVal_double(obj1, &val2);
30617 if (!SWIG_IsOK(ecode2)) {
30618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30619 }
30620 arg2 = static_cast< wxDouble >(val2);
30621 ecode3 = SWIG_AsVal_double(obj2, &val3);
30622 if (!SWIG_IsOK(ecode3)) {
30623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30624 }
30625 arg3 = static_cast< wxDouble >(val3);
30626 ecode4 = SWIG_AsVal_double(obj3, &val4);
30627 if (!SWIG_IsOK(ecode4)) {
30628 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30629 }
30630 arg4 = static_cast< wxDouble >(val4);
30631 ecode5 = SWIG_AsVal_double(obj4, &val5);
30632 if (!SWIG_IsOK(ecode5)) {
30633 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30634 }
30635 arg5 = static_cast< wxDouble >(val5);
30636 {
30637 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30638 if (PyErr_Occurred()) SWIG_fail;
30639 }
30640 resultobj = SWIG_Py_Void();
30641 return resultobj;
30642 fail:
30643 return NULL;
30644 }
30645
30646
30647 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30648 PyObject *resultobj = 0;
30649 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30650 wxDouble arg2 ;
30651 wxDouble arg3 ;
30652 wxDouble arg4 ;
30653 wxDouble arg5 ;
30654 void *argp1 = 0 ;
30655 int res1 = 0 ;
30656 double val2 ;
30657 int ecode2 = 0 ;
30658 double val3 ;
30659 int ecode3 = 0 ;
30660 double val4 ;
30661 int ecode4 = 0 ;
30662 double val5 ;
30663 int ecode5 = 0 ;
30664 PyObject * obj0 = 0 ;
30665 PyObject * obj1 = 0 ;
30666 PyObject * obj2 = 0 ;
30667 PyObject * obj3 = 0 ;
30668 PyObject * obj4 = 0 ;
30669 char * kwnames[] = {
30670 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30671 };
30672
30673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30675 if (!SWIG_IsOK(res1)) {
30676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30677 }
30678 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30679 ecode2 = SWIG_AsVal_double(obj1, &val2);
30680 if (!SWIG_IsOK(ecode2)) {
30681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30682 }
30683 arg2 = static_cast< wxDouble >(val2);
30684 ecode3 = SWIG_AsVal_double(obj2, &val3);
30685 if (!SWIG_IsOK(ecode3)) {
30686 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
30687 }
30688 arg3 = static_cast< wxDouble >(val3);
30689 ecode4 = SWIG_AsVal_double(obj3, &val4);
30690 if (!SWIG_IsOK(ecode4)) {
30691 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
30692 }
30693 arg4 = static_cast< wxDouble >(val4);
30694 ecode5 = SWIG_AsVal_double(obj4, &val5);
30695 if (!SWIG_IsOK(ecode5)) {
30696 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
30697 }
30698 arg5 = static_cast< wxDouble >(val5);
30699 {
30700 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
30701 if (PyErr_Occurred()) SWIG_fail;
30702 }
30703 resultobj = SWIG_Py_Void();
30704 return resultobj;
30705 fail:
30706 return NULL;
30707 }
30708
30709
30710 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30711 PyObject *resultobj = 0;
30712 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30713 wxDouble arg2 ;
30714 wxDouble arg3 ;
30715 wxDouble arg4 ;
30716 wxDouble arg5 ;
30717 wxDouble arg6 ;
30718 void *argp1 = 0 ;
30719 int res1 = 0 ;
30720 double val2 ;
30721 int ecode2 = 0 ;
30722 double val3 ;
30723 int ecode3 = 0 ;
30724 double val4 ;
30725 int ecode4 = 0 ;
30726 double val5 ;
30727 int ecode5 = 0 ;
30728 double val6 ;
30729 int ecode6 = 0 ;
30730 PyObject * obj0 = 0 ;
30731 PyObject * obj1 = 0 ;
30732 PyObject * obj2 = 0 ;
30733 PyObject * obj3 = 0 ;
30734 PyObject * obj4 = 0 ;
30735 PyObject * obj5 = 0 ;
30736 char * kwnames[] = {
30737 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
30738 };
30739
30740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30742 if (!SWIG_IsOK(res1)) {
30743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30744 }
30745 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30746 ecode2 = SWIG_AsVal_double(obj1, &val2);
30747 if (!SWIG_IsOK(ecode2)) {
30748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30749 }
30750 arg2 = static_cast< wxDouble >(val2);
30751 ecode3 = SWIG_AsVal_double(obj2, &val3);
30752 if (!SWIG_IsOK(ecode3)) {
30753 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30754 }
30755 arg3 = static_cast< wxDouble >(val3);
30756 ecode4 = SWIG_AsVal_double(obj3, &val4);
30757 if (!SWIG_IsOK(ecode4)) {
30758 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30759 }
30760 arg4 = static_cast< wxDouble >(val4);
30761 ecode5 = SWIG_AsVal_double(obj4, &val5);
30762 if (!SWIG_IsOK(ecode5)) {
30763 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30764 }
30765 arg5 = static_cast< wxDouble >(val5);
30766 ecode6 = SWIG_AsVal_double(obj5, &val6);
30767 if (!SWIG_IsOK(ecode6)) {
30768 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30769 }
30770 arg6 = static_cast< wxDouble >(val6);
30771 {
30772 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
30773 if (PyErr_Occurred()) SWIG_fail;
30774 }
30775 resultobj = SWIG_Py_Void();
30776 return resultobj;
30777 fail:
30778 return NULL;
30779 }
30780
30781
30782 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30783 PyObject *resultobj = 0;
30784 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30785 bool result;
30786 void *argp1 = 0 ;
30787 int res1 = 0 ;
30788 PyObject *swig_obj[1] ;
30789
30790 if (!args) SWIG_fail;
30791 swig_obj[0] = args;
30792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30793 if (!SWIG_IsOK(res1)) {
30794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
30795 }
30796 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30797 {
30798 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30799 if (PyErr_Occurred()) SWIG_fail;
30800 }
30801 {
30802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30803 }
30804 return resultobj;
30805 fail:
30806 return NULL;
30807 }
30808
30809
30810 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30811 PyObject *obj;
30812 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30813 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30814 return SWIG_Py_Void();
30815 }
30816
30817 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30818 PyObject *resultobj = 0;
30819 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30820 void *argp1 = 0 ;
30821 int res1 = 0 ;
30822 PyObject *swig_obj[1] ;
30823
30824 if (!args) SWIG_fail;
30825 swig_obj[0] = args;
30826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30827 if (!SWIG_IsOK(res1)) {
30828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30829 }
30830 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30831 {
30832 delete arg1;
30833
30834 if (PyErr_Occurred()) SWIG_fail;
30835 }
30836 resultobj = SWIG_Py_Void();
30837 return resultobj;
30838 fail:
30839 return NULL;
30840 }
30841
30842
30843 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30844 PyObject *resultobj = 0;
30845 wxGraphicsRenderer *result = 0 ;
30846
30847 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
30848 {
30849 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30850 if (PyErr_Occurred()) SWIG_fail;
30851 }
30852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30853 return resultobj;
30854 fail:
30855 return NULL;
30856 }
30857
30858
30859 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30860 PyObject *resultobj = 0;
30861 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30862 wxWindowDC *arg2 = 0 ;
30863 wxGraphicsContext *result = 0 ;
30864 void *argp1 = 0 ;
30865 int res1 = 0 ;
30866 void *argp2 = 0 ;
30867 int res2 = 0 ;
30868
30869 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30871 if (!SWIG_IsOK(res1)) {
30872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30873 }
30874 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30875 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30876 if (!SWIG_IsOK(res2)) {
30877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30878 }
30879 if (!argp2) {
30880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30881 }
30882 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30883 {
30884 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30885 if (PyErr_Occurred()) SWIG_fail;
30886 }
30887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30888 return resultobj;
30889 fail:
30890 return NULL;
30891 }
30892
30893
30894 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30895 PyObject *resultobj = 0;
30896 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30897 wxWindow *arg2 = (wxWindow *) 0 ;
30898 wxGraphicsContext *result = 0 ;
30899 void *argp1 = 0 ;
30900 int res1 = 0 ;
30901 void *argp2 = 0 ;
30902 int res2 = 0 ;
30903
30904 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30906 if (!SWIG_IsOK(res1)) {
30907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30908 }
30909 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30910 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30911 if (!SWIG_IsOK(res2)) {
30912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30913 }
30914 arg2 = reinterpret_cast< wxWindow * >(argp2);
30915 {
30916 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30917 if (PyErr_Occurred()) SWIG_fail;
30918 }
30919 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30920 return resultobj;
30921 fail:
30922 return NULL;
30923 }
30924
30925
30926 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30927 int argc;
30928 PyObject *argv[3];
30929
30930 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30931 --argc;
30932 if (argc == 2) {
30933 int _v = 0;
30934 {
30935 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30936 _v = SWIG_CheckState(res);
30937 }
30938 if (!_v) goto check_1;
30939 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30940 }
30941 check_1:
30942
30943 if (argc == 2) {
30944 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30945 }
30946
30947 fail:
30948 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30949 return NULL;
30950 }
30951
30952
30953 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30954 PyObject *resultobj = 0;
30955 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30956 wxGraphicsContext *result = 0 ;
30957 void *argp1 = 0 ;
30958 int res1 = 0 ;
30959 PyObject *swig_obj[1] ;
30960
30961 if (!args) SWIG_fail;
30962 swig_obj[0] = args;
30963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30964 if (!SWIG_IsOK(res1)) {
30965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30966 }
30967 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30968 {
30969 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30970 if (PyErr_Occurred()) SWIG_fail;
30971 }
30972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30973 return resultobj;
30974 fail:
30975 return NULL;
30976 }
30977
30978
30979 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30980 PyObject *resultobj = 0;
30981 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30982 void *arg2 = (void *) 0 ;
30983 wxGraphicsContext *result = 0 ;
30984 void *argp1 = 0 ;
30985 int res1 = 0 ;
30986 int res2 ;
30987 PyObject * obj0 = 0 ;
30988 PyObject * obj1 = 0 ;
30989 char * kwnames[] = {
30990 (char *) "self",(char *) "context", NULL
30991 };
30992
30993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30995 if (!SWIG_IsOK(res1)) {
30996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30997 }
30998 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30999 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
31000 if (!SWIG_IsOK(res2)) {
31001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
31002 }
31003 {
31004 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
31005 if (PyErr_Occurred()) SWIG_fail;
31006 }
31007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
31008 return resultobj;
31009 fail:
31010 return NULL;
31011 }
31012
31013
31014 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31015 PyObject *resultobj = 0;
31016 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31017 void *arg2 = (void *) 0 ;
31018 wxGraphicsContext *result = 0 ;
31019 void *argp1 = 0 ;
31020 int res1 = 0 ;
31021 int res2 ;
31022 PyObject * obj0 = 0 ;
31023 PyObject * obj1 = 0 ;
31024 char * kwnames[] = {
31025 (char *) "self",(char *) "window", NULL
31026 };
31027
31028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
31029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31030 if (!SWIG_IsOK(res1)) {
31031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31032 }
31033 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31034 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
31035 if (!SWIG_IsOK(res2)) {
31036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
31037 }
31038 {
31039 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
31040 if (PyErr_Occurred()) SWIG_fail;
31041 }
31042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
31043 return resultobj;
31044 fail:
31045 return NULL;
31046 }
31047
31048
31049 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31050 PyObject *resultobj = 0;
31051 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31052 wxGraphicsPath result;
31053 void *argp1 = 0 ;
31054 int res1 = 0 ;
31055 PyObject *swig_obj[1] ;
31056
31057 if (!args) SWIG_fail;
31058 swig_obj[0] = args;
31059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31060 if (!SWIG_IsOK(res1)) {
31061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31062 }
31063 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31064 {
31065 result = (arg1)->CreatePath();
31066 if (PyErr_Occurred()) SWIG_fail;
31067 }
31068 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
31069 return resultobj;
31070 fail:
31071 return NULL;
31072 }
31073
31074
31075 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31076 PyObject *resultobj = 0;
31077 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31078 wxDouble arg2 = (wxDouble) 1.0 ;
31079 wxDouble arg3 = (wxDouble) 0.0 ;
31080 wxDouble arg4 = (wxDouble) 0.0 ;
31081 wxDouble arg5 = (wxDouble) 1.0 ;
31082 wxDouble arg6 = (wxDouble) 0.0 ;
31083 wxDouble arg7 = (wxDouble) 0.0 ;
31084 wxGraphicsMatrix result;
31085 void *argp1 = 0 ;
31086 int res1 = 0 ;
31087 double val2 ;
31088 int ecode2 = 0 ;
31089 double val3 ;
31090 int ecode3 = 0 ;
31091 double val4 ;
31092 int ecode4 = 0 ;
31093 double val5 ;
31094 int ecode5 = 0 ;
31095 double val6 ;
31096 int ecode6 = 0 ;
31097 double val7 ;
31098 int ecode7 = 0 ;
31099 PyObject * obj0 = 0 ;
31100 PyObject * obj1 = 0 ;
31101 PyObject * obj2 = 0 ;
31102 PyObject * obj3 = 0 ;
31103 PyObject * obj4 = 0 ;
31104 PyObject * obj5 = 0 ;
31105 PyObject * obj6 = 0 ;
31106 char * kwnames[] = {
31107 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
31108 };
31109
31110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31112 if (!SWIG_IsOK(res1)) {
31113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31114 }
31115 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31116 if (obj1) {
31117 ecode2 = SWIG_AsVal_double(obj1, &val2);
31118 if (!SWIG_IsOK(ecode2)) {
31119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
31120 }
31121 arg2 = static_cast< wxDouble >(val2);
31122 }
31123 if (obj2) {
31124 ecode3 = SWIG_AsVal_double(obj2, &val3);
31125 if (!SWIG_IsOK(ecode3)) {
31126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
31127 }
31128 arg3 = static_cast< wxDouble >(val3);
31129 }
31130 if (obj3) {
31131 ecode4 = SWIG_AsVal_double(obj3, &val4);
31132 if (!SWIG_IsOK(ecode4)) {
31133 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
31134 }
31135 arg4 = static_cast< wxDouble >(val4);
31136 }
31137 if (obj4) {
31138 ecode5 = SWIG_AsVal_double(obj4, &val5);
31139 if (!SWIG_IsOK(ecode5)) {
31140 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
31141 }
31142 arg5 = static_cast< wxDouble >(val5);
31143 }
31144 if (obj5) {
31145 ecode6 = SWIG_AsVal_double(obj5, &val6);
31146 if (!SWIG_IsOK(ecode6)) {
31147 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
31148 }
31149 arg6 = static_cast< wxDouble >(val6);
31150 }
31151 if (obj6) {
31152 ecode7 = SWIG_AsVal_double(obj6, &val7);
31153 if (!SWIG_IsOK(ecode7)) {
31154 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
31155 }
31156 arg7 = static_cast< wxDouble >(val7);
31157 }
31158 {
31159 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
31160 if (PyErr_Occurred()) SWIG_fail;
31161 }
31162 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
31163 return resultobj;
31164 fail:
31165 return NULL;
31166 }
31167
31168
31169 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31170 PyObject *resultobj = 0;
31171 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31172 wxPen *arg2 = 0 ;
31173 wxGraphicsPen result;
31174 void *argp1 = 0 ;
31175 int res1 = 0 ;
31176 void *argp2 = 0 ;
31177 int res2 = 0 ;
31178 PyObject * obj0 = 0 ;
31179 PyObject * obj1 = 0 ;
31180 char * kwnames[] = {
31181 (char *) "self",(char *) "pen", NULL
31182 };
31183
31184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
31185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31186 if (!SWIG_IsOK(res1)) {
31187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31188 }
31189 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31190 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
31191 if (!SWIG_IsOK(res2)) {
31192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31193 }
31194 if (!argp2) {
31195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31196 }
31197 arg2 = reinterpret_cast< wxPen * >(argp2);
31198 {
31199 result = (arg1)->CreatePen((wxPen const &)*arg2);
31200 if (PyErr_Occurred()) SWIG_fail;
31201 }
31202 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
31203 return resultobj;
31204 fail:
31205 return NULL;
31206 }
31207
31208
31209 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31210 PyObject *resultobj = 0;
31211 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31212 wxBrush *arg2 = 0 ;
31213 wxGraphicsBrush result;
31214 void *argp1 = 0 ;
31215 int res1 = 0 ;
31216 void *argp2 = 0 ;
31217 int res2 = 0 ;
31218 PyObject * obj0 = 0 ;
31219 PyObject * obj1 = 0 ;
31220 char * kwnames[] = {
31221 (char *) "self",(char *) "brush", NULL
31222 };
31223
31224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31226 if (!SWIG_IsOK(res1)) {
31227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31228 }
31229 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31230 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31231 if (!SWIG_IsOK(res2)) {
31232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31233 }
31234 if (!argp2) {
31235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31236 }
31237 arg2 = reinterpret_cast< wxBrush * >(argp2);
31238 {
31239 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
31240 if (PyErr_Occurred()) SWIG_fail;
31241 }
31242 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31243 return resultobj;
31244 fail:
31245 return NULL;
31246 }
31247
31248
31249 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31250 PyObject *resultobj = 0;
31251 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31252 wxDouble arg2 ;
31253 wxDouble arg3 ;
31254 wxDouble arg4 ;
31255 wxDouble arg5 ;
31256 wxColour *arg6 = 0 ;
31257 wxColour *arg7 = 0 ;
31258 wxGraphicsBrush result;
31259 void *argp1 = 0 ;
31260 int res1 = 0 ;
31261 double val2 ;
31262 int ecode2 = 0 ;
31263 double val3 ;
31264 int ecode3 = 0 ;
31265 double val4 ;
31266 int ecode4 = 0 ;
31267 double val5 ;
31268 int ecode5 = 0 ;
31269 wxColour temp6 ;
31270 wxColour temp7 ;
31271 PyObject * obj0 = 0 ;
31272 PyObject * obj1 = 0 ;
31273 PyObject * obj2 = 0 ;
31274 PyObject * obj3 = 0 ;
31275 PyObject * obj4 = 0 ;
31276 PyObject * obj5 = 0 ;
31277 PyObject * obj6 = 0 ;
31278 char * kwnames[] = {
31279 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
31280 };
31281
31282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31284 if (!SWIG_IsOK(res1)) {
31285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31286 }
31287 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31288 ecode2 = SWIG_AsVal_double(obj1, &val2);
31289 if (!SWIG_IsOK(ecode2)) {
31290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31291 }
31292 arg2 = static_cast< wxDouble >(val2);
31293 ecode3 = SWIG_AsVal_double(obj2, &val3);
31294 if (!SWIG_IsOK(ecode3)) {
31295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31296 }
31297 arg3 = static_cast< wxDouble >(val3);
31298 ecode4 = SWIG_AsVal_double(obj3, &val4);
31299 if (!SWIG_IsOK(ecode4)) {
31300 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31301 }
31302 arg4 = static_cast< wxDouble >(val4);
31303 ecode5 = SWIG_AsVal_double(obj4, &val5);
31304 if (!SWIG_IsOK(ecode5)) {
31305 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31306 }
31307 arg5 = static_cast< wxDouble >(val5);
31308 {
31309 arg6 = &temp6;
31310 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
31311 }
31312 {
31313 arg7 = &temp7;
31314 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31315 }
31316 {
31317 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
31318 if (PyErr_Occurred()) SWIG_fail;
31319 }
31320 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31321 return resultobj;
31322 fail:
31323 return NULL;
31324 }
31325
31326
31327 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31328 PyObject *resultobj = 0;
31329 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31330 wxDouble arg2 ;
31331 wxDouble arg3 ;
31332 wxDouble arg4 ;
31333 wxDouble arg5 ;
31334 wxDouble arg6 ;
31335 wxColour *arg7 = 0 ;
31336 wxColour *arg8 = 0 ;
31337 wxGraphicsBrush result;
31338 void *argp1 = 0 ;
31339 int res1 = 0 ;
31340 double val2 ;
31341 int ecode2 = 0 ;
31342 double val3 ;
31343 int ecode3 = 0 ;
31344 double val4 ;
31345 int ecode4 = 0 ;
31346 double val5 ;
31347 int ecode5 = 0 ;
31348 double val6 ;
31349 int ecode6 = 0 ;
31350 wxColour temp7 ;
31351 wxColour temp8 ;
31352 PyObject * obj0 = 0 ;
31353 PyObject * obj1 = 0 ;
31354 PyObject * obj2 = 0 ;
31355 PyObject * obj3 = 0 ;
31356 PyObject * obj4 = 0 ;
31357 PyObject * obj5 = 0 ;
31358 PyObject * obj6 = 0 ;
31359 PyObject * obj7 = 0 ;
31360 char * kwnames[] = {
31361 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
31362 };
31363
31364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31366 if (!SWIG_IsOK(res1)) {
31367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31368 }
31369 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31370 ecode2 = SWIG_AsVal_double(obj1, &val2);
31371 if (!SWIG_IsOK(ecode2)) {
31372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31373 }
31374 arg2 = static_cast< wxDouble >(val2);
31375 ecode3 = SWIG_AsVal_double(obj2, &val3);
31376 if (!SWIG_IsOK(ecode3)) {
31377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31378 }
31379 arg3 = static_cast< wxDouble >(val3);
31380 ecode4 = SWIG_AsVal_double(obj3, &val4);
31381 if (!SWIG_IsOK(ecode4)) {
31382 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31383 }
31384 arg4 = static_cast< wxDouble >(val4);
31385 ecode5 = SWIG_AsVal_double(obj4, &val5);
31386 if (!SWIG_IsOK(ecode5)) {
31387 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31388 }
31389 arg5 = static_cast< wxDouble >(val5);
31390 ecode6 = SWIG_AsVal_double(obj5, &val6);
31391 if (!SWIG_IsOK(ecode6)) {
31392 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
31393 }
31394 arg6 = static_cast< wxDouble >(val6);
31395 {
31396 arg7 = &temp7;
31397 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31398 }
31399 {
31400 arg8 = &temp8;
31401 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
31402 }
31403 {
31404 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
31405 if (PyErr_Occurred()) SWIG_fail;
31406 }
31407 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31408 return resultobj;
31409 fail:
31410 return NULL;
31411 }
31412
31413
31414 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31415 PyObject *resultobj = 0;
31416 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31417 wxFont *arg2 = 0 ;
31418 wxColour const &arg3_defvalue = *wxBLACK ;
31419 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
31420 wxGraphicsFont result;
31421 void *argp1 = 0 ;
31422 int res1 = 0 ;
31423 void *argp2 = 0 ;
31424 int res2 = 0 ;
31425 wxColour temp3 ;
31426 PyObject * obj0 = 0 ;
31427 PyObject * obj1 = 0 ;
31428 PyObject * obj2 = 0 ;
31429 char * kwnames[] = {
31430 (char *) "self",(char *) "font",(char *) "col", NULL
31431 };
31432
31433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31435 if (!SWIG_IsOK(res1)) {
31436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31437 }
31438 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31439 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31440 if (!SWIG_IsOK(res2)) {
31441 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31442 }
31443 if (!argp2) {
31444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31445 }
31446 arg2 = reinterpret_cast< wxFont * >(argp2);
31447 if (obj2) {
31448 {
31449 arg3 = &temp3;
31450 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31451 }
31452 }
31453 {
31454 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
31455 if (PyErr_Occurred()) SWIG_fail;
31456 }
31457 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
31458 return resultobj;
31459 fail:
31460 return NULL;
31461 }
31462
31463
31464 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31465 PyObject *obj;
31466 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31467 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
31468 return SWIG_Py_Void();
31469 }
31470
31471 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31472 PyObject *resultobj = 0;
31473 wxWindowDC *arg1 = 0 ;
31474 wxGCDC *result = 0 ;
31475 void *argp1 = 0 ;
31476 int res1 = 0 ;
31477
31478 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
31480 if (!SWIG_IsOK(res1)) {
31481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31482 }
31483 if (!argp1) {
31484 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31485 }
31486 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
31487 {
31488 if (!wxPyCheckForApp()) SWIG_fail;
31489 PyThreadState* __tstate = wxPyBeginAllowThreads();
31490 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
31491 wxPyEndAllowThreads(__tstate);
31492 if (PyErr_Occurred()) SWIG_fail;
31493 }
31494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31495 return resultobj;
31496 fail:
31497 return NULL;
31498 }
31499
31500
31501 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31502 PyObject *resultobj = 0;
31503 wxWindow *arg1 = (wxWindow *) 0 ;
31504 wxGCDC *result = 0 ;
31505 void *argp1 = 0 ;
31506 int res1 = 0 ;
31507
31508 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31510 if (!SWIG_IsOK(res1)) {
31511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
31512 }
31513 arg1 = reinterpret_cast< wxWindow * >(argp1);
31514 {
31515 if (!wxPyCheckForApp()) SWIG_fail;
31516 PyThreadState* __tstate = wxPyBeginAllowThreads();
31517 result = (wxGCDC *)new wxGCDC(arg1);
31518 wxPyEndAllowThreads(__tstate);
31519 if (PyErr_Occurred()) SWIG_fail;
31520 }
31521 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31522 return resultobj;
31523 fail:
31524 return NULL;
31525 }
31526
31527
31528 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
31529 int argc;
31530 PyObject *argv[2];
31531
31532 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
31533 --argc;
31534 if (argc == 1) {
31535 int _v = 0;
31536 {
31537 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
31538 _v = SWIG_CheckState(res);
31539 }
31540 if (!_v) goto check_1;
31541 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
31542 }
31543 check_1:
31544
31545 if (argc == 1) {
31546 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
31547 }
31548
31549 fail:
31550 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
31551 return NULL;
31552 }
31553
31554
31555 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31556 PyObject *resultobj = 0;
31557 wxGCDC *arg1 = (wxGCDC *) 0 ;
31558 void *argp1 = 0 ;
31559 int res1 = 0 ;
31560 PyObject *swig_obj[1] ;
31561
31562 if (!args) SWIG_fail;
31563 swig_obj[0] = args;
31564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
31565 if (!SWIG_IsOK(res1)) {
31566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
31567 }
31568 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31569 {
31570 delete arg1;
31571
31572 if (PyErr_Occurred()) SWIG_fail;
31573 }
31574 resultobj = SWIG_Py_Void();
31575 return resultobj;
31576 fail:
31577 return NULL;
31578 }
31579
31580
31581 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31582 PyObject *resultobj = 0;
31583 wxGCDC *arg1 = (wxGCDC *) 0 ;
31584 wxGraphicsContext *result = 0 ;
31585 void *argp1 = 0 ;
31586 int res1 = 0 ;
31587 PyObject *swig_obj[1] ;
31588
31589 if (!args) SWIG_fail;
31590 swig_obj[0] = args;
31591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31592 if (!SWIG_IsOK(res1)) {
31593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31594 }
31595 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31596 {
31597 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
31598 if (PyErr_Occurred()) SWIG_fail;
31599 }
31600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31601 return resultobj;
31602 fail:
31603 return NULL;
31604 }
31605
31606
31607 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31608 PyObject *resultobj = 0;
31609 wxGCDC *arg1 = (wxGCDC *) 0 ;
31610 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
31611 void *argp1 = 0 ;
31612 int res1 = 0 ;
31613 void *argp2 = 0 ;
31614 int res2 = 0 ;
31615 PyObject * obj0 = 0 ;
31616 PyObject * obj1 = 0 ;
31617 char * kwnames[] = {
31618 (char *) "self",(char *) "ctx", NULL
31619 };
31620
31621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
31622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31623 if (!SWIG_IsOK(res1)) {
31624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31625 }
31626 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31627 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31628 if (!SWIG_IsOK(res2)) {
31629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
31630 }
31631 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
31632 {
31633 (arg1)->SetGraphicsContext(arg2);
31634 if (PyErr_Occurred()) SWIG_fail;
31635 }
31636 resultobj = SWIG_Py_Void();
31637 return resultobj;
31638 fail:
31639 return NULL;
31640 }
31641
31642
31643 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31644 PyObject *obj;
31645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31646 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
31647 return SWIG_Py_Void();
31648 }
31649
31650 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31651 return SWIG_Python_InitShadowInstance(args);
31652 }
31653
31654 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31655 PyObject *resultobj = 0;
31656 wxOverlay *result = 0 ;
31657
31658 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
31659 {
31660 PyThreadState* __tstate = wxPyBeginAllowThreads();
31661 result = (wxOverlay *)new wxOverlay();
31662 wxPyEndAllowThreads(__tstate);
31663 if (PyErr_Occurred()) SWIG_fail;
31664 }
31665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31666 return resultobj;
31667 fail:
31668 return NULL;
31669 }
31670
31671
31672 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31673 PyObject *resultobj = 0;
31674 wxOverlay *arg1 = (wxOverlay *) 0 ;
31675 void *argp1 = 0 ;
31676 int res1 = 0 ;
31677 PyObject *swig_obj[1] ;
31678
31679 if (!args) SWIG_fail;
31680 swig_obj[0] = args;
31681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31682 if (!SWIG_IsOK(res1)) {
31683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31684 }
31685 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31686 {
31687 PyThreadState* __tstate = wxPyBeginAllowThreads();
31688 delete arg1;
31689
31690 wxPyEndAllowThreads(__tstate);
31691 if (PyErr_Occurred()) SWIG_fail;
31692 }
31693 resultobj = SWIG_Py_Void();
31694 return resultobj;
31695 fail:
31696 return NULL;
31697 }
31698
31699
31700 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31701 PyObject *resultobj = 0;
31702 wxOverlay *arg1 = (wxOverlay *) 0 ;
31703 void *argp1 = 0 ;
31704 int res1 = 0 ;
31705 PyObject *swig_obj[1] ;
31706
31707 if (!args) SWIG_fail;
31708 swig_obj[0] = args;
31709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31710 if (!SWIG_IsOK(res1)) {
31711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31712 }
31713 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31714 {
31715 PyThreadState* __tstate = wxPyBeginAllowThreads();
31716 (arg1)->Reset();
31717 wxPyEndAllowThreads(__tstate);
31718 if (PyErr_Occurred()) SWIG_fail;
31719 }
31720 resultobj = SWIG_Py_Void();
31721 return resultobj;
31722 fail:
31723 return NULL;
31724 }
31725
31726
31727 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31728 PyObject *obj;
31729 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31730 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31731 return SWIG_Py_Void();
31732 }
31733
31734 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31735 return SWIG_Python_InitShadowInstance(args);
31736 }
31737
31738 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31739 PyObject *resultobj = 0;
31740 wxOverlay *arg1 = 0 ;
31741 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31742 int arg3 ;
31743 int arg4 ;
31744 int arg5 ;
31745 int arg6 ;
31746 wxDCOverlay *result = 0 ;
31747 void *argp1 = 0 ;
31748 int res1 = 0 ;
31749 void *argp2 = 0 ;
31750 int res2 = 0 ;
31751 int val3 ;
31752 int ecode3 = 0 ;
31753 int val4 ;
31754 int ecode4 = 0 ;
31755 int val5 ;
31756 int ecode5 = 0 ;
31757 int val6 ;
31758 int ecode6 = 0 ;
31759
31760 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31762 if (!SWIG_IsOK(res1)) {
31763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31764 }
31765 if (!argp1) {
31766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31767 }
31768 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31769 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31770 if (!SWIG_IsOK(res2)) {
31771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31772 }
31773 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31774 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31775 if (!SWIG_IsOK(ecode3)) {
31776 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31777 }
31778 arg3 = static_cast< int >(val3);
31779 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31780 if (!SWIG_IsOK(ecode4)) {
31781 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31782 }
31783 arg4 = static_cast< int >(val4);
31784 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31785 if (!SWIG_IsOK(ecode5)) {
31786 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31787 }
31788 arg5 = static_cast< int >(val5);
31789 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31790 if (!SWIG_IsOK(ecode6)) {
31791 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31792 }
31793 arg6 = static_cast< int >(val6);
31794 {
31795 PyThreadState* __tstate = wxPyBeginAllowThreads();
31796 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31797 wxPyEndAllowThreads(__tstate);
31798 if (PyErr_Occurred()) SWIG_fail;
31799 }
31800 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31801 return resultobj;
31802 fail:
31803 return NULL;
31804 }
31805
31806
31807 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31808 PyObject *resultobj = 0;
31809 wxOverlay *arg1 = 0 ;
31810 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31811 wxDCOverlay *result = 0 ;
31812 void *argp1 = 0 ;
31813 int res1 = 0 ;
31814 void *argp2 = 0 ;
31815 int res2 = 0 ;
31816
31817 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31819 if (!SWIG_IsOK(res1)) {
31820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31821 }
31822 if (!argp1) {
31823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31824 }
31825 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31826 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31827 if (!SWIG_IsOK(res2)) {
31828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31829 }
31830 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31831 {
31832 PyThreadState* __tstate = wxPyBeginAllowThreads();
31833 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31834 wxPyEndAllowThreads(__tstate);
31835 if (PyErr_Occurred()) SWIG_fail;
31836 }
31837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31838 return resultobj;
31839 fail:
31840 return NULL;
31841 }
31842
31843
31844 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31845 int argc;
31846 PyObject *argv[7];
31847
31848 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31849 --argc;
31850 if (argc == 2) {
31851 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31852 }
31853 if (argc == 6) {
31854 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31855 }
31856
31857 fail:
31858 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31859 return NULL;
31860 }
31861
31862
31863 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31864 PyObject *resultobj = 0;
31865 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31866 void *argp1 = 0 ;
31867 int res1 = 0 ;
31868 PyObject *swig_obj[1] ;
31869
31870 if (!args) SWIG_fail;
31871 swig_obj[0] = args;
31872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31873 if (!SWIG_IsOK(res1)) {
31874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31875 }
31876 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31877 {
31878 PyThreadState* __tstate = wxPyBeginAllowThreads();
31879 delete arg1;
31880
31881 wxPyEndAllowThreads(__tstate);
31882 if (PyErr_Occurred()) SWIG_fail;
31883 }
31884 resultobj = SWIG_Py_Void();
31885 return resultobj;
31886 fail:
31887 return NULL;
31888 }
31889
31890
31891 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31892 PyObject *resultobj = 0;
31893 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31894 void *argp1 = 0 ;
31895 int res1 = 0 ;
31896 PyObject *swig_obj[1] ;
31897
31898 if (!args) SWIG_fail;
31899 swig_obj[0] = args;
31900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31901 if (!SWIG_IsOK(res1)) {
31902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31903 }
31904 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31905 {
31906 PyThreadState* __tstate = wxPyBeginAllowThreads();
31907 (arg1)->Clear();
31908 wxPyEndAllowThreads(__tstate);
31909 if (PyErr_Occurred()) SWIG_fail;
31910 }
31911 resultobj = SWIG_Py_Void();
31912 return resultobj;
31913 fail:
31914 return NULL;
31915 }
31916
31917
31918 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31919 PyObject *obj;
31920 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31921 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31922 return SWIG_Py_Void();
31923 }
31924
31925 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31926 return SWIG_Python_InitShadowInstance(args);
31927 }
31928
31929 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31930 PyObject *resultobj = 0;
31931 int arg1 ;
31932 int arg2 ;
31933 int arg3 = (int) true ;
31934 int arg4 = (int) 1 ;
31935 wxImageList *result = 0 ;
31936 int val1 ;
31937 int ecode1 = 0 ;
31938 int val2 ;
31939 int ecode2 = 0 ;
31940 int val3 ;
31941 int ecode3 = 0 ;
31942 int val4 ;
31943 int ecode4 = 0 ;
31944 PyObject * obj0 = 0 ;
31945 PyObject * obj1 = 0 ;
31946 PyObject * obj2 = 0 ;
31947 PyObject * obj3 = 0 ;
31948 char * kwnames[] = {
31949 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31950 };
31951
31952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31953 ecode1 = SWIG_AsVal_int(obj0, &val1);
31954 if (!SWIG_IsOK(ecode1)) {
31955 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31956 }
31957 arg1 = static_cast< int >(val1);
31958 ecode2 = SWIG_AsVal_int(obj1, &val2);
31959 if (!SWIG_IsOK(ecode2)) {
31960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31961 }
31962 arg2 = static_cast< int >(val2);
31963 if (obj2) {
31964 ecode3 = SWIG_AsVal_int(obj2, &val3);
31965 if (!SWIG_IsOK(ecode3)) {
31966 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31967 }
31968 arg3 = static_cast< int >(val3);
31969 }
31970 if (obj3) {
31971 ecode4 = SWIG_AsVal_int(obj3, &val4);
31972 if (!SWIG_IsOK(ecode4)) {
31973 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31974 }
31975 arg4 = static_cast< int >(val4);
31976 }
31977 {
31978 if (!wxPyCheckForApp()) SWIG_fail;
31979 PyThreadState* __tstate = wxPyBeginAllowThreads();
31980 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31981 wxPyEndAllowThreads(__tstate);
31982 if (PyErr_Occurred()) SWIG_fail;
31983 }
31984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
31985 return resultobj;
31986 fail:
31987 return NULL;
31988 }
31989
31990
31991 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31992 PyObject *resultobj = 0;
31993 wxImageList *arg1 = (wxImageList *) 0 ;
31994 void *argp1 = 0 ;
31995 int res1 = 0 ;
31996 PyObject *swig_obj[1] ;
31997
31998 if (!args) SWIG_fail;
31999 swig_obj[0] = args;
32000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
32001 if (!SWIG_IsOK(res1)) {
32002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
32003 }
32004 arg1 = reinterpret_cast< wxImageList * >(argp1);
32005 {
32006 PyThreadState* __tstate = wxPyBeginAllowThreads();
32007 delete arg1;
32008
32009 wxPyEndAllowThreads(__tstate);
32010 if (PyErr_Occurred()) SWIG_fail;
32011 }
32012 resultobj = SWIG_Py_Void();
32013 return resultobj;
32014 fail:
32015 return NULL;
32016 }
32017
32018
32019 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32020 PyObject *resultobj = 0;
32021 wxImageList *arg1 = (wxImageList *) 0 ;
32022 wxBitmap *arg2 = 0 ;
32023 wxBitmap const &arg3_defvalue = wxNullBitmap ;
32024 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
32025 int result;
32026 void *argp1 = 0 ;
32027 int res1 = 0 ;
32028 void *argp2 = 0 ;
32029 int res2 = 0 ;
32030 void *argp3 = 0 ;
32031 int res3 = 0 ;
32032 PyObject * obj0 = 0 ;
32033 PyObject * obj1 = 0 ;
32034 PyObject * obj2 = 0 ;
32035 char * kwnames[] = {
32036 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
32037 };
32038
32039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32041 if (!SWIG_IsOK(res1)) {
32042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
32043 }
32044 arg1 = reinterpret_cast< wxImageList * >(argp1);
32045 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
32046 if (!SWIG_IsOK(res2)) {
32047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32048 }
32049 if (!argp2) {
32050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32051 }
32052 arg2 = reinterpret_cast< wxBitmap * >(argp2);
32053 if (obj2) {
32054 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32055 if (!SWIG_IsOK(res3)) {
32056 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32057 }
32058 if (!argp3) {
32059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32060 }
32061 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32062 }
32063 {
32064 PyThreadState* __tstate = wxPyBeginAllowThreads();
32065 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
32066 wxPyEndAllowThreads(__tstate);
32067 if (PyErr_Occurred()) SWIG_fail;
32068 }
32069 resultobj = SWIG_From_int(static_cast< int >(result));
32070 return resultobj;
32071 fail:
32072 return NULL;
32073 }
32074
32075
32076 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32077 PyObject *resultobj = 0;
32078 wxImageList *arg1 = (wxImageList *) 0 ;
32079 wxBitmap *arg2 = 0 ;
32080 wxColour *arg3 = 0 ;
32081 int result;
32082 void *argp1 = 0 ;
32083 int res1 = 0 ;
32084 void *argp2 = 0 ;
32085 int res2 = 0 ;
32086 wxColour temp3 ;
32087 PyObject * obj0 = 0 ;
32088 PyObject * obj1 = 0 ;
32089 PyObject * obj2 = 0 ;
32090 char * kwnames[] = {
32091 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
32092 };
32093
32094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32096 if (!SWIG_IsOK(res1)) {
32097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
32098 }
32099 arg1 = reinterpret_cast< wxImageList * >(argp1);
32100 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
32101 if (!SWIG_IsOK(res2)) {
32102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32103 }
32104 if (!argp2) {
32105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32106 }
32107 arg2 = reinterpret_cast< wxBitmap * >(argp2);
32108 {
32109 arg3 = &temp3;
32110 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32111 }
32112 {
32113 PyThreadState* __tstate = wxPyBeginAllowThreads();
32114 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
32115 wxPyEndAllowThreads(__tstate);
32116 if (PyErr_Occurred()) SWIG_fail;
32117 }
32118 resultobj = SWIG_From_int(static_cast< int >(result));
32119 return resultobj;
32120 fail:
32121 return NULL;
32122 }
32123
32124
32125 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32126 PyObject *resultobj = 0;
32127 wxImageList *arg1 = (wxImageList *) 0 ;
32128 wxIcon *arg2 = 0 ;
32129 int result;
32130 void *argp1 = 0 ;
32131 int res1 = 0 ;
32132 void *argp2 = 0 ;
32133 int res2 = 0 ;
32134 PyObject * obj0 = 0 ;
32135 PyObject * obj1 = 0 ;
32136 char * kwnames[] = {
32137 (char *) "self",(char *) "icon", NULL
32138 };
32139
32140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
32141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32142 if (!SWIG_IsOK(res1)) {
32143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
32144 }
32145 arg1 = reinterpret_cast< wxImageList * >(argp1);
32146 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
32147 if (!SWIG_IsOK(res2)) {
32148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32149 }
32150 if (!argp2) {
32151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32152 }
32153 arg2 = reinterpret_cast< wxIcon * >(argp2);
32154 {
32155 PyThreadState* __tstate = wxPyBeginAllowThreads();
32156 result = (int)(arg1)->Add((wxIcon const &)*arg2);
32157 wxPyEndAllowThreads(__tstate);
32158 if (PyErr_Occurred()) SWIG_fail;
32159 }
32160 resultobj = SWIG_From_int(static_cast< int >(result));
32161 return resultobj;
32162 fail:
32163 return NULL;
32164 }
32165
32166
32167 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32168 PyObject *resultobj = 0;
32169 wxImageList *arg1 = (wxImageList *) 0 ;
32170 int arg2 ;
32171 SwigValueWrapper<wxBitmap > result;
32172 void *argp1 = 0 ;
32173 int res1 = 0 ;
32174 int val2 ;
32175 int ecode2 = 0 ;
32176 PyObject * obj0 = 0 ;
32177 PyObject * obj1 = 0 ;
32178 char * kwnames[] = {
32179 (char *) "self",(char *) "index", NULL
32180 };
32181
32182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
32183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32184 if (!SWIG_IsOK(res1)) {
32185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
32186 }
32187 arg1 = reinterpret_cast< wxImageList * >(argp1);
32188 ecode2 = SWIG_AsVal_int(obj1, &val2);
32189 if (!SWIG_IsOK(ecode2)) {
32190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
32191 }
32192 arg2 = static_cast< int >(val2);
32193 {
32194 PyThreadState* __tstate = wxPyBeginAllowThreads();
32195 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
32196 wxPyEndAllowThreads(__tstate);
32197 if (PyErr_Occurred()) SWIG_fail;
32198 }
32199 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
32200 return resultobj;
32201 fail:
32202 return NULL;
32203 }
32204
32205
32206 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32207 PyObject *resultobj = 0;
32208 wxImageList *arg1 = (wxImageList *) 0 ;
32209 int arg2 ;
32210 wxIcon result;
32211 void *argp1 = 0 ;
32212 int res1 = 0 ;
32213 int val2 ;
32214 int ecode2 = 0 ;
32215 PyObject * obj0 = 0 ;
32216 PyObject * obj1 = 0 ;
32217 char * kwnames[] = {
32218 (char *) "self",(char *) "index", NULL
32219 };
32220
32221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
32222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32223 if (!SWIG_IsOK(res1)) {
32224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
32225 }
32226 arg1 = reinterpret_cast< wxImageList * >(argp1);
32227 ecode2 = SWIG_AsVal_int(obj1, &val2);
32228 if (!SWIG_IsOK(ecode2)) {
32229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
32230 }
32231 arg2 = static_cast< int >(val2);
32232 {
32233 PyThreadState* __tstate = wxPyBeginAllowThreads();
32234 result = ((wxImageList const *)arg1)->GetIcon(arg2);
32235 wxPyEndAllowThreads(__tstate);
32236 if (PyErr_Occurred()) SWIG_fail;
32237 }
32238 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
32239 return resultobj;
32240 fail:
32241 return NULL;
32242 }
32243
32244
32245 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32246 PyObject *resultobj = 0;
32247 wxImageList *arg1 = (wxImageList *) 0 ;
32248 int arg2 ;
32249 wxBitmap *arg3 = 0 ;
32250 wxBitmap const &arg4_defvalue = wxNullBitmap ;
32251 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
32252 bool result;
32253 void *argp1 = 0 ;
32254 int res1 = 0 ;
32255 int val2 ;
32256 int ecode2 = 0 ;
32257 void *argp3 = 0 ;
32258 int res3 = 0 ;
32259 void *argp4 = 0 ;
32260 int res4 = 0 ;
32261 PyObject * obj0 = 0 ;
32262 PyObject * obj1 = 0 ;
32263 PyObject * obj2 = 0 ;
32264 PyObject * obj3 = 0 ;
32265 char * kwnames[] = {
32266 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
32267 };
32268
32269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32271 if (!SWIG_IsOK(res1)) {
32272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
32273 }
32274 arg1 = reinterpret_cast< wxImageList * >(argp1);
32275 ecode2 = SWIG_AsVal_int(obj1, &val2);
32276 if (!SWIG_IsOK(ecode2)) {
32277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
32278 }
32279 arg2 = static_cast< int >(val2);
32280 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32281 if (!SWIG_IsOK(res3)) {
32282 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32283 }
32284 if (!argp3) {
32285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32286 }
32287 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32288 if (obj3) {
32289 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
32290 if (!SWIG_IsOK(res4)) {
32291 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32292 }
32293 if (!argp4) {
32294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32295 }
32296 arg4 = reinterpret_cast< wxBitmap * >(argp4);
32297 }
32298 {
32299 PyThreadState* __tstate = wxPyBeginAllowThreads();
32300 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
32301 wxPyEndAllowThreads(__tstate);
32302 if (PyErr_Occurred()) SWIG_fail;
32303 }
32304 {
32305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32306 }
32307 return resultobj;
32308 fail:
32309 return NULL;
32310 }
32311
32312
32313 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32314 PyObject *resultobj = 0;
32315 wxImageList *arg1 = (wxImageList *) 0 ;
32316 int arg2 ;
32317 wxDC *arg3 = 0 ;
32318 int arg4 ;
32319 int arg5 ;
32320 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
32321 bool arg7 = (bool) (bool)false ;
32322 bool result;
32323 void *argp1 = 0 ;
32324 int res1 = 0 ;
32325 int val2 ;
32326 int ecode2 = 0 ;
32327 void *argp3 = 0 ;
32328 int res3 = 0 ;
32329 int val4 ;
32330 int ecode4 = 0 ;
32331 int val5 ;
32332 int ecode5 = 0 ;
32333 int val6 ;
32334 int ecode6 = 0 ;
32335 bool val7 ;
32336 int ecode7 = 0 ;
32337 PyObject * obj0 = 0 ;
32338 PyObject * obj1 = 0 ;
32339 PyObject * obj2 = 0 ;
32340 PyObject * obj3 = 0 ;
32341 PyObject * obj4 = 0 ;
32342 PyObject * obj5 = 0 ;
32343 PyObject * obj6 = 0 ;
32344 char * kwnames[] = {
32345 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
32346 };
32347
32348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32350 if (!SWIG_IsOK(res1)) {
32351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
32352 }
32353 arg1 = reinterpret_cast< wxImageList * >(argp1);
32354 ecode2 = SWIG_AsVal_int(obj1, &val2);
32355 if (!SWIG_IsOK(ecode2)) {
32356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
32357 }
32358 arg2 = static_cast< int >(val2);
32359 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32360 if (!SWIG_IsOK(res3)) {
32361 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32362 }
32363 if (!argp3) {
32364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32365 }
32366 arg3 = reinterpret_cast< wxDC * >(argp3);
32367 ecode4 = SWIG_AsVal_int(obj3, &val4);
32368 if (!SWIG_IsOK(ecode4)) {
32369 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
32370 }
32371 arg4 = static_cast< int >(val4);
32372 ecode5 = SWIG_AsVal_int(obj4, &val5);
32373 if (!SWIG_IsOK(ecode5)) {
32374 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
32375 }
32376 arg5 = static_cast< int >(val5);
32377 if (obj5) {
32378 ecode6 = SWIG_AsVal_int(obj5, &val6);
32379 if (!SWIG_IsOK(ecode6)) {
32380 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
32381 }
32382 arg6 = static_cast< int >(val6);
32383 }
32384 if (obj6) {
32385 ecode7 = SWIG_AsVal_bool(obj6, &val7);
32386 if (!SWIG_IsOK(ecode7)) {
32387 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
32388 }
32389 arg7 = static_cast< bool >(val7);
32390 }
32391 {
32392 PyThreadState* __tstate = wxPyBeginAllowThreads();
32393 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
32394 wxPyEndAllowThreads(__tstate);
32395 if (PyErr_Occurred()) SWIG_fail;
32396 }
32397 {
32398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32399 }
32400 return resultobj;
32401 fail:
32402 return NULL;
32403 }
32404
32405
32406 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32407 PyObject *resultobj = 0;
32408 wxImageList *arg1 = (wxImageList *) 0 ;
32409 int result;
32410 void *argp1 = 0 ;
32411 int res1 = 0 ;
32412 PyObject *swig_obj[1] ;
32413
32414 if (!args) SWIG_fail;
32415 swig_obj[0] = args;
32416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32417 if (!SWIG_IsOK(res1)) {
32418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
32419 }
32420 arg1 = reinterpret_cast< wxImageList * >(argp1);
32421 {
32422 PyThreadState* __tstate = wxPyBeginAllowThreads();
32423 result = (int)(arg1)->GetImageCount();
32424 wxPyEndAllowThreads(__tstate);
32425 if (PyErr_Occurred()) SWIG_fail;
32426 }
32427 resultobj = SWIG_From_int(static_cast< int >(result));
32428 return resultobj;
32429 fail:
32430 return NULL;
32431 }
32432
32433
32434 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32435 PyObject *resultobj = 0;
32436 wxImageList *arg1 = (wxImageList *) 0 ;
32437 int arg2 ;
32438 bool result;
32439 void *argp1 = 0 ;
32440 int res1 = 0 ;
32441 int val2 ;
32442 int ecode2 = 0 ;
32443 PyObject * obj0 = 0 ;
32444 PyObject * obj1 = 0 ;
32445 char * kwnames[] = {
32446 (char *) "self",(char *) "index", NULL
32447 };
32448
32449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
32450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32451 if (!SWIG_IsOK(res1)) {
32452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
32453 }
32454 arg1 = reinterpret_cast< wxImageList * >(argp1);
32455 ecode2 = SWIG_AsVal_int(obj1, &val2);
32456 if (!SWIG_IsOK(ecode2)) {
32457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
32458 }
32459 arg2 = static_cast< int >(val2);
32460 {
32461 PyThreadState* __tstate = wxPyBeginAllowThreads();
32462 result = (bool)(arg1)->Remove(arg2);
32463 wxPyEndAllowThreads(__tstate);
32464 if (PyErr_Occurred()) SWIG_fail;
32465 }
32466 {
32467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32468 }
32469 return resultobj;
32470 fail:
32471 return NULL;
32472 }
32473
32474
32475 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32476 PyObject *resultobj = 0;
32477 wxImageList *arg1 = (wxImageList *) 0 ;
32478 bool result;
32479 void *argp1 = 0 ;
32480 int res1 = 0 ;
32481 PyObject *swig_obj[1] ;
32482
32483 if (!args) SWIG_fail;
32484 swig_obj[0] = args;
32485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32486 if (!SWIG_IsOK(res1)) {
32487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
32488 }
32489 arg1 = reinterpret_cast< wxImageList * >(argp1);
32490 {
32491 PyThreadState* __tstate = wxPyBeginAllowThreads();
32492 result = (bool)(arg1)->RemoveAll();
32493 wxPyEndAllowThreads(__tstate);
32494 if (PyErr_Occurred()) SWIG_fail;
32495 }
32496 {
32497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32498 }
32499 return resultobj;
32500 fail:
32501 return NULL;
32502 }
32503
32504
32505 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32506 PyObject *resultobj = 0;
32507 wxImageList *arg1 = (wxImageList *) 0 ;
32508 int arg2 ;
32509 int *arg3 = 0 ;
32510 int *arg4 = 0 ;
32511 void *argp1 = 0 ;
32512 int res1 = 0 ;
32513 int val2 ;
32514 int ecode2 = 0 ;
32515 int temp3 ;
32516 int res3 = SWIG_TMPOBJ ;
32517 int temp4 ;
32518 int res4 = SWIG_TMPOBJ ;
32519 PyObject * obj0 = 0 ;
32520 PyObject * obj1 = 0 ;
32521 char * kwnames[] = {
32522 (char *) "self",(char *) "index", NULL
32523 };
32524
32525 arg3 = &temp3;
32526 arg4 = &temp4;
32527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
32528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32529 if (!SWIG_IsOK(res1)) {
32530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
32531 }
32532 arg1 = reinterpret_cast< wxImageList * >(argp1);
32533 ecode2 = SWIG_AsVal_int(obj1, &val2);
32534 if (!SWIG_IsOK(ecode2)) {
32535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
32536 }
32537 arg2 = static_cast< int >(val2);
32538 {
32539 PyThreadState* __tstate = wxPyBeginAllowThreads();
32540 (arg1)->GetSize(arg2,*arg3,*arg4);
32541 wxPyEndAllowThreads(__tstate);
32542 if (PyErr_Occurred()) SWIG_fail;
32543 }
32544 resultobj = SWIG_Py_Void();
32545 if (SWIG_IsTmpObj(res3)) {
32546 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
32547 } else {
32548 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32549 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
32550 }
32551 if (SWIG_IsTmpObj(res4)) {
32552 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
32553 } else {
32554 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32555 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
32556 }
32557 return resultobj;
32558 fail:
32559 return NULL;
32560 }
32561
32562
32563 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32564 PyObject *obj;
32565 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32566 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
32567 return SWIG_Py_Void();
32568 }
32569
32570 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32571 return SWIG_Python_InitShadowInstance(args);
32572 }
32573
32574 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32575 PyObject *resultobj = 0;
32576 wxStockGDI *result = 0 ;
32577
32578 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
32579 {
32580 PyThreadState* __tstate = wxPyBeginAllowThreads();
32581 result = (wxStockGDI *)new wxStockGDI();
32582 wxPyEndAllowThreads(__tstate);
32583 if (PyErr_Occurred()) SWIG_fail;
32584 }
32585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
32586 return resultobj;
32587 fail:
32588 return NULL;
32589 }
32590
32591
32592 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32593 PyObject *resultobj = 0;
32594 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32595 void *argp1 = 0 ;
32596 int res1 = 0 ;
32597 PyObject *swig_obj[1] ;
32598
32599 if (!args) SWIG_fail;
32600 swig_obj[0] = args;
32601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
32602 if (!SWIG_IsOK(res1)) {
32603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32604 }
32605 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32606 {
32607 PyThreadState* __tstate = wxPyBeginAllowThreads();
32608 delete arg1;
32609
32610 wxPyEndAllowThreads(__tstate);
32611 if (PyErr_Occurred()) SWIG_fail;
32612 }
32613 resultobj = SWIG_Py_Void();
32614 return resultobj;
32615 fail:
32616 return NULL;
32617 }
32618
32619
32620 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32621 PyObject *resultobj = 0;
32622
32623 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
32624 {
32625 PyThreadState* __tstate = wxPyBeginAllowThreads();
32626 wxStockGDI::DeleteAll();
32627 wxPyEndAllowThreads(__tstate);
32628 if (PyErr_Occurred()) SWIG_fail;
32629 }
32630 resultobj = SWIG_Py_Void();
32631 return resultobj;
32632 fail:
32633 return NULL;
32634 }
32635
32636
32637 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32638 PyObject *resultobj = 0;
32639 wxStockGDI *result = 0 ;
32640
32641 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
32642 {
32643 PyThreadState* __tstate = wxPyBeginAllowThreads();
32644 {
32645 wxStockGDI &_result_ref = wxStockGDI::instance();
32646 result = (wxStockGDI *) &_result_ref;
32647 }
32648 wxPyEndAllowThreads(__tstate);
32649 if (PyErr_Occurred()) SWIG_fail;
32650 }
32651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
32652 return resultobj;
32653 fail:
32654 return NULL;
32655 }
32656
32657
32658 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32659 PyObject *resultobj = 0;
32660 wxStockGDI::Item arg1 ;
32661 wxBrush *result = 0 ;
32662 int val1 ;
32663 int ecode1 = 0 ;
32664 PyObject * obj0 = 0 ;
32665 char * kwnames[] = {
32666 (char *) "item", NULL
32667 };
32668
32669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32670 ecode1 = SWIG_AsVal_int(obj0, &val1);
32671 if (!SWIG_IsOK(ecode1)) {
32672 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32673 }
32674 arg1 = static_cast< wxStockGDI::Item >(val1);
32675 {
32676 PyThreadState* __tstate = wxPyBeginAllowThreads();
32677 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32678 wxPyEndAllowThreads(__tstate);
32679 if (PyErr_Occurred()) SWIG_fail;
32680 }
32681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32682 return resultobj;
32683 fail:
32684 return NULL;
32685 }
32686
32687
32688 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32689 PyObject *resultobj = 0;
32690 wxStockGDI::Item arg1 ;
32691 wxColour *result = 0 ;
32692 int val1 ;
32693 int ecode1 = 0 ;
32694 PyObject * obj0 = 0 ;
32695 char * kwnames[] = {
32696 (char *) "item", NULL
32697 };
32698
32699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32700 ecode1 = SWIG_AsVal_int(obj0, &val1);
32701 if (!SWIG_IsOK(ecode1)) {
32702 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32703 }
32704 arg1 = static_cast< wxStockGDI::Item >(val1);
32705 {
32706 PyThreadState* __tstate = wxPyBeginAllowThreads();
32707 result = (wxColour *)wxStockGDI::GetColour(arg1);
32708 wxPyEndAllowThreads(__tstate);
32709 if (PyErr_Occurred()) SWIG_fail;
32710 }
32711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32712 return resultobj;
32713 fail:
32714 return NULL;
32715 }
32716
32717
32718 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32719 PyObject *resultobj = 0;
32720 wxStockGDI::Item arg1 ;
32721 wxCursor *result = 0 ;
32722 int val1 ;
32723 int ecode1 = 0 ;
32724 PyObject * obj0 = 0 ;
32725 char * kwnames[] = {
32726 (char *) "item", NULL
32727 };
32728
32729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32730 ecode1 = SWIG_AsVal_int(obj0, &val1);
32731 if (!SWIG_IsOK(ecode1)) {
32732 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32733 }
32734 arg1 = static_cast< wxStockGDI::Item >(val1);
32735 {
32736 PyThreadState* __tstate = wxPyBeginAllowThreads();
32737 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32738 wxPyEndAllowThreads(__tstate);
32739 if (PyErr_Occurred()) SWIG_fail;
32740 }
32741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32742 return resultobj;
32743 fail:
32744 return NULL;
32745 }
32746
32747
32748 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32749 PyObject *resultobj = 0;
32750 wxStockGDI::Item arg1 ;
32751 wxPen *result = 0 ;
32752 int val1 ;
32753 int ecode1 = 0 ;
32754 PyObject * obj0 = 0 ;
32755 char * kwnames[] = {
32756 (char *) "item", NULL
32757 };
32758
32759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32760 ecode1 = SWIG_AsVal_int(obj0, &val1);
32761 if (!SWIG_IsOK(ecode1)) {
32762 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32763 }
32764 arg1 = static_cast< wxStockGDI::Item >(val1);
32765 {
32766 PyThreadState* __tstate = wxPyBeginAllowThreads();
32767 result = (wxPen *)wxStockGDI::GetPen(arg1);
32768 wxPyEndAllowThreads(__tstate);
32769 if (PyErr_Occurred()) SWIG_fail;
32770 }
32771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32772 return resultobj;
32773 fail:
32774 return NULL;
32775 }
32776
32777
32778 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32779 PyObject *resultobj = 0;
32780 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32781 wxStockGDI::Item arg2 ;
32782 wxFont *result = 0 ;
32783 void *argp1 = 0 ;
32784 int res1 = 0 ;
32785 int val2 ;
32786 int ecode2 = 0 ;
32787 PyObject * obj0 = 0 ;
32788 PyObject * obj1 = 0 ;
32789 char * kwnames[] = {
32790 (char *) "self",(char *) "item", NULL
32791 };
32792
32793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32795 if (!SWIG_IsOK(res1)) {
32796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32797 }
32798 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32799 ecode2 = SWIG_AsVal_int(obj1, &val2);
32800 if (!SWIG_IsOK(ecode2)) {
32801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32802 }
32803 arg2 = static_cast< wxStockGDI::Item >(val2);
32804 {
32805 PyThreadState* __tstate = wxPyBeginAllowThreads();
32806 result = (wxFont *)(arg1)->GetFont(arg2);
32807 wxPyEndAllowThreads(__tstate);
32808 if (PyErr_Occurred()) SWIG_fail;
32809 }
32810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32811 return resultobj;
32812 fail:
32813 return NULL;
32814 }
32815
32816
32817 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32818 PyObject *obj;
32819 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32820 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32821 return SWIG_Py_Void();
32822 }
32823
32824 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32825 return SWIG_Python_InitShadowInstance(args);
32826 }
32827
32828 SWIGINTERN int NullBitmap_set(PyObject *) {
32829 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32830 return 1;
32831 }
32832
32833
32834 SWIGINTERN PyObject *NullBitmap_get(void) {
32835 PyObject *pyobj = 0;
32836
32837 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32838 return pyobj;
32839 }
32840
32841
32842 SWIGINTERN int NullIcon_set(PyObject *) {
32843 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32844 return 1;
32845 }
32846
32847
32848 SWIGINTERN PyObject *NullIcon_get(void) {
32849 PyObject *pyobj = 0;
32850
32851 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32852 return pyobj;
32853 }
32854
32855
32856 SWIGINTERN int NullCursor_set(PyObject *) {
32857 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32858 return 1;
32859 }
32860
32861
32862 SWIGINTERN PyObject *NullCursor_get(void) {
32863 PyObject *pyobj = 0;
32864
32865 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32866 return pyobj;
32867 }
32868
32869
32870 SWIGINTERN int NullPen_set(PyObject *) {
32871 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32872 return 1;
32873 }
32874
32875
32876 SWIGINTERN PyObject *NullPen_get(void) {
32877 PyObject *pyobj = 0;
32878
32879 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32880 return pyobj;
32881 }
32882
32883
32884 SWIGINTERN int NullBrush_set(PyObject *) {
32885 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32886 return 1;
32887 }
32888
32889
32890 SWIGINTERN PyObject *NullBrush_get(void) {
32891 PyObject *pyobj = 0;
32892
32893 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32894 return pyobj;
32895 }
32896
32897
32898 SWIGINTERN int NullPalette_set(PyObject *) {
32899 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32900 return 1;
32901 }
32902
32903
32904 SWIGINTERN PyObject *NullPalette_get(void) {
32905 PyObject *pyobj = 0;
32906
32907 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32908 return pyobj;
32909 }
32910
32911
32912 SWIGINTERN int NullFont_set(PyObject *) {
32913 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32914 return 1;
32915 }
32916
32917
32918 SWIGINTERN PyObject *NullFont_get(void) {
32919 PyObject *pyobj = 0;
32920
32921 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32922 return pyobj;
32923 }
32924
32925
32926 SWIGINTERN int NullColour_set(PyObject *) {
32927 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32928 return 1;
32929 }
32930
32931
32932 SWIGINTERN PyObject *NullColour_get(void) {
32933 PyObject *pyobj = 0;
32934
32935 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32936 return pyobj;
32937 }
32938
32939
32940 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32941 PyObject *resultobj = 0;
32942 wxGDIObjListBase *result = 0 ;
32943
32944 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32945 {
32946 PyThreadState* __tstate = wxPyBeginAllowThreads();
32947 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32948 wxPyEndAllowThreads(__tstate);
32949 if (PyErr_Occurred()) SWIG_fail;
32950 }
32951 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32952 return resultobj;
32953 fail:
32954 return NULL;
32955 }
32956
32957
32958 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32959 PyObject *resultobj = 0;
32960 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
32961 void *argp1 = 0 ;
32962 int res1 = 0 ;
32963 PyObject *swig_obj[1] ;
32964
32965 if (!args) SWIG_fail;
32966 swig_obj[0] = args;
32967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
32968 if (!SWIG_IsOK(res1)) {
32969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
32970 }
32971 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
32972 {
32973 PyThreadState* __tstate = wxPyBeginAllowThreads();
32974 delete arg1;
32975
32976 wxPyEndAllowThreads(__tstate);
32977 if (PyErr_Occurred()) SWIG_fail;
32978 }
32979 resultobj = SWIG_Py_Void();
32980 return resultobj;
32981 fail:
32982 return NULL;
32983 }
32984
32985
32986 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32987 PyObject *obj;
32988 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32989 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32990 return SWIG_Py_Void();
32991 }
32992
32993 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32994 return SWIG_Python_InitShadowInstance(args);
32995 }
32996
32997 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32998 PyObject *resultobj = 0;
32999 wxPenList *arg1 = (wxPenList *) 0 ;
33000 wxColour *arg2 = 0 ;
33001 int arg3 ;
33002 int arg4 ;
33003 wxPen *result = 0 ;
33004 void *argp1 = 0 ;
33005 int res1 = 0 ;
33006 wxColour temp2 ;
33007 int val3 ;
33008 int ecode3 = 0 ;
33009 int val4 ;
33010 int ecode4 = 0 ;
33011 PyObject * obj0 = 0 ;
33012 PyObject * obj1 = 0 ;
33013 PyObject * obj2 = 0 ;
33014 PyObject * obj3 = 0 ;
33015 char * kwnames[] = {
33016 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
33017 };
33018
33019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
33021 if (!SWIG_IsOK(res1)) {
33022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
33023 }
33024 arg1 = reinterpret_cast< wxPenList * >(argp1);
33025 {
33026 arg2 = &temp2;
33027 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33028 }
33029 ecode3 = SWIG_AsVal_int(obj2, &val3);
33030 if (!SWIG_IsOK(ecode3)) {
33031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
33032 }
33033 arg3 = static_cast< int >(val3);
33034 ecode4 = SWIG_AsVal_int(obj3, &val4);
33035 if (!SWIG_IsOK(ecode4)) {
33036 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
33037 }
33038 arg4 = static_cast< int >(val4);
33039 {
33040 PyThreadState* __tstate = wxPyBeginAllowThreads();
33041 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
33042 wxPyEndAllowThreads(__tstate);
33043 if (PyErr_Occurred()) SWIG_fail;
33044 }
33045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
33046 return resultobj;
33047 fail:
33048 return NULL;
33049 }
33050
33051
33052 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33053 PyObject *resultobj = 0;
33054 wxPenList *arg1 = (wxPenList *) 0 ;
33055 wxPen *arg2 = (wxPen *) 0 ;
33056 void *argp1 = 0 ;
33057 int res1 = 0 ;
33058 void *argp2 = 0 ;
33059 int res2 = 0 ;
33060 PyObject * obj0 = 0 ;
33061 PyObject * obj1 = 0 ;
33062 char * kwnames[] = {
33063 (char *) "self",(char *) "pen", NULL
33064 };
33065
33066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
33067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
33068 if (!SWIG_IsOK(res1)) {
33069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
33070 }
33071 arg1 = reinterpret_cast< wxPenList * >(argp1);
33072 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
33073 if (!SWIG_IsOK(res2)) {
33074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
33075 }
33076 arg2 = reinterpret_cast< wxPen * >(argp2);
33077 {
33078 PyThreadState* __tstate = wxPyBeginAllowThreads();
33079 (arg1)->AddPen(arg2);
33080 wxPyEndAllowThreads(__tstate);
33081 if (PyErr_Occurred()) SWIG_fail;
33082 }
33083 resultobj = SWIG_Py_Void();
33084 return resultobj;
33085 fail:
33086 return NULL;
33087 }
33088
33089
33090 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33091 PyObject *resultobj = 0;
33092 wxPenList *arg1 = (wxPenList *) 0 ;
33093 wxPen *arg2 = (wxPen *) 0 ;
33094 void *argp1 = 0 ;
33095 int res1 = 0 ;
33096 void *argp2 = 0 ;
33097 int res2 = 0 ;
33098 PyObject * obj0 = 0 ;
33099 PyObject * obj1 = 0 ;
33100 char * kwnames[] = {
33101 (char *) "self",(char *) "pen", NULL
33102 };
33103
33104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
33105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
33106 if (!SWIG_IsOK(res1)) {
33107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
33108 }
33109 arg1 = reinterpret_cast< wxPenList * >(argp1);
33110 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
33111 if (!SWIG_IsOK(res2)) {
33112 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
33113 }
33114 arg2 = reinterpret_cast< wxPen * >(argp2);
33115 {
33116 PyThreadState* __tstate = wxPyBeginAllowThreads();
33117 (arg1)->RemovePen(arg2);
33118 wxPyEndAllowThreads(__tstate);
33119 if (PyErr_Occurred()) SWIG_fail;
33120 }
33121 resultobj = SWIG_Py_Void();
33122 return resultobj;
33123 fail:
33124 return NULL;
33125 }
33126
33127
33128 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33129 PyObject *obj;
33130 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33131 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
33132 return SWIG_Py_Void();
33133 }
33134
33135 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33136 PyObject *resultobj = 0;
33137 wxBrushList *arg1 = (wxBrushList *) 0 ;
33138 wxColour *arg2 = 0 ;
33139 int arg3 = (int) wxSOLID ;
33140 wxBrush *result = 0 ;
33141 void *argp1 = 0 ;
33142 int res1 = 0 ;
33143 wxColour temp2 ;
33144 int val3 ;
33145 int ecode3 = 0 ;
33146 PyObject * obj0 = 0 ;
33147 PyObject * obj1 = 0 ;
33148 PyObject * obj2 = 0 ;
33149 char * kwnames[] = {
33150 (char *) "self",(char *) "colour",(char *) "style", NULL
33151 };
33152
33153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33155 if (!SWIG_IsOK(res1)) {
33156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33157 }
33158 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33159 {
33160 arg2 = &temp2;
33161 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33162 }
33163 if (obj2) {
33164 ecode3 = SWIG_AsVal_int(obj2, &val3);
33165 if (!SWIG_IsOK(ecode3)) {
33166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
33167 }
33168 arg3 = static_cast< int >(val3);
33169 }
33170 {
33171 PyThreadState* __tstate = wxPyBeginAllowThreads();
33172 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
33173 wxPyEndAllowThreads(__tstate);
33174 if (PyErr_Occurred()) SWIG_fail;
33175 }
33176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
33177 return resultobj;
33178 fail:
33179 return NULL;
33180 }
33181
33182
33183 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33184 PyObject *resultobj = 0;
33185 wxBrushList *arg1 = (wxBrushList *) 0 ;
33186 wxBrush *arg2 = (wxBrush *) 0 ;
33187 void *argp1 = 0 ;
33188 int res1 = 0 ;
33189 void *argp2 = 0 ;
33190 int res2 = 0 ;
33191 PyObject * obj0 = 0 ;
33192 PyObject * obj1 = 0 ;
33193 char * kwnames[] = {
33194 (char *) "self",(char *) "brush", NULL
33195 };
33196
33197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
33198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33199 if (!SWIG_IsOK(res1)) {
33200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33201 }
33202 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33203 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
33204 if (!SWIG_IsOK(res2)) {
33205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
33206 }
33207 arg2 = reinterpret_cast< wxBrush * >(argp2);
33208 {
33209 PyThreadState* __tstate = wxPyBeginAllowThreads();
33210 (arg1)->AddBrush(arg2);
33211 wxPyEndAllowThreads(__tstate);
33212 if (PyErr_Occurred()) SWIG_fail;
33213 }
33214 resultobj = SWIG_Py_Void();
33215 return resultobj;
33216 fail:
33217 return NULL;
33218 }
33219
33220
33221 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33222 PyObject *resultobj = 0;
33223 wxBrushList *arg1 = (wxBrushList *) 0 ;
33224 wxBrush *arg2 = (wxBrush *) 0 ;
33225 void *argp1 = 0 ;
33226 int res1 = 0 ;
33227 void *argp2 = 0 ;
33228 int res2 = 0 ;
33229 PyObject * obj0 = 0 ;
33230 PyObject * obj1 = 0 ;
33231 char * kwnames[] = {
33232 (char *) "self",(char *) "brush", NULL
33233 };
33234
33235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
33236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33237 if (!SWIG_IsOK(res1)) {
33238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33239 }
33240 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33241 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
33242 if (!SWIG_IsOK(res2)) {
33243 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
33244 }
33245 arg2 = reinterpret_cast< wxBrush * >(argp2);
33246 {
33247 PyThreadState* __tstate = wxPyBeginAllowThreads();
33248 (arg1)->RemoveBrush(arg2);
33249 wxPyEndAllowThreads(__tstate);
33250 if (PyErr_Occurred()) SWIG_fail;
33251 }
33252 resultobj = SWIG_Py_Void();
33253 return resultobj;
33254 fail:
33255 return NULL;
33256 }
33257
33258
33259 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33260 PyObject *obj;
33261 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33262 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
33263 return SWIG_Py_Void();
33264 }
33265
33266 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33267 PyObject *resultobj = 0;
33268 wxFontList *arg1 = (wxFontList *) 0 ;
33269 int arg2 ;
33270 int arg3 ;
33271 int arg4 ;
33272 int arg5 ;
33273 bool arg6 = (bool) false ;
33274 wxString const &arg7_defvalue = wxPyEmptyString ;
33275 wxString *arg7 = (wxString *) &arg7_defvalue ;
33276 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
33277 wxFont *result = 0 ;
33278 void *argp1 = 0 ;
33279 int res1 = 0 ;
33280 int val2 ;
33281 int ecode2 = 0 ;
33282 int val3 ;
33283 int ecode3 = 0 ;
33284 int val4 ;
33285 int ecode4 = 0 ;
33286 int val5 ;
33287 int ecode5 = 0 ;
33288 bool val6 ;
33289 int ecode6 = 0 ;
33290 bool temp7 = false ;
33291 int val8 ;
33292 int ecode8 = 0 ;
33293 PyObject * obj0 = 0 ;
33294 PyObject * obj1 = 0 ;
33295 PyObject * obj2 = 0 ;
33296 PyObject * obj3 = 0 ;
33297 PyObject * obj4 = 0 ;
33298 PyObject * obj5 = 0 ;
33299 PyObject * obj6 = 0 ;
33300 PyObject * obj7 = 0 ;
33301 char * kwnames[] = {
33302 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
33303 };
33304
33305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33307 if (!SWIG_IsOK(res1)) {
33308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33309 }
33310 arg1 = reinterpret_cast< wxFontList * >(argp1);
33311 ecode2 = SWIG_AsVal_int(obj1, &val2);
33312 if (!SWIG_IsOK(ecode2)) {
33313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
33314 }
33315 arg2 = static_cast< int >(val2);
33316 ecode3 = SWIG_AsVal_int(obj2, &val3);
33317 if (!SWIG_IsOK(ecode3)) {
33318 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
33319 }
33320 arg3 = static_cast< int >(val3);
33321 ecode4 = SWIG_AsVal_int(obj3, &val4);
33322 if (!SWIG_IsOK(ecode4)) {
33323 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
33324 }
33325 arg4 = static_cast< int >(val4);
33326 ecode5 = SWIG_AsVal_int(obj4, &val5);
33327 if (!SWIG_IsOK(ecode5)) {
33328 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
33329 }
33330 arg5 = static_cast< int >(val5);
33331 if (obj5) {
33332 ecode6 = SWIG_AsVal_bool(obj5, &val6);
33333 if (!SWIG_IsOK(ecode6)) {
33334 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
33335 }
33336 arg6 = static_cast< bool >(val6);
33337 }
33338 if (obj6) {
33339 {
33340 arg7 = wxString_in_helper(obj6);
33341 if (arg7 == NULL) SWIG_fail;
33342 temp7 = true;
33343 }
33344 }
33345 if (obj7) {
33346 ecode8 = SWIG_AsVal_int(obj7, &val8);
33347 if (!SWIG_IsOK(ecode8)) {
33348 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
33349 }
33350 arg8 = static_cast< wxFontEncoding >(val8);
33351 }
33352 {
33353 PyThreadState* __tstate = wxPyBeginAllowThreads();
33354 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
33355 wxPyEndAllowThreads(__tstate);
33356 if (PyErr_Occurred()) SWIG_fail;
33357 }
33358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33359 {
33360 if (temp7)
33361 delete arg7;
33362 }
33363 return resultobj;
33364 fail:
33365 {
33366 if (temp7)
33367 delete arg7;
33368 }
33369 return NULL;
33370 }
33371
33372
33373 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33374 PyObject *resultobj = 0;
33375 wxFontList *arg1 = (wxFontList *) 0 ;
33376 wxFont *arg2 = (wxFont *) 0 ;
33377 void *argp1 = 0 ;
33378 int res1 = 0 ;
33379 void *argp2 = 0 ;
33380 int res2 = 0 ;
33381 PyObject * obj0 = 0 ;
33382 PyObject * obj1 = 0 ;
33383 char * kwnames[] = {
33384 (char *) "self",(char *) "font", NULL
33385 };
33386
33387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
33388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33389 if (!SWIG_IsOK(res1)) {
33390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33391 }
33392 arg1 = reinterpret_cast< wxFontList * >(argp1);
33393 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33394 if (!SWIG_IsOK(res2)) {
33395 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
33396 }
33397 arg2 = reinterpret_cast< wxFont * >(argp2);
33398 {
33399 PyThreadState* __tstate = wxPyBeginAllowThreads();
33400 (arg1)->AddFont(arg2);
33401 wxPyEndAllowThreads(__tstate);
33402 if (PyErr_Occurred()) SWIG_fail;
33403 }
33404 resultobj = SWIG_Py_Void();
33405 return resultobj;
33406 fail:
33407 return NULL;
33408 }
33409
33410
33411 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33412 PyObject *resultobj = 0;
33413 wxFontList *arg1 = (wxFontList *) 0 ;
33414 wxFont *arg2 = (wxFont *) 0 ;
33415 void *argp1 = 0 ;
33416 int res1 = 0 ;
33417 void *argp2 = 0 ;
33418 int res2 = 0 ;
33419 PyObject * obj0 = 0 ;
33420 PyObject * obj1 = 0 ;
33421 char * kwnames[] = {
33422 (char *) "self",(char *) "font", NULL
33423 };
33424
33425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
33426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33427 if (!SWIG_IsOK(res1)) {
33428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33429 }
33430 arg1 = reinterpret_cast< wxFontList * >(argp1);
33431 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33432 if (!SWIG_IsOK(res2)) {
33433 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
33434 }
33435 arg2 = reinterpret_cast< wxFont * >(argp2);
33436 {
33437 PyThreadState* __tstate = wxPyBeginAllowThreads();
33438 (arg1)->RemoveFont(arg2);
33439 wxPyEndAllowThreads(__tstate);
33440 if (PyErr_Occurred()) SWIG_fail;
33441 }
33442 resultobj = SWIG_Py_Void();
33443 return resultobj;
33444 fail:
33445 return NULL;
33446 }
33447
33448
33449 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33450 PyObject *obj;
33451 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33452 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
33453 return SWIG_Py_Void();
33454 }
33455
33456 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33457 PyObject *resultobj = 0;
33458 wxColourDatabase *result = 0 ;
33459
33460 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
33461 {
33462 if (!wxPyCheckForApp()) SWIG_fail;
33463 PyThreadState* __tstate = wxPyBeginAllowThreads();
33464 result = (wxColourDatabase *)new wxColourDatabase();
33465 wxPyEndAllowThreads(__tstate);
33466 if (PyErr_Occurred()) SWIG_fail;
33467 }
33468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
33469 return resultobj;
33470 fail:
33471 return NULL;
33472 }
33473
33474
33475 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33476 PyObject *resultobj = 0;
33477 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33478 void *argp1 = 0 ;
33479 int res1 = 0 ;
33480 PyObject *swig_obj[1] ;
33481
33482 if (!args) SWIG_fail;
33483 swig_obj[0] = args;
33484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
33485 if (!SWIG_IsOK(res1)) {
33486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33487 }
33488 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33489 {
33490 PyThreadState* __tstate = wxPyBeginAllowThreads();
33491 delete arg1;
33492
33493 wxPyEndAllowThreads(__tstate);
33494 if (PyErr_Occurred()) SWIG_fail;
33495 }
33496 resultobj = SWIG_Py_Void();
33497 return resultobj;
33498 fail:
33499 return NULL;
33500 }
33501
33502
33503 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33504 PyObject *resultobj = 0;
33505 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33506 wxString *arg2 = 0 ;
33507 wxColour result;
33508 void *argp1 = 0 ;
33509 int res1 = 0 ;
33510 bool temp2 = false ;
33511 PyObject * obj0 = 0 ;
33512 PyObject * obj1 = 0 ;
33513 char * kwnames[] = {
33514 (char *) "self",(char *) "name", NULL
33515 };
33516
33517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
33518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33519 if (!SWIG_IsOK(res1)) {
33520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33521 }
33522 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33523 {
33524 arg2 = wxString_in_helper(obj1);
33525 if (arg2 == NULL) SWIG_fail;
33526 temp2 = true;
33527 }
33528 {
33529 PyThreadState* __tstate = wxPyBeginAllowThreads();
33530 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
33531 wxPyEndAllowThreads(__tstate);
33532 if (PyErr_Occurred()) SWIG_fail;
33533 }
33534 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33535 {
33536 if (temp2)
33537 delete arg2;
33538 }
33539 return resultobj;
33540 fail:
33541 {
33542 if (temp2)
33543 delete arg2;
33544 }
33545 return NULL;
33546 }
33547
33548
33549 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33550 PyObject *resultobj = 0;
33551 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33552 wxColour *arg2 = 0 ;
33553 wxString result;
33554 void *argp1 = 0 ;
33555 int res1 = 0 ;
33556 wxColour temp2 ;
33557 PyObject * obj0 = 0 ;
33558 PyObject * obj1 = 0 ;
33559 char * kwnames[] = {
33560 (char *) "self",(char *) "colour", NULL
33561 };
33562
33563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
33564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33565 if (!SWIG_IsOK(res1)) {
33566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33567 }
33568 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33569 {
33570 arg2 = &temp2;
33571 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33572 }
33573 {
33574 PyThreadState* __tstate = wxPyBeginAllowThreads();
33575 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
33576 wxPyEndAllowThreads(__tstate);
33577 if (PyErr_Occurred()) SWIG_fail;
33578 }
33579 {
33580 #if wxUSE_UNICODE
33581 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33582 #else
33583 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33584 #endif
33585 }
33586 return resultobj;
33587 fail:
33588 return NULL;
33589 }
33590
33591
33592 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33593 PyObject *resultobj = 0;
33594 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33595 wxString *arg2 = 0 ;
33596 wxColour *arg3 = 0 ;
33597 void *argp1 = 0 ;
33598 int res1 = 0 ;
33599 bool temp2 = false ;
33600 wxColour temp3 ;
33601 PyObject * obj0 = 0 ;
33602 PyObject * obj1 = 0 ;
33603 PyObject * obj2 = 0 ;
33604 char * kwnames[] = {
33605 (char *) "self",(char *) "name",(char *) "colour", NULL
33606 };
33607
33608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33610 if (!SWIG_IsOK(res1)) {
33611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33612 }
33613 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33614 {
33615 arg2 = wxString_in_helper(obj1);
33616 if (arg2 == NULL) SWIG_fail;
33617 temp2 = true;
33618 }
33619 {
33620 arg3 = &temp3;
33621 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33622 }
33623 {
33624 PyThreadState* __tstate = wxPyBeginAllowThreads();
33625 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
33626 wxPyEndAllowThreads(__tstate);
33627 if (PyErr_Occurred()) SWIG_fail;
33628 }
33629 resultobj = SWIG_Py_Void();
33630 {
33631 if (temp2)
33632 delete arg2;
33633 }
33634 return resultobj;
33635 fail:
33636 {
33637 if (temp2)
33638 delete arg2;
33639 }
33640 return NULL;
33641 }
33642
33643
33644 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33645 PyObject *resultobj = 0;
33646 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33647 wxString *arg2 = 0 ;
33648 int arg3 ;
33649 int arg4 ;
33650 int arg5 ;
33651 void *argp1 = 0 ;
33652 int res1 = 0 ;
33653 bool temp2 = false ;
33654 int val3 ;
33655 int ecode3 = 0 ;
33656 int val4 ;
33657 int ecode4 = 0 ;
33658 int val5 ;
33659 int ecode5 = 0 ;
33660 PyObject * obj0 = 0 ;
33661 PyObject * obj1 = 0 ;
33662 PyObject * obj2 = 0 ;
33663 PyObject * obj3 = 0 ;
33664 PyObject * obj4 = 0 ;
33665 char * kwnames[] = {
33666 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
33667 };
33668
33669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33671 if (!SWIG_IsOK(res1)) {
33672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33673 }
33674 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33675 {
33676 arg2 = wxString_in_helper(obj1);
33677 if (arg2 == NULL) SWIG_fail;
33678 temp2 = true;
33679 }
33680 ecode3 = SWIG_AsVal_int(obj2, &val3);
33681 if (!SWIG_IsOK(ecode3)) {
33682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
33683 }
33684 arg3 = static_cast< int >(val3);
33685 ecode4 = SWIG_AsVal_int(obj3, &val4);
33686 if (!SWIG_IsOK(ecode4)) {
33687 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
33688 }
33689 arg4 = static_cast< int >(val4);
33690 ecode5 = SWIG_AsVal_int(obj4, &val5);
33691 if (!SWIG_IsOK(ecode5)) {
33692 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
33693 }
33694 arg5 = static_cast< int >(val5);
33695 {
33696 PyThreadState* __tstate = wxPyBeginAllowThreads();
33697 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
33698 wxPyEndAllowThreads(__tstate);
33699 if (PyErr_Occurred()) SWIG_fail;
33700 }
33701 resultobj = SWIG_Py_Void();
33702 {
33703 if (temp2)
33704 delete arg2;
33705 }
33706 return resultobj;
33707 fail:
33708 {
33709 if (temp2)
33710 delete arg2;
33711 }
33712 return NULL;
33713 }
33714
33715
33716 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33717 PyObject *obj;
33718 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33719 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33720 return SWIG_Py_Void();
33721 }
33722
33723 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33724 return SWIG_Python_InitShadowInstance(args);
33725 }
33726
33727 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33728 PyObject *resultobj = 0;
33729 wxFontList *result = 0 ;
33730
33731 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
33732 {
33733 PyThreadState* __tstate = wxPyBeginAllowThreads();
33734 result = (wxFontList *)_wxPyInitTheFontList();
33735 wxPyEndAllowThreads(__tstate);
33736 if (PyErr_Occurred()) SWIG_fail;
33737 }
33738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
33739 return resultobj;
33740 fail:
33741 return NULL;
33742 }
33743
33744
33745 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33746 PyObject *resultobj = 0;
33747 wxPenList *result = 0 ;
33748
33749 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
33750 {
33751 PyThreadState* __tstate = wxPyBeginAllowThreads();
33752 result = (wxPenList *)_wxPyInitThePenList();
33753 wxPyEndAllowThreads(__tstate);
33754 if (PyErr_Occurred()) SWIG_fail;
33755 }
33756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
33757 return resultobj;
33758 fail:
33759 return NULL;
33760 }
33761
33762
33763 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33764 PyObject *resultobj = 0;
33765 wxBrushList *result = 0 ;
33766
33767 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33768 {
33769 PyThreadState* __tstate = wxPyBeginAllowThreads();
33770 result = (wxBrushList *)_wxPyInitTheBrushList();
33771 wxPyEndAllowThreads(__tstate);
33772 if (PyErr_Occurred()) SWIG_fail;
33773 }
33774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33775 return resultobj;
33776 fail:
33777 return NULL;
33778 }
33779
33780
33781 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33782 PyObject *resultobj = 0;
33783 wxColourDatabase *result = 0 ;
33784
33785 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33786 {
33787 PyThreadState* __tstate = wxPyBeginAllowThreads();
33788 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33789 wxPyEndAllowThreads(__tstate);
33790 if (PyErr_Occurred()) SWIG_fail;
33791 }
33792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33793 return resultobj;
33794 fail:
33795 return NULL;
33796 }
33797
33798
33799 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33800 PyObject *resultobj = 0;
33801 wxEffects *result = 0 ;
33802
33803 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33804 {
33805 PyThreadState* __tstate = wxPyBeginAllowThreads();
33806 result = (wxEffects *)new wxEffects();
33807 wxPyEndAllowThreads(__tstate);
33808 if (PyErr_Occurred()) SWIG_fail;
33809 }
33810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33811 return resultobj;
33812 fail:
33813 return NULL;
33814 }
33815
33816
33817 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33818 PyObject *resultobj = 0;
33819 wxEffects *arg1 = (wxEffects *) 0 ;
33820 wxColour result;
33821 void *argp1 = 0 ;
33822 int res1 = 0 ;
33823 PyObject *swig_obj[1] ;
33824
33825 if (!args) SWIG_fail;
33826 swig_obj[0] = args;
33827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33828 if (!SWIG_IsOK(res1)) {
33829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33830 }
33831 arg1 = reinterpret_cast< wxEffects * >(argp1);
33832 {
33833 PyThreadState* __tstate = wxPyBeginAllowThreads();
33834 result = ((wxEffects const *)arg1)->GetHighlightColour();
33835 wxPyEndAllowThreads(__tstate);
33836 if (PyErr_Occurred()) SWIG_fail;
33837 }
33838 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33839 return resultobj;
33840 fail:
33841 return NULL;
33842 }
33843
33844
33845 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33846 PyObject *resultobj = 0;
33847 wxEffects *arg1 = (wxEffects *) 0 ;
33848 wxColour result;
33849 void *argp1 = 0 ;
33850 int res1 = 0 ;
33851 PyObject *swig_obj[1] ;
33852
33853 if (!args) SWIG_fail;
33854 swig_obj[0] = args;
33855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33856 if (!SWIG_IsOK(res1)) {
33857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33858 }
33859 arg1 = reinterpret_cast< wxEffects * >(argp1);
33860 {
33861 PyThreadState* __tstate = wxPyBeginAllowThreads();
33862 result = ((wxEffects const *)arg1)->GetLightShadow();
33863 wxPyEndAllowThreads(__tstate);
33864 if (PyErr_Occurred()) SWIG_fail;
33865 }
33866 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33867 return resultobj;
33868 fail:
33869 return NULL;
33870 }
33871
33872
33873 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33874 PyObject *resultobj = 0;
33875 wxEffects *arg1 = (wxEffects *) 0 ;
33876 wxColour result;
33877 void *argp1 = 0 ;
33878 int res1 = 0 ;
33879 PyObject *swig_obj[1] ;
33880
33881 if (!args) SWIG_fail;
33882 swig_obj[0] = args;
33883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33884 if (!SWIG_IsOK(res1)) {
33885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33886 }
33887 arg1 = reinterpret_cast< wxEffects * >(argp1);
33888 {
33889 PyThreadState* __tstate = wxPyBeginAllowThreads();
33890 result = ((wxEffects const *)arg1)->GetFaceColour();
33891 wxPyEndAllowThreads(__tstate);
33892 if (PyErr_Occurred()) SWIG_fail;
33893 }
33894 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33895 return resultobj;
33896 fail:
33897 return NULL;
33898 }
33899
33900
33901 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33902 PyObject *resultobj = 0;
33903 wxEffects *arg1 = (wxEffects *) 0 ;
33904 wxColour result;
33905 void *argp1 = 0 ;
33906 int res1 = 0 ;
33907 PyObject *swig_obj[1] ;
33908
33909 if (!args) SWIG_fail;
33910 swig_obj[0] = args;
33911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33912 if (!SWIG_IsOK(res1)) {
33913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33914 }
33915 arg1 = reinterpret_cast< wxEffects * >(argp1);
33916 {
33917 PyThreadState* __tstate = wxPyBeginAllowThreads();
33918 result = ((wxEffects const *)arg1)->GetMediumShadow();
33919 wxPyEndAllowThreads(__tstate);
33920 if (PyErr_Occurred()) SWIG_fail;
33921 }
33922 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33923 return resultobj;
33924 fail:
33925 return NULL;
33926 }
33927
33928
33929 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33930 PyObject *resultobj = 0;
33931 wxEffects *arg1 = (wxEffects *) 0 ;
33932 wxColour result;
33933 void *argp1 = 0 ;
33934 int res1 = 0 ;
33935 PyObject *swig_obj[1] ;
33936
33937 if (!args) SWIG_fail;
33938 swig_obj[0] = args;
33939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33940 if (!SWIG_IsOK(res1)) {
33941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33942 }
33943 arg1 = reinterpret_cast< wxEffects * >(argp1);
33944 {
33945 PyThreadState* __tstate = wxPyBeginAllowThreads();
33946 result = ((wxEffects const *)arg1)->GetDarkShadow();
33947 wxPyEndAllowThreads(__tstate);
33948 if (PyErr_Occurred()) SWIG_fail;
33949 }
33950 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33951 return resultobj;
33952 fail:
33953 return NULL;
33954 }
33955
33956
33957 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33958 PyObject *resultobj = 0;
33959 wxEffects *arg1 = (wxEffects *) 0 ;
33960 wxColour *arg2 = 0 ;
33961 void *argp1 = 0 ;
33962 int res1 = 0 ;
33963 wxColour temp2 ;
33964 PyObject * obj0 = 0 ;
33965 PyObject * obj1 = 0 ;
33966 char * kwnames[] = {
33967 (char *) "self",(char *) "c", NULL
33968 };
33969
33970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33972 if (!SWIG_IsOK(res1)) {
33973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33974 }
33975 arg1 = reinterpret_cast< wxEffects * >(argp1);
33976 {
33977 arg2 = &temp2;
33978 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33979 }
33980 {
33981 PyThreadState* __tstate = wxPyBeginAllowThreads();
33982 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33983 wxPyEndAllowThreads(__tstate);
33984 if (PyErr_Occurred()) SWIG_fail;
33985 }
33986 resultobj = SWIG_Py_Void();
33987 return resultobj;
33988 fail:
33989 return NULL;
33990 }
33991
33992
33993 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33994 PyObject *resultobj = 0;
33995 wxEffects *arg1 = (wxEffects *) 0 ;
33996 wxColour *arg2 = 0 ;
33997 void *argp1 = 0 ;
33998 int res1 = 0 ;
33999 wxColour temp2 ;
34000 PyObject * obj0 = 0 ;
34001 PyObject * obj1 = 0 ;
34002 char * kwnames[] = {
34003 (char *) "self",(char *) "c", NULL
34004 };
34005
34006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34008 if (!SWIG_IsOK(res1)) {
34009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34010 }
34011 arg1 = reinterpret_cast< wxEffects * >(argp1);
34012 {
34013 arg2 = &temp2;
34014 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34015 }
34016 {
34017 PyThreadState* __tstate = wxPyBeginAllowThreads();
34018 (arg1)->SetLightShadow((wxColour const &)*arg2);
34019 wxPyEndAllowThreads(__tstate);
34020 if (PyErr_Occurred()) SWIG_fail;
34021 }
34022 resultobj = SWIG_Py_Void();
34023 return resultobj;
34024 fail:
34025 return NULL;
34026 }
34027
34028
34029 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34030 PyObject *resultobj = 0;
34031 wxEffects *arg1 = (wxEffects *) 0 ;
34032 wxColour *arg2 = 0 ;
34033 void *argp1 = 0 ;
34034 int res1 = 0 ;
34035 wxColour temp2 ;
34036 PyObject * obj0 = 0 ;
34037 PyObject * obj1 = 0 ;
34038 char * kwnames[] = {
34039 (char *) "self",(char *) "c", NULL
34040 };
34041
34042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
34043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34044 if (!SWIG_IsOK(res1)) {
34045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
34046 }
34047 arg1 = reinterpret_cast< wxEffects * >(argp1);
34048 {
34049 arg2 = &temp2;
34050 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34051 }
34052 {
34053 PyThreadState* __tstate = wxPyBeginAllowThreads();
34054 (arg1)->SetFaceColour((wxColour const &)*arg2);
34055 wxPyEndAllowThreads(__tstate);
34056 if (PyErr_Occurred()) SWIG_fail;
34057 }
34058 resultobj = SWIG_Py_Void();
34059 return resultobj;
34060 fail:
34061 return NULL;
34062 }
34063
34064
34065 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34066 PyObject *resultobj = 0;
34067 wxEffects *arg1 = (wxEffects *) 0 ;
34068 wxColour *arg2 = 0 ;
34069 void *argp1 = 0 ;
34070 int res1 = 0 ;
34071 wxColour temp2 ;
34072 PyObject * obj0 = 0 ;
34073 PyObject * obj1 = 0 ;
34074 char * kwnames[] = {
34075 (char *) "self",(char *) "c", NULL
34076 };
34077
34078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34080 if (!SWIG_IsOK(res1)) {
34081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34082 }
34083 arg1 = reinterpret_cast< wxEffects * >(argp1);
34084 {
34085 arg2 = &temp2;
34086 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34087 }
34088 {
34089 PyThreadState* __tstate = wxPyBeginAllowThreads();
34090 (arg1)->SetMediumShadow((wxColour const &)*arg2);
34091 wxPyEndAllowThreads(__tstate);
34092 if (PyErr_Occurred()) SWIG_fail;
34093 }
34094 resultobj = SWIG_Py_Void();
34095 return resultobj;
34096 fail:
34097 return NULL;
34098 }
34099
34100
34101 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34102 PyObject *resultobj = 0;
34103 wxEffects *arg1 = (wxEffects *) 0 ;
34104 wxColour *arg2 = 0 ;
34105 void *argp1 = 0 ;
34106 int res1 = 0 ;
34107 wxColour temp2 ;
34108 PyObject * obj0 = 0 ;
34109 PyObject * obj1 = 0 ;
34110 char * kwnames[] = {
34111 (char *) "self",(char *) "c", NULL
34112 };
34113
34114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34116 if (!SWIG_IsOK(res1)) {
34117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34118 }
34119 arg1 = reinterpret_cast< wxEffects * >(argp1);
34120 {
34121 arg2 = &temp2;
34122 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34123 }
34124 {
34125 PyThreadState* __tstate = wxPyBeginAllowThreads();
34126 (arg1)->SetDarkShadow((wxColour const &)*arg2);
34127 wxPyEndAllowThreads(__tstate);
34128 if (PyErr_Occurred()) SWIG_fail;
34129 }
34130 resultobj = SWIG_Py_Void();
34131 return resultobj;
34132 fail:
34133 return NULL;
34134 }
34135
34136
34137 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34138 PyObject *resultobj = 0;
34139 wxEffects *arg1 = (wxEffects *) 0 ;
34140 wxColour *arg2 = 0 ;
34141 wxColour *arg3 = 0 ;
34142 wxColour *arg4 = 0 ;
34143 wxColour *arg5 = 0 ;
34144 wxColour *arg6 = 0 ;
34145 void *argp1 = 0 ;
34146 int res1 = 0 ;
34147 wxColour temp2 ;
34148 wxColour temp3 ;
34149 wxColour temp4 ;
34150 wxColour temp5 ;
34151 wxColour temp6 ;
34152 PyObject * obj0 = 0 ;
34153 PyObject * obj1 = 0 ;
34154 PyObject * obj2 = 0 ;
34155 PyObject * obj3 = 0 ;
34156 PyObject * obj4 = 0 ;
34157 PyObject * obj5 = 0 ;
34158 char * kwnames[] = {
34159 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
34160 };
34161
34162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34164 if (!SWIG_IsOK(res1)) {
34165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
34166 }
34167 arg1 = reinterpret_cast< wxEffects * >(argp1);
34168 {
34169 arg2 = &temp2;
34170 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34171 }
34172 {
34173 arg3 = &temp3;
34174 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34175 }
34176 {
34177 arg4 = &temp4;
34178 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
34179 }
34180 {
34181 arg5 = &temp5;
34182 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
34183 }
34184 {
34185 arg6 = &temp6;
34186 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
34187 }
34188 {
34189 PyThreadState* __tstate = wxPyBeginAllowThreads();
34190 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
34191 wxPyEndAllowThreads(__tstate);
34192 if (PyErr_Occurred()) SWIG_fail;
34193 }
34194 resultobj = SWIG_Py_Void();
34195 return resultobj;
34196 fail:
34197 return NULL;
34198 }
34199
34200
34201 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34202 PyObject *resultobj = 0;
34203 wxEffects *arg1 = (wxEffects *) 0 ;
34204 wxDC *arg2 = 0 ;
34205 wxRect *arg3 = 0 ;
34206 int arg4 = (int) 1 ;
34207 void *argp1 = 0 ;
34208 int res1 = 0 ;
34209 void *argp2 = 0 ;
34210 int res2 = 0 ;
34211 wxRect temp3 ;
34212 int val4 ;
34213 int ecode4 = 0 ;
34214 PyObject * obj0 = 0 ;
34215 PyObject * obj1 = 0 ;
34216 PyObject * obj2 = 0 ;
34217 PyObject * obj3 = 0 ;
34218 char * kwnames[] = {
34219 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
34220 };
34221
34222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34224 if (!SWIG_IsOK(res1)) {
34225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
34226 }
34227 arg1 = reinterpret_cast< wxEffects * >(argp1);
34228 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
34229 if (!SWIG_IsOK(res2)) {
34230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34231 }
34232 if (!argp2) {
34233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34234 }
34235 arg2 = reinterpret_cast< wxDC * >(argp2);
34236 {
34237 arg3 = &temp3;
34238 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34239 }
34240 if (obj3) {
34241 ecode4 = SWIG_AsVal_int(obj3, &val4);
34242 if (!SWIG_IsOK(ecode4)) {
34243 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
34244 }
34245 arg4 = static_cast< int >(val4);
34246 }
34247 {
34248 PyThreadState* __tstate = wxPyBeginAllowThreads();
34249 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
34250 wxPyEndAllowThreads(__tstate);
34251 if (PyErr_Occurred()) SWIG_fail;
34252 }
34253 resultobj = SWIG_Py_Void();
34254 return resultobj;
34255 fail:
34256 return NULL;
34257 }
34258
34259
34260 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34261 PyObject *resultobj = 0;
34262 wxEffects *arg1 = (wxEffects *) 0 ;
34263 wxRect *arg2 = 0 ;
34264 wxDC *arg3 = 0 ;
34265 wxBitmap *arg4 = 0 ;
34266 bool result;
34267 void *argp1 = 0 ;
34268 int res1 = 0 ;
34269 wxRect temp2 ;
34270 void *argp3 = 0 ;
34271 int res3 = 0 ;
34272 void *argp4 = 0 ;
34273 int res4 = 0 ;
34274 PyObject * obj0 = 0 ;
34275 PyObject * obj1 = 0 ;
34276 PyObject * obj2 = 0 ;
34277 PyObject * obj3 = 0 ;
34278 char * kwnames[] = {
34279 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
34280 };
34281
34282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34284 if (!SWIG_IsOK(res1)) {
34285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
34286 }
34287 arg1 = reinterpret_cast< wxEffects * >(argp1);
34288 {
34289 arg2 = &temp2;
34290 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
34291 }
34292 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34293 if (!SWIG_IsOK(res3)) {
34294 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34295 }
34296 if (!argp3) {
34297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34298 }
34299 arg3 = reinterpret_cast< wxDC * >(argp3);
34300 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
34301 if (!SWIG_IsOK(res4)) {
34302 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34303 }
34304 if (!argp4) {
34305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34306 }
34307 arg4 = reinterpret_cast< wxBitmap * >(argp4);
34308 {
34309 PyThreadState* __tstate = wxPyBeginAllowThreads();
34310 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
34311 wxPyEndAllowThreads(__tstate);
34312 if (PyErr_Occurred()) SWIG_fail;
34313 }
34314 {
34315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34316 }
34317 return resultobj;
34318 fail:
34319 return NULL;
34320 }
34321
34322
34323 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34324 PyObject *obj;
34325 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34326 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
34327 return SWIG_Py_Void();
34328 }
34329
34330 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34331 return SWIG_Python_InitShadowInstance(args);
34332 }
34333
34334 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34335 PyObject *resultobj = 0;
34336 int arg1 ;
34337 int arg2 ;
34338 bool arg3 ;
34339 wxSplitterRenderParams *result = 0 ;
34340 int val1 ;
34341 int ecode1 = 0 ;
34342 int val2 ;
34343 int ecode2 = 0 ;
34344 bool val3 ;
34345 int ecode3 = 0 ;
34346 PyObject * obj0 = 0 ;
34347 PyObject * obj1 = 0 ;
34348 PyObject * obj2 = 0 ;
34349 char * kwnames[] = {
34350 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
34351 };
34352
34353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34354 ecode1 = SWIG_AsVal_int(obj0, &val1);
34355 if (!SWIG_IsOK(ecode1)) {
34356 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
34357 }
34358 arg1 = static_cast< int >(val1);
34359 ecode2 = SWIG_AsVal_int(obj1, &val2);
34360 if (!SWIG_IsOK(ecode2)) {
34361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
34362 }
34363 arg2 = static_cast< int >(val2);
34364 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34365 if (!SWIG_IsOK(ecode3)) {
34366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
34367 }
34368 arg3 = static_cast< bool >(val3);
34369 {
34370 PyThreadState* __tstate = wxPyBeginAllowThreads();
34371 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
34372 wxPyEndAllowThreads(__tstate);
34373 if (PyErr_Occurred()) SWIG_fail;
34374 }
34375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
34376 return resultobj;
34377 fail:
34378 return NULL;
34379 }
34380
34381
34382 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34383 PyObject *resultobj = 0;
34384 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34385 void *argp1 = 0 ;
34386 int res1 = 0 ;
34387 PyObject *swig_obj[1] ;
34388
34389 if (!args) SWIG_fail;
34390 swig_obj[0] = args;
34391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
34392 if (!SWIG_IsOK(res1)) {
34393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34394 }
34395 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34396 {
34397 PyThreadState* __tstate = wxPyBeginAllowThreads();
34398 delete arg1;
34399
34400 wxPyEndAllowThreads(__tstate);
34401 if (PyErr_Occurred()) SWIG_fail;
34402 }
34403 resultobj = SWIG_Py_Void();
34404 return resultobj;
34405 fail:
34406 return NULL;
34407 }
34408
34409
34410 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34411 PyObject *resultobj = 0;
34412 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34413 int result;
34414 void *argp1 = 0 ;
34415 int res1 = 0 ;
34416 PyObject *swig_obj[1] ;
34417
34418 if (!args) SWIG_fail;
34419 swig_obj[0] = args;
34420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34421 if (!SWIG_IsOK(res1)) {
34422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34423 }
34424 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34425 result = (int)(int) ((arg1)->widthSash);
34426 resultobj = SWIG_From_int(static_cast< int >(result));
34427 return resultobj;
34428 fail:
34429 return NULL;
34430 }
34431
34432
34433 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34434 PyObject *resultobj = 0;
34435 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34436 int result;
34437 void *argp1 = 0 ;
34438 int res1 = 0 ;
34439 PyObject *swig_obj[1] ;
34440
34441 if (!args) SWIG_fail;
34442 swig_obj[0] = args;
34443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34444 if (!SWIG_IsOK(res1)) {
34445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34446 }
34447 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34448 result = (int)(int) ((arg1)->border);
34449 resultobj = SWIG_From_int(static_cast< int >(result));
34450 return resultobj;
34451 fail:
34452 return NULL;
34453 }
34454
34455
34456 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34457 PyObject *resultobj = 0;
34458 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34459 bool result;
34460 void *argp1 = 0 ;
34461 int res1 = 0 ;
34462 PyObject *swig_obj[1] ;
34463
34464 if (!args) SWIG_fail;
34465 swig_obj[0] = args;
34466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34467 if (!SWIG_IsOK(res1)) {
34468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34469 }
34470 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34471 result = (bool)(bool) ((arg1)->isHotSensitive);
34472 resultobj = SWIG_From_bool(static_cast< bool >(result));
34473 return resultobj;
34474 fail:
34475 return NULL;
34476 }
34477
34478
34479 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34480 PyObject *obj;
34481 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34482 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
34483 return SWIG_Py_Void();
34484 }
34485
34486 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34487 return SWIG_Python_InitShadowInstance(args);
34488 }
34489
34490 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34491 PyObject *resultobj = 0;
34492 wxHeaderButtonParams *result = 0 ;
34493
34494 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
34495 {
34496 PyThreadState* __tstate = wxPyBeginAllowThreads();
34497 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
34498 wxPyEndAllowThreads(__tstate);
34499 if (PyErr_Occurred()) SWIG_fail;
34500 }
34501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
34502 return resultobj;
34503 fail:
34504 return NULL;
34505 }
34506
34507
34508 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34509 PyObject *resultobj = 0;
34510 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34511 void *argp1 = 0 ;
34512 int res1 = 0 ;
34513 PyObject *swig_obj[1] ;
34514
34515 if (!args) SWIG_fail;
34516 swig_obj[0] = args;
34517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
34518 if (!SWIG_IsOK(res1)) {
34519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34520 }
34521 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34522 {
34523 PyThreadState* __tstate = wxPyBeginAllowThreads();
34524 delete arg1;
34525
34526 wxPyEndAllowThreads(__tstate);
34527 if (PyErr_Occurred()) SWIG_fail;
34528 }
34529 resultobj = SWIG_Py_Void();
34530 return resultobj;
34531 fail:
34532 return NULL;
34533 }
34534
34535
34536 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34537 PyObject *resultobj = 0;
34538 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34539 wxColour *arg2 = (wxColour *) 0 ;
34540 void *argp1 = 0 ;
34541 int res1 = 0 ;
34542 wxColour temp2 ;
34543 PyObject *swig_obj[2] ;
34544
34545 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
34546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34547 if (!SWIG_IsOK(res1)) {
34548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34549 }
34550 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34551 {
34552 arg2 = &temp2;
34553 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34554 }
34555 if (arg1) (arg1)->m_arrowColour = *arg2;
34556
34557 resultobj = SWIG_Py_Void();
34558 return resultobj;
34559 fail:
34560 return NULL;
34561 }
34562
34563
34564 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34565 PyObject *resultobj = 0;
34566 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34567 wxColour *result = 0 ;
34568 void *argp1 = 0 ;
34569 int res1 = 0 ;
34570 PyObject *swig_obj[1] ;
34571
34572 if (!args) SWIG_fail;
34573 swig_obj[0] = args;
34574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34575 if (!SWIG_IsOK(res1)) {
34576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34577 }
34578 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34579 result = (wxColour *)& ((arg1)->m_arrowColour);
34580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34581 return resultobj;
34582 fail:
34583 return NULL;
34584 }
34585
34586
34587 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34588 PyObject *resultobj = 0;
34589 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34590 wxColour *arg2 = (wxColour *) 0 ;
34591 void *argp1 = 0 ;
34592 int res1 = 0 ;
34593 wxColour temp2 ;
34594 PyObject *swig_obj[2] ;
34595
34596 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
34597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34598 if (!SWIG_IsOK(res1)) {
34599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34600 }
34601 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34602 {
34603 arg2 = &temp2;
34604 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34605 }
34606 if (arg1) (arg1)->m_selectionColour = *arg2;
34607
34608 resultobj = SWIG_Py_Void();
34609 return resultobj;
34610 fail:
34611 return NULL;
34612 }
34613
34614
34615 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34616 PyObject *resultobj = 0;
34617 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34618 wxColour *result = 0 ;
34619 void *argp1 = 0 ;
34620 int res1 = 0 ;
34621 PyObject *swig_obj[1] ;
34622
34623 if (!args) SWIG_fail;
34624 swig_obj[0] = args;
34625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34626 if (!SWIG_IsOK(res1)) {
34627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34628 }
34629 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34630 result = (wxColour *)& ((arg1)->m_selectionColour);
34631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34632 return resultobj;
34633 fail:
34634 return NULL;
34635 }
34636
34637
34638 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34639 PyObject *resultobj = 0;
34640 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34641 wxString *arg2 = (wxString *) 0 ;
34642 void *argp1 = 0 ;
34643 int res1 = 0 ;
34644 bool temp2 = false ;
34645 PyObject *swig_obj[2] ;
34646
34647 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
34648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34649 if (!SWIG_IsOK(res1)) {
34650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34651 }
34652 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34653 {
34654 arg2 = wxString_in_helper(swig_obj[1]);
34655 if (arg2 == NULL) SWIG_fail;
34656 temp2 = true;
34657 }
34658 if (arg1) (arg1)->m_labelText = *arg2;
34659
34660 resultobj = SWIG_Py_Void();
34661 {
34662 if (temp2)
34663 delete arg2;
34664 }
34665 return resultobj;
34666 fail:
34667 {
34668 if (temp2)
34669 delete arg2;
34670 }
34671 return NULL;
34672 }
34673
34674
34675 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34676 PyObject *resultobj = 0;
34677 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34678 wxString *result = 0 ;
34679 void *argp1 = 0 ;
34680 int res1 = 0 ;
34681 PyObject *swig_obj[1] ;
34682
34683 if (!args) SWIG_fail;
34684 swig_obj[0] = args;
34685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34686 if (!SWIG_IsOK(res1)) {
34687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34688 }
34689 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34690 result = (wxString *)& ((arg1)->m_labelText);
34691 {
34692 #if wxUSE_UNICODE
34693 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34694 #else
34695 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34696 #endif
34697 }
34698 return resultobj;
34699 fail:
34700 return NULL;
34701 }
34702
34703
34704 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34705 PyObject *resultobj = 0;
34706 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34707 wxFont *arg2 = (wxFont *) 0 ;
34708 void *argp1 = 0 ;
34709 int res1 = 0 ;
34710 void *argp2 = 0 ;
34711 int res2 = 0 ;
34712 PyObject *swig_obj[2] ;
34713
34714 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34716 if (!SWIG_IsOK(res1)) {
34717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34718 }
34719 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34720 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34721 if (!SWIG_IsOK(res2)) {
34722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34723 }
34724 arg2 = reinterpret_cast< wxFont * >(argp2);
34725 if (arg1) (arg1)->m_labelFont = *arg2;
34726
34727 resultobj = SWIG_Py_Void();
34728 return resultobj;
34729 fail:
34730 return NULL;
34731 }
34732
34733
34734 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34735 PyObject *resultobj = 0;
34736 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34737 wxFont *result = 0 ;
34738 void *argp1 = 0 ;
34739 int res1 = 0 ;
34740 PyObject *swig_obj[1] ;
34741
34742 if (!args) SWIG_fail;
34743 swig_obj[0] = args;
34744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34745 if (!SWIG_IsOK(res1)) {
34746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34747 }
34748 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34749 result = (wxFont *)& ((arg1)->m_labelFont);
34750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34751 return resultobj;
34752 fail:
34753 return NULL;
34754 }
34755
34756
34757 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34758 PyObject *resultobj = 0;
34759 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34760 wxColour *arg2 = (wxColour *) 0 ;
34761 void *argp1 = 0 ;
34762 int res1 = 0 ;
34763 wxColour temp2 ;
34764 PyObject *swig_obj[2] ;
34765
34766 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34768 if (!SWIG_IsOK(res1)) {
34769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34770 }
34771 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34772 {
34773 arg2 = &temp2;
34774 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34775 }
34776 if (arg1) (arg1)->m_labelColour = *arg2;
34777
34778 resultobj = SWIG_Py_Void();
34779 return resultobj;
34780 fail:
34781 return NULL;
34782 }
34783
34784
34785 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34786 PyObject *resultobj = 0;
34787 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34788 wxColour *result = 0 ;
34789 void *argp1 = 0 ;
34790 int res1 = 0 ;
34791 PyObject *swig_obj[1] ;
34792
34793 if (!args) SWIG_fail;
34794 swig_obj[0] = args;
34795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34796 if (!SWIG_IsOK(res1)) {
34797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34798 }
34799 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34800 result = (wxColour *)& ((arg1)->m_labelColour);
34801 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34802 return resultobj;
34803 fail:
34804 return NULL;
34805 }
34806
34807
34808 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34809 PyObject *resultobj = 0;
34810 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34811 wxBitmap *arg2 = (wxBitmap *) 0 ;
34812 void *argp1 = 0 ;
34813 int res1 = 0 ;
34814 void *argp2 = 0 ;
34815 int res2 = 0 ;
34816 PyObject *swig_obj[2] ;
34817
34818 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34820 if (!SWIG_IsOK(res1)) {
34821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34822 }
34823 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34824 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34825 if (!SWIG_IsOK(res2)) {
34826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34827 }
34828 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34829 if (arg1) (arg1)->m_labelBitmap = *arg2;
34830
34831 resultobj = SWIG_Py_Void();
34832 return resultobj;
34833 fail:
34834 return NULL;
34835 }
34836
34837
34838 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34839 PyObject *resultobj = 0;
34840 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34841 wxBitmap *result = 0 ;
34842 void *argp1 = 0 ;
34843 int res1 = 0 ;
34844 PyObject *swig_obj[1] ;
34845
34846 if (!args) SWIG_fail;
34847 swig_obj[0] = args;
34848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34849 if (!SWIG_IsOK(res1)) {
34850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34851 }
34852 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34853 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34855 return resultobj;
34856 fail:
34857 return NULL;
34858 }
34859
34860
34861 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34862 PyObject *resultobj = 0;
34863 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34864 int arg2 ;
34865 void *argp1 = 0 ;
34866 int res1 = 0 ;
34867 int val2 ;
34868 int ecode2 = 0 ;
34869 PyObject *swig_obj[2] ;
34870
34871 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34873 if (!SWIG_IsOK(res1)) {
34874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34875 }
34876 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34877 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34878 if (!SWIG_IsOK(ecode2)) {
34879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34880 }
34881 arg2 = static_cast< int >(val2);
34882 if (arg1) (arg1)->m_labelAlignment = arg2;
34883
34884 resultobj = SWIG_Py_Void();
34885 return resultobj;
34886 fail:
34887 return NULL;
34888 }
34889
34890
34891 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34892 PyObject *resultobj = 0;
34893 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34894 int result;
34895 void *argp1 = 0 ;
34896 int res1 = 0 ;
34897 PyObject *swig_obj[1] ;
34898
34899 if (!args) SWIG_fail;
34900 swig_obj[0] = args;
34901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34902 if (!SWIG_IsOK(res1)) {
34903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34904 }
34905 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34906 result = (int) ((arg1)->m_labelAlignment);
34907 resultobj = SWIG_From_int(static_cast< int >(result));
34908 return resultobj;
34909 fail:
34910 return NULL;
34911 }
34912
34913
34914 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34915 PyObject *obj;
34916 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34917 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34918 return SWIG_Py_Void();
34919 }
34920
34921 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34922 return SWIG_Python_InitShadowInstance(args);
34923 }
34924
34925 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34926 PyObject *resultobj = 0;
34927 int arg1 ;
34928 int arg2 ;
34929 wxRendererVersion *result = 0 ;
34930 int val1 ;
34931 int ecode1 = 0 ;
34932 int val2 ;
34933 int ecode2 = 0 ;
34934 PyObject * obj0 = 0 ;
34935 PyObject * obj1 = 0 ;
34936 char * kwnames[] = {
34937 (char *) "version_",(char *) "age_", NULL
34938 };
34939
34940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34941 ecode1 = SWIG_AsVal_int(obj0, &val1);
34942 if (!SWIG_IsOK(ecode1)) {
34943 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34944 }
34945 arg1 = static_cast< int >(val1);
34946 ecode2 = SWIG_AsVal_int(obj1, &val2);
34947 if (!SWIG_IsOK(ecode2)) {
34948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34949 }
34950 arg2 = static_cast< int >(val2);
34951 {
34952 PyThreadState* __tstate = wxPyBeginAllowThreads();
34953 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34954 wxPyEndAllowThreads(__tstate);
34955 if (PyErr_Occurred()) SWIG_fail;
34956 }
34957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34958 return resultobj;
34959 fail:
34960 return NULL;
34961 }
34962
34963
34964 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34965 PyObject *resultobj = 0;
34966 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34967 void *argp1 = 0 ;
34968 int res1 = 0 ;
34969 PyObject *swig_obj[1] ;
34970
34971 if (!args) SWIG_fail;
34972 swig_obj[0] = args;
34973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34974 if (!SWIG_IsOK(res1)) {
34975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34976 }
34977 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34978 {
34979 PyThreadState* __tstate = wxPyBeginAllowThreads();
34980 delete arg1;
34981
34982 wxPyEndAllowThreads(__tstate);
34983 if (PyErr_Occurred()) SWIG_fail;
34984 }
34985 resultobj = SWIG_Py_Void();
34986 return resultobj;
34987 fail:
34988 return NULL;
34989 }
34990
34991
34992 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34993 PyObject *resultobj = 0;
34994 wxRendererVersion *arg1 = 0 ;
34995 bool result;
34996 void *argp1 = 0 ;
34997 int res1 = 0 ;
34998 PyObject * obj0 = 0 ;
34999 char * kwnames[] = {
35000 (char *) "ver", NULL
35001 };
35002
35003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
35004 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
35005 if (!SWIG_IsOK(res1)) {
35006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
35007 }
35008 if (!argp1) {
35009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
35010 }
35011 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35012 {
35013 PyThreadState* __tstate = wxPyBeginAllowThreads();
35014 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
35015 wxPyEndAllowThreads(__tstate);
35016 if (PyErr_Occurred()) SWIG_fail;
35017 }
35018 {
35019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35020 }
35021 return resultobj;
35022 fail:
35023 return NULL;
35024 }
35025
35026
35027 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35028 PyObject *resultobj = 0;
35029 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
35030 int result;
35031 void *argp1 = 0 ;
35032 int res1 = 0 ;
35033 PyObject *swig_obj[1] ;
35034
35035 if (!args) SWIG_fail;
35036 swig_obj[0] = args;
35037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
35038 if (!SWIG_IsOK(res1)) {
35039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
35040 }
35041 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35042 result = (int)(int) ((arg1)->version);
35043 resultobj = SWIG_From_int(static_cast< int >(result));
35044 return resultobj;
35045 fail:
35046 return NULL;
35047 }
35048
35049
35050 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35051 PyObject *resultobj = 0;
35052 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
35053 int result;
35054 void *argp1 = 0 ;
35055 int res1 = 0 ;
35056 PyObject *swig_obj[1] ;
35057
35058 if (!args) SWIG_fail;
35059 swig_obj[0] = args;
35060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
35061 if (!SWIG_IsOK(res1)) {
35062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
35063 }
35064 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35065 result = (int)(int) ((arg1)->age);
35066 resultobj = SWIG_From_int(static_cast< int >(result));
35067 return resultobj;
35068 fail:
35069 return NULL;
35070 }
35071
35072
35073 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35074 PyObject *obj;
35075 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35076 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
35077 return SWIG_Py_Void();
35078 }
35079
35080 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35081 return SWIG_Python_InitShadowInstance(args);
35082 }
35083
35084 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35085 PyObject *resultobj = 0;
35086 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35087 wxWindow *arg2 = (wxWindow *) 0 ;
35088 wxDC *arg3 = 0 ;
35089 wxRect *arg4 = 0 ;
35090 int arg5 = (int) 0 ;
35091 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
35092 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
35093 int result;
35094 void *argp1 = 0 ;
35095 int res1 = 0 ;
35096 void *argp2 = 0 ;
35097 int res2 = 0 ;
35098 void *argp3 = 0 ;
35099 int res3 = 0 ;
35100 wxRect temp4 ;
35101 int val5 ;
35102 int ecode5 = 0 ;
35103 int val6 ;
35104 int ecode6 = 0 ;
35105 void *argp7 = 0 ;
35106 int res7 = 0 ;
35107 PyObject * obj0 = 0 ;
35108 PyObject * obj1 = 0 ;
35109 PyObject * obj2 = 0 ;
35110 PyObject * obj3 = 0 ;
35111 PyObject * obj4 = 0 ;
35112 PyObject * obj5 = 0 ;
35113 PyObject * obj6 = 0 ;
35114 char * kwnames[] = {
35115 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
35116 };
35117
35118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35120 if (!SWIG_IsOK(res1)) {
35121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35122 }
35123 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35124 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35125 if (!SWIG_IsOK(res2)) {
35126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35127 }
35128 arg2 = reinterpret_cast< wxWindow * >(argp2);
35129 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35130 if (!SWIG_IsOK(res3)) {
35131 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
35132 }
35133 if (!argp3) {
35134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
35135 }
35136 arg3 = reinterpret_cast< wxDC * >(argp3);
35137 {
35138 arg4 = &temp4;
35139 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35140 }
35141 if (obj4) {
35142 ecode5 = SWIG_AsVal_int(obj4, &val5);
35143 if (!SWIG_IsOK(ecode5)) {
35144 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
35145 }
35146 arg5 = static_cast< int >(val5);
35147 }
35148 if (obj5) {
35149 ecode6 = SWIG_AsVal_int(obj5, &val6);
35150 if (!SWIG_IsOK(ecode6)) {
35151 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
35152 }
35153 arg6 = static_cast< wxHeaderSortIconType >(val6);
35154 }
35155 if (obj6) {
35156 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35157 if (!SWIG_IsOK(res7)) {
35158 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
35159 }
35160 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
35161 }
35162 {
35163 PyThreadState* __tstate = wxPyBeginAllowThreads();
35164 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
35165 wxPyEndAllowThreads(__tstate);
35166 if (PyErr_Occurred()) SWIG_fail;
35167 }
35168 resultobj = SWIG_From_int(static_cast< int >(result));
35169 return resultobj;
35170 fail:
35171 return NULL;
35172 }
35173
35174
35175 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35176 PyObject *resultobj = 0;
35177 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35178 wxWindow *arg2 = (wxWindow *) 0 ;
35179 wxDC *arg3 = 0 ;
35180 wxRect *arg4 = 0 ;
35181 int arg5 = (int) 0 ;
35182 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
35183 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
35184 int result;
35185 void *argp1 = 0 ;
35186 int res1 = 0 ;
35187 void *argp2 = 0 ;
35188 int res2 = 0 ;
35189 void *argp3 = 0 ;
35190 int res3 = 0 ;
35191 wxRect temp4 ;
35192 int val5 ;
35193 int ecode5 = 0 ;
35194 int val6 ;
35195 int ecode6 = 0 ;
35196 void *argp7 = 0 ;
35197 int res7 = 0 ;
35198 PyObject * obj0 = 0 ;
35199 PyObject * obj1 = 0 ;
35200 PyObject * obj2 = 0 ;
35201 PyObject * obj3 = 0 ;
35202 PyObject * obj4 = 0 ;
35203 PyObject * obj5 = 0 ;
35204 PyObject * obj6 = 0 ;
35205 char * kwnames[] = {
35206 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
35207 };
35208
35209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35211 if (!SWIG_IsOK(res1)) {
35212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35213 }
35214 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35215 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35216 if (!SWIG_IsOK(res2)) {
35217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
35218 }
35219 arg2 = reinterpret_cast< wxWindow * >(argp2);
35220 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35221 if (!SWIG_IsOK(res3)) {
35222 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35223 }
35224 if (!argp3) {
35225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35226 }
35227 arg3 = reinterpret_cast< wxDC * >(argp3);
35228 {
35229 arg4 = &temp4;
35230 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35231 }
35232 if (obj4) {
35233 ecode5 = SWIG_AsVal_int(obj4, &val5);
35234 if (!SWIG_IsOK(ecode5)) {
35235 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
35236 }
35237 arg5 = static_cast< int >(val5);
35238 }
35239 if (obj5) {
35240 ecode6 = SWIG_AsVal_int(obj5, &val6);
35241 if (!SWIG_IsOK(ecode6)) {
35242 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
35243 }
35244 arg6 = static_cast< wxHeaderSortIconType >(val6);
35245 }
35246 if (obj6) {
35247 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35248 if (!SWIG_IsOK(res7)) {
35249 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
35250 }
35251 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
35252 }
35253 {
35254 PyThreadState* __tstate = wxPyBeginAllowThreads();
35255 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
35256 wxPyEndAllowThreads(__tstate);
35257 if (PyErr_Occurred()) SWIG_fail;
35258 }
35259 resultobj = SWIG_From_int(static_cast< int >(result));
35260 return resultobj;
35261 fail:
35262 return NULL;
35263 }
35264
35265
35266 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35267 PyObject *resultobj = 0;
35268 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35269 wxWindow *arg2 = (wxWindow *) 0 ;
35270 int result;
35271 void *argp1 = 0 ;
35272 int res1 = 0 ;
35273 void *argp2 = 0 ;
35274 int res2 = 0 ;
35275 PyObject * obj0 = 0 ;
35276 PyObject * obj1 = 0 ;
35277 char * kwnames[] = {
35278 (char *) "self",(char *) "win", NULL
35279 };
35280
35281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
35282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35283 if (!SWIG_IsOK(res1)) {
35284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35285 }
35286 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35287 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35288 if (!SWIG_IsOK(res2)) {
35289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
35290 }
35291 arg2 = reinterpret_cast< wxWindow * >(argp2);
35292 {
35293 PyThreadState* __tstate = wxPyBeginAllowThreads();
35294 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
35295 wxPyEndAllowThreads(__tstate);
35296 if (PyErr_Occurred()) SWIG_fail;
35297 }
35298 resultobj = SWIG_From_int(static_cast< int >(result));
35299 return resultobj;
35300 fail:
35301 return NULL;
35302 }
35303
35304
35305 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35306 PyObject *resultobj = 0;
35307 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35308 wxWindow *arg2 = (wxWindow *) 0 ;
35309 wxDC *arg3 = 0 ;
35310 wxRect *arg4 = 0 ;
35311 int arg5 = (int) 0 ;
35312 void *argp1 = 0 ;
35313 int res1 = 0 ;
35314 void *argp2 = 0 ;
35315 int res2 = 0 ;
35316 void *argp3 = 0 ;
35317 int res3 = 0 ;
35318 wxRect temp4 ;
35319 int val5 ;
35320 int ecode5 = 0 ;
35321 PyObject * obj0 = 0 ;
35322 PyObject * obj1 = 0 ;
35323 PyObject * obj2 = 0 ;
35324 PyObject * obj3 = 0 ;
35325 PyObject * obj4 = 0 ;
35326 char * kwnames[] = {
35327 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35328 };
35329
35330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35332 if (!SWIG_IsOK(res1)) {
35333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35334 }
35335 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35336 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35337 if (!SWIG_IsOK(res2)) {
35338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35339 }
35340 arg2 = reinterpret_cast< wxWindow * >(argp2);
35341 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35342 if (!SWIG_IsOK(res3)) {
35343 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35344 }
35345 if (!argp3) {
35346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35347 }
35348 arg3 = reinterpret_cast< wxDC * >(argp3);
35349 {
35350 arg4 = &temp4;
35351 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35352 }
35353 if (obj4) {
35354 ecode5 = SWIG_AsVal_int(obj4, &val5);
35355 if (!SWIG_IsOK(ecode5)) {
35356 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
35357 }
35358 arg5 = static_cast< int >(val5);
35359 }
35360 {
35361 PyThreadState* __tstate = wxPyBeginAllowThreads();
35362 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35363 wxPyEndAllowThreads(__tstate);
35364 if (PyErr_Occurred()) SWIG_fail;
35365 }
35366 resultobj = SWIG_Py_Void();
35367 return resultobj;
35368 fail:
35369 return NULL;
35370 }
35371
35372
35373 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35374 PyObject *resultobj = 0;
35375 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35376 wxWindow *arg2 = (wxWindow *) 0 ;
35377 wxDC *arg3 = 0 ;
35378 wxRect *arg4 = 0 ;
35379 int arg5 = (int) 0 ;
35380 void *argp1 = 0 ;
35381 int res1 = 0 ;
35382 void *argp2 = 0 ;
35383 int res2 = 0 ;
35384 void *argp3 = 0 ;
35385 int res3 = 0 ;
35386 wxRect temp4 ;
35387 int val5 ;
35388 int ecode5 = 0 ;
35389 PyObject * obj0 = 0 ;
35390 PyObject * obj1 = 0 ;
35391 PyObject * obj2 = 0 ;
35392 PyObject * obj3 = 0 ;
35393 PyObject * obj4 = 0 ;
35394 char * kwnames[] = {
35395 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35396 };
35397
35398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35400 if (!SWIG_IsOK(res1)) {
35401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35402 }
35403 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35404 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35405 if (!SWIG_IsOK(res2)) {
35406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
35407 }
35408 arg2 = reinterpret_cast< wxWindow * >(argp2);
35409 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35410 if (!SWIG_IsOK(res3)) {
35411 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35412 }
35413 if (!argp3) {
35414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35415 }
35416 arg3 = reinterpret_cast< wxDC * >(argp3);
35417 {
35418 arg4 = &temp4;
35419 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35420 }
35421 if (obj4) {
35422 ecode5 = SWIG_AsVal_int(obj4, &val5);
35423 if (!SWIG_IsOK(ecode5)) {
35424 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
35425 }
35426 arg5 = static_cast< int >(val5);
35427 }
35428 {
35429 PyThreadState* __tstate = wxPyBeginAllowThreads();
35430 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
35431 wxPyEndAllowThreads(__tstate);
35432 if (PyErr_Occurred()) SWIG_fail;
35433 }
35434 resultobj = SWIG_Py_Void();
35435 return resultobj;
35436 fail:
35437 return NULL;
35438 }
35439
35440
35441 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35442 PyObject *resultobj = 0;
35443 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35444 wxWindow *arg2 = (wxWindow *) 0 ;
35445 wxDC *arg3 = 0 ;
35446 wxSize *arg4 = 0 ;
35447 int arg5 ;
35448 wxOrientation arg6 ;
35449 int arg7 = (int) 0 ;
35450 void *argp1 = 0 ;
35451 int res1 = 0 ;
35452 void *argp2 = 0 ;
35453 int res2 = 0 ;
35454 void *argp3 = 0 ;
35455 int res3 = 0 ;
35456 wxSize temp4 ;
35457 int val5 ;
35458 int ecode5 = 0 ;
35459 int val6 ;
35460 int ecode6 = 0 ;
35461 int val7 ;
35462 int ecode7 = 0 ;
35463 PyObject * obj0 = 0 ;
35464 PyObject * obj1 = 0 ;
35465 PyObject * obj2 = 0 ;
35466 PyObject * obj3 = 0 ;
35467 PyObject * obj4 = 0 ;
35468 PyObject * obj5 = 0 ;
35469 PyObject * obj6 = 0 ;
35470 char * kwnames[] = {
35471 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
35472 };
35473
35474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35476 if (!SWIG_IsOK(res1)) {
35477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35478 }
35479 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35480 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35481 if (!SWIG_IsOK(res2)) {
35482 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
35483 }
35484 arg2 = reinterpret_cast< wxWindow * >(argp2);
35485 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35486 if (!SWIG_IsOK(res3)) {
35487 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35488 }
35489 if (!argp3) {
35490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35491 }
35492 arg3 = reinterpret_cast< wxDC * >(argp3);
35493 {
35494 arg4 = &temp4;
35495 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
35496 }
35497 ecode5 = SWIG_AsVal_int(obj4, &val5);
35498 if (!SWIG_IsOK(ecode5)) {
35499 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
35500 }
35501 arg5 = static_cast< int >(val5);
35502 ecode6 = SWIG_AsVal_int(obj5, &val6);
35503 if (!SWIG_IsOK(ecode6)) {
35504 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
35505 }
35506 arg6 = static_cast< wxOrientation >(val6);
35507 if (obj6) {
35508 ecode7 = SWIG_AsVal_int(obj6, &val7);
35509 if (!SWIG_IsOK(ecode7)) {
35510 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
35511 }
35512 arg7 = static_cast< int >(val7);
35513 }
35514 {
35515 PyThreadState* __tstate = wxPyBeginAllowThreads();
35516 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
35517 wxPyEndAllowThreads(__tstate);
35518 if (PyErr_Occurred()) SWIG_fail;
35519 }
35520 resultobj = SWIG_Py_Void();
35521 return resultobj;
35522 fail:
35523 return NULL;
35524 }
35525
35526
35527 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35528 PyObject *resultobj = 0;
35529 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35530 wxWindow *arg2 = (wxWindow *) 0 ;
35531 wxDC *arg3 = 0 ;
35532 wxRect *arg4 = 0 ;
35533 int arg5 = (int) 0 ;
35534 void *argp1 = 0 ;
35535 int res1 = 0 ;
35536 void *argp2 = 0 ;
35537 int res2 = 0 ;
35538 void *argp3 = 0 ;
35539 int res3 = 0 ;
35540 wxRect temp4 ;
35541 int val5 ;
35542 int ecode5 = 0 ;
35543 PyObject * obj0 = 0 ;
35544 PyObject * obj1 = 0 ;
35545 PyObject * obj2 = 0 ;
35546 PyObject * obj3 = 0 ;
35547 PyObject * obj4 = 0 ;
35548 char * kwnames[] = {
35549 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35550 };
35551
35552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35554 if (!SWIG_IsOK(res1)) {
35555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35556 }
35557 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35558 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35559 if (!SWIG_IsOK(res2)) {
35560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35561 }
35562 arg2 = reinterpret_cast< wxWindow * >(argp2);
35563 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35564 if (!SWIG_IsOK(res3)) {
35565 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35566 }
35567 if (!argp3) {
35568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35569 }
35570 arg3 = reinterpret_cast< wxDC * >(argp3);
35571 {
35572 arg4 = &temp4;
35573 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35574 }
35575 if (obj4) {
35576 ecode5 = SWIG_AsVal_int(obj4, &val5);
35577 if (!SWIG_IsOK(ecode5)) {
35578 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
35579 }
35580 arg5 = static_cast< int >(val5);
35581 }
35582 {
35583 PyThreadState* __tstate = wxPyBeginAllowThreads();
35584 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35585 wxPyEndAllowThreads(__tstate);
35586 if (PyErr_Occurred()) SWIG_fail;
35587 }
35588 resultobj = SWIG_Py_Void();
35589 return resultobj;
35590 fail:
35591 return NULL;
35592 }
35593
35594
35595 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35596 PyObject *resultobj = 0;
35597 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35598 wxWindow *arg2 = (wxWindow *) 0 ;
35599 wxDC *arg3 = 0 ;
35600 wxRect *arg4 = 0 ;
35601 int arg5 = (int) 0 ;
35602 void *argp1 = 0 ;
35603 int res1 = 0 ;
35604 void *argp2 = 0 ;
35605 int res2 = 0 ;
35606 void *argp3 = 0 ;
35607 int res3 = 0 ;
35608 wxRect temp4 ;
35609 int val5 ;
35610 int ecode5 = 0 ;
35611 PyObject * obj0 = 0 ;
35612 PyObject * obj1 = 0 ;
35613 PyObject * obj2 = 0 ;
35614 PyObject * obj3 = 0 ;
35615 PyObject * obj4 = 0 ;
35616 char * kwnames[] = {
35617 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35618 };
35619
35620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35622 if (!SWIG_IsOK(res1)) {
35623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35624 }
35625 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35626 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35627 if (!SWIG_IsOK(res2)) {
35628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
35629 }
35630 arg2 = reinterpret_cast< wxWindow * >(argp2);
35631 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35632 if (!SWIG_IsOK(res3)) {
35633 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35634 }
35635 if (!argp3) {
35636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35637 }
35638 arg3 = reinterpret_cast< wxDC * >(argp3);
35639 {
35640 arg4 = &temp4;
35641 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35642 }
35643 if (obj4) {
35644 ecode5 = SWIG_AsVal_int(obj4, &val5);
35645 if (!SWIG_IsOK(ecode5)) {
35646 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
35647 }
35648 arg5 = static_cast< int >(val5);
35649 }
35650 {
35651 PyThreadState* __tstate = wxPyBeginAllowThreads();
35652 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
35653 wxPyEndAllowThreads(__tstate);
35654 if (PyErr_Occurred()) SWIG_fail;
35655 }
35656 resultobj = SWIG_Py_Void();
35657 return resultobj;
35658 fail:
35659 return NULL;
35660 }
35661
35662
35663 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35664 PyObject *resultobj = 0;
35665 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35666 wxWindow *arg2 = (wxWindow *) 0 ;
35667 wxDC *arg3 = 0 ;
35668 wxRect *arg4 = 0 ;
35669 int arg5 = (int) 0 ;
35670 void *argp1 = 0 ;
35671 int res1 = 0 ;
35672 void *argp2 = 0 ;
35673 int res2 = 0 ;
35674 void *argp3 = 0 ;
35675 int res3 = 0 ;
35676 wxRect temp4 ;
35677 int val5 ;
35678 int ecode5 = 0 ;
35679 PyObject * obj0 = 0 ;
35680 PyObject * obj1 = 0 ;
35681 PyObject * obj2 = 0 ;
35682 PyObject * obj3 = 0 ;
35683 PyObject * obj4 = 0 ;
35684 char * kwnames[] = {
35685 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35686 };
35687
35688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35690 if (!SWIG_IsOK(res1)) {
35691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35692 }
35693 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35694 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35695 if (!SWIG_IsOK(res2)) {
35696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
35697 }
35698 arg2 = reinterpret_cast< wxWindow * >(argp2);
35699 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35700 if (!SWIG_IsOK(res3)) {
35701 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35702 }
35703 if (!argp3) {
35704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35705 }
35706 arg3 = reinterpret_cast< wxDC * >(argp3);
35707 {
35708 arg4 = &temp4;
35709 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35710 }
35711 if (obj4) {
35712 ecode5 = SWIG_AsVal_int(obj4, &val5);
35713 if (!SWIG_IsOK(ecode5)) {
35714 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35715 }
35716 arg5 = static_cast< int >(val5);
35717 }
35718 {
35719 PyThreadState* __tstate = wxPyBeginAllowThreads();
35720 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35721 wxPyEndAllowThreads(__tstate);
35722 if (PyErr_Occurred()) SWIG_fail;
35723 }
35724 resultobj = SWIG_Py_Void();
35725 return resultobj;
35726 fail:
35727 return NULL;
35728 }
35729
35730
35731 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35732 PyObject *resultobj = 0;
35733 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35734 wxWindow *arg2 = (wxWindow *) 0 ;
35735 wxDC *arg3 = 0 ;
35736 wxRect *arg4 = 0 ;
35737 int arg5 = (int) 0 ;
35738 void *argp1 = 0 ;
35739 int res1 = 0 ;
35740 void *argp2 = 0 ;
35741 int res2 = 0 ;
35742 void *argp3 = 0 ;
35743 int res3 = 0 ;
35744 wxRect temp4 ;
35745 int val5 ;
35746 int ecode5 = 0 ;
35747 PyObject * obj0 = 0 ;
35748 PyObject * obj1 = 0 ;
35749 PyObject * obj2 = 0 ;
35750 PyObject * obj3 = 0 ;
35751 PyObject * obj4 = 0 ;
35752 char * kwnames[] = {
35753 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35754 };
35755
35756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35758 if (!SWIG_IsOK(res1)) {
35759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35760 }
35761 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35762 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35763 if (!SWIG_IsOK(res2)) {
35764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35765 }
35766 arg2 = reinterpret_cast< wxWindow * >(argp2);
35767 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35768 if (!SWIG_IsOK(res3)) {
35769 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35770 }
35771 if (!argp3) {
35772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35773 }
35774 arg3 = reinterpret_cast< wxDC * >(argp3);
35775 {
35776 arg4 = &temp4;
35777 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35778 }
35779 if (obj4) {
35780 ecode5 = SWIG_AsVal_int(obj4, &val5);
35781 if (!SWIG_IsOK(ecode5)) {
35782 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35783 }
35784 arg5 = static_cast< int >(val5);
35785 }
35786 {
35787 PyThreadState* __tstate = wxPyBeginAllowThreads();
35788 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35789 wxPyEndAllowThreads(__tstate);
35790 if (PyErr_Occurred()) SWIG_fail;
35791 }
35792 resultobj = SWIG_Py_Void();
35793 return resultobj;
35794 fail:
35795 return NULL;
35796 }
35797
35798
35799 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35800 PyObject *resultobj = 0;
35801 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35802 wxWindow *arg2 = (wxWindow *) 0 ;
35803 wxDC *arg3 = 0 ;
35804 wxRect *arg4 = 0 ;
35805 int arg5 = (int) 0 ;
35806 void *argp1 = 0 ;
35807 int res1 = 0 ;
35808 void *argp2 = 0 ;
35809 int res2 = 0 ;
35810 void *argp3 = 0 ;
35811 int res3 = 0 ;
35812 wxRect temp4 ;
35813 int val5 ;
35814 int ecode5 = 0 ;
35815 PyObject * obj0 = 0 ;
35816 PyObject * obj1 = 0 ;
35817 PyObject * obj2 = 0 ;
35818 PyObject * obj3 = 0 ;
35819 PyObject * obj4 = 0 ;
35820 char * kwnames[] = {
35821 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35822 };
35823
35824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35826 if (!SWIG_IsOK(res1)) {
35827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35828 }
35829 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35830 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35831 if (!SWIG_IsOK(res2)) {
35832 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
35833 }
35834 arg2 = reinterpret_cast< wxWindow * >(argp2);
35835 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35836 if (!SWIG_IsOK(res3)) {
35837 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35838 }
35839 if (!argp3) {
35840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35841 }
35842 arg3 = reinterpret_cast< wxDC * >(argp3);
35843 {
35844 arg4 = &temp4;
35845 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35846 }
35847 if (obj4) {
35848 ecode5 = SWIG_AsVal_int(obj4, &val5);
35849 if (!SWIG_IsOK(ecode5)) {
35850 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
35851 }
35852 arg5 = static_cast< int >(val5);
35853 }
35854 {
35855 PyThreadState* __tstate = wxPyBeginAllowThreads();
35856 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
35857 wxPyEndAllowThreads(__tstate);
35858 if (PyErr_Occurred()) SWIG_fail;
35859 }
35860 resultobj = SWIG_Py_Void();
35861 return resultobj;
35862 fail:
35863 return NULL;
35864 }
35865
35866
35867 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35868 PyObject *resultobj = 0;
35869 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35870 wxWindow *arg2 = (wxWindow *) 0 ;
35871 SwigValueWrapper<wxSplitterRenderParams > result;
35872 void *argp1 = 0 ;
35873 int res1 = 0 ;
35874 void *argp2 = 0 ;
35875 int res2 = 0 ;
35876 PyObject * obj0 = 0 ;
35877 PyObject * obj1 = 0 ;
35878 char * kwnames[] = {
35879 (char *) "self",(char *) "win", NULL
35880 };
35881
35882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35884 if (!SWIG_IsOK(res1)) {
35885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35886 }
35887 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35888 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35889 if (!SWIG_IsOK(res2)) {
35890 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35891 }
35892 arg2 = reinterpret_cast< wxWindow * >(argp2);
35893 {
35894 PyThreadState* __tstate = wxPyBeginAllowThreads();
35895 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35896 wxPyEndAllowThreads(__tstate);
35897 if (PyErr_Occurred()) SWIG_fail;
35898 }
35899 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35900 return resultobj;
35901 fail:
35902 return NULL;
35903 }
35904
35905
35906 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35907 PyObject *resultobj = 0;
35908 wxRendererNative *result = 0 ;
35909
35910 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35911 {
35912 if (!wxPyCheckForApp()) SWIG_fail;
35913 PyThreadState* __tstate = wxPyBeginAllowThreads();
35914 {
35915 wxRendererNative &_result_ref = wxRendererNative::Get();
35916 result = (wxRendererNative *) &_result_ref;
35917 }
35918 wxPyEndAllowThreads(__tstate);
35919 if (PyErr_Occurred()) SWIG_fail;
35920 }
35921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35922 return resultobj;
35923 fail:
35924 return NULL;
35925 }
35926
35927
35928 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35929 PyObject *resultobj = 0;
35930 wxRendererNative *result = 0 ;
35931
35932 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35933 {
35934 if (!wxPyCheckForApp()) SWIG_fail;
35935 PyThreadState* __tstate = wxPyBeginAllowThreads();
35936 {
35937 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35938 result = (wxRendererNative *) &_result_ref;
35939 }
35940 wxPyEndAllowThreads(__tstate);
35941 if (PyErr_Occurred()) SWIG_fail;
35942 }
35943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35944 return resultobj;
35945 fail:
35946 return NULL;
35947 }
35948
35949
35950 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35951 PyObject *resultobj = 0;
35952 wxRendererNative *result = 0 ;
35953
35954 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35955 {
35956 if (!wxPyCheckForApp()) SWIG_fail;
35957 PyThreadState* __tstate = wxPyBeginAllowThreads();
35958 {
35959 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35960 result = (wxRendererNative *) &_result_ref;
35961 }
35962 wxPyEndAllowThreads(__tstate);
35963 if (PyErr_Occurred()) SWIG_fail;
35964 }
35965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35966 return resultobj;
35967 fail:
35968 return NULL;
35969 }
35970
35971
35972 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35973 PyObject *resultobj = 0;
35974 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35975 wxRendererNative *result = 0 ;
35976 void *argp1 = 0 ;
35977 int res1 = 0 ;
35978 PyObject * obj0 = 0 ;
35979 char * kwnames[] = {
35980 (char *) "renderer", NULL
35981 };
35982
35983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35985 if (!SWIG_IsOK(res1)) {
35986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35987 }
35988 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35989 {
35990 if (!wxPyCheckForApp()) SWIG_fail;
35991 PyThreadState* __tstate = wxPyBeginAllowThreads();
35992 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35993 wxPyEndAllowThreads(__tstate);
35994 if (PyErr_Occurred()) SWIG_fail;
35995 }
35996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35997 return resultobj;
35998 fail:
35999 return NULL;
36000 }
36001
36002
36003 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36004 PyObject *resultobj = 0;
36005 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
36006 SwigValueWrapper<wxRendererVersion > result;
36007 void *argp1 = 0 ;
36008 int res1 = 0 ;
36009 PyObject *swig_obj[1] ;
36010
36011 if (!args) SWIG_fail;
36012 swig_obj[0] = args;
36013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
36014 if (!SWIG_IsOK(res1)) {
36015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
36016 }
36017 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
36018 {
36019 PyThreadState* __tstate = wxPyBeginAllowThreads();
36020 result = ((wxRendererNative const *)arg1)->GetVersion();
36021 wxPyEndAllowThreads(__tstate);
36022 if (PyErr_Occurred()) SWIG_fail;
36023 }
36024 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
36025 return resultobj;
36026 fail:
36027 return NULL;
36028 }
36029
36030
36031 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36032 PyObject *obj;
36033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36034 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
36035 return SWIG_Py_Void();
36036 }
36037
36038 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36039 PyObject *resultobj = 0;
36040 wxPseudoDC *result = 0 ;
36041
36042 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
36043 {
36044 PyThreadState* __tstate = wxPyBeginAllowThreads();
36045 result = (wxPseudoDC *)new wxPseudoDC();
36046 wxPyEndAllowThreads(__tstate);
36047 if (PyErr_Occurred()) SWIG_fail;
36048 }
36049 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
36050 return resultobj;
36051 fail:
36052 return NULL;
36053 }
36054
36055
36056 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36057 PyObject *resultobj = 0;
36058 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36059 void *argp1 = 0 ;
36060 int res1 = 0 ;
36061 PyObject *swig_obj[1] ;
36062
36063 if (!args) SWIG_fail;
36064 swig_obj[0] = args;
36065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36066 if (!SWIG_IsOK(res1)) {
36067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36068 }
36069 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36070 {
36071 PyThreadState* __tstate = wxPyBeginAllowThreads();
36072 (arg1)->BeginDrawing();
36073 wxPyEndAllowThreads(__tstate);
36074 if (PyErr_Occurred()) SWIG_fail;
36075 }
36076 resultobj = SWIG_Py_Void();
36077 return resultobj;
36078 fail:
36079 return NULL;
36080 }
36081
36082
36083 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36084 PyObject *resultobj = 0;
36085 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36086 void *argp1 = 0 ;
36087 int res1 = 0 ;
36088 PyObject *swig_obj[1] ;
36089
36090 if (!args) SWIG_fail;
36091 swig_obj[0] = args;
36092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36093 if (!SWIG_IsOK(res1)) {
36094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36095 }
36096 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36097 {
36098 PyThreadState* __tstate = wxPyBeginAllowThreads();
36099 (arg1)->EndDrawing();
36100 wxPyEndAllowThreads(__tstate);
36101 if (PyErr_Occurred()) SWIG_fail;
36102 }
36103 resultobj = SWIG_Py_Void();
36104 return resultobj;
36105 fail:
36106 return NULL;
36107 }
36108
36109
36110 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36111 PyObject *resultobj = 0;
36112 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36113 void *argp1 = 0 ;
36114 int res1 = 0 ;
36115 PyObject *swig_obj[1] ;
36116
36117 if (!args) SWIG_fail;
36118 swig_obj[0] = args;
36119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
36120 if (!SWIG_IsOK(res1)) {
36121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36122 }
36123 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36124 {
36125 PyThreadState* __tstate = wxPyBeginAllowThreads();
36126 delete arg1;
36127
36128 wxPyEndAllowThreads(__tstate);
36129 if (PyErr_Occurred()) SWIG_fail;
36130 }
36131 resultobj = SWIG_Py_Void();
36132 return resultobj;
36133 fail:
36134 return NULL;
36135 }
36136
36137
36138 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36139 PyObject *resultobj = 0;
36140 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36141 void *argp1 = 0 ;
36142 int res1 = 0 ;
36143 PyObject *swig_obj[1] ;
36144
36145 if (!args) SWIG_fail;
36146 swig_obj[0] = args;
36147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36148 if (!SWIG_IsOK(res1)) {
36149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36150 }
36151 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36152 {
36153 PyThreadState* __tstate = wxPyBeginAllowThreads();
36154 (arg1)->RemoveAll();
36155 wxPyEndAllowThreads(__tstate);
36156 if (PyErr_Occurred()) SWIG_fail;
36157 }
36158 resultobj = SWIG_Py_Void();
36159 return resultobj;
36160 fail:
36161 return NULL;
36162 }
36163
36164
36165 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36166 PyObject *resultobj = 0;
36167 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36168 int result;
36169 void *argp1 = 0 ;
36170 int res1 = 0 ;
36171 PyObject *swig_obj[1] ;
36172
36173 if (!args) SWIG_fail;
36174 swig_obj[0] = args;
36175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36176 if (!SWIG_IsOK(res1)) {
36177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36178 }
36179 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36180 {
36181 PyThreadState* __tstate = wxPyBeginAllowThreads();
36182 result = (int)(arg1)->GetLen();
36183 wxPyEndAllowThreads(__tstate);
36184 if (PyErr_Occurred()) SWIG_fail;
36185 }
36186 resultobj = SWIG_From_int(static_cast< int >(result));
36187 return resultobj;
36188 fail:
36189 return NULL;
36190 }
36191
36192
36193 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36194 PyObject *resultobj = 0;
36195 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36196 int arg2 ;
36197 void *argp1 = 0 ;
36198 int res1 = 0 ;
36199 int val2 ;
36200 int ecode2 = 0 ;
36201 PyObject * obj0 = 0 ;
36202 PyObject * obj1 = 0 ;
36203 char * kwnames[] = {
36204 (char *) "self",(char *) "id", NULL
36205 };
36206
36207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
36208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36209 if (!SWIG_IsOK(res1)) {
36210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36211 }
36212 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36213 ecode2 = SWIG_AsVal_int(obj1, &val2);
36214 if (!SWIG_IsOK(ecode2)) {
36215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
36216 }
36217 arg2 = static_cast< int >(val2);
36218 {
36219 PyThreadState* __tstate = wxPyBeginAllowThreads();
36220 (arg1)->SetId(arg2);
36221 wxPyEndAllowThreads(__tstate);
36222 if (PyErr_Occurred()) SWIG_fail;
36223 }
36224 resultobj = SWIG_Py_Void();
36225 return resultobj;
36226 fail:
36227 return NULL;
36228 }
36229
36230
36231 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36232 PyObject *resultobj = 0;
36233 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36234 int arg2 ;
36235 void *argp1 = 0 ;
36236 int res1 = 0 ;
36237 int val2 ;
36238 int ecode2 = 0 ;
36239 PyObject * obj0 = 0 ;
36240 PyObject * obj1 = 0 ;
36241 char * kwnames[] = {
36242 (char *) "self",(char *) "id", NULL
36243 };
36244
36245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
36246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36247 if (!SWIG_IsOK(res1)) {
36248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36249 }
36250 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36251 ecode2 = SWIG_AsVal_int(obj1, &val2);
36252 if (!SWIG_IsOK(ecode2)) {
36253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
36254 }
36255 arg2 = static_cast< int >(val2);
36256 {
36257 PyThreadState* __tstate = wxPyBeginAllowThreads();
36258 (arg1)->ClearId(arg2);
36259 wxPyEndAllowThreads(__tstate);
36260 if (PyErr_Occurred()) SWIG_fail;
36261 }
36262 resultobj = SWIG_Py_Void();
36263 return resultobj;
36264 fail:
36265 return NULL;
36266 }
36267
36268
36269 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36270 PyObject *resultobj = 0;
36271 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36272 int arg2 ;
36273 void *argp1 = 0 ;
36274 int res1 = 0 ;
36275 int val2 ;
36276 int ecode2 = 0 ;
36277 PyObject * obj0 = 0 ;
36278 PyObject * obj1 = 0 ;
36279 char * kwnames[] = {
36280 (char *) "self",(char *) "id", NULL
36281 };
36282
36283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
36284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36285 if (!SWIG_IsOK(res1)) {
36286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36287 }
36288 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36289 ecode2 = SWIG_AsVal_int(obj1, &val2);
36290 if (!SWIG_IsOK(ecode2)) {
36291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
36292 }
36293 arg2 = static_cast< int >(val2);
36294 {
36295 PyThreadState* __tstate = wxPyBeginAllowThreads();
36296 (arg1)->RemoveId(arg2);
36297 wxPyEndAllowThreads(__tstate);
36298 if (PyErr_Occurred()) SWIG_fail;
36299 }
36300 resultobj = SWIG_Py_Void();
36301 return resultobj;
36302 fail:
36303 return NULL;
36304 }
36305
36306
36307 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36308 PyObject *resultobj = 0;
36309 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36310 int arg2 ;
36311 int arg3 ;
36312 int arg4 ;
36313 void *argp1 = 0 ;
36314 int res1 = 0 ;
36315 int val2 ;
36316 int ecode2 = 0 ;
36317 int val3 ;
36318 int ecode3 = 0 ;
36319 int val4 ;
36320 int ecode4 = 0 ;
36321 PyObject * obj0 = 0 ;
36322 PyObject * obj1 = 0 ;
36323 PyObject * obj2 = 0 ;
36324 PyObject * obj3 = 0 ;
36325 char * kwnames[] = {
36326 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
36327 };
36328
36329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36331 if (!SWIG_IsOK(res1)) {
36332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36333 }
36334 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36335 ecode2 = SWIG_AsVal_int(obj1, &val2);
36336 if (!SWIG_IsOK(ecode2)) {
36337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
36338 }
36339 arg2 = static_cast< int >(val2);
36340 ecode3 = SWIG_AsVal_int(obj2, &val3);
36341 if (!SWIG_IsOK(ecode3)) {
36342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
36343 }
36344 arg3 = static_cast< int >(val3);
36345 ecode4 = SWIG_AsVal_int(obj3, &val4);
36346 if (!SWIG_IsOK(ecode4)) {
36347 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
36348 }
36349 arg4 = static_cast< int >(val4);
36350 {
36351 PyThreadState* __tstate = wxPyBeginAllowThreads();
36352 (arg1)->TranslateId(arg2,arg3,arg4);
36353 wxPyEndAllowThreads(__tstate);
36354 if (PyErr_Occurred()) SWIG_fail;
36355 }
36356 resultobj = SWIG_Py_Void();
36357 return resultobj;
36358 fail:
36359 return NULL;
36360 }
36361
36362
36363 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36364 PyObject *resultobj = 0;
36365 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36366 int arg2 ;
36367 bool arg3 = (bool) true ;
36368 void *argp1 = 0 ;
36369 int res1 = 0 ;
36370 int val2 ;
36371 int ecode2 = 0 ;
36372 bool val3 ;
36373 int ecode3 = 0 ;
36374 PyObject * obj0 = 0 ;
36375 PyObject * obj1 = 0 ;
36376 PyObject * obj2 = 0 ;
36377 char * kwnames[] = {
36378 (char *) "self",(char *) "id",(char *) "greyout", NULL
36379 };
36380
36381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36383 if (!SWIG_IsOK(res1)) {
36384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36385 }
36386 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36387 ecode2 = SWIG_AsVal_int(obj1, &val2);
36388 if (!SWIG_IsOK(ecode2)) {
36389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36390 }
36391 arg2 = static_cast< int >(val2);
36392 if (obj2) {
36393 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36394 if (!SWIG_IsOK(ecode3)) {
36395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
36396 }
36397 arg3 = static_cast< bool >(val3);
36398 }
36399 {
36400 PyThreadState* __tstate = wxPyBeginAllowThreads();
36401 (arg1)->SetIdGreyedOut(arg2,arg3);
36402 wxPyEndAllowThreads(__tstate);
36403 if (PyErr_Occurred()) SWIG_fail;
36404 }
36405 resultobj = SWIG_Py_Void();
36406 return resultobj;
36407 fail:
36408 return NULL;
36409 }
36410
36411
36412 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36413 PyObject *resultobj = 0;
36414 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36415 int arg2 ;
36416 bool result;
36417 void *argp1 = 0 ;
36418 int res1 = 0 ;
36419 int val2 ;
36420 int ecode2 = 0 ;
36421 PyObject * obj0 = 0 ;
36422 PyObject * obj1 = 0 ;
36423 char * kwnames[] = {
36424 (char *) "self",(char *) "id", NULL
36425 };
36426
36427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
36428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36429 if (!SWIG_IsOK(res1)) {
36430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36431 }
36432 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36433 ecode2 = SWIG_AsVal_int(obj1, &val2);
36434 if (!SWIG_IsOK(ecode2)) {
36435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36436 }
36437 arg2 = static_cast< int >(val2);
36438 {
36439 PyThreadState* __tstate = wxPyBeginAllowThreads();
36440 result = (bool)(arg1)->GetIdGreyedOut(arg2);
36441 wxPyEndAllowThreads(__tstate);
36442 if (PyErr_Occurred()) SWIG_fail;
36443 }
36444 {
36445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36446 }
36447 return resultobj;
36448 fail:
36449 return NULL;
36450 }
36451
36452
36453 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36454 PyObject *resultobj = 0;
36455 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36456 int arg2 ;
36457 int arg3 ;
36458 int arg4 = (int) 1 ;
36459 wxColor const &arg5_defvalue = *wxWHITE ;
36460 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
36461 PyObject *result = 0 ;
36462 void *argp1 = 0 ;
36463 int res1 = 0 ;
36464 int val2 ;
36465 int ecode2 = 0 ;
36466 int val3 ;
36467 int ecode3 = 0 ;
36468 int val4 ;
36469 int ecode4 = 0 ;
36470 void *argp5 = 0 ;
36471 int res5 = 0 ;
36472 PyObject * obj0 = 0 ;
36473 PyObject * obj1 = 0 ;
36474 PyObject * obj2 = 0 ;
36475 PyObject * obj3 = 0 ;
36476 PyObject * obj4 = 0 ;
36477 char * kwnames[] = {
36478 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
36479 };
36480
36481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36483 if (!SWIG_IsOK(res1)) {
36484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36485 }
36486 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36487 ecode2 = SWIG_AsVal_int(obj1, &val2);
36488 if (!SWIG_IsOK(ecode2)) {
36489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
36490 }
36491 arg2 = static_cast< int >(val2);
36492 ecode3 = SWIG_AsVal_int(obj2, &val3);
36493 if (!SWIG_IsOK(ecode3)) {
36494 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
36495 }
36496 arg3 = static_cast< int >(val3);
36497 if (obj3) {
36498 ecode4 = SWIG_AsVal_int(obj3, &val4);
36499 if (!SWIG_IsOK(ecode4)) {
36500 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
36501 }
36502 arg4 = static_cast< int >(val4);
36503 }
36504 if (obj4) {
36505 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
36506 if (!SWIG_IsOK(res5)) {
36507 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
36508 }
36509 if (!argp5) {
36510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
36511 }
36512 arg5 = reinterpret_cast< wxColor * >(argp5);
36513 }
36514 {
36515 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
36516 if (PyErr_Occurred()) SWIG_fail;
36517 }
36518 resultobj = result;
36519 return resultobj;
36520 fail:
36521 return NULL;
36522 }
36523
36524
36525 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36526 PyObject *resultobj = 0;
36527 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36528 int arg2 ;
36529 int arg3 ;
36530 PyObject *result = 0 ;
36531 void *argp1 = 0 ;
36532 int res1 = 0 ;
36533 int val2 ;
36534 int ecode2 = 0 ;
36535 int val3 ;
36536 int ecode3 = 0 ;
36537 PyObject * obj0 = 0 ;
36538 PyObject * obj1 = 0 ;
36539 PyObject * obj2 = 0 ;
36540 char * kwnames[] = {
36541 (char *) "self",(char *) "x",(char *) "y", NULL
36542 };
36543
36544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36546 if (!SWIG_IsOK(res1)) {
36547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36548 }
36549 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36550 ecode2 = SWIG_AsVal_int(obj1, &val2);
36551 if (!SWIG_IsOK(ecode2)) {
36552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
36553 }
36554 arg2 = static_cast< int >(val2);
36555 ecode3 = SWIG_AsVal_int(obj2, &val3);
36556 if (!SWIG_IsOK(ecode3)) {
36557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
36558 }
36559 arg3 = static_cast< int >(val3);
36560 {
36561 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
36562 if (PyErr_Occurred()) SWIG_fail;
36563 }
36564 resultobj = result;
36565 return resultobj;
36566 fail:
36567 return NULL;
36568 }
36569
36570
36571 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36572 PyObject *resultobj = 0;
36573 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36574 int arg2 ;
36575 wxDC *arg3 = (wxDC *) 0 ;
36576 void *argp1 = 0 ;
36577 int res1 = 0 ;
36578 int val2 ;
36579 int ecode2 = 0 ;
36580 void *argp3 = 0 ;
36581 int res3 = 0 ;
36582 PyObject * obj0 = 0 ;
36583 PyObject * obj1 = 0 ;
36584 PyObject * obj2 = 0 ;
36585 char * kwnames[] = {
36586 (char *) "self",(char *) "id",(char *) "dc", NULL
36587 };
36588
36589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36591 if (!SWIG_IsOK(res1)) {
36592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36593 }
36594 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36595 ecode2 = SWIG_AsVal_int(obj1, &val2);
36596 if (!SWIG_IsOK(ecode2)) {
36597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
36598 }
36599 arg2 = static_cast< int >(val2);
36600 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
36601 if (!SWIG_IsOK(res3)) {
36602 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
36603 }
36604 arg3 = reinterpret_cast< wxDC * >(argp3);
36605 {
36606 PyThreadState* __tstate = wxPyBeginAllowThreads();
36607 (arg1)->DrawIdToDC(arg2,arg3);
36608 wxPyEndAllowThreads(__tstate);
36609 if (PyErr_Occurred()) SWIG_fail;
36610 }
36611 resultobj = SWIG_Py_Void();
36612 return resultobj;
36613 fail:
36614 return NULL;
36615 }
36616
36617
36618 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36619 PyObject *resultobj = 0;
36620 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36621 int arg2 ;
36622 wxRect *arg3 = 0 ;
36623 void *argp1 = 0 ;
36624 int res1 = 0 ;
36625 int val2 ;
36626 int ecode2 = 0 ;
36627 wxRect temp3 ;
36628 PyObject * obj0 = 0 ;
36629 PyObject * obj1 = 0 ;
36630 PyObject * obj2 = 0 ;
36631 char * kwnames[] = {
36632 (char *) "self",(char *) "id",(char *) "rect", NULL
36633 };
36634
36635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36637 if (!SWIG_IsOK(res1)) {
36638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36639 }
36640 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36641 ecode2 = SWIG_AsVal_int(obj1, &val2);
36642 if (!SWIG_IsOK(ecode2)) {
36643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
36644 }
36645 arg2 = static_cast< int >(val2);
36646 {
36647 arg3 = &temp3;
36648 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36649 }
36650 {
36651 PyThreadState* __tstate = wxPyBeginAllowThreads();
36652 (arg1)->SetIdBounds(arg2,*arg3);
36653 wxPyEndAllowThreads(__tstate);
36654 if (PyErr_Occurred()) SWIG_fail;
36655 }
36656 resultobj = SWIG_Py_Void();
36657 return resultobj;
36658 fail:
36659 return NULL;
36660 }
36661
36662
36663 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36664 PyObject *resultobj = 0;
36665 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36666 int arg2 ;
36667 wxRect result;
36668 void *argp1 = 0 ;
36669 int res1 = 0 ;
36670 int val2 ;
36671 int ecode2 = 0 ;
36672 PyObject * obj0 = 0 ;
36673 PyObject * obj1 = 0 ;
36674 char * kwnames[] = {
36675 (char *) "self",(char *) "id", NULL
36676 };
36677
36678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
36679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36680 if (!SWIG_IsOK(res1)) {
36681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36682 }
36683 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36684 ecode2 = SWIG_AsVal_int(obj1, &val2);
36685 if (!SWIG_IsOK(ecode2)) {
36686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36687 }
36688 arg2 = static_cast< int >(val2);
36689 {
36690 PyThreadState* __tstate = wxPyBeginAllowThreads();
36691 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36692 wxPyEndAllowThreads(__tstate);
36693 if (PyErr_Occurred()) SWIG_fail;
36694 }
36695 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36696 return resultobj;
36697 fail:
36698 return NULL;
36699 }
36700
36701
36702 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36703 PyObject *resultobj = 0;
36704 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36705 wxDC *arg2 = (wxDC *) 0 ;
36706 wxRect *arg3 = 0 ;
36707 void *argp1 = 0 ;
36708 int res1 = 0 ;
36709 void *argp2 = 0 ;
36710 int res2 = 0 ;
36711 wxRect temp3 ;
36712 PyObject * obj0 = 0 ;
36713 PyObject * obj1 = 0 ;
36714 PyObject * obj2 = 0 ;
36715 char * kwnames[] = {
36716 (char *) "self",(char *) "dc",(char *) "rect", NULL
36717 };
36718
36719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36721 if (!SWIG_IsOK(res1)) {
36722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36723 }
36724 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36725 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36726 if (!SWIG_IsOK(res2)) {
36727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36728 }
36729 arg2 = reinterpret_cast< wxDC * >(argp2);
36730 {
36731 arg3 = &temp3;
36732 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36733 }
36734 {
36735 PyThreadState* __tstate = wxPyBeginAllowThreads();
36736 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36737 wxPyEndAllowThreads(__tstate);
36738 if (PyErr_Occurred()) SWIG_fail;
36739 }
36740 resultobj = SWIG_Py_Void();
36741 return resultobj;
36742 fail:
36743 return NULL;
36744 }
36745
36746
36747 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36748 PyObject *resultobj = 0;
36749 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36750 wxDC *arg2 = (wxDC *) 0 ;
36751 wxRegion *arg3 = 0 ;
36752 void *argp1 = 0 ;
36753 int res1 = 0 ;
36754 void *argp2 = 0 ;
36755 int res2 = 0 ;
36756 void *argp3 = 0 ;
36757 int res3 = 0 ;
36758 PyObject * obj0 = 0 ;
36759 PyObject * obj1 = 0 ;
36760 PyObject * obj2 = 0 ;
36761 char * kwnames[] = {
36762 (char *) "self",(char *) "dc",(char *) "region", NULL
36763 };
36764
36765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36767 if (!SWIG_IsOK(res1)) {
36768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36769 }
36770 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36771 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36772 if (!SWIG_IsOK(res2)) {
36773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36774 }
36775 arg2 = reinterpret_cast< wxDC * >(argp2);
36776 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36777 if (!SWIG_IsOK(res3)) {
36778 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36779 }
36780 if (!argp3) {
36781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36782 }
36783 arg3 = reinterpret_cast< wxRegion * >(argp3);
36784 {
36785 PyThreadState* __tstate = wxPyBeginAllowThreads();
36786 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36787 wxPyEndAllowThreads(__tstate);
36788 if (PyErr_Occurred()) SWIG_fail;
36789 }
36790 resultobj = SWIG_Py_Void();
36791 return resultobj;
36792 fail:
36793 return NULL;
36794 }
36795
36796
36797 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36798 PyObject *resultobj = 0;
36799 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36800 wxDC *arg2 = (wxDC *) 0 ;
36801 void *argp1 = 0 ;
36802 int res1 = 0 ;
36803 void *argp2 = 0 ;
36804 int res2 = 0 ;
36805 PyObject * obj0 = 0 ;
36806 PyObject * obj1 = 0 ;
36807 char * kwnames[] = {
36808 (char *) "self",(char *) "dc", NULL
36809 };
36810
36811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36813 if (!SWIG_IsOK(res1)) {
36814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36815 }
36816 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36817 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36818 if (!SWIG_IsOK(res2)) {
36819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36820 }
36821 arg2 = reinterpret_cast< wxDC * >(argp2);
36822 {
36823 PyThreadState* __tstate = wxPyBeginAllowThreads();
36824 (arg1)->DrawToDC(arg2);
36825 wxPyEndAllowThreads(__tstate);
36826 if (PyErr_Occurred()) SWIG_fail;
36827 }
36828 resultobj = SWIG_Py_Void();
36829 return resultobj;
36830 fail:
36831 return NULL;
36832 }
36833
36834
36835 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36836 PyObject *resultobj = 0;
36837 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36838 int arg2 ;
36839 int arg3 ;
36840 wxColour *arg4 = 0 ;
36841 int arg5 = (int) wxFLOOD_SURFACE ;
36842 void *argp1 = 0 ;
36843 int res1 = 0 ;
36844 int val2 ;
36845 int ecode2 = 0 ;
36846 int val3 ;
36847 int ecode3 = 0 ;
36848 wxColour temp4 ;
36849 int val5 ;
36850 int ecode5 = 0 ;
36851 PyObject * obj0 = 0 ;
36852 PyObject * obj1 = 0 ;
36853 PyObject * obj2 = 0 ;
36854 PyObject * obj3 = 0 ;
36855 PyObject * obj4 = 0 ;
36856 char * kwnames[] = {
36857 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36858 };
36859
36860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36862 if (!SWIG_IsOK(res1)) {
36863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36864 }
36865 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36866 ecode2 = SWIG_AsVal_int(obj1, &val2);
36867 if (!SWIG_IsOK(ecode2)) {
36868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36869 }
36870 arg2 = static_cast< int >(val2);
36871 ecode3 = SWIG_AsVal_int(obj2, &val3);
36872 if (!SWIG_IsOK(ecode3)) {
36873 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36874 }
36875 arg3 = static_cast< int >(val3);
36876 {
36877 arg4 = &temp4;
36878 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36879 }
36880 if (obj4) {
36881 ecode5 = SWIG_AsVal_int(obj4, &val5);
36882 if (!SWIG_IsOK(ecode5)) {
36883 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36884 }
36885 arg5 = static_cast< int >(val5);
36886 }
36887 {
36888 PyThreadState* __tstate = wxPyBeginAllowThreads();
36889 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36890 wxPyEndAllowThreads(__tstate);
36891 if (PyErr_Occurred()) SWIG_fail;
36892 }
36893 resultobj = SWIG_Py_Void();
36894 return resultobj;
36895 fail:
36896 return NULL;
36897 }
36898
36899
36900 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36901 PyObject *resultobj = 0;
36902 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36903 wxPoint *arg2 = 0 ;
36904 wxColour *arg3 = 0 ;
36905 int arg4 = (int) wxFLOOD_SURFACE ;
36906 void *argp1 = 0 ;
36907 int res1 = 0 ;
36908 wxPoint temp2 ;
36909 wxColour temp3 ;
36910 int val4 ;
36911 int ecode4 = 0 ;
36912 PyObject * obj0 = 0 ;
36913 PyObject * obj1 = 0 ;
36914 PyObject * obj2 = 0 ;
36915 PyObject * obj3 = 0 ;
36916 char * kwnames[] = {
36917 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36918 };
36919
36920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36922 if (!SWIG_IsOK(res1)) {
36923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36924 }
36925 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36926 {
36927 arg2 = &temp2;
36928 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36929 }
36930 {
36931 arg3 = &temp3;
36932 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36933 }
36934 if (obj3) {
36935 ecode4 = SWIG_AsVal_int(obj3, &val4);
36936 if (!SWIG_IsOK(ecode4)) {
36937 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36938 }
36939 arg4 = static_cast< int >(val4);
36940 }
36941 {
36942 PyThreadState* __tstate = wxPyBeginAllowThreads();
36943 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36944 wxPyEndAllowThreads(__tstate);
36945 if (PyErr_Occurred()) SWIG_fail;
36946 }
36947 resultobj = SWIG_Py_Void();
36948 return resultobj;
36949 fail:
36950 return NULL;
36951 }
36952
36953
36954 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36955 PyObject *resultobj = 0;
36956 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36957 int arg2 ;
36958 int arg3 ;
36959 int arg4 ;
36960 int arg5 ;
36961 void *argp1 = 0 ;
36962 int res1 = 0 ;
36963 int val2 ;
36964 int ecode2 = 0 ;
36965 int val3 ;
36966 int ecode3 = 0 ;
36967 int val4 ;
36968 int ecode4 = 0 ;
36969 int val5 ;
36970 int ecode5 = 0 ;
36971 PyObject * obj0 = 0 ;
36972 PyObject * obj1 = 0 ;
36973 PyObject * obj2 = 0 ;
36974 PyObject * obj3 = 0 ;
36975 PyObject * obj4 = 0 ;
36976 char * kwnames[] = {
36977 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36978 };
36979
36980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36982 if (!SWIG_IsOK(res1)) {
36983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36984 }
36985 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36986 ecode2 = SWIG_AsVal_int(obj1, &val2);
36987 if (!SWIG_IsOK(ecode2)) {
36988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36989 }
36990 arg2 = static_cast< int >(val2);
36991 ecode3 = SWIG_AsVal_int(obj2, &val3);
36992 if (!SWIG_IsOK(ecode3)) {
36993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36994 }
36995 arg3 = static_cast< int >(val3);
36996 ecode4 = SWIG_AsVal_int(obj3, &val4);
36997 if (!SWIG_IsOK(ecode4)) {
36998 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36999 }
37000 arg4 = static_cast< int >(val4);
37001 ecode5 = SWIG_AsVal_int(obj4, &val5);
37002 if (!SWIG_IsOK(ecode5)) {
37003 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
37004 }
37005 arg5 = static_cast< int >(val5);
37006 {
37007 PyThreadState* __tstate = wxPyBeginAllowThreads();
37008 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
37009 wxPyEndAllowThreads(__tstate);
37010 if (PyErr_Occurred()) SWIG_fail;
37011 }
37012 resultobj = SWIG_Py_Void();
37013 return resultobj;
37014 fail:
37015 return NULL;
37016 }
37017
37018
37019 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37020 PyObject *resultobj = 0;
37021 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37022 wxPoint *arg2 = 0 ;
37023 wxPoint *arg3 = 0 ;
37024 void *argp1 = 0 ;
37025 int res1 = 0 ;
37026 wxPoint temp2 ;
37027 wxPoint temp3 ;
37028 PyObject * obj0 = 0 ;
37029 PyObject * obj1 = 0 ;
37030 PyObject * obj2 = 0 ;
37031 char * kwnames[] = {
37032 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
37033 };
37034
37035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37037 if (!SWIG_IsOK(res1)) {
37038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37039 }
37040 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37041 {
37042 arg2 = &temp2;
37043 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37044 }
37045 {
37046 arg3 = &temp3;
37047 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37048 }
37049 {
37050 PyThreadState* __tstate = wxPyBeginAllowThreads();
37051 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
37052 wxPyEndAllowThreads(__tstate);
37053 if (PyErr_Occurred()) SWIG_fail;
37054 }
37055 resultobj = SWIG_Py_Void();
37056 return resultobj;
37057 fail:
37058 return NULL;
37059 }
37060
37061
37062 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37063 PyObject *resultobj = 0;
37064 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37065 int arg2 ;
37066 int arg3 ;
37067 void *argp1 = 0 ;
37068 int res1 = 0 ;
37069 int val2 ;
37070 int ecode2 = 0 ;
37071 int val3 ;
37072 int ecode3 = 0 ;
37073 PyObject * obj0 = 0 ;
37074 PyObject * obj1 = 0 ;
37075 PyObject * obj2 = 0 ;
37076 char * kwnames[] = {
37077 (char *) "self",(char *) "x",(char *) "y", NULL
37078 };
37079
37080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37082 if (!SWIG_IsOK(res1)) {
37083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37084 }
37085 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37086 ecode2 = SWIG_AsVal_int(obj1, &val2);
37087 if (!SWIG_IsOK(ecode2)) {
37088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
37089 }
37090 arg2 = static_cast< int >(val2);
37091 ecode3 = SWIG_AsVal_int(obj2, &val3);
37092 if (!SWIG_IsOK(ecode3)) {
37093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
37094 }
37095 arg3 = static_cast< int >(val3);
37096 {
37097 PyThreadState* __tstate = wxPyBeginAllowThreads();
37098 (arg1)->CrossHair(arg2,arg3);
37099 wxPyEndAllowThreads(__tstate);
37100 if (PyErr_Occurred()) SWIG_fail;
37101 }
37102 resultobj = SWIG_Py_Void();
37103 return resultobj;
37104 fail:
37105 return NULL;
37106 }
37107
37108
37109 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37110 PyObject *resultobj = 0;
37111 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37112 wxPoint *arg2 = 0 ;
37113 void *argp1 = 0 ;
37114 int res1 = 0 ;
37115 wxPoint temp2 ;
37116 PyObject * obj0 = 0 ;
37117 PyObject * obj1 = 0 ;
37118 char * kwnames[] = {
37119 (char *) "self",(char *) "pt", NULL
37120 };
37121
37122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37124 if (!SWIG_IsOK(res1)) {
37125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37126 }
37127 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37128 {
37129 arg2 = &temp2;
37130 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37131 }
37132 {
37133 PyThreadState* __tstate = wxPyBeginAllowThreads();
37134 (arg1)->CrossHair((wxPoint const &)*arg2);
37135 wxPyEndAllowThreads(__tstate);
37136 if (PyErr_Occurred()) SWIG_fail;
37137 }
37138 resultobj = SWIG_Py_Void();
37139 return resultobj;
37140 fail:
37141 return NULL;
37142 }
37143
37144
37145 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37146 PyObject *resultobj = 0;
37147 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37148 int arg2 ;
37149 int arg3 ;
37150 int arg4 ;
37151 int arg5 ;
37152 int arg6 ;
37153 int arg7 ;
37154 void *argp1 = 0 ;
37155 int res1 = 0 ;
37156 int val2 ;
37157 int ecode2 = 0 ;
37158 int val3 ;
37159 int ecode3 = 0 ;
37160 int val4 ;
37161 int ecode4 = 0 ;
37162 int val5 ;
37163 int ecode5 = 0 ;
37164 int val6 ;
37165 int ecode6 = 0 ;
37166 int val7 ;
37167 int ecode7 = 0 ;
37168 PyObject * obj0 = 0 ;
37169 PyObject * obj1 = 0 ;
37170 PyObject * obj2 = 0 ;
37171 PyObject * obj3 = 0 ;
37172 PyObject * obj4 = 0 ;
37173 PyObject * obj5 = 0 ;
37174 PyObject * obj6 = 0 ;
37175 char * kwnames[] = {
37176 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
37177 };
37178
37179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37181 if (!SWIG_IsOK(res1)) {
37182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37183 }
37184 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37185 ecode2 = SWIG_AsVal_int(obj1, &val2);
37186 if (!SWIG_IsOK(ecode2)) {
37187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
37188 }
37189 arg2 = static_cast< int >(val2);
37190 ecode3 = SWIG_AsVal_int(obj2, &val3);
37191 if (!SWIG_IsOK(ecode3)) {
37192 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
37193 }
37194 arg3 = static_cast< int >(val3);
37195 ecode4 = SWIG_AsVal_int(obj3, &val4);
37196 if (!SWIG_IsOK(ecode4)) {
37197 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
37198 }
37199 arg4 = static_cast< int >(val4);
37200 ecode5 = SWIG_AsVal_int(obj4, &val5);
37201 if (!SWIG_IsOK(ecode5)) {
37202 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
37203 }
37204 arg5 = static_cast< int >(val5);
37205 ecode6 = SWIG_AsVal_int(obj5, &val6);
37206 if (!SWIG_IsOK(ecode6)) {
37207 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
37208 }
37209 arg6 = static_cast< int >(val6);
37210 ecode7 = SWIG_AsVal_int(obj6, &val7);
37211 if (!SWIG_IsOK(ecode7)) {
37212 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
37213 }
37214 arg7 = static_cast< int >(val7);
37215 {
37216 PyThreadState* __tstate = wxPyBeginAllowThreads();
37217 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
37218 wxPyEndAllowThreads(__tstate);
37219 if (PyErr_Occurred()) SWIG_fail;
37220 }
37221 resultobj = SWIG_Py_Void();
37222 return resultobj;
37223 fail:
37224 return NULL;
37225 }
37226
37227
37228 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37229 PyObject *resultobj = 0;
37230 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37231 wxPoint *arg2 = 0 ;
37232 wxPoint *arg3 = 0 ;
37233 wxPoint *arg4 = 0 ;
37234 void *argp1 = 0 ;
37235 int res1 = 0 ;
37236 wxPoint temp2 ;
37237 wxPoint temp3 ;
37238 wxPoint temp4 ;
37239 PyObject * obj0 = 0 ;
37240 PyObject * obj1 = 0 ;
37241 PyObject * obj2 = 0 ;
37242 PyObject * obj3 = 0 ;
37243 char * kwnames[] = {
37244 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
37245 };
37246
37247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37249 if (!SWIG_IsOK(res1)) {
37250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37251 }
37252 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37253 {
37254 arg2 = &temp2;
37255 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37256 }
37257 {
37258 arg3 = &temp3;
37259 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37260 }
37261 {
37262 arg4 = &temp4;
37263 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37264 }
37265 {
37266 PyThreadState* __tstate = wxPyBeginAllowThreads();
37267 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
37268 wxPyEndAllowThreads(__tstate);
37269 if (PyErr_Occurred()) SWIG_fail;
37270 }
37271 resultobj = SWIG_Py_Void();
37272 return resultobj;
37273 fail:
37274 return NULL;
37275 }
37276
37277
37278 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37279 PyObject *resultobj = 0;
37280 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37281 int arg2 ;
37282 int arg3 ;
37283 int arg4 ;
37284 int arg5 ;
37285 void *argp1 = 0 ;
37286 int res1 = 0 ;
37287 int val2 ;
37288 int ecode2 = 0 ;
37289 int val3 ;
37290 int ecode3 = 0 ;
37291 int val4 ;
37292 int ecode4 = 0 ;
37293 int val5 ;
37294 int ecode5 = 0 ;
37295 PyObject * obj0 = 0 ;
37296 PyObject * obj1 = 0 ;
37297 PyObject * obj2 = 0 ;
37298 PyObject * obj3 = 0 ;
37299 PyObject * obj4 = 0 ;
37300 char * kwnames[] = {
37301 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37302 };
37303
37304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37306 if (!SWIG_IsOK(res1)) {
37307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37308 }
37309 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37310 ecode2 = SWIG_AsVal_int(obj1, &val2);
37311 if (!SWIG_IsOK(ecode2)) {
37312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
37313 }
37314 arg2 = static_cast< int >(val2);
37315 ecode3 = SWIG_AsVal_int(obj2, &val3);
37316 if (!SWIG_IsOK(ecode3)) {
37317 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
37318 }
37319 arg3 = static_cast< int >(val3);
37320 ecode4 = SWIG_AsVal_int(obj3, &val4);
37321 if (!SWIG_IsOK(ecode4)) {
37322 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
37323 }
37324 arg4 = static_cast< int >(val4);
37325 ecode5 = SWIG_AsVal_int(obj4, &val5);
37326 if (!SWIG_IsOK(ecode5)) {
37327 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
37328 }
37329 arg5 = static_cast< int >(val5);
37330 {
37331 PyThreadState* __tstate = wxPyBeginAllowThreads();
37332 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
37333 wxPyEndAllowThreads(__tstate);
37334 if (PyErr_Occurred()) SWIG_fail;
37335 }
37336 resultobj = SWIG_Py_Void();
37337 return resultobj;
37338 fail:
37339 return NULL;
37340 }
37341
37342
37343 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37344 PyObject *resultobj = 0;
37345 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37346 wxRect *arg2 = 0 ;
37347 void *argp1 = 0 ;
37348 int res1 = 0 ;
37349 wxRect temp2 ;
37350 PyObject * obj0 = 0 ;
37351 PyObject * obj1 = 0 ;
37352 char * kwnames[] = {
37353 (char *) "self",(char *) "rect", NULL
37354 };
37355
37356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
37357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37358 if (!SWIG_IsOK(res1)) {
37359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37360 }
37361 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37362 {
37363 arg2 = &temp2;
37364 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37365 }
37366 {
37367 PyThreadState* __tstate = wxPyBeginAllowThreads();
37368 (arg1)->DrawCheckMark((wxRect const &)*arg2);
37369 wxPyEndAllowThreads(__tstate);
37370 if (PyErr_Occurred()) SWIG_fail;
37371 }
37372 resultobj = SWIG_Py_Void();
37373 return resultobj;
37374 fail:
37375 return NULL;
37376 }
37377
37378
37379 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37380 PyObject *resultobj = 0;
37381 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37382 int arg2 ;
37383 int arg3 ;
37384 int arg4 ;
37385 int arg5 ;
37386 double arg6 ;
37387 double arg7 ;
37388 void *argp1 = 0 ;
37389 int res1 = 0 ;
37390 int val2 ;
37391 int ecode2 = 0 ;
37392 int val3 ;
37393 int ecode3 = 0 ;
37394 int val4 ;
37395 int ecode4 = 0 ;
37396 int val5 ;
37397 int ecode5 = 0 ;
37398 double val6 ;
37399 int ecode6 = 0 ;
37400 double val7 ;
37401 int ecode7 = 0 ;
37402 PyObject * obj0 = 0 ;
37403 PyObject * obj1 = 0 ;
37404 PyObject * obj2 = 0 ;
37405 PyObject * obj3 = 0 ;
37406 PyObject * obj4 = 0 ;
37407 PyObject * obj5 = 0 ;
37408 PyObject * obj6 = 0 ;
37409 char * kwnames[] = {
37410 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
37411 };
37412
37413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37415 if (!SWIG_IsOK(res1)) {
37416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37417 }
37418 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37419 ecode2 = SWIG_AsVal_int(obj1, &val2);
37420 if (!SWIG_IsOK(ecode2)) {
37421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
37422 }
37423 arg2 = static_cast< int >(val2);
37424 ecode3 = SWIG_AsVal_int(obj2, &val3);
37425 if (!SWIG_IsOK(ecode3)) {
37426 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
37427 }
37428 arg3 = static_cast< int >(val3);
37429 ecode4 = SWIG_AsVal_int(obj3, &val4);
37430 if (!SWIG_IsOK(ecode4)) {
37431 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
37432 }
37433 arg4 = static_cast< int >(val4);
37434 ecode5 = SWIG_AsVal_int(obj4, &val5);
37435 if (!SWIG_IsOK(ecode5)) {
37436 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
37437 }
37438 arg5 = static_cast< int >(val5);
37439 ecode6 = SWIG_AsVal_double(obj5, &val6);
37440 if (!SWIG_IsOK(ecode6)) {
37441 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
37442 }
37443 arg6 = static_cast< double >(val6);
37444 ecode7 = SWIG_AsVal_double(obj6, &val7);
37445 if (!SWIG_IsOK(ecode7)) {
37446 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
37447 }
37448 arg7 = static_cast< double >(val7);
37449 {
37450 PyThreadState* __tstate = wxPyBeginAllowThreads();
37451 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
37452 wxPyEndAllowThreads(__tstate);
37453 if (PyErr_Occurred()) SWIG_fail;
37454 }
37455 resultobj = SWIG_Py_Void();
37456 return resultobj;
37457 fail:
37458 return NULL;
37459 }
37460
37461
37462 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37463 PyObject *resultobj = 0;
37464 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37465 wxPoint *arg2 = 0 ;
37466 wxSize *arg3 = 0 ;
37467 double arg4 ;
37468 double arg5 ;
37469 void *argp1 = 0 ;
37470 int res1 = 0 ;
37471 wxPoint temp2 ;
37472 wxSize temp3 ;
37473 double val4 ;
37474 int ecode4 = 0 ;
37475 double val5 ;
37476 int ecode5 = 0 ;
37477 PyObject * obj0 = 0 ;
37478 PyObject * obj1 = 0 ;
37479 PyObject * obj2 = 0 ;
37480 PyObject * obj3 = 0 ;
37481 PyObject * obj4 = 0 ;
37482 char * kwnames[] = {
37483 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
37484 };
37485
37486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37488 if (!SWIG_IsOK(res1)) {
37489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37490 }
37491 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37492 {
37493 arg2 = &temp2;
37494 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37495 }
37496 {
37497 arg3 = &temp3;
37498 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37499 }
37500 ecode4 = SWIG_AsVal_double(obj3, &val4);
37501 if (!SWIG_IsOK(ecode4)) {
37502 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
37503 }
37504 arg4 = static_cast< double >(val4);
37505 ecode5 = SWIG_AsVal_double(obj4, &val5);
37506 if (!SWIG_IsOK(ecode5)) {
37507 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
37508 }
37509 arg5 = static_cast< double >(val5);
37510 {
37511 PyThreadState* __tstate = wxPyBeginAllowThreads();
37512 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
37513 wxPyEndAllowThreads(__tstate);
37514 if (PyErr_Occurred()) SWIG_fail;
37515 }
37516 resultobj = SWIG_Py_Void();
37517 return resultobj;
37518 fail:
37519 return NULL;
37520 }
37521
37522
37523 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37524 PyObject *resultobj = 0;
37525 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37526 int arg2 ;
37527 int arg3 ;
37528 void *argp1 = 0 ;
37529 int res1 = 0 ;
37530 int val2 ;
37531 int ecode2 = 0 ;
37532 int val3 ;
37533 int ecode3 = 0 ;
37534 PyObject * obj0 = 0 ;
37535 PyObject * obj1 = 0 ;
37536 PyObject * obj2 = 0 ;
37537 char * kwnames[] = {
37538 (char *) "self",(char *) "x",(char *) "y", NULL
37539 };
37540
37541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37543 if (!SWIG_IsOK(res1)) {
37544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37545 }
37546 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37547 ecode2 = SWIG_AsVal_int(obj1, &val2);
37548 if (!SWIG_IsOK(ecode2)) {
37549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
37550 }
37551 arg2 = static_cast< int >(val2);
37552 ecode3 = SWIG_AsVal_int(obj2, &val3);
37553 if (!SWIG_IsOK(ecode3)) {
37554 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
37555 }
37556 arg3 = static_cast< int >(val3);
37557 {
37558 PyThreadState* __tstate = wxPyBeginAllowThreads();
37559 (arg1)->DrawPoint(arg2,arg3);
37560 wxPyEndAllowThreads(__tstate);
37561 if (PyErr_Occurred()) SWIG_fail;
37562 }
37563 resultobj = SWIG_Py_Void();
37564 return resultobj;
37565 fail:
37566 return NULL;
37567 }
37568
37569
37570 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37571 PyObject *resultobj = 0;
37572 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37573 wxPoint *arg2 = 0 ;
37574 void *argp1 = 0 ;
37575 int res1 = 0 ;
37576 wxPoint temp2 ;
37577 PyObject * obj0 = 0 ;
37578 PyObject * obj1 = 0 ;
37579 char * kwnames[] = {
37580 (char *) "self",(char *) "pt", NULL
37581 };
37582
37583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37585 if (!SWIG_IsOK(res1)) {
37586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37587 }
37588 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37589 {
37590 arg2 = &temp2;
37591 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37592 }
37593 {
37594 PyThreadState* __tstate = wxPyBeginAllowThreads();
37595 (arg1)->DrawPoint((wxPoint const &)*arg2);
37596 wxPyEndAllowThreads(__tstate);
37597 if (PyErr_Occurred()) SWIG_fail;
37598 }
37599 resultobj = SWIG_Py_Void();
37600 return resultobj;
37601 fail:
37602 return NULL;
37603 }
37604
37605
37606 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37607 PyObject *resultobj = 0;
37608 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37609 int arg2 ;
37610 int arg3 ;
37611 int arg4 ;
37612 int arg5 ;
37613 void *argp1 = 0 ;
37614 int res1 = 0 ;
37615 int val2 ;
37616 int ecode2 = 0 ;
37617 int val3 ;
37618 int ecode3 = 0 ;
37619 int val4 ;
37620 int ecode4 = 0 ;
37621 int val5 ;
37622 int ecode5 = 0 ;
37623 PyObject * obj0 = 0 ;
37624 PyObject * obj1 = 0 ;
37625 PyObject * obj2 = 0 ;
37626 PyObject * obj3 = 0 ;
37627 PyObject * obj4 = 0 ;
37628 char * kwnames[] = {
37629 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37630 };
37631
37632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37634 if (!SWIG_IsOK(res1)) {
37635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37636 }
37637 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37638 ecode2 = SWIG_AsVal_int(obj1, &val2);
37639 if (!SWIG_IsOK(ecode2)) {
37640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
37641 }
37642 arg2 = static_cast< int >(val2);
37643 ecode3 = SWIG_AsVal_int(obj2, &val3);
37644 if (!SWIG_IsOK(ecode3)) {
37645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
37646 }
37647 arg3 = static_cast< int >(val3);
37648 ecode4 = SWIG_AsVal_int(obj3, &val4);
37649 if (!SWIG_IsOK(ecode4)) {
37650 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
37651 }
37652 arg4 = static_cast< int >(val4);
37653 ecode5 = SWIG_AsVal_int(obj4, &val5);
37654 if (!SWIG_IsOK(ecode5)) {
37655 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
37656 }
37657 arg5 = static_cast< int >(val5);
37658 {
37659 PyThreadState* __tstate = wxPyBeginAllowThreads();
37660 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
37661 wxPyEndAllowThreads(__tstate);
37662 if (PyErr_Occurred()) SWIG_fail;
37663 }
37664 resultobj = SWIG_Py_Void();
37665 return resultobj;
37666 fail:
37667 return NULL;
37668 }
37669
37670
37671 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37672 PyObject *resultobj = 0;
37673 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37674 wxRect *arg2 = 0 ;
37675 void *argp1 = 0 ;
37676 int res1 = 0 ;
37677 wxRect temp2 ;
37678 PyObject * obj0 = 0 ;
37679 PyObject * obj1 = 0 ;
37680 char * kwnames[] = {
37681 (char *) "self",(char *) "rect", NULL
37682 };
37683
37684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37686 if (!SWIG_IsOK(res1)) {
37687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37688 }
37689 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37690 {
37691 arg2 = &temp2;
37692 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37693 }
37694 {
37695 PyThreadState* __tstate = wxPyBeginAllowThreads();
37696 (arg1)->DrawRectangle((wxRect const &)*arg2);
37697 wxPyEndAllowThreads(__tstate);
37698 if (PyErr_Occurred()) SWIG_fail;
37699 }
37700 resultobj = SWIG_Py_Void();
37701 return resultobj;
37702 fail:
37703 return NULL;
37704 }
37705
37706
37707 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37708 PyObject *resultobj = 0;
37709 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37710 wxPoint *arg2 = 0 ;
37711 wxSize *arg3 = 0 ;
37712 void *argp1 = 0 ;
37713 int res1 = 0 ;
37714 wxPoint temp2 ;
37715 wxSize temp3 ;
37716 PyObject * obj0 = 0 ;
37717 PyObject * obj1 = 0 ;
37718 PyObject * obj2 = 0 ;
37719 char * kwnames[] = {
37720 (char *) "self",(char *) "pt",(char *) "sz", NULL
37721 };
37722
37723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37725 if (!SWIG_IsOK(res1)) {
37726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37727 }
37728 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37729 {
37730 arg2 = &temp2;
37731 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37732 }
37733 {
37734 arg3 = &temp3;
37735 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37736 }
37737 {
37738 PyThreadState* __tstate = wxPyBeginAllowThreads();
37739 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37740 wxPyEndAllowThreads(__tstate);
37741 if (PyErr_Occurred()) SWIG_fail;
37742 }
37743 resultobj = SWIG_Py_Void();
37744 return resultobj;
37745 fail:
37746 return NULL;
37747 }
37748
37749
37750 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37751 PyObject *resultobj = 0;
37752 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37753 int arg2 ;
37754 int arg3 ;
37755 int arg4 ;
37756 int arg5 ;
37757 double arg6 ;
37758 void *argp1 = 0 ;
37759 int res1 = 0 ;
37760 int val2 ;
37761 int ecode2 = 0 ;
37762 int val3 ;
37763 int ecode3 = 0 ;
37764 int val4 ;
37765 int ecode4 = 0 ;
37766 int val5 ;
37767 int ecode5 = 0 ;
37768 double val6 ;
37769 int ecode6 = 0 ;
37770 PyObject * obj0 = 0 ;
37771 PyObject * obj1 = 0 ;
37772 PyObject * obj2 = 0 ;
37773 PyObject * obj3 = 0 ;
37774 PyObject * obj4 = 0 ;
37775 PyObject * obj5 = 0 ;
37776 char * kwnames[] = {
37777 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37778 };
37779
37780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37782 if (!SWIG_IsOK(res1)) {
37783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37784 }
37785 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37786 ecode2 = SWIG_AsVal_int(obj1, &val2);
37787 if (!SWIG_IsOK(ecode2)) {
37788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37789 }
37790 arg2 = static_cast< int >(val2);
37791 ecode3 = SWIG_AsVal_int(obj2, &val3);
37792 if (!SWIG_IsOK(ecode3)) {
37793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37794 }
37795 arg3 = static_cast< int >(val3);
37796 ecode4 = SWIG_AsVal_int(obj3, &val4);
37797 if (!SWIG_IsOK(ecode4)) {
37798 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37799 }
37800 arg4 = static_cast< int >(val4);
37801 ecode5 = SWIG_AsVal_int(obj4, &val5);
37802 if (!SWIG_IsOK(ecode5)) {
37803 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37804 }
37805 arg5 = static_cast< int >(val5);
37806 ecode6 = SWIG_AsVal_double(obj5, &val6);
37807 if (!SWIG_IsOK(ecode6)) {
37808 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37809 }
37810 arg6 = static_cast< double >(val6);
37811 {
37812 PyThreadState* __tstate = wxPyBeginAllowThreads();
37813 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37814 wxPyEndAllowThreads(__tstate);
37815 if (PyErr_Occurred()) SWIG_fail;
37816 }
37817 resultobj = SWIG_Py_Void();
37818 return resultobj;
37819 fail:
37820 return NULL;
37821 }
37822
37823
37824 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37825 PyObject *resultobj = 0;
37826 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37827 wxRect *arg2 = 0 ;
37828 double arg3 ;
37829 void *argp1 = 0 ;
37830 int res1 = 0 ;
37831 wxRect temp2 ;
37832 double val3 ;
37833 int ecode3 = 0 ;
37834 PyObject * obj0 = 0 ;
37835 PyObject * obj1 = 0 ;
37836 PyObject * obj2 = 0 ;
37837 char * kwnames[] = {
37838 (char *) "self",(char *) "r",(char *) "radius", NULL
37839 };
37840
37841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37843 if (!SWIG_IsOK(res1)) {
37844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37845 }
37846 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37847 {
37848 arg2 = &temp2;
37849 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37850 }
37851 ecode3 = SWIG_AsVal_double(obj2, &val3);
37852 if (!SWIG_IsOK(ecode3)) {
37853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37854 }
37855 arg3 = static_cast< double >(val3);
37856 {
37857 PyThreadState* __tstate = wxPyBeginAllowThreads();
37858 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37859 wxPyEndAllowThreads(__tstate);
37860 if (PyErr_Occurred()) SWIG_fail;
37861 }
37862 resultobj = SWIG_Py_Void();
37863 return resultobj;
37864 fail:
37865 return NULL;
37866 }
37867
37868
37869 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37870 PyObject *resultobj = 0;
37871 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37872 wxPoint *arg2 = 0 ;
37873 wxSize *arg3 = 0 ;
37874 double arg4 ;
37875 void *argp1 = 0 ;
37876 int res1 = 0 ;
37877 wxPoint temp2 ;
37878 wxSize temp3 ;
37879 double val4 ;
37880 int ecode4 = 0 ;
37881 PyObject * obj0 = 0 ;
37882 PyObject * obj1 = 0 ;
37883 PyObject * obj2 = 0 ;
37884 PyObject * obj3 = 0 ;
37885 char * kwnames[] = {
37886 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37887 };
37888
37889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37891 if (!SWIG_IsOK(res1)) {
37892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37893 }
37894 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37895 {
37896 arg2 = &temp2;
37897 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37898 }
37899 {
37900 arg3 = &temp3;
37901 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37902 }
37903 ecode4 = SWIG_AsVal_double(obj3, &val4);
37904 if (!SWIG_IsOK(ecode4)) {
37905 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37906 }
37907 arg4 = static_cast< double >(val4);
37908 {
37909 PyThreadState* __tstate = wxPyBeginAllowThreads();
37910 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37911 wxPyEndAllowThreads(__tstate);
37912 if (PyErr_Occurred()) SWIG_fail;
37913 }
37914 resultobj = SWIG_Py_Void();
37915 return resultobj;
37916 fail:
37917 return NULL;
37918 }
37919
37920
37921 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37922 PyObject *resultobj = 0;
37923 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37924 int arg2 ;
37925 int arg3 ;
37926 int arg4 ;
37927 void *argp1 = 0 ;
37928 int res1 = 0 ;
37929 int val2 ;
37930 int ecode2 = 0 ;
37931 int val3 ;
37932 int ecode3 = 0 ;
37933 int val4 ;
37934 int ecode4 = 0 ;
37935 PyObject * obj0 = 0 ;
37936 PyObject * obj1 = 0 ;
37937 PyObject * obj2 = 0 ;
37938 PyObject * obj3 = 0 ;
37939 char * kwnames[] = {
37940 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37941 };
37942
37943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37945 if (!SWIG_IsOK(res1)) {
37946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37947 }
37948 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37949 ecode2 = SWIG_AsVal_int(obj1, &val2);
37950 if (!SWIG_IsOK(ecode2)) {
37951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37952 }
37953 arg2 = static_cast< int >(val2);
37954 ecode3 = SWIG_AsVal_int(obj2, &val3);
37955 if (!SWIG_IsOK(ecode3)) {
37956 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37957 }
37958 arg3 = static_cast< int >(val3);
37959 ecode4 = SWIG_AsVal_int(obj3, &val4);
37960 if (!SWIG_IsOK(ecode4)) {
37961 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37962 }
37963 arg4 = static_cast< int >(val4);
37964 {
37965 PyThreadState* __tstate = wxPyBeginAllowThreads();
37966 (arg1)->DrawCircle(arg2,arg3,arg4);
37967 wxPyEndAllowThreads(__tstate);
37968 if (PyErr_Occurred()) SWIG_fail;
37969 }
37970 resultobj = SWIG_Py_Void();
37971 return resultobj;
37972 fail:
37973 return NULL;
37974 }
37975
37976
37977 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37978 PyObject *resultobj = 0;
37979 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37980 wxPoint *arg2 = 0 ;
37981 int arg3 ;
37982 void *argp1 = 0 ;
37983 int res1 = 0 ;
37984 wxPoint temp2 ;
37985 int val3 ;
37986 int ecode3 = 0 ;
37987 PyObject * obj0 = 0 ;
37988 PyObject * obj1 = 0 ;
37989 PyObject * obj2 = 0 ;
37990 char * kwnames[] = {
37991 (char *) "self",(char *) "pt",(char *) "radius", NULL
37992 };
37993
37994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37996 if (!SWIG_IsOK(res1)) {
37997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37998 }
37999 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38000 {
38001 arg2 = &temp2;
38002 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38003 }
38004 ecode3 = SWIG_AsVal_int(obj2, &val3);
38005 if (!SWIG_IsOK(ecode3)) {
38006 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
38007 }
38008 arg3 = static_cast< int >(val3);
38009 {
38010 PyThreadState* __tstate = wxPyBeginAllowThreads();
38011 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
38012 wxPyEndAllowThreads(__tstate);
38013 if (PyErr_Occurred()) SWIG_fail;
38014 }
38015 resultobj = SWIG_Py_Void();
38016 return resultobj;
38017 fail:
38018 return NULL;
38019 }
38020
38021
38022 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38023 PyObject *resultobj = 0;
38024 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38025 int arg2 ;
38026 int arg3 ;
38027 int arg4 ;
38028 int arg5 ;
38029 void *argp1 = 0 ;
38030 int res1 = 0 ;
38031 int val2 ;
38032 int ecode2 = 0 ;
38033 int val3 ;
38034 int ecode3 = 0 ;
38035 int val4 ;
38036 int ecode4 = 0 ;
38037 int val5 ;
38038 int ecode5 = 0 ;
38039 PyObject * obj0 = 0 ;
38040 PyObject * obj1 = 0 ;
38041 PyObject * obj2 = 0 ;
38042 PyObject * obj3 = 0 ;
38043 PyObject * obj4 = 0 ;
38044 char * kwnames[] = {
38045 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38046 };
38047
38048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38050 if (!SWIG_IsOK(res1)) {
38051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38052 }
38053 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38054 ecode2 = SWIG_AsVal_int(obj1, &val2);
38055 if (!SWIG_IsOK(ecode2)) {
38056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
38057 }
38058 arg2 = static_cast< int >(val2);
38059 ecode3 = SWIG_AsVal_int(obj2, &val3);
38060 if (!SWIG_IsOK(ecode3)) {
38061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
38062 }
38063 arg3 = static_cast< int >(val3);
38064 ecode4 = SWIG_AsVal_int(obj3, &val4);
38065 if (!SWIG_IsOK(ecode4)) {
38066 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
38067 }
38068 arg4 = static_cast< int >(val4);
38069 ecode5 = SWIG_AsVal_int(obj4, &val5);
38070 if (!SWIG_IsOK(ecode5)) {
38071 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
38072 }
38073 arg5 = static_cast< int >(val5);
38074 {
38075 PyThreadState* __tstate = wxPyBeginAllowThreads();
38076 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
38077 wxPyEndAllowThreads(__tstate);
38078 if (PyErr_Occurred()) SWIG_fail;
38079 }
38080 resultobj = SWIG_Py_Void();
38081 return resultobj;
38082 fail:
38083 return NULL;
38084 }
38085
38086
38087 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38088 PyObject *resultobj = 0;
38089 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38090 wxRect *arg2 = 0 ;
38091 void *argp1 = 0 ;
38092 int res1 = 0 ;
38093 wxRect temp2 ;
38094 PyObject * obj0 = 0 ;
38095 PyObject * obj1 = 0 ;
38096 char * kwnames[] = {
38097 (char *) "self",(char *) "rect", NULL
38098 };
38099
38100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
38101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38102 if (!SWIG_IsOK(res1)) {
38103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38104 }
38105 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38106 {
38107 arg2 = &temp2;
38108 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
38109 }
38110 {
38111 PyThreadState* __tstate = wxPyBeginAllowThreads();
38112 (arg1)->DrawEllipse((wxRect const &)*arg2);
38113 wxPyEndAllowThreads(__tstate);
38114 if (PyErr_Occurred()) SWIG_fail;
38115 }
38116 resultobj = SWIG_Py_Void();
38117 return resultobj;
38118 fail:
38119 return NULL;
38120 }
38121
38122
38123 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38124 PyObject *resultobj = 0;
38125 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38126 wxPoint *arg2 = 0 ;
38127 wxSize *arg3 = 0 ;
38128 void *argp1 = 0 ;
38129 int res1 = 0 ;
38130 wxPoint temp2 ;
38131 wxSize temp3 ;
38132 PyObject * obj0 = 0 ;
38133 PyObject * obj1 = 0 ;
38134 PyObject * obj2 = 0 ;
38135 char * kwnames[] = {
38136 (char *) "self",(char *) "pt",(char *) "sz", NULL
38137 };
38138
38139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38141 if (!SWIG_IsOK(res1)) {
38142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38143 }
38144 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38145 {
38146 arg2 = &temp2;
38147 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38148 }
38149 {
38150 arg3 = &temp3;
38151 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
38152 }
38153 {
38154 PyThreadState* __tstate = wxPyBeginAllowThreads();
38155 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
38156 wxPyEndAllowThreads(__tstate);
38157 if (PyErr_Occurred()) SWIG_fail;
38158 }
38159 resultobj = SWIG_Py_Void();
38160 return resultobj;
38161 fail:
38162 return NULL;
38163 }
38164
38165
38166 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38167 PyObject *resultobj = 0;
38168 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38169 wxIcon *arg2 = 0 ;
38170 int arg3 ;
38171 int arg4 ;
38172 void *argp1 = 0 ;
38173 int res1 = 0 ;
38174 void *argp2 = 0 ;
38175 int res2 = 0 ;
38176 int val3 ;
38177 int ecode3 = 0 ;
38178 int val4 ;
38179 int ecode4 = 0 ;
38180 PyObject * obj0 = 0 ;
38181 PyObject * obj1 = 0 ;
38182 PyObject * obj2 = 0 ;
38183 PyObject * obj3 = 0 ;
38184 char * kwnames[] = {
38185 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
38186 };
38187
38188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38190 if (!SWIG_IsOK(res1)) {
38191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38192 }
38193 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38194 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38195 if (!SWIG_IsOK(res2)) {
38196 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38197 }
38198 if (!argp2) {
38199 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38200 }
38201 arg2 = reinterpret_cast< wxIcon * >(argp2);
38202 ecode3 = SWIG_AsVal_int(obj2, &val3);
38203 if (!SWIG_IsOK(ecode3)) {
38204 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
38205 }
38206 arg3 = static_cast< int >(val3);
38207 ecode4 = SWIG_AsVal_int(obj3, &val4);
38208 if (!SWIG_IsOK(ecode4)) {
38209 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
38210 }
38211 arg4 = static_cast< int >(val4);
38212 {
38213 PyThreadState* __tstate = wxPyBeginAllowThreads();
38214 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
38215 wxPyEndAllowThreads(__tstate);
38216 if (PyErr_Occurred()) SWIG_fail;
38217 }
38218 resultobj = SWIG_Py_Void();
38219 return resultobj;
38220 fail:
38221 return NULL;
38222 }
38223
38224
38225 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38226 PyObject *resultobj = 0;
38227 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38228 wxIcon *arg2 = 0 ;
38229 wxPoint *arg3 = 0 ;
38230 void *argp1 = 0 ;
38231 int res1 = 0 ;
38232 void *argp2 = 0 ;
38233 int res2 = 0 ;
38234 wxPoint temp3 ;
38235 PyObject * obj0 = 0 ;
38236 PyObject * obj1 = 0 ;
38237 PyObject * obj2 = 0 ;
38238 char * kwnames[] = {
38239 (char *) "self",(char *) "icon",(char *) "pt", NULL
38240 };
38241
38242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38244 if (!SWIG_IsOK(res1)) {
38245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38246 }
38247 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38248 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38249 if (!SWIG_IsOK(res2)) {
38250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38251 }
38252 if (!argp2) {
38253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38254 }
38255 arg2 = reinterpret_cast< wxIcon * >(argp2);
38256 {
38257 arg3 = &temp3;
38258 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38259 }
38260 {
38261 PyThreadState* __tstate = wxPyBeginAllowThreads();
38262 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
38263 wxPyEndAllowThreads(__tstate);
38264 if (PyErr_Occurred()) SWIG_fail;
38265 }
38266 resultobj = SWIG_Py_Void();
38267 return resultobj;
38268 fail:
38269 return NULL;
38270 }
38271
38272
38273 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38274 PyObject *resultobj = 0;
38275 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38276 wxBitmap *arg2 = 0 ;
38277 int arg3 ;
38278 int arg4 ;
38279 bool arg5 = (bool) false ;
38280 void *argp1 = 0 ;
38281 int res1 = 0 ;
38282 void *argp2 = 0 ;
38283 int res2 = 0 ;
38284 int val3 ;
38285 int ecode3 = 0 ;
38286 int val4 ;
38287 int ecode4 = 0 ;
38288 bool val5 ;
38289 int ecode5 = 0 ;
38290 PyObject * obj0 = 0 ;
38291 PyObject * obj1 = 0 ;
38292 PyObject * obj2 = 0 ;
38293 PyObject * obj3 = 0 ;
38294 PyObject * obj4 = 0 ;
38295 char * kwnames[] = {
38296 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
38297 };
38298
38299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38301 if (!SWIG_IsOK(res1)) {
38302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38303 }
38304 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38305 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38306 if (!SWIG_IsOK(res2)) {
38307 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38308 }
38309 if (!argp2) {
38310 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38311 }
38312 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38313 ecode3 = SWIG_AsVal_int(obj2, &val3);
38314 if (!SWIG_IsOK(ecode3)) {
38315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
38316 }
38317 arg3 = static_cast< int >(val3);
38318 ecode4 = SWIG_AsVal_int(obj3, &val4);
38319 if (!SWIG_IsOK(ecode4)) {
38320 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
38321 }
38322 arg4 = static_cast< int >(val4);
38323 if (obj4) {
38324 ecode5 = SWIG_AsVal_bool(obj4, &val5);
38325 if (!SWIG_IsOK(ecode5)) {
38326 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
38327 }
38328 arg5 = static_cast< bool >(val5);
38329 }
38330 {
38331 PyThreadState* __tstate = wxPyBeginAllowThreads();
38332 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
38333 wxPyEndAllowThreads(__tstate);
38334 if (PyErr_Occurred()) SWIG_fail;
38335 }
38336 resultobj = SWIG_Py_Void();
38337 return resultobj;
38338 fail:
38339 return NULL;
38340 }
38341
38342
38343 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38344 PyObject *resultobj = 0;
38345 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38346 wxBitmap *arg2 = 0 ;
38347 wxPoint *arg3 = 0 ;
38348 bool arg4 = (bool) false ;
38349 void *argp1 = 0 ;
38350 int res1 = 0 ;
38351 void *argp2 = 0 ;
38352 int res2 = 0 ;
38353 wxPoint temp3 ;
38354 bool val4 ;
38355 int ecode4 = 0 ;
38356 PyObject * obj0 = 0 ;
38357 PyObject * obj1 = 0 ;
38358 PyObject * obj2 = 0 ;
38359 PyObject * obj3 = 0 ;
38360 char * kwnames[] = {
38361 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
38362 };
38363
38364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38366 if (!SWIG_IsOK(res1)) {
38367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38368 }
38369 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38370 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38371 if (!SWIG_IsOK(res2)) {
38372 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38373 }
38374 if (!argp2) {
38375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38376 }
38377 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38378 {
38379 arg3 = &temp3;
38380 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38381 }
38382 if (obj3) {
38383 ecode4 = SWIG_AsVal_bool(obj3, &val4);
38384 if (!SWIG_IsOK(ecode4)) {
38385 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
38386 }
38387 arg4 = static_cast< bool >(val4);
38388 }
38389 {
38390 PyThreadState* __tstate = wxPyBeginAllowThreads();
38391 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
38392 wxPyEndAllowThreads(__tstate);
38393 if (PyErr_Occurred()) SWIG_fail;
38394 }
38395 resultobj = SWIG_Py_Void();
38396 return resultobj;
38397 fail:
38398 return NULL;
38399 }
38400
38401
38402 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38403 PyObject *resultobj = 0;
38404 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38405 wxString *arg2 = 0 ;
38406 int arg3 ;
38407 int arg4 ;
38408 void *argp1 = 0 ;
38409 int res1 = 0 ;
38410 bool temp2 = false ;
38411 int val3 ;
38412 int ecode3 = 0 ;
38413 int val4 ;
38414 int ecode4 = 0 ;
38415 PyObject * obj0 = 0 ;
38416 PyObject * obj1 = 0 ;
38417 PyObject * obj2 = 0 ;
38418 PyObject * obj3 = 0 ;
38419 char * kwnames[] = {
38420 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
38421 };
38422
38423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38425 if (!SWIG_IsOK(res1)) {
38426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38427 }
38428 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38429 {
38430 arg2 = wxString_in_helper(obj1);
38431 if (arg2 == NULL) SWIG_fail;
38432 temp2 = true;
38433 }
38434 ecode3 = SWIG_AsVal_int(obj2, &val3);
38435 if (!SWIG_IsOK(ecode3)) {
38436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
38437 }
38438 arg3 = static_cast< int >(val3);
38439 ecode4 = SWIG_AsVal_int(obj3, &val4);
38440 if (!SWIG_IsOK(ecode4)) {
38441 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
38442 }
38443 arg4 = static_cast< int >(val4);
38444 {
38445 PyThreadState* __tstate = wxPyBeginAllowThreads();
38446 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
38447 wxPyEndAllowThreads(__tstate);
38448 if (PyErr_Occurred()) SWIG_fail;
38449 }
38450 resultobj = SWIG_Py_Void();
38451 {
38452 if (temp2)
38453 delete arg2;
38454 }
38455 return resultobj;
38456 fail:
38457 {
38458 if (temp2)
38459 delete arg2;
38460 }
38461 return NULL;
38462 }
38463
38464
38465 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38466 PyObject *resultobj = 0;
38467 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38468 wxString *arg2 = 0 ;
38469 wxPoint *arg3 = 0 ;
38470 void *argp1 = 0 ;
38471 int res1 = 0 ;
38472 bool temp2 = false ;
38473 wxPoint temp3 ;
38474 PyObject * obj0 = 0 ;
38475 PyObject * obj1 = 0 ;
38476 PyObject * obj2 = 0 ;
38477 char * kwnames[] = {
38478 (char *) "self",(char *) "text",(char *) "pt", NULL
38479 };
38480
38481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38483 if (!SWIG_IsOK(res1)) {
38484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38485 }
38486 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38487 {
38488 arg2 = wxString_in_helper(obj1);
38489 if (arg2 == NULL) SWIG_fail;
38490 temp2 = true;
38491 }
38492 {
38493 arg3 = &temp3;
38494 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38495 }
38496 {
38497 PyThreadState* __tstate = wxPyBeginAllowThreads();
38498 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
38499 wxPyEndAllowThreads(__tstate);
38500 if (PyErr_Occurred()) SWIG_fail;
38501 }
38502 resultobj = SWIG_Py_Void();
38503 {
38504 if (temp2)
38505 delete arg2;
38506 }
38507 return resultobj;
38508 fail:
38509 {
38510 if (temp2)
38511 delete arg2;
38512 }
38513 return NULL;
38514 }
38515
38516
38517 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38518 PyObject *resultobj = 0;
38519 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38520 wxString *arg2 = 0 ;
38521 int arg3 ;
38522 int arg4 ;
38523 double arg5 ;
38524 void *argp1 = 0 ;
38525 int res1 = 0 ;
38526 bool temp2 = false ;
38527 int val3 ;
38528 int ecode3 = 0 ;
38529 int val4 ;
38530 int ecode4 = 0 ;
38531 double val5 ;
38532 int ecode5 = 0 ;
38533 PyObject * obj0 = 0 ;
38534 PyObject * obj1 = 0 ;
38535 PyObject * obj2 = 0 ;
38536 PyObject * obj3 = 0 ;
38537 PyObject * obj4 = 0 ;
38538 char * kwnames[] = {
38539 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
38540 };
38541
38542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38544 if (!SWIG_IsOK(res1)) {
38545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38546 }
38547 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38548 {
38549 arg2 = wxString_in_helper(obj1);
38550 if (arg2 == NULL) SWIG_fail;
38551 temp2 = true;
38552 }
38553 ecode3 = SWIG_AsVal_int(obj2, &val3);
38554 if (!SWIG_IsOK(ecode3)) {
38555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
38556 }
38557 arg3 = static_cast< int >(val3);
38558 ecode4 = SWIG_AsVal_int(obj3, &val4);
38559 if (!SWIG_IsOK(ecode4)) {
38560 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
38561 }
38562 arg4 = static_cast< int >(val4);
38563 ecode5 = SWIG_AsVal_double(obj4, &val5);
38564 if (!SWIG_IsOK(ecode5)) {
38565 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
38566 }
38567 arg5 = static_cast< double >(val5);
38568 {
38569 PyThreadState* __tstate = wxPyBeginAllowThreads();
38570 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
38571 wxPyEndAllowThreads(__tstate);
38572 if (PyErr_Occurred()) SWIG_fail;
38573 }
38574 resultobj = SWIG_Py_Void();
38575 {
38576 if (temp2)
38577 delete arg2;
38578 }
38579 return resultobj;
38580 fail:
38581 {
38582 if (temp2)
38583 delete arg2;
38584 }
38585 return NULL;
38586 }
38587
38588
38589 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38590 PyObject *resultobj = 0;
38591 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38592 wxString *arg2 = 0 ;
38593 wxPoint *arg3 = 0 ;
38594 double arg4 ;
38595 void *argp1 = 0 ;
38596 int res1 = 0 ;
38597 bool temp2 = false ;
38598 wxPoint temp3 ;
38599 double val4 ;
38600 int ecode4 = 0 ;
38601 PyObject * obj0 = 0 ;
38602 PyObject * obj1 = 0 ;
38603 PyObject * obj2 = 0 ;
38604 PyObject * obj3 = 0 ;
38605 char * kwnames[] = {
38606 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
38607 };
38608
38609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38611 if (!SWIG_IsOK(res1)) {
38612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38613 }
38614 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38615 {
38616 arg2 = wxString_in_helper(obj1);
38617 if (arg2 == NULL) SWIG_fail;
38618 temp2 = true;
38619 }
38620 {
38621 arg3 = &temp3;
38622 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38623 }
38624 ecode4 = SWIG_AsVal_double(obj3, &val4);
38625 if (!SWIG_IsOK(ecode4)) {
38626 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
38627 }
38628 arg4 = static_cast< double >(val4);
38629 {
38630 PyThreadState* __tstate = wxPyBeginAllowThreads();
38631 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
38632 wxPyEndAllowThreads(__tstate);
38633 if (PyErr_Occurred()) SWIG_fail;
38634 }
38635 resultobj = SWIG_Py_Void();
38636 {
38637 if (temp2)
38638 delete arg2;
38639 }
38640 return resultobj;
38641 fail:
38642 {
38643 if (temp2)
38644 delete arg2;
38645 }
38646 return NULL;
38647 }
38648
38649
38650 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38651 PyObject *resultobj = 0;
38652 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38653 int arg2 ;
38654 wxPoint *arg3 = (wxPoint *) 0 ;
38655 int arg4 = (int) 0 ;
38656 int arg5 = (int) 0 ;
38657 void *argp1 = 0 ;
38658 int res1 = 0 ;
38659 int val4 ;
38660 int ecode4 = 0 ;
38661 int val5 ;
38662 int ecode5 = 0 ;
38663 PyObject * obj0 = 0 ;
38664 PyObject * obj1 = 0 ;
38665 PyObject * obj2 = 0 ;
38666 PyObject * obj3 = 0 ;
38667 char * kwnames[] = {
38668 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
38669 };
38670
38671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38673 if (!SWIG_IsOK(res1)) {
38674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38675 }
38676 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38677 {
38678 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38679 if (arg3 == NULL) SWIG_fail;
38680 }
38681 if (obj2) {
38682 ecode4 = SWIG_AsVal_int(obj2, &val4);
38683 if (!SWIG_IsOK(ecode4)) {
38684 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38685 }
38686 arg4 = static_cast< int >(val4);
38687 }
38688 if (obj3) {
38689 ecode5 = SWIG_AsVal_int(obj3, &val5);
38690 if (!SWIG_IsOK(ecode5)) {
38691 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38692 }
38693 arg5 = static_cast< int >(val5);
38694 }
38695 {
38696 PyThreadState* __tstate = wxPyBeginAllowThreads();
38697 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38698 wxPyEndAllowThreads(__tstate);
38699 if (PyErr_Occurred()) SWIG_fail;
38700 }
38701 resultobj = SWIG_Py_Void();
38702 {
38703 if (arg3) delete [] arg3;
38704 }
38705 return resultobj;
38706 fail:
38707 {
38708 if (arg3) delete [] arg3;
38709 }
38710 return NULL;
38711 }
38712
38713
38714 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38715 PyObject *resultobj = 0;
38716 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38717 int arg2 ;
38718 wxPoint *arg3 = (wxPoint *) 0 ;
38719 int arg4 = (int) 0 ;
38720 int arg5 = (int) 0 ;
38721 int arg6 = (int) wxODDEVEN_RULE ;
38722 void *argp1 = 0 ;
38723 int res1 = 0 ;
38724 int val4 ;
38725 int ecode4 = 0 ;
38726 int val5 ;
38727 int ecode5 = 0 ;
38728 int val6 ;
38729 int ecode6 = 0 ;
38730 PyObject * obj0 = 0 ;
38731 PyObject * obj1 = 0 ;
38732 PyObject * obj2 = 0 ;
38733 PyObject * obj3 = 0 ;
38734 PyObject * obj4 = 0 ;
38735 char * kwnames[] = {
38736 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38737 };
38738
38739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38741 if (!SWIG_IsOK(res1)) {
38742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38743 }
38744 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38745 {
38746 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38747 if (arg3 == NULL) SWIG_fail;
38748 }
38749 if (obj2) {
38750 ecode4 = SWIG_AsVal_int(obj2, &val4);
38751 if (!SWIG_IsOK(ecode4)) {
38752 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38753 }
38754 arg4 = static_cast< int >(val4);
38755 }
38756 if (obj3) {
38757 ecode5 = SWIG_AsVal_int(obj3, &val5);
38758 if (!SWIG_IsOK(ecode5)) {
38759 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38760 }
38761 arg5 = static_cast< int >(val5);
38762 }
38763 if (obj4) {
38764 ecode6 = SWIG_AsVal_int(obj4, &val6);
38765 if (!SWIG_IsOK(ecode6)) {
38766 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38767 }
38768 arg6 = static_cast< int >(val6);
38769 }
38770 {
38771 PyThreadState* __tstate = wxPyBeginAllowThreads();
38772 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38773 wxPyEndAllowThreads(__tstate);
38774 if (PyErr_Occurred()) SWIG_fail;
38775 }
38776 resultobj = SWIG_Py_Void();
38777 {
38778 if (arg3) delete [] arg3;
38779 }
38780 return resultobj;
38781 fail:
38782 {
38783 if (arg3) delete [] arg3;
38784 }
38785 return NULL;
38786 }
38787
38788
38789 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38790 PyObject *resultobj = 0;
38791 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38792 wxString *arg2 = 0 ;
38793 wxRect *arg3 = 0 ;
38794 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38795 int arg5 = (int) -1 ;
38796 void *argp1 = 0 ;
38797 int res1 = 0 ;
38798 bool temp2 = false ;
38799 wxRect temp3 ;
38800 int val4 ;
38801 int ecode4 = 0 ;
38802 int val5 ;
38803 int ecode5 = 0 ;
38804 PyObject * obj0 = 0 ;
38805 PyObject * obj1 = 0 ;
38806 PyObject * obj2 = 0 ;
38807 PyObject * obj3 = 0 ;
38808 PyObject * obj4 = 0 ;
38809 char * kwnames[] = {
38810 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38811 };
38812
38813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38815 if (!SWIG_IsOK(res1)) {
38816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38817 }
38818 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38819 {
38820 arg2 = wxString_in_helper(obj1);
38821 if (arg2 == NULL) SWIG_fail;
38822 temp2 = true;
38823 }
38824 {
38825 arg3 = &temp3;
38826 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38827 }
38828 if (obj3) {
38829 ecode4 = SWIG_AsVal_int(obj3, &val4);
38830 if (!SWIG_IsOK(ecode4)) {
38831 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38832 }
38833 arg4 = static_cast< int >(val4);
38834 }
38835 if (obj4) {
38836 ecode5 = SWIG_AsVal_int(obj4, &val5);
38837 if (!SWIG_IsOK(ecode5)) {
38838 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38839 }
38840 arg5 = static_cast< int >(val5);
38841 }
38842 {
38843 PyThreadState* __tstate = wxPyBeginAllowThreads();
38844 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38845 wxPyEndAllowThreads(__tstate);
38846 if (PyErr_Occurred()) SWIG_fail;
38847 }
38848 resultobj = SWIG_Py_Void();
38849 {
38850 if (temp2)
38851 delete arg2;
38852 }
38853 return resultobj;
38854 fail:
38855 {
38856 if (temp2)
38857 delete arg2;
38858 }
38859 return NULL;
38860 }
38861
38862
38863 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38864 PyObject *resultobj = 0;
38865 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38866 wxString *arg2 = 0 ;
38867 wxBitmap *arg3 = 0 ;
38868 wxRect *arg4 = 0 ;
38869 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38870 int arg6 = (int) -1 ;
38871 void *argp1 = 0 ;
38872 int res1 = 0 ;
38873 bool temp2 = false ;
38874 void *argp3 = 0 ;
38875 int res3 = 0 ;
38876 wxRect temp4 ;
38877 int val5 ;
38878 int ecode5 = 0 ;
38879 int val6 ;
38880 int ecode6 = 0 ;
38881 PyObject * obj0 = 0 ;
38882 PyObject * obj1 = 0 ;
38883 PyObject * obj2 = 0 ;
38884 PyObject * obj3 = 0 ;
38885 PyObject * obj4 = 0 ;
38886 PyObject * obj5 = 0 ;
38887 char * kwnames[] = {
38888 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38889 };
38890
38891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38893 if (!SWIG_IsOK(res1)) {
38894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38895 }
38896 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38897 {
38898 arg2 = wxString_in_helper(obj1);
38899 if (arg2 == NULL) SWIG_fail;
38900 temp2 = true;
38901 }
38902 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38903 if (!SWIG_IsOK(res3)) {
38904 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38905 }
38906 if (!argp3) {
38907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38908 }
38909 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38910 {
38911 arg4 = &temp4;
38912 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38913 }
38914 if (obj4) {
38915 ecode5 = SWIG_AsVal_int(obj4, &val5);
38916 if (!SWIG_IsOK(ecode5)) {
38917 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38918 }
38919 arg5 = static_cast< int >(val5);
38920 }
38921 if (obj5) {
38922 ecode6 = SWIG_AsVal_int(obj5, &val6);
38923 if (!SWIG_IsOK(ecode6)) {
38924 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38925 }
38926 arg6 = static_cast< int >(val6);
38927 }
38928 {
38929 PyThreadState* __tstate = wxPyBeginAllowThreads();
38930 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38931 wxPyEndAllowThreads(__tstate);
38932 if (PyErr_Occurred()) SWIG_fail;
38933 }
38934 resultobj = SWIG_Py_Void();
38935 {
38936 if (temp2)
38937 delete arg2;
38938 }
38939 return resultobj;
38940 fail:
38941 {
38942 if (temp2)
38943 delete arg2;
38944 }
38945 return NULL;
38946 }
38947
38948
38949 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38950 PyObject *resultobj = 0;
38951 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38952 int arg2 ;
38953 wxPoint *arg3 = (wxPoint *) 0 ;
38954 void *argp1 = 0 ;
38955 int res1 = 0 ;
38956 PyObject * obj0 = 0 ;
38957 PyObject * obj1 = 0 ;
38958 char * kwnames[] = {
38959 (char *) "self",(char *) "points", NULL
38960 };
38961
38962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38964 if (!SWIG_IsOK(res1)) {
38965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38966 }
38967 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38968 {
38969 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38970 if (arg3 == NULL) SWIG_fail;
38971 }
38972 {
38973 PyThreadState* __tstate = wxPyBeginAllowThreads();
38974 (arg1)->DrawSpline(arg2,arg3);
38975 wxPyEndAllowThreads(__tstate);
38976 if (PyErr_Occurred()) SWIG_fail;
38977 }
38978 resultobj = SWIG_Py_Void();
38979 {
38980 if (arg3) delete [] arg3;
38981 }
38982 return resultobj;
38983 fail:
38984 {
38985 if (arg3) delete [] arg3;
38986 }
38987 return NULL;
38988 }
38989
38990
38991 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38992 PyObject *resultobj = 0;
38993 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38994 void *argp1 = 0 ;
38995 int res1 = 0 ;
38996 PyObject *swig_obj[1] ;
38997
38998 if (!args) SWIG_fail;
38999 swig_obj[0] = args;
39000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39001 if (!SWIG_IsOK(res1)) {
39002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39003 }
39004 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39005 {
39006 PyThreadState* __tstate = wxPyBeginAllowThreads();
39007 (arg1)->Clear();
39008 wxPyEndAllowThreads(__tstate);
39009 if (PyErr_Occurred()) SWIG_fail;
39010 }
39011 resultobj = SWIG_Py_Void();
39012 return resultobj;
39013 fail:
39014 return NULL;
39015 }
39016
39017
39018 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39019 PyObject *resultobj = 0;
39020 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39021 wxFont *arg2 = 0 ;
39022 void *argp1 = 0 ;
39023 int res1 = 0 ;
39024 void *argp2 = 0 ;
39025 int res2 = 0 ;
39026 PyObject * obj0 = 0 ;
39027 PyObject * obj1 = 0 ;
39028 char * kwnames[] = {
39029 (char *) "self",(char *) "font", NULL
39030 };
39031
39032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
39033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39034 if (!SWIG_IsOK(res1)) {
39035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39036 }
39037 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39038 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
39039 if (!SWIG_IsOK(res2)) {
39040 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
39041 }
39042 if (!argp2) {
39043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
39044 }
39045 arg2 = reinterpret_cast< wxFont * >(argp2);
39046 {
39047 PyThreadState* __tstate = wxPyBeginAllowThreads();
39048 (arg1)->SetFont((wxFont const &)*arg2);
39049 wxPyEndAllowThreads(__tstate);
39050 if (PyErr_Occurred()) SWIG_fail;
39051 }
39052 resultobj = SWIG_Py_Void();
39053 return resultobj;
39054 fail:
39055 return NULL;
39056 }
39057
39058
39059 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39060 PyObject *resultobj = 0;
39061 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39062 wxPen *arg2 = 0 ;
39063 void *argp1 = 0 ;
39064 int res1 = 0 ;
39065 void *argp2 = 0 ;
39066 int res2 = 0 ;
39067 PyObject * obj0 = 0 ;
39068 PyObject * obj1 = 0 ;
39069 char * kwnames[] = {
39070 (char *) "self",(char *) "pen", NULL
39071 };
39072
39073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
39074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39075 if (!SWIG_IsOK(res1)) {
39076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39077 }
39078 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39079 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
39080 if (!SWIG_IsOK(res2)) {
39081 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
39082 }
39083 if (!argp2) {
39084 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
39085 }
39086 arg2 = reinterpret_cast< wxPen * >(argp2);
39087 {
39088 PyThreadState* __tstate = wxPyBeginAllowThreads();
39089 (arg1)->SetPen((wxPen const &)*arg2);
39090 wxPyEndAllowThreads(__tstate);
39091 if (PyErr_Occurred()) SWIG_fail;
39092 }
39093 resultobj = SWIG_Py_Void();
39094 return resultobj;
39095 fail:
39096 return NULL;
39097 }
39098
39099
39100 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39101 PyObject *resultobj = 0;
39102 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39103 wxBrush *arg2 = 0 ;
39104 void *argp1 = 0 ;
39105 int res1 = 0 ;
39106 void *argp2 = 0 ;
39107 int res2 = 0 ;
39108 PyObject * obj0 = 0 ;
39109 PyObject * obj1 = 0 ;
39110 char * kwnames[] = {
39111 (char *) "self",(char *) "brush", NULL
39112 };
39113
39114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
39115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39116 if (!SWIG_IsOK(res1)) {
39117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39118 }
39119 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39120 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
39121 if (!SWIG_IsOK(res2)) {
39122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
39123 }
39124 if (!argp2) {
39125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
39126 }
39127 arg2 = reinterpret_cast< wxBrush * >(argp2);
39128 {
39129 PyThreadState* __tstate = wxPyBeginAllowThreads();
39130 (arg1)->SetBrush((wxBrush const &)*arg2);
39131 wxPyEndAllowThreads(__tstate);
39132 if (PyErr_Occurred()) SWIG_fail;
39133 }
39134 resultobj = SWIG_Py_Void();
39135 return resultobj;
39136 fail:
39137 return NULL;
39138 }
39139
39140
39141 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39142 PyObject *resultobj = 0;
39143 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39144 wxBrush *arg2 = 0 ;
39145 void *argp1 = 0 ;
39146 int res1 = 0 ;
39147 void *argp2 = 0 ;
39148 int res2 = 0 ;
39149 PyObject * obj0 = 0 ;
39150 PyObject * obj1 = 0 ;
39151 char * kwnames[] = {
39152 (char *) "self",(char *) "brush", NULL
39153 };
39154
39155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39157 if (!SWIG_IsOK(res1)) {
39158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39159 }
39160 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39161 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
39162 if (!SWIG_IsOK(res2)) {
39163 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
39164 }
39165 if (!argp2) {
39166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
39167 }
39168 arg2 = reinterpret_cast< wxBrush * >(argp2);
39169 {
39170 PyThreadState* __tstate = wxPyBeginAllowThreads();
39171 (arg1)->SetBackground((wxBrush const &)*arg2);
39172 wxPyEndAllowThreads(__tstate);
39173 if (PyErr_Occurred()) SWIG_fail;
39174 }
39175 resultobj = SWIG_Py_Void();
39176 return resultobj;
39177 fail:
39178 return NULL;
39179 }
39180
39181
39182 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39183 PyObject *resultobj = 0;
39184 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39185 int arg2 ;
39186 void *argp1 = 0 ;
39187 int res1 = 0 ;
39188 int val2 ;
39189 int ecode2 = 0 ;
39190 PyObject * obj0 = 0 ;
39191 PyObject * obj1 = 0 ;
39192 char * kwnames[] = {
39193 (char *) "self",(char *) "mode", NULL
39194 };
39195
39196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
39197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39198 if (!SWIG_IsOK(res1)) {
39199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39200 }
39201 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39202 ecode2 = SWIG_AsVal_int(obj1, &val2);
39203 if (!SWIG_IsOK(ecode2)) {
39204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
39205 }
39206 arg2 = static_cast< int >(val2);
39207 {
39208 PyThreadState* __tstate = wxPyBeginAllowThreads();
39209 (arg1)->SetBackgroundMode(arg2);
39210 wxPyEndAllowThreads(__tstate);
39211 if (PyErr_Occurred()) SWIG_fail;
39212 }
39213 resultobj = SWIG_Py_Void();
39214 return resultobj;
39215 fail:
39216 return NULL;
39217 }
39218
39219
39220 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39221 PyObject *resultobj = 0;
39222 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39223 wxPalette *arg2 = 0 ;
39224 void *argp1 = 0 ;
39225 int res1 = 0 ;
39226 void *argp2 = 0 ;
39227 int res2 = 0 ;
39228 PyObject * obj0 = 0 ;
39229 PyObject * obj1 = 0 ;
39230 char * kwnames[] = {
39231 (char *) "self",(char *) "palette", NULL
39232 };
39233
39234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
39235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39236 if (!SWIG_IsOK(res1)) {
39237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39238 }
39239 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39240 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
39241 if (!SWIG_IsOK(res2)) {
39242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39243 }
39244 if (!argp2) {
39245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39246 }
39247 arg2 = reinterpret_cast< wxPalette * >(argp2);
39248 {
39249 PyThreadState* __tstate = wxPyBeginAllowThreads();
39250 (arg1)->SetPalette((wxPalette const &)*arg2);
39251 wxPyEndAllowThreads(__tstate);
39252 if (PyErr_Occurred()) SWIG_fail;
39253 }
39254 resultobj = SWIG_Py_Void();
39255 return resultobj;
39256 fail:
39257 return NULL;
39258 }
39259
39260
39261 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39262 PyObject *resultobj = 0;
39263 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39264 wxColour *arg2 = 0 ;
39265 void *argp1 = 0 ;
39266 int res1 = 0 ;
39267 wxColour temp2 ;
39268 PyObject * obj0 = 0 ;
39269 PyObject * obj1 = 0 ;
39270 char * kwnames[] = {
39271 (char *) "self",(char *) "colour", NULL
39272 };
39273
39274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
39275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39276 if (!SWIG_IsOK(res1)) {
39277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39278 }
39279 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39280 {
39281 arg2 = &temp2;
39282 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39283 }
39284 {
39285 PyThreadState* __tstate = wxPyBeginAllowThreads();
39286 (arg1)->SetTextForeground((wxColour const &)*arg2);
39287 wxPyEndAllowThreads(__tstate);
39288 if (PyErr_Occurred()) SWIG_fail;
39289 }
39290 resultobj = SWIG_Py_Void();
39291 return resultobj;
39292 fail:
39293 return NULL;
39294 }
39295
39296
39297 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39298 PyObject *resultobj = 0;
39299 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39300 wxColour *arg2 = 0 ;
39301 void *argp1 = 0 ;
39302 int res1 = 0 ;
39303 wxColour temp2 ;
39304 PyObject * obj0 = 0 ;
39305 PyObject * obj1 = 0 ;
39306 char * kwnames[] = {
39307 (char *) "self",(char *) "colour", NULL
39308 };
39309
39310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39312 if (!SWIG_IsOK(res1)) {
39313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39314 }
39315 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39316 {
39317 arg2 = &temp2;
39318 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39319 }
39320 {
39321 PyThreadState* __tstate = wxPyBeginAllowThreads();
39322 (arg1)->SetTextBackground((wxColour const &)*arg2);
39323 wxPyEndAllowThreads(__tstate);
39324 if (PyErr_Occurred()) SWIG_fail;
39325 }
39326 resultobj = SWIG_Py_Void();
39327 return resultobj;
39328 fail:
39329 return NULL;
39330 }
39331
39332
39333 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39334 PyObject *resultobj = 0;
39335 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39336 int arg2 ;
39337 void *argp1 = 0 ;
39338 int res1 = 0 ;
39339 int val2 ;
39340 int ecode2 = 0 ;
39341 PyObject * obj0 = 0 ;
39342 PyObject * obj1 = 0 ;
39343 char * kwnames[] = {
39344 (char *) "self",(char *) "function", NULL
39345 };
39346
39347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
39348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39349 if (!SWIG_IsOK(res1)) {
39350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39351 }
39352 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39353 ecode2 = SWIG_AsVal_int(obj1, &val2);
39354 if (!SWIG_IsOK(ecode2)) {
39355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
39356 }
39357 arg2 = static_cast< int >(val2);
39358 {
39359 PyThreadState* __tstate = wxPyBeginAllowThreads();
39360 (arg1)->SetLogicalFunction(arg2);
39361 wxPyEndAllowThreads(__tstate);
39362 if (PyErr_Occurred()) SWIG_fail;
39363 }
39364 resultobj = SWIG_Py_Void();
39365 return resultobj;
39366 fail:
39367 return NULL;
39368 }
39369
39370
39371 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39372 PyObject *obj;
39373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39374 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
39375 return SWIG_Py_Void();
39376 }
39377
39378 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39379 return SWIG_Python_InitShadowInstance(args);
39380 }
39381
39382 static PyMethodDef SwigMethods[] = {
39383 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
39384 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
39385 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
39386 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
39387 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
39388 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
39389 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
39390 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39391 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
39392 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
39393 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
39394 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
39395 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
39396 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
39397 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39398 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39399 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
39401 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
39402 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39403 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39404 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
39405 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
39406 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
39407 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
39408 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
39409 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
39410 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39411 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39412 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
39413 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
39414 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
39415 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
39416 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
39417 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
39418 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
39419 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
39420 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
39421 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
39422 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
39423 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
39424 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
39425 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39426 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
39427 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39428 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39429 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39430 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
39431 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39432 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
39433 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
39434 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39435 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39436 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39437 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
39438 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
39439 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
39440 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39441 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
39442 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39443 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39444 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39445 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
39446 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
39447 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
39448 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
39449 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
39450 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
39451 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
39452 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39453 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
39454 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39455 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39456 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39457 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39458 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
39459 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
39460 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39461 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
39462 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
39463 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
39464 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
39465 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
39466 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
39467 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
39468 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
39469 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
39470 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39471 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
39472 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39473 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
39474 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39475 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39476 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39477 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39478 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39479 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39480 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39481 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39482 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39483 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39484 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39485 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
39486 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
39487 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
39488 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39489 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39490 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
39491 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
39492 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
39493 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
39494 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
39495 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
39496 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
39497 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
39498 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
39499 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
39500 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
39501 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
39502 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
39503 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
39504 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
39505 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39506 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
39507 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
39508 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39509 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39510 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39511 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39512 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39513 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
39514 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
39515 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
39516 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
39517 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
39518 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
39519 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
39520 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
39521 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
39522 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
39523 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
39524 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
39525 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39526 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
39527 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
39528 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39530 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39531 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39533 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
39534 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
39535 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
39536 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
39537 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
39538 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
39539 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
39540 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
39541 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
39542 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
39543 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39544 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39545 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39546 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39547 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
39548 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
39550 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
39551 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
39552 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
39553 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39554 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39555 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39556 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39557 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39558 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
39559 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
39560 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39561 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
39562 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
39563 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
39565 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
39567 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
39568 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
39569 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
39570 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39571 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39572 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
39573 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39574 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39575 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39576 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
39577 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
39578 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
39579 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
39580 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39581 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39582 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
39583 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39584 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
39585 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
39586 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
39587 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
39588 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39589 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39590 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39591 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39592 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
39593 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
39594 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
39595 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39596 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39597 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
39598 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
39599 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
39600 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39601 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
39602 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39603 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
39604 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
39605 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
39606 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
39607 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
39608 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39609 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
39610 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39611 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
39612 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39613 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39614 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39615 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
39616 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39617 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
39618 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
39619 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39620 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
39621 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39622 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39623 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
39624 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
39625 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
39626 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
39627 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
39628 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
39629 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
39630 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
39631 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
39632 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
39633 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
39634 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
39635 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
39636 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
39637 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
39638 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
39639 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
39640 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
39641 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
39642 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
39643 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
39644 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
39645 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
39646 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
39647 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
39648 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
39649 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
39650 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
39651 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
39652 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39653 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39654 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39655 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39656 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39657 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39658 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39659 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39660 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39661 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
39662 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
39663 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
39664 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
39665 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
39666 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
39667 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
39668 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
39669 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
39670 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
39671 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
39672 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
39673 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39674 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
39675 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
39676 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
39677 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39678 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39679 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
39680 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
39681 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
39682 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39683 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39684 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
39685 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39686 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
39687 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
39688 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39689 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
39690 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
39691 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39692 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39693 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
39694 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
39695 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
39696 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
39697 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
39698 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
39699 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39700 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
39701 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
39702 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39703 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39704 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
39705 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39706 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39707 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39708 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39709 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39710 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39711 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39712 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39713 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39714 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39715 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39716 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39717 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39718 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39719 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39720 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39721 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39722 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39723 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39724 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39725 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39726 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39727 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39728 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39729 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39730 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39731 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39732 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39733 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39734 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39735 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39736 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39737 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39738 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39739 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39740 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39741 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39742 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39743 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39744 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
39745 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39746 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39747 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
39748 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39749 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39750 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39751 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39752 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39753 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39754 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39755 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39756 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39757 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39758 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39759 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39760 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39761 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39762 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39763 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39764 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39765 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39766 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39767 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39768 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39769 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39770 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
39771 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39772 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39773 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39774 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39775 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39776 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39777 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39778 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39779 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39780 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
39781 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39782 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39783 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39784 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39785 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39786 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39787 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
39788 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39789 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39790 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39791 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39792 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39793 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39794 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39795 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39796 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39797 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39798 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39799 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39800 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39801 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39802 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39803 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39804 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39805 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39806 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39807 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39808 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39809 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39810 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39811 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39812 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39813 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39814 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39815 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39816 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39817 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39818 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39819 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39820 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39821 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39822 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39823 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39824 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39825 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39826 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39827 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39828 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39829 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39830 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39831 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39832 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39833 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39834 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39835 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39836 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39837 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39838 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39839 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39840 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39841 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39842 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39843 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39844 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39845 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39846 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39847 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39848 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39849 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39850 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39851 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39852 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39853 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39854 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39855 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39856 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39857 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39858 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39859 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39860 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39861 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39862 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39863 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39864 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39865 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39866 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39867 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39868 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39869 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39870 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39871 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39872 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39873 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39874 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39875 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39876 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39877 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39878 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39879 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39880 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39881 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39882 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39883 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39884 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
39885 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
39886 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39887 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39888 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39889 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39890 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39891 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39892 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39893 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39894 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39895 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39896 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39897 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39898 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39899 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39900 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39901 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39902 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39903 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39904 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39905 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39906 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39907 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39908 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39909 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39910 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39911 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39912 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39913 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39914 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39915 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39916 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39917 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39918 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39919 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39920 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
39921 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39922 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
39923 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
39924 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39925 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39926 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39927 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39928 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39929 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39930 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
39931 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39932 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39933 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39934 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39935 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39936 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39937 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39938 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39939 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39940 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39941 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39942 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39943 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39944 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39945 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39946 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
39947 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39948 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39949 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39950 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39951 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39952 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
39953 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39954 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39955 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
39956 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39957 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39958 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39959 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39960 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39961 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
39962 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39963 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39964 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39965 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39966 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39967 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
39968 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39969 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39970 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
39971 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39972 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
39973 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39974 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39975 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39976 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39977 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39978 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39979 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39980 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
39981 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
39982 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39983 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39984 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39985 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39986 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39987 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39988 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39989 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39990 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39991 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39992 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39993 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
39994 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
39995 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39996 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39997 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39998 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39999 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
40000 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
40001 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
40002 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
40003 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
40004 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
40005 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
40006 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
40007 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
40008 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
40009 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
40010 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
40011 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
40012 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
40013 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
40014 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
40015 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
40016 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
40017 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
40018 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
40019 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
40020 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
40021 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
40022 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
40023 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
40024 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
40025 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
40026 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
40027 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
40028 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
40029 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
40030 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40031 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
40032 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
40033 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
40034 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
40035 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
40036 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
40037 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
40038 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40039 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
40040 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
40041 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
40042 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
40043 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
40044 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
40045 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
40046 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
40047 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
40048 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
40049 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
40050 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
40051 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
40052 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40053 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40054 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40055 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40056 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40057 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40058 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
40059 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
40060 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
40061 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
40062 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
40063 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
40064 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
40065 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
40066 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
40067 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
40068 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
40069 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
40070 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
40071 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40072 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40073 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40074 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40075 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40076 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
40077 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
40078 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
40079 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
40080 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
40081 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
40082 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
40083 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
40084 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40085 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
40086 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
40087 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
40088 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
40089 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
40090 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
40091 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
40092 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
40093 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
40094 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
40095 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
40096 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
40097 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40098 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
40099 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40100 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40101 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
40102 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40103 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40104 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
40105 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
40106 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
40107 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40108 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40109 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40110 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40111 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
40112 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
40113 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
40114 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
40115 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
40116 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
40117 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
40118 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
40119 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
40120 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
40121 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40122 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40123 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40124 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40125 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40126 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
40127 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
40128 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
40129 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
40130 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
40131 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
40132 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
40133 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
40134 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
40135 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
40136 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
40137 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
40138 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
40139 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
40140 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
40141 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
40142 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
40143 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
40144 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
40145 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
40146 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
40147 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40148 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40149 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40150 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40151 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
40152 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
40153 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40154 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
40155 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
40156 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
40157 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
40158 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
40159 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
40160 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
40161 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
40162 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40163 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
40164 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
40165 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40166 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40167 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
40168 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
40169 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
40170 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
40171 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
40172 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
40173 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40174 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
40175 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
40176 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
40177 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40178 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40179 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40180 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
40181 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40182 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
40183 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
40184 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
40185 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
40186 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
40187 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
40188 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
40189 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
40190 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
40191 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
40192 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
40193 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
40194 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
40195 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
40196 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
40197 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
40198 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
40199 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
40200 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
40201 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
40202 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
40203 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
40204 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40205 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
40206 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40207 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40208 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40209 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
40210 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40211 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
40212 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
40213 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
40214 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
40215 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
40216 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
40217 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
40218 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
40219 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
40220 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
40221 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
40222 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
40223 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
40224 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
40225 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
40226 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
40227 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
40228 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
40229 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
40230 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
40231 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
40232 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
40233 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
40234 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
40235 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
40236 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
40237 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
40238 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
40239 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
40240 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
40241 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
40242 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
40243 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
40244 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
40245 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
40246 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
40247 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
40248 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
40249 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
40250 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
40251 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
40252 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
40253 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40254 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
40255 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
40256 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
40257 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
40258 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
40259 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
40260 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40261 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
40262 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
40263 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
40264 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
40265 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
40266 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
40267 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
40268 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
40269 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
40270 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
40271 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
40272 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
40273 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40274 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40275 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
40276 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
40277 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40278 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40279 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40280 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
40281 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
40282 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40283 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
40284 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40285 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
40286 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40287 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
40288 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40289 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
40290 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40291 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
40292 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
40293 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
40294 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40295 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40296 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40297 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40298 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40299 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40300 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40301 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40302 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40303 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40304 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40305 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40306 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
40307 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40308 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40309 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40310 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40311 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40312 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40313 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40314 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
40315 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40316 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40317 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
40318 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40319 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40320 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
40321 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
40322 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40323 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40324 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40325 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40326 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
40327 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
40328 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
40329 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40330 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40331 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
40332 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
40333 { NULL, NULL, 0, NULL }
40334 };
40335
40336
40337 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
40338
40339 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
40340 return (void *)((wxClientDC *) ((wxPaintDC *) x));
40341 }
40342 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
40343 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
40344 }
40345 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
40346 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
40347 }
40348 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
40349 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
40350 }
40351 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
40352 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
40353 }
40354 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
40355 return (void *)((wxWindowDC *) ((wxClientDC *) x));
40356 }
40357 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
40358 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
40359 }
40360 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
40361 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40362 }
40363 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
40364 return (void *)((wxLocale *) ((wxPyLocale *) x));
40365 }
40366 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
40367 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
40368 }
40369 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
40370 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
40371 }
40372 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
40373 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40374 }
40375 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
40376 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
40377 }
40378 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
40379 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
40380 }
40381 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
40382 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
40383 }
40384 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
40385 return (void *)((wxGDIObject *) ((wxIcon *) x));
40386 }
40387 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
40388 return (void *)((wxGDIObject *) ((wxPalette *) x));
40389 }
40390 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
40391 return (void *)((wxGDIObject *) ((wxPen *) x));
40392 }
40393 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
40394 return (void *)((wxGDIObject *) ((wxFont *) x));
40395 }
40396 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
40397 return (void *)((wxGDIObject *) ((wxCursor *) x));
40398 }
40399 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
40400 return (void *)((wxGDIObject *) ((wxBitmap *) x));
40401 }
40402 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
40403 return (void *)((wxGDIObject *) ((wxRegion *) x));
40404 }
40405 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
40406 return (void *)((wxGDIObject *) ((wxBrush *) x));
40407 }
40408 static void *_p_wxGCDCTo_p_wxDC(void *x) {
40409 return (void *)((wxDC *) ((wxGCDC *) x));
40410 }
40411 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
40412 return (void *)((wxDC *) ((wxScreenDC *) x));
40413 }
40414 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
40415 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40416 }
40417 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
40418 return (void *)((wxDC *) ((wxMirrorDC *) x));
40419 }
40420 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
40421 return (void *)((wxDC *) ((wxWindowDC *) x));
40422 }
40423 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
40424 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
40425 }
40426 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
40427 return (void *)((wxDC *) ((wxMetaFileDC *) x));
40428 }
40429 static void *_p_wxClientDCTo_p_wxDC(void *x) {
40430 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
40431 }
40432 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
40433 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40434 }
40435 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
40436 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40437 }
40438 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
40439 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
40440 }
40441 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
40442 return (void *)((wxDC *) ((wxPostScriptDC *) x));
40443 }
40444 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
40445 return (void *)((wxDC *) ((wxPrinterDC *) x));
40446 }
40447 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
40448 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
40449 }
40450 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
40451 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
40452 }
40453 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
40454 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
40455 }
40456 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
40457 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
40458 }
40459 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40460 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40461 }
40462 static void *_p_wxPenTo_p_wxObject(void *x) {
40463 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
40464 }
40465 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
40466 return (void *)((wxObject *) ((wxRegionIterator *) x));
40467 }
40468 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40469 return (void *)((wxObject *) ((wxSizerItem *) x));
40470 }
40471 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40472 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40473 }
40474 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
40475 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
40476 }
40477 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
40478 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
40479 }
40480 static void *_p_wxIconTo_p_wxObject(void *x) {
40481 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
40482 }
40483 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
40484 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
40485 }
40486 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
40487 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
40488 }
40489 static void *_p_wxSizerTo_p_wxObject(void *x) {
40490 return (void *)((wxObject *) ((wxSizer *) x));
40491 }
40492 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40493 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40494 }
40495 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40496 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40497 }
40498 static void *_p_wxEventTo_p_wxObject(void *x) {
40499 return (void *)((wxObject *) ((wxEvent *) x));
40500 }
40501 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
40502 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
40503 }
40504 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
40505 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
40506 }
40507 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
40508 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
40509 }
40510 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
40511 return (void *)((wxObject *) ((wxPseudoDC *) x));
40512 }
40513 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
40514 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
40515 }
40516 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40517 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40518 }
40519 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40520 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40521 }
40522 static void *_p_wxDCTo_p_wxObject(void *x) {
40523 return (void *)((wxObject *) ((wxDC *) x));
40524 }
40525 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40526 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40527 }
40528 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40529 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40530 }
40531 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40532 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40533 }
40534 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40535 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40536 }
40537 static void *_p_wxControlTo_p_wxObject(void *x) {
40538 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40539 }
40540 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
40541 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
40542 }
40543 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40544 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40545 }
40546 static void *_p_wxClientDCTo_p_wxObject(void *x) {
40547 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
40548 }
40549 static void *_p_wxFSFileTo_p_wxObject(void *x) {
40550 return (void *)((wxObject *) ((wxFSFile *) x));
40551 }
40552 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
40553 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
40554 }
40555 static void *_p_wxRegionTo_p_wxObject(void *x) {
40556 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
40557 }
40558 static void *_p_wxPySizerTo_p_wxObject(void *x) {
40559 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40560 }
40561 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
40562 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
40563 }
40564 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
40565 return (void *)((wxObject *) ((wxGDIObject *) x));
40566 }
40567 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
40568 return (void *)((wxObject *) ((wxGraphicsObject *) x));
40569 }
40570 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
40571 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
40572 }
40573 static void *_p_wxEffectsTo_p_wxObject(void *x) {
40574 return (void *)((wxObject *) ((wxEffects *) x));
40575 }
40576 static void *_p_wxPyEventTo_p_wxObject(void *x) {
40577 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40578 }
40579 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40580 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40581 }
40582 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
40583 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
40584 }
40585 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
40586 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
40587 }
40588 static void *_p_wxShowEventTo_p_wxObject(void *x) {
40589 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40590 }
40591 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40592 return (void *)((wxObject *) ((wxMenuItem *) x));
40593 }
40594 static void *_p_wxDateEventTo_p_wxObject(void *x) {
40595 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40596 }
40597 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40598 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40599 }
40600 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40601 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40602 }
40603 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40604 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40605 }
40606 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40607 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40608 }
40609 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40610 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40611 }
40612 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40613 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40614 }
40615 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40616 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40617 }
40618 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40619 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40620 }
40621 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40622 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40623 }
40624 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40625 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40626 }
40627 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40628 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40629 }
40630 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40631 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40632 }
40633 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40634 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40635 }
40636 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40637 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40638 }
40639 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40640 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40641 }
40642 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40643 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40644 }
40645 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40646 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40647 }
40648 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40649 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40650 }
40651 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40652 return (void *)((wxObject *) ((wxImageHandler *) x));
40653 }
40654 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40655 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40656 }
40657 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40658 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40659 }
40660 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
40661 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
40662 }
40663 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40664 return (void *)((wxObject *) ((wxEvtHandler *) x));
40665 }
40666 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40667 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40668 }
40669 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
40670 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40671 }
40672 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
40673 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40674 }
40675 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
40676 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
40677 }
40678 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
40679 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
40680 }
40681 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
40682 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
40683 }
40684 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40685 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40686 }
40687 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40688 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40689 }
40690 static void *_p_wxImageTo_p_wxObject(void *x) {
40691 return (void *)((wxObject *) ((wxImage *) x));
40692 }
40693 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40694 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40695 }
40696 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
40697 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
40698 }
40699 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
40700 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
40701 }
40702 static void *_p_wxPaletteTo_p_wxObject(void *x) {
40703 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
40704 }
40705 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
40706 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40707 }
40708 static void *_p_wxImageListTo_p_wxObject(void *x) {
40709 return (void *)((wxObject *) ((wxImageList *) x));
40710 }
40711 static void *_p_wxGCDCTo_p_wxObject(void *x) {
40712 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40713 }
40714 static void *_p_wxCursorTo_p_wxObject(void *x) {
40715 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40716 }
40717 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40718 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40719 }
40720 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40721 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40722 }
40723 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40724 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40725 }
40726 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40727 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40728 }
40729 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40730 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40731 }
40732 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40733 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40734 }
40735 static void *_p_wxWindowTo_p_wxObject(void *x) {
40736 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40737 }
40738 static void *_p_wxMenuTo_p_wxObject(void *x) {
40739 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40740 }
40741 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40742 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40743 }
40744 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40745 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40746 }
40747 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40748 return (void *)((wxObject *) ((wxFileSystem *) x));
40749 }
40750 static void *_p_wxBitmapTo_p_wxObject(void *x) {
40751 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40752 }
40753 static void *_p_wxMaskTo_p_wxObject(void *x) {
40754 return (void *)((wxObject *) ((wxMask *) x));
40755 }
40756 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40757 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40758 }
40759 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40760 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40761 }
40762 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40763 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40764 }
40765 static void *_p_wxPyAppTo_p_wxObject(void *x) {
40766 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40767 }
40768 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40769 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40770 }
40771 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40772 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40773 }
40774 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40775 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40776 }
40777 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40778 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40779 }
40780 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40781 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40782 }
40783 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40784 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40785 }
40786 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40787 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40788 }
40789 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40790 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40791 }
40792 static void *_p_wxFontTo_p_wxObject(void *x) {
40793 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40794 }
40795 static void *_p_wxBrushTo_p_wxObject(void *x) {
40796 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40797 }
40798 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40799 return (void *)((wxObject *) ((wxMetaFile *) x));
40800 }
40801 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40802 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40803 }
40804 static void *_p_wxColourTo_p_wxObject(void *x) {
40805 return (void *)((wxObject *) ((wxColour *) x));
40806 }
40807 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40808 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40809 }
40810 static void *_p_wxValidatorTo_p_wxObject(void *x) {
40811 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40812 }
40813 static void *_p_wxControlTo_p_wxWindow(void *x) {
40814 return (void *)((wxWindow *) ((wxControl *) x));
40815 }
40816 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40817 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40818 }
40819 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40820 return (void *)((wxWindow *) ((wxMenuBar *) x));
40821 }
40822 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40823 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40824 }
40825 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40826 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40827 }
40828 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
40829 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
40830 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
40831 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};
40832 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40833 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40834 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40835 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
40836 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
40837 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40838 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
40839 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
40840 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40841 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40842 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40843 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40844 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
40845 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
40846 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
40847 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
40848 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40849 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40850 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40851 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
40852 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40853 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
40854 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
40855 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40856 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
40857 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40858 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40859 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40860 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40861 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40862 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40863 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
40864 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
40865 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
40866 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
40867 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
40868 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
40869 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40870 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40871 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
40872 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
40873 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40874 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
40875 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
40876 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40877 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40878 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40879 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40880 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40881 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40882 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40883 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40884 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40885 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40886 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40887 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40888 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40889 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
40890 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40891 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
40892 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40893 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
40894 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
40895 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
40896 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40897 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40898 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40899 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40900 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40901 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40902 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40903 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40904 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40905 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40906 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40907 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
40908 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
40909 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40910 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40911 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40912 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40913 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40914 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40915 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40916 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40917 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40918 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40919 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40920 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40921 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40922 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40923 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40924 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40925 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40926 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40927 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40928 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40929 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40930 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40931 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
40932 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
40933 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
40934 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40935 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40936 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40937 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40938 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40939 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
40940 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
40941 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
40942 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
40943 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
40944 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40945 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40946 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
40947 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
40948 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40949 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40950 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40951 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40952 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40953 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40954 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40955 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40956 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40957 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40958 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40959 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40960 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40961 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40962 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40963 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40964 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40965 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40966 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40967 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40968 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40969 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
40970 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
40971 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40972 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40973 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40974 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40975 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
40976 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
40977 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
40978 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
40979 static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
40980 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40981 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40982 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
40983 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
40984 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
40985 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
40986 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
40987 static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
40988 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40989 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40990 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40991 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40992 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40993 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40994 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
40995 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
40996 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40997 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40998 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40999
41000 static swig_type_info *swig_type_initial[] = {
41001 &_swigt__p_buffer,
41002 &_swigt__p_char,
41003 &_swigt__p_double,
41004 &_swigt__p_form_ops_t,
41005 &_swigt__p_int,
41006 &_swigt__p_unsigned_char,
41007 &_swigt__p_unsigned_int,
41008 &_swigt__p_unsigned_long,
41009 &_swigt__p_void,
41010 &_swigt__p_wxANIHandler,
41011 &_swigt__p_wxAcceleratorTable,
41012 &_swigt__p_wxActivateEvent,
41013 &_swigt__p_wxAlphaPixelData,
41014 &_swigt__p_wxAlphaPixelData_Accessor,
41015 &_swigt__p_wxAutoBufferedPaintDC,
41016 &_swigt__p_wxBMPHandler,
41017 &_swigt__p_wxBitmap,
41018 &_swigt__p_wxBoxSizer,
41019 &_swigt__p_wxBrush,
41020 &_swigt__p_wxBrushList,
41021 &_swigt__p_wxBufferedDC,
41022 &_swigt__p_wxBufferedPaintDC,
41023 &_swigt__p_wxCURHandler,
41024 &_swigt__p_wxChar,
41025 &_swigt__p_wxChildFocusEvent,
41026 &_swigt__p_wxClientDC,
41027 &_swigt__p_wxClipboardTextEvent,
41028 &_swigt__p_wxCloseEvent,
41029 &_swigt__p_wxColor,
41030 &_swigt__p_wxColour,
41031 &_swigt__p_wxColourDatabase,
41032 &_swigt__p_wxCommandEvent,
41033 &_swigt__p_wxContextMenuEvent,
41034 &_swigt__p_wxControl,
41035 &_swigt__p_wxControlWithItems,
41036 &_swigt__p_wxCursor,
41037 &_swigt__p_wxDC,
41038 &_swigt__p_wxDCBrushChanger,
41039 &_swigt__p_wxDCClipper,
41040 &_swigt__p_wxDCOverlay,
41041 &_swigt__p_wxDCPenChanger,
41042 &_swigt__p_wxDCTextColourChanger,
41043 &_swigt__p_wxDash,
41044 &_swigt__p_wxDateEvent,
41045 &_swigt__p_wxDisplayChangedEvent,
41046 &_swigt__p_wxDropFilesEvent,
41047 &_swigt__p_wxDuplexMode,
41048 &_swigt__p_wxEffects,
41049 &_swigt__p_wxEncodingConverter,
41050 &_swigt__p_wxEraseEvent,
41051 &_swigt__p_wxEvent,
41052 &_swigt__p_wxEvtHandler,
41053 &_swigt__p_wxFSFile,
41054 &_swigt__p_wxFileSystem,
41055 &_swigt__p_wxFlexGridSizer,
41056 &_swigt__p_wxFocusEvent,
41057 &_swigt__p_wxFont,
41058 &_swigt__p_wxFontList,
41059 &_swigt__p_wxFontMapper,
41060 &_swigt__p_wxGBSizerItem,
41061 &_swigt__p_wxGCDC,
41062 &_swigt__p_wxGDIObjListBase,
41063 &_swigt__p_wxGDIObject,
41064 &_swigt__p_wxGIFHandler,
41065 &_swigt__p_wxGraphicsBrush,
41066 &_swigt__p_wxGraphicsContext,
41067 &_swigt__p_wxGraphicsFont,
41068 &_swigt__p_wxGraphicsMatrix,
41069 &_swigt__p_wxGraphicsObject,
41070 &_swigt__p_wxGraphicsPath,
41071 &_swigt__p_wxGraphicsPen,
41072 &_swigt__p_wxGraphicsRenderer,
41073 &_swigt__p_wxGridBagSizer,
41074 &_swigt__p_wxGridSizer,
41075 &_swigt__p_wxHeaderButtonParams,
41076 &_swigt__p_wxICOHandler,
41077 &_swigt__p_wxIcon,
41078 &_swigt__p_wxIconBundle,
41079 &_swigt__p_wxIconLocation,
41080 &_swigt__p_wxIconizeEvent,
41081 &_swigt__p_wxIdleEvent,
41082 &_swigt__p_wxImage,
41083 &_swigt__p_wxImageHandler,
41084 &_swigt__p_wxImageList,
41085 &_swigt__p_wxIndividualLayoutConstraint,
41086 &_swigt__p_wxInitDialogEvent,
41087 &_swigt__p_wxJPEGHandler,
41088 &_swigt__p_wxKeyEvent,
41089 &_swigt__p_wxLanguageInfo,
41090 &_swigt__p_wxLayoutConstraints,
41091 &_swigt__p_wxLocale,
41092 &_swigt__p_wxMask,
41093 &_swigt__p_wxMaximizeEvent,
41094 &_swigt__p_wxMemoryDC,
41095 &_swigt__p_wxMenu,
41096 &_swigt__p_wxMenuBar,
41097 &_swigt__p_wxMenuEvent,
41098 &_swigt__p_wxMenuItem,
41099 &_swigt__p_wxMetaFile,
41100 &_swigt__p_wxMetaFileDC,
41101 &_swigt__p_wxMirrorDC,
41102 &_swigt__p_wxMouseCaptureChangedEvent,
41103 &_swigt__p_wxMouseCaptureLostEvent,
41104 &_swigt__p_wxMouseEvent,
41105 &_swigt__p_wxMoveEvent,
41106 &_swigt__p_wxNativeEncodingInfo,
41107 &_swigt__p_wxNativeFontInfo,
41108 &_swigt__p_wxNativePixelData,
41109 &_swigt__p_wxNativePixelData_Accessor,
41110 &_swigt__p_wxNavigationKeyEvent,
41111 &_swigt__p_wxNcPaintEvent,
41112 &_swigt__p_wxNotifyEvent,
41113 &_swigt__p_wxObject,
41114 &_swigt__p_wxOverlay,
41115 &_swigt__p_wxPCXHandler,
41116 &_swigt__p_wxPNGHandler,
41117 &_swigt__p_wxPNMHandler,
41118 &_swigt__p_wxPaintDC,
41119 &_swigt__p_wxPaintEvent,
41120 &_swigt__p_wxPalette,
41121 &_swigt__p_wxPaletteChangedEvent,
41122 &_swigt__p_wxPaperSize,
41123 &_swigt__p_wxPen,
41124 &_swigt__p_wxPenList,
41125 &_swigt__p_wxPixelDataBase,
41126 &_swigt__p_wxPoint,
41127 &_swigt__p_wxPoint2D,
41128 &_swigt__p_wxPoint2DDouble,
41129 &_swigt__p_wxPostScriptDC,
41130 &_swigt__p_wxPrintData,
41131 &_swigt__p_wxPrinterDC,
41132 &_swigt__p_wxPseudoDC,
41133 &_swigt__p_wxPyApp,
41134 &_swigt__p_wxPyCommandEvent,
41135 &_swigt__p_wxPyEvent,
41136 &_swigt__p_wxPyFontEnumerator,
41137 &_swigt__p_wxPyImageHandler,
41138 &_swigt__p_wxPyLocale,
41139 &_swigt__p_wxPySizer,
41140 &_swigt__p_wxPyValidator,
41141 &_swigt__p_wxQueryNewPaletteEvent,
41142 &_swigt__p_wxRect,
41143 &_swigt__p_wxRect2DDouble,
41144 &_swigt__p_wxRegion,
41145 &_swigt__p_wxRegionIterator,
41146 &_swigt__p_wxRendererNative,
41147 &_swigt__p_wxRendererVersion,
41148 &_swigt__p_wxScreenDC,
41149 &_swigt__p_wxScrollEvent,
41150 &_swigt__p_wxScrollWinEvent,
41151 &_swigt__p_wxSetCursorEvent,
41152 &_swigt__p_wxShowEvent,
41153 &_swigt__p_wxSize,
41154 &_swigt__p_wxSizeEvent,
41155 &_swigt__p_wxSizer,
41156 &_swigt__p_wxSizerItem,
41157 &_swigt__p_wxSplitterRenderParams,
41158 &_swigt__p_wxStaticBoxSizer,
41159 &_swigt__p_wxStdDialogButtonSizer,
41160 &_swigt__p_wxStockGDI,
41161 &_swigt__p_wxString,
41162 &_swigt__p_wxSysColourChangedEvent,
41163 &_swigt__p_wxTGAHandler,
41164 &_swigt__p_wxTIFFHandler,
41165 &_swigt__p_wxUpdateUIEvent,
41166 &_swigt__p_wxValidator,
41167 &_swigt__p_wxWindow,
41168 &_swigt__p_wxWindowCreateEvent,
41169 &_swigt__p_wxWindowDC,
41170 &_swigt__p_wxWindowDestroyEvent,
41171 &_swigt__p_wxXPMHandler,
41172 };
41173
41174 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
41175 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
41176 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
41177 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
41178 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
41179 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
41180 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
41181 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
41182 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
41183 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
41184 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
41185 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41186 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
41187 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
41188 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
41189 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}};
41190 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41191 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
41192 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}};
41193 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
41194 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
41195 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
41196 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
41197 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}};
41198 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
41199 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
41200 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
41201 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
41202 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
41203 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
41204 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
41205 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
41206 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
41207 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
41208 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
41209 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
41210 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
41211 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}};
41212 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}};
41213 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
41214 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
41215 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
41216 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
41217 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}};
41218 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
41219 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
41220 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
41221 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
41222 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
41223 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
41224 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
41225 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
41226 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
41227 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
41228 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}};
41229 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
41230 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}};
41231 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
41232 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
41233 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
41234 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
41235 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
41236 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
41237 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
41238 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
41239 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
41240 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
41241 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
41242 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
41243 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41244 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41245 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
41246 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
41247 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
41248 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
41249 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
41250 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41251 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41252 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
41253 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
41254 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41255 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41256 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41257 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41258 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41259 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41260 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
41261 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
41262 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
41263 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
41264 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
41265 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
41266 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
41267 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
41268 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
41269 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
41270 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
41271 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
41272 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41273 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41274 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41275 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
41276 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
41277 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
41278 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
41279 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
41280 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
41281 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41282 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41283 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
41284 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
41285 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
41286 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
41287 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
41288 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
41289 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
41290 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
41291 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
41292 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
41293 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
41294 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
41295 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
41296 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
41297 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41298 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41299 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
41300 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
41301 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41302 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41303 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
41304 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
41305 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
41306 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
41307 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41308 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41309 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
41310 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41311 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41312 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
41313 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
41314 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
41315 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}};
41316 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
41317 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41318 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
41319 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
41320 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
41321 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
41322 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}};
41323 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
41324 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
41325 static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
41326 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
41327 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
41328 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
41329 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
41330 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
41331 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
41332 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
41333 static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
41334 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
41335 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
41336 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
41337 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
41338 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
41339 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
41340 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
41341 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
41342 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
41343 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}};
41344 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}};
41345
41346 static swig_cast_info *swig_cast_initial[] = {
41347 _swigc__p_buffer,
41348 _swigc__p_char,
41349 _swigc__p_double,
41350 _swigc__p_form_ops_t,
41351 _swigc__p_int,
41352 _swigc__p_unsigned_char,
41353 _swigc__p_unsigned_int,
41354 _swigc__p_unsigned_long,
41355 _swigc__p_void,
41356 _swigc__p_wxANIHandler,
41357 _swigc__p_wxAcceleratorTable,
41358 _swigc__p_wxActivateEvent,
41359 _swigc__p_wxAlphaPixelData,
41360 _swigc__p_wxAlphaPixelData_Accessor,
41361 _swigc__p_wxAutoBufferedPaintDC,
41362 _swigc__p_wxBMPHandler,
41363 _swigc__p_wxBitmap,
41364 _swigc__p_wxBoxSizer,
41365 _swigc__p_wxBrush,
41366 _swigc__p_wxBrushList,
41367 _swigc__p_wxBufferedDC,
41368 _swigc__p_wxBufferedPaintDC,
41369 _swigc__p_wxCURHandler,
41370 _swigc__p_wxChar,
41371 _swigc__p_wxChildFocusEvent,
41372 _swigc__p_wxClientDC,
41373 _swigc__p_wxClipboardTextEvent,
41374 _swigc__p_wxCloseEvent,
41375 _swigc__p_wxColor,
41376 _swigc__p_wxColour,
41377 _swigc__p_wxColourDatabase,
41378 _swigc__p_wxCommandEvent,
41379 _swigc__p_wxContextMenuEvent,
41380 _swigc__p_wxControl,
41381 _swigc__p_wxControlWithItems,
41382 _swigc__p_wxCursor,
41383 _swigc__p_wxDC,
41384 _swigc__p_wxDCBrushChanger,
41385 _swigc__p_wxDCClipper,
41386 _swigc__p_wxDCOverlay,
41387 _swigc__p_wxDCPenChanger,
41388 _swigc__p_wxDCTextColourChanger,
41389 _swigc__p_wxDash,
41390 _swigc__p_wxDateEvent,
41391 _swigc__p_wxDisplayChangedEvent,
41392 _swigc__p_wxDropFilesEvent,
41393 _swigc__p_wxDuplexMode,
41394 _swigc__p_wxEffects,
41395 _swigc__p_wxEncodingConverter,
41396 _swigc__p_wxEraseEvent,
41397 _swigc__p_wxEvent,
41398 _swigc__p_wxEvtHandler,
41399 _swigc__p_wxFSFile,
41400 _swigc__p_wxFileSystem,
41401 _swigc__p_wxFlexGridSizer,
41402 _swigc__p_wxFocusEvent,
41403 _swigc__p_wxFont,
41404 _swigc__p_wxFontList,
41405 _swigc__p_wxFontMapper,
41406 _swigc__p_wxGBSizerItem,
41407 _swigc__p_wxGCDC,
41408 _swigc__p_wxGDIObjListBase,
41409 _swigc__p_wxGDIObject,
41410 _swigc__p_wxGIFHandler,
41411 _swigc__p_wxGraphicsBrush,
41412 _swigc__p_wxGraphicsContext,
41413 _swigc__p_wxGraphicsFont,
41414 _swigc__p_wxGraphicsMatrix,
41415 _swigc__p_wxGraphicsObject,
41416 _swigc__p_wxGraphicsPath,
41417 _swigc__p_wxGraphicsPen,
41418 _swigc__p_wxGraphicsRenderer,
41419 _swigc__p_wxGridBagSizer,
41420 _swigc__p_wxGridSizer,
41421 _swigc__p_wxHeaderButtonParams,
41422 _swigc__p_wxICOHandler,
41423 _swigc__p_wxIcon,
41424 _swigc__p_wxIconBundle,
41425 _swigc__p_wxIconLocation,
41426 _swigc__p_wxIconizeEvent,
41427 _swigc__p_wxIdleEvent,
41428 _swigc__p_wxImage,
41429 _swigc__p_wxImageHandler,
41430 _swigc__p_wxImageList,
41431 _swigc__p_wxIndividualLayoutConstraint,
41432 _swigc__p_wxInitDialogEvent,
41433 _swigc__p_wxJPEGHandler,
41434 _swigc__p_wxKeyEvent,
41435 _swigc__p_wxLanguageInfo,
41436 _swigc__p_wxLayoutConstraints,
41437 _swigc__p_wxLocale,
41438 _swigc__p_wxMask,
41439 _swigc__p_wxMaximizeEvent,
41440 _swigc__p_wxMemoryDC,
41441 _swigc__p_wxMenu,
41442 _swigc__p_wxMenuBar,
41443 _swigc__p_wxMenuEvent,
41444 _swigc__p_wxMenuItem,
41445 _swigc__p_wxMetaFile,
41446 _swigc__p_wxMetaFileDC,
41447 _swigc__p_wxMirrorDC,
41448 _swigc__p_wxMouseCaptureChangedEvent,
41449 _swigc__p_wxMouseCaptureLostEvent,
41450 _swigc__p_wxMouseEvent,
41451 _swigc__p_wxMoveEvent,
41452 _swigc__p_wxNativeEncodingInfo,
41453 _swigc__p_wxNativeFontInfo,
41454 _swigc__p_wxNativePixelData,
41455 _swigc__p_wxNativePixelData_Accessor,
41456 _swigc__p_wxNavigationKeyEvent,
41457 _swigc__p_wxNcPaintEvent,
41458 _swigc__p_wxNotifyEvent,
41459 _swigc__p_wxObject,
41460 _swigc__p_wxOverlay,
41461 _swigc__p_wxPCXHandler,
41462 _swigc__p_wxPNGHandler,
41463 _swigc__p_wxPNMHandler,
41464 _swigc__p_wxPaintDC,
41465 _swigc__p_wxPaintEvent,
41466 _swigc__p_wxPalette,
41467 _swigc__p_wxPaletteChangedEvent,
41468 _swigc__p_wxPaperSize,
41469 _swigc__p_wxPen,
41470 _swigc__p_wxPenList,
41471 _swigc__p_wxPixelDataBase,
41472 _swigc__p_wxPoint,
41473 _swigc__p_wxPoint2D,
41474 _swigc__p_wxPoint2DDouble,
41475 _swigc__p_wxPostScriptDC,
41476 _swigc__p_wxPrintData,
41477 _swigc__p_wxPrinterDC,
41478 _swigc__p_wxPseudoDC,
41479 _swigc__p_wxPyApp,
41480 _swigc__p_wxPyCommandEvent,
41481 _swigc__p_wxPyEvent,
41482 _swigc__p_wxPyFontEnumerator,
41483 _swigc__p_wxPyImageHandler,
41484 _swigc__p_wxPyLocale,
41485 _swigc__p_wxPySizer,
41486 _swigc__p_wxPyValidator,
41487 _swigc__p_wxQueryNewPaletteEvent,
41488 _swigc__p_wxRect,
41489 _swigc__p_wxRect2DDouble,
41490 _swigc__p_wxRegion,
41491 _swigc__p_wxRegionIterator,
41492 _swigc__p_wxRendererNative,
41493 _swigc__p_wxRendererVersion,
41494 _swigc__p_wxScreenDC,
41495 _swigc__p_wxScrollEvent,
41496 _swigc__p_wxScrollWinEvent,
41497 _swigc__p_wxSetCursorEvent,
41498 _swigc__p_wxShowEvent,
41499 _swigc__p_wxSize,
41500 _swigc__p_wxSizeEvent,
41501 _swigc__p_wxSizer,
41502 _swigc__p_wxSizerItem,
41503 _swigc__p_wxSplitterRenderParams,
41504 _swigc__p_wxStaticBoxSizer,
41505 _swigc__p_wxStdDialogButtonSizer,
41506 _swigc__p_wxStockGDI,
41507 _swigc__p_wxString,
41508 _swigc__p_wxSysColourChangedEvent,
41509 _swigc__p_wxTGAHandler,
41510 _swigc__p_wxTIFFHandler,
41511 _swigc__p_wxUpdateUIEvent,
41512 _swigc__p_wxValidator,
41513 _swigc__p_wxWindow,
41514 _swigc__p_wxWindowCreateEvent,
41515 _swigc__p_wxWindowDC,
41516 _swigc__p_wxWindowDestroyEvent,
41517 _swigc__p_wxXPMHandler,
41518 };
41519
41520
41521 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
41522
41523 static swig_const_info swig_const_table[] = {
41524 {0, 0, 0, 0.0, 0, 0}};
41525
41526 #ifdef __cplusplus
41527 }
41528 #endif
41529 /* -----------------------------------------------------------------------------
41530 * Type initialization:
41531 * This problem is tough by the requirement that no dynamic
41532 * memory is used. Also, since swig_type_info structures store pointers to
41533 * swig_cast_info structures and swig_cast_info structures store pointers back
41534 * to swig_type_info structures, we need some lookup code at initialization.
41535 * The idea is that swig generates all the structures that are needed.
41536 * The runtime then collects these partially filled structures.
41537 * The SWIG_InitializeModule function takes these initial arrays out of
41538 * swig_module, and does all the lookup, filling in the swig_module.types
41539 * array with the correct data and linking the correct swig_cast_info
41540 * structures together.
41541 *
41542 * The generated swig_type_info structures are assigned staticly to an initial
41543 * array. We just loop though that array, and handle each type individually.
41544 * First we lookup if this type has been already loaded, and if so, use the
41545 * loaded structure instead of the generated one. Then we have to fill in the
41546 * cast linked list. The cast data is initially stored in something like a
41547 * two-dimensional array. Each row corresponds to a type (there are the same
41548 * number of rows as there are in the swig_type_initial array). Each entry in
41549 * a column is one of the swig_cast_info structures for that type.
41550 * The cast_initial array is actually an array of arrays, because each row has
41551 * a variable number of columns. So to actually build the cast linked list,
41552 * we find the array of casts associated with the type, and loop through it
41553 * adding the casts to the list. The one last trick we need to do is making
41554 * sure the type pointer in the swig_cast_info struct is correct.
41555 *
41556 * First off, we lookup the cast->type name to see if it is already loaded.
41557 * There are three cases to handle:
41558 * 1) If the cast->type has already been loaded AND the type we are adding
41559 * casting info to has not been loaded (it is in this module), THEN we
41560 * replace the cast->type pointer with the type pointer that has already
41561 * been loaded.
41562 * 2) If BOTH types (the one we are adding casting info to, and the
41563 * cast->type) are loaded, THEN the cast info has already been loaded by
41564 * the previous module so we just ignore it.
41565 * 3) Finally, if cast->type has not already been loaded, then we add that
41566 * swig_cast_info to the linked list (because the cast->type) pointer will
41567 * be correct.
41568 * ----------------------------------------------------------------------------- */
41569
41570 #ifdef __cplusplus
41571 extern "C" {
41572 #if 0
41573 } /* c-mode */
41574 #endif
41575 #endif
41576
41577 #if 0
41578 #define SWIGRUNTIME_DEBUG
41579 #endif
41580
41581 SWIGRUNTIME void
41582 SWIG_InitializeModule(void *clientdata) {
41583 size_t i;
41584 swig_module_info *module_head;
41585 static int init_run = 0;
41586
41587 clientdata = clientdata;
41588
41589 if (init_run) return;
41590 init_run = 1;
41591
41592 /* Initialize the swig_module */
41593 swig_module.type_initial = swig_type_initial;
41594 swig_module.cast_initial = swig_cast_initial;
41595
41596 /* Try and load any already created modules */
41597 module_head = SWIG_GetModule(clientdata);
41598 if (module_head) {
41599 swig_module.next = module_head->next;
41600 module_head->next = &swig_module;
41601 } else {
41602 /* This is the first module loaded */
41603 swig_module.next = &swig_module;
41604 SWIG_SetModule(clientdata, &swig_module);
41605 }
41606
41607 /* Now work on filling in swig_module.types */
41608 #ifdef SWIGRUNTIME_DEBUG
41609 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41610 #endif
41611 for (i = 0; i < swig_module.size; ++i) {
41612 swig_type_info *type = 0;
41613 swig_type_info *ret;
41614 swig_cast_info *cast;
41615
41616 #ifdef SWIGRUNTIME_DEBUG
41617 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41618 #endif
41619
41620 /* if there is another module already loaded */
41621 if (swig_module.next != &swig_module) {
41622 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
41623 }
41624 if (type) {
41625 /* Overwrite clientdata field */
41626 #ifdef SWIGRUNTIME_DEBUG
41627 printf("SWIG_InitializeModule: found type %s\n", type->name);
41628 #endif
41629 if (swig_module.type_initial[i]->clientdata) {
41630 type->clientdata = swig_module.type_initial[i]->clientdata;
41631 #ifdef SWIGRUNTIME_DEBUG
41632 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41633 #endif
41634 }
41635 } else {
41636 type = swig_module.type_initial[i];
41637 }
41638
41639 /* Insert casting types */
41640 cast = swig_module.cast_initial[i];
41641 while (cast->type) {
41642 /* Don't need to add information already in the list */
41643 ret = 0;
41644 #ifdef SWIGRUNTIME_DEBUG
41645 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41646 #endif
41647 if (swig_module.next != &swig_module) {
41648 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41649 #ifdef SWIGRUNTIME_DEBUG
41650 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41651 #endif
41652 }
41653 if (ret) {
41654 if (type == swig_module.type_initial[i]) {
41655 #ifdef SWIGRUNTIME_DEBUG
41656 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41657 #endif
41658 cast->type = ret;
41659 ret = 0;
41660 } else {
41661 /* Check for casting already in the list */
41662 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41663 #ifdef SWIGRUNTIME_DEBUG
41664 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41665 #endif
41666 if (!ocast) ret = 0;
41667 }
41668 }
41669
41670 if (!ret) {
41671 #ifdef SWIGRUNTIME_DEBUG
41672 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41673 #endif
41674 if (type->cast) {
41675 type->cast->prev = cast;
41676 cast->next = type->cast;
41677 }
41678 type->cast = cast;
41679 }
41680 cast++;
41681 }
41682 /* Set entry in modules->types array equal to the type */
41683 swig_module.types[i] = type;
41684 }
41685 swig_module.types[i] = 0;
41686
41687 #ifdef SWIGRUNTIME_DEBUG
41688 printf("**** SWIG_InitializeModule: Cast List ******\n");
41689 for (i = 0; i < swig_module.size; ++i) {
41690 int j = 0;
41691 swig_cast_info *cast = swig_module.cast_initial[i];
41692 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41693 while (cast->type) {
41694 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41695 cast++;
41696 ++j;
41697 }
41698 printf("---- Total casts: %d\n",j);
41699 }
41700 printf("**** SWIG_InitializeModule: Cast List ******\n");
41701 #endif
41702 }
41703
41704 /* This function will propagate the clientdata field of type to
41705 * any new swig_type_info structures that have been added into the list
41706 * of equivalent types. It is like calling
41707 * SWIG_TypeClientData(type, clientdata) a second time.
41708 */
41709 SWIGRUNTIME void
41710 SWIG_PropagateClientData(void) {
41711 size_t i;
41712 swig_cast_info *equiv;
41713 static int init_run = 0;
41714
41715 if (init_run) return;
41716 init_run = 1;
41717
41718 for (i = 0; i < swig_module.size; i++) {
41719 if (swig_module.types[i]->clientdata) {
41720 equiv = swig_module.types[i]->cast;
41721 while (equiv) {
41722 if (!equiv->converter) {
41723 if (equiv->type && !equiv->type->clientdata)
41724 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41725 }
41726 equiv = equiv->next;
41727 }
41728 }
41729 }
41730 }
41731
41732 #ifdef __cplusplus
41733 #if 0
41734 {
41735 /* c-mode */
41736 #endif
41737 }
41738 #endif
41739
41740
41741
41742 #ifdef __cplusplus
41743 extern "C" {
41744 #endif
41745
41746 /* Python-specific SWIG API */
41747 #define SWIG_newvarlink() SWIG_Python_newvarlink()
41748 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41749 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41750
41751 /* -----------------------------------------------------------------------------
41752 * global variable support code.
41753 * ----------------------------------------------------------------------------- */
41754
41755 typedef struct swig_globalvar {
41756 char *name; /* Name of global variable */
41757 PyObject *(*get_attr)(void); /* Return the current value */
41758 int (*set_attr)(PyObject *); /* Set the value */
41759 struct swig_globalvar *next;
41760 } swig_globalvar;
41761
41762 typedef struct swig_varlinkobject {
41763 PyObject_HEAD
41764 swig_globalvar *vars;
41765 } swig_varlinkobject;
41766
41767 SWIGINTERN PyObject *
41768 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41769 return PyString_FromString("<Swig global variables>");
41770 }
41771
41772 SWIGINTERN PyObject *
41773 swig_varlink_str(swig_varlinkobject *v) {
41774 PyObject *str = PyString_FromString("(");
41775 swig_globalvar *var;
41776 for (var = v->vars; var; var=var->next) {
41777 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41778 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41779 }
41780 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41781 return str;
41782 }
41783
41784 SWIGINTERN int
41785 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41786 PyObject *str = swig_varlink_str(v);
41787 fprintf(fp,"Swig global variables ");
41788 fprintf(fp,"%s\n", PyString_AsString(str));
41789 Py_DECREF(str);
41790 return 0;
41791 }
41792
41793 SWIGINTERN void
41794 swig_varlink_dealloc(swig_varlinkobject *v) {
41795 swig_globalvar *var = v->vars;
41796 while (var) {
41797 swig_globalvar *n = var->next;
41798 free(var->name);
41799 free(var);
41800 var = n;
41801 }
41802 }
41803
41804 SWIGINTERN PyObject *
41805 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41806 PyObject *res = NULL;
41807 swig_globalvar *var = v->vars;
41808 while (var) {
41809 if (strcmp(var->name,n) == 0) {
41810 res = (*var->get_attr)();
41811 break;
41812 }
41813 var = var->next;
41814 }
41815 if (res == NULL && !PyErr_Occurred()) {
41816 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41817 }
41818 return res;
41819 }
41820
41821 SWIGINTERN int
41822 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41823 int res = 1;
41824 swig_globalvar *var = v->vars;
41825 while (var) {
41826 if (strcmp(var->name,n) == 0) {
41827 res = (*var->set_attr)(p);
41828 break;
41829 }
41830 var = var->next;
41831 }
41832 if (res == 1 && !PyErr_Occurred()) {
41833 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41834 }
41835 return res;
41836 }
41837
41838 SWIGINTERN PyTypeObject*
41839 swig_varlink_type(void) {
41840 static char varlink__doc__[] = "Swig var link object";
41841 static PyTypeObject varlink_type;
41842 static int type_init = 0;
41843 if (!type_init) {
41844 const PyTypeObject tmp
41845 = {
41846 PyObject_HEAD_INIT(NULL)
41847 0, /* Number of items in variable part (ob_size) */
41848 (char *)"swigvarlink", /* Type name (tp_name) */
41849 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41850 0, /* Itemsize (tp_itemsize) */
41851 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41852 (printfunc) swig_varlink_print, /* Print (tp_print) */
41853 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41854 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41855 0, /* tp_compare */
41856 (reprfunc) swig_varlink_repr, /* tp_repr */
41857 0, /* tp_as_number */
41858 0, /* tp_as_sequence */
41859 0, /* tp_as_mapping */
41860 0, /* tp_hash */
41861 0, /* tp_call */
41862 (reprfunc)swig_varlink_str, /* tp_str */
41863 0, /* tp_getattro */
41864 0, /* tp_setattro */
41865 0, /* tp_as_buffer */
41866 0, /* tp_flags */
41867 varlink__doc__, /* tp_doc */
41868 0, /* tp_traverse */
41869 0, /* tp_clear */
41870 0, /* tp_richcompare */
41871 0, /* tp_weaklistoffset */
41872 #if PY_VERSION_HEX >= 0x02020000
41873 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41874 #endif
41875 #if PY_VERSION_HEX >= 0x02030000
41876 0, /* tp_del */
41877 #endif
41878 #ifdef COUNT_ALLOCS
41879 0,0,0,0 /* tp_alloc -> tp_next */
41880 #endif
41881 };
41882 varlink_type = tmp;
41883 varlink_type.ob_type = &PyType_Type;
41884 type_init = 1;
41885 }
41886 return &varlink_type;
41887 }
41888
41889 /* Create a variable linking object for use later */
41890 SWIGINTERN PyObject *
41891 SWIG_Python_newvarlink(void) {
41892 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41893 if (result) {
41894 result->vars = 0;
41895 }
41896 return ((PyObject*) result);
41897 }
41898
41899 SWIGINTERN void
41900 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41901 swig_varlinkobject *v = (swig_varlinkobject *) p;
41902 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41903 if (gv) {
41904 size_t size = strlen(name)+1;
41905 gv->name = (char *)malloc(size);
41906 if (gv->name) {
41907 strncpy(gv->name,name,size);
41908 gv->get_attr = get_attr;
41909 gv->set_attr = set_attr;
41910 gv->next = v->vars;
41911 }
41912 }
41913 v->vars = gv;
41914 }
41915
41916 SWIGINTERN PyObject *
41917 SWIG_globals() {
41918 static PyObject *_SWIG_globals = 0;
41919 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41920 return _SWIG_globals;
41921 }
41922
41923 /* -----------------------------------------------------------------------------
41924 * constants/methods manipulation
41925 * ----------------------------------------------------------------------------- */
41926
41927 /* Install Constants */
41928 SWIGINTERN void
41929 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41930 PyObject *obj = 0;
41931 size_t i;
41932 for (i = 0; constants[i].type; ++i) {
41933 switch(constants[i].type) {
41934 case SWIG_PY_POINTER:
41935 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41936 break;
41937 case SWIG_PY_BINARY:
41938 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41939 break;
41940 default:
41941 obj = 0;
41942 break;
41943 }
41944 if (obj) {
41945 PyDict_SetItemString(d, constants[i].name, obj);
41946 Py_DECREF(obj);
41947 }
41948 }
41949 }
41950
41951 /* -----------------------------------------------------------------------------*/
41952 /* Fix SwigMethods to carry the callback ptrs when needed */
41953 /* -----------------------------------------------------------------------------*/
41954
41955 SWIGINTERN void
41956 SWIG_Python_FixMethods(PyMethodDef *methods,
41957 swig_const_info *const_table,
41958 swig_type_info **types,
41959 swig_type_info **types_initial) {
41960 size_t i;
41961 for (i = 0; methods[i].ml_name; ++i) {
41962 const char *c = methods[i].ml_doc;
41963 if (c && (c = strstr(c, "swig_ptr: "))) {
41964 int j;
41965 swig_const_info *ci = 0;
41966 const char *name = c + 10;
41967 for (j = 0; const_table[j].type; ++j) {
41968 if (strncmp(const_table[j].name, name,
41969 strlen(const_table[j].name)) == 0) {
41970 ci = &(const_table[j]);
41971 break;
41972 }
41973 }
41974 if (ci) {
41975 size_t shift = (ci->ptype) - types;
41976 swig_type_info *ty = types_initial[shift];
41977 size_t ldoc = (c - methods[i].ml_doc);
41978 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41979 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41980 if (ndoc) {
41981 char *buff = ndoc;
41982 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41983 if (ptr) {
41984 strncpy(buff, methods[i].ml_doc, ldoc);
41985 buff += ldoc;
41986 strncpy(buff, "swig_ptr: ", 10);
41987 buff += 10;
41988 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41989 methods[i].ml_doc = ndoc;
41990 }
41991 }
41992 }
41993 }
41994 }
41995 }
41996
41997 #ifdef __cplusplus
41998 }
41999 #endif
42000
42001 /* -----------------------------------------------------------------------------*
42002 * Partial Init method
42003 * -----------------------------------------------------------------------------*/
42004
42005 #ifdef __cplusplus
42006 extern "C"
42007 #endif
42008 SWIGEXPORT void SWIG_init(void) {
42009 PyObject *m, *d;
42010
42011 /* Fix SwigMethods to carry the callback ptrs when needed */
42012 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
42013
42014 m = Py_InitModule((char *) SWIG_name, SwigMethods);
42015 d = PyModule_GetDict(m);
42016
42017 SWIG_InitializeModule(0);
42018 SWIG_InstallConstants(d,swig_const_table);
42019
42020
42021 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
42022 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
42023 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
42024 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
42025 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
42026 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
42027 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
42028 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
42029 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
42030 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
42031 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
42032 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
42033 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
42034 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
42035 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
42036 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
42037 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
42038 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
42039 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
42040 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
42041 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
42042 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
42043 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
42044 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
42045 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
42046 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
42047 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
42048 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
42049 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
42050 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
42051 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
42052 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
42053 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
42054 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
42055 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
42056 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
42057 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
42058 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
42059 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
42060 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
42061 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
42062 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
42063 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
42064 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
42065 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
42066 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
42067 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
42068 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
42069 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
42070 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
42071 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
42072 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
42073 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
42074 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
42075 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
42076 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
42077 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
42078 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
42079 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
42080 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
42081 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
42082 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
42083 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
42084 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
42085 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
42086 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
42087 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
42088 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
42089 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
42090 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
42091 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
42092 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
42093 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
42094 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
42095 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
42096 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
42097 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
42098 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
42099 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
42100 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
42101 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
42102 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
42103 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
42104 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
42105 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
42106 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
42107 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
42108 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
42109 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
42110 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
42111 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
42112 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
42113 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
42114 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
42115 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
42116 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
42117 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
42118 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
42119 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
42120 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
42121 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
42122 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
42123 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
42124 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
42125 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
42126 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
42127 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
42128 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
42129 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
42130 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
42131 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
42132 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
42133 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
42134 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
42135 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
42136 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
42137 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
42138 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
42139 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
42140 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
42141 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
42142 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
42143 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
42144 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
42145 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
42146 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
42147 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
42148 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
42149 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
42150 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
42151 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
42152 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
42153
42154 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
42155
42156 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
42157 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
42158 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
42159 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
42160 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
42161 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
42162 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
42163 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
42164 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
42165 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
42166 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
42167 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
42168 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
42169 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
42170 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
42171 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
42172 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
42173 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
42174 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
42175 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
42176 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
42177 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
42178 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
42179 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
42180 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
42181 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
42182 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
42183 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
42184 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
42185 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
42186 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
42187 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
42188 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
42189 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
42190 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
42191 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
42192 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
42193 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
42194 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
42195 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
42196 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
42197 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
42198 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
42199 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
42200 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
42201 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
42202 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
42203 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
42204 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
42205 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
42206 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
42207 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
42208 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
42209 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
42210 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
42211 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
42212 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
42213 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
42214 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
42215 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
42216 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
42217 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
42218 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
42219 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
42220 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
42221 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
42222 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
42223 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
42224 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
42225 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
42226 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
42227 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
42228 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
42229 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
42230 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
42231 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
42232 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
42233 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
42234 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
42235 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
42236 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
42237 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
42238 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
42239 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
42240 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
42241 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
42242 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
42243 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
42244 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
42245 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
42246 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
42247 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
42248 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
42249 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
42250 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
42251 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
42252 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
42253 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
42254 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
42255 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
42256 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
42257 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
42258 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
42259 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
42260 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
42261 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
42262 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
42263 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
42264 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
42265 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
42266 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
42267 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
42268 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
42269 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
42270 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
42271 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
42272 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
42273 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
42274 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
42275 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
42276 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
42277 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
42278 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
42279 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
42280 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
42281 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
42282 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
42283 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
42284 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
42285 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
42286 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
42287 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
42288 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
42289 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
42290 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
42291 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
42292 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
42293 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
42294 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
42295 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
42296 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
42297 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
42298 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
42299 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
42300 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
42301 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
42302 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
42303 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
42304 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
42305 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
42306 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
42307 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
42308 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
42309 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
42310 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
42311 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
42312 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
42313 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
42314 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
42315 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
42316 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
42317 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
42318 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
42319 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
42320 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
42321 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
42322 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
42323 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
42324 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
42325 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
42326 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
42327 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
42328 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
42329 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
42330 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
42331 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
42332 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
42333 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
42334 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
42335 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
42336 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
42337 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
42338 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
42339 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
42340 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
42341 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
42342 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
42343 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
42344 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
42345 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
42346 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
42347 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
42348 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
42349 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
42350 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
42351 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
42352 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
42353 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
42354 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
42355 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
42356 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
42357 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
42358 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
42359 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
42360 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
42361 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
42362 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
42363 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
42364 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
42365 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
42366 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
42367 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
42368 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
42369 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
42370 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
42371 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
42372 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
42373 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
42374 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
42375 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
42376 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
42377 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
42378 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
42379 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
42380 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
42381 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
42382 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
42383 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
42384 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
42385 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
42386 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
42387 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
42388 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
42389 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
42390 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
42391 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
42392 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
42393 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
42394 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
42395 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
42396 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
42397 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
42398 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
42399 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
42400 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
42401 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
42402 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
42403 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
42404 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
42405 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
42406 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
42407 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
42408 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
42409 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
42410 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
42411 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
42412 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
42413 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
42414 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
42415 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
42416 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
42417 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
42418 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
42419 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
42420 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
42421 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
42422 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
42423 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
42424 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
42425 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
42426 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
42427 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
42428 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
42429 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
42430 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
42431 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
42432 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
42433 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
42434 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
42435 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
42436 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
42437 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
42438 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
42439 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
42440 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
42441 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
42442 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
42443 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
42444 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
42445 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
42446 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
42447 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
42448 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
42449 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
42450 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
42451 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
42452 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
42453 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
42454 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
42455 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
42456 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
42457 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
42458 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
42459 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
42460 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
42461 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
42462 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
42463 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
42464 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
42465 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
42466 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
42467 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
42468 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
42469 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
42470 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
42471 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
42472 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
42473 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
42474 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
42475 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
42476 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
42477 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
42478 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
42479 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
42480
42481 // Work around a chicken/egg problem in drawlist.cpp
42482 wxPyDrawList_SetAPIPtr();
42483
42484 }
42485