]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
Forward declare new wxPy classes
[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_wxChildFocusEvent swig_types[23]
2490 #define SWIGTYPE_p_wxClientDC swig_types[24]
2491 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[25]
2492 #define SWIGTYPE_p_wxCloseEvent swig_types[26]
2493 #define SWIGTYPE_p_wxColour swig_types[27]
2494 #define SWIGTYPE_p_wxColourDatabase swig_types[28]
2495 #define SWIGTYPE_p_wxCommandEvent swig_types[29]
2496 #define SWIGTYPE_p_wxContextMenuEvent swig_types[30]
2497 #define SWIGTYPE_p_wxControl swig_types[31]
2498 #define SWIGTYPE_p_wxControlWithItems swig_types[32]
2499 #define SWIGTYPE_p_wxCursor swig_types[33]
2500 #define SWIGTYPE_p_wxDC swig_types[34]
2501 #define SWIGTYPE_p_wxDCBrushChanger swig_types[35]
2502 #define SWIGTYPE_p_wxDCClipper swig_types[36]
2503 #define SWIGTYPE_p_wxDCOverlay swig_types[37]
2504 #define SWIGTYPE_p_wxDCPenChanger swig_types[38]
2505 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[39]
2506 #define SWIGTYPE_p_wxDash swig_types[40]
2507 #define SWIGTYPE_p_wxDateEvent swig_types[41]
2508 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[42]
2509 #define SWIGTYPE_p_wxDropFilesEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDuplexMode swig_types[44]
2511 #define SWIGTYPE_p_wxEffects swig_types[45]
2512 #define SWIGTYPE_p_wxEncodingConverter swig_types[46]
2513 #define SWIGTYPE_p_wxEraseEvent swig_types[47]
2514 #define SWIGTYPE_p_wxEvent swig_types[48]
2515 #define SWIGTYPE_p_wxEventBlocker swig_types[49]
2516 #define SWIGTYPE_p_wxEvtHandler swig_types[50]
2517 #define SWIGTYPE_p_wxFSFile swig_types[51]
2518 #define SWIGTYPE_p_wxFileSystem swig_types[52]
2519 #define SWIGTYPE_p_wxFlexGridSizer swig_types[53]
2520 #define SWIGTYPE_p_wxFocusEvent swig_types[54]
2521 #define SWIGTYPE_p_wxFont swig_types[55]
2522 #define SWIGTYPE_p_wxFontList swig_types[56]
2523 #define SWIGTYPE_p_wxFontMapper swig_types[57]
2524 #define SWIGTYPE_p_wxGBSizerItem swig_types[58]
2525 #define SWIGTYPE_p_wxGCDC swig_types[59]
2526 #define SWIGTYPE_p_wxGDIObjListBase swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObject swig_types[61]
2528 #define SWIGTYPE_p_wxGIFHandler swig_types[62]
2529 #define SWIGTYPE_p_wxGraphicsBrush swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsContext swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsFont swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsObject swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsPath swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPen swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[70]
2537 #define SWIGTYPE_p_wxGridBagSizer swig_types[71]
2538 #define SWIGTYPE_p_wxGridSizer swig_types[72]
2539 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[73]
2540 #define SWIGTYPE_p_wxICOHandler swig_types[74]
2541 #define SWIGTYPE_p_wxIcon swig_types[75]
2542 #define SWIGTYPE_p_wxIconBundle swig_types[76]
2543 #define SWIGTYPE_p_wxIconLocation swig_types[77]
2544 #define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545 #define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546 #define SWIGTYPE_p_wxImage swig_types[80]
2547 #define SWIGTYPE_p_wxImageHandler swig_types[81]
2548 #define SWIGTYPE_p_wxImageList swig_types[82]
2549 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550 #define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551 #define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552 #define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553 #define SWIGTYPE_p_wxLanguageInfo swig_types[87]
2554 #define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555 #define SWIGTYPE_p_wxLocale swig_types[89]
2556 #define SWIGTYPE_p_wxMask swig_types[90]
2557 #define SWIGTYPE_p_wxMaximizeEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMemoryDC swig_types[92]
2559 #define SWIGTYPE_p_wxMenu swig_types[93]
2560 #define SWIGTYPE_p_wxMenuBar swig_types[94]
2561 #define SWIGTYPE_p_wxMenuEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMenuItem swig_types[96]
2563 #define SWIGTYPE_p_wxMetaFile swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFileDC swig_types[98]
2565 #define SWIGTYPE_p_wxMirrorDC swig_types[99]
2566 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMoveEvent swig_types[103]
2570 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[104]
2571 #define SWIGTYPE_p_wxNativeFontInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativePixelData swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[107]
2574 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[108]
2575 #define SWIGTYPE_p_wxNcPaintEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577 #define SWIGTYPE_p_wxObject swig_types[111]
2578 #define SWIGTYPE_p_wxOverlay swig_types[112]
2579 #define SWIGTYPE_p_wxPCXHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPNGHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNMHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPaintDC swig_types[116]
2583 #define SWIGTYPE_p_wxPaintEvent swig_types[117]
2584 #define SWIGTYPE_p_wxPalette swig_types[118]
2585 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[119]
2586 #define SWIGTYPE_p_wxPaperSize swig_types[120]
2587 #define SWIGTYPE_p_wxPen swig_types[121]
2588 #define SWIGTYPE_p_wxPenList swig_types[122]
2589 #define SWIGTYPE_p_wxPixelDataBase swig_types[123]
2590 #define SWIGTYPE_p_wxPoint swig_types[124]
2591 #define SWIGTYPE_p_wxPoint2D swig_types[125]
2592 #define SWIGTYPE_p_wxPostScriptDC swig_types[126]
2593 #define SWIGTYPE_p_wxPrintData swig_types[127]
2594 #define SWIGTYPE_p_wxPrinterDC swig_types[128]
2595 #define SWIGTYPE_p_wxPseudoDC swig_types[129]
2596 #define SWIGTYPE_p_wxPyApp swig_types[130]
2597 #define SWIGTYPE_p_wxPyCommandEvent swig_types[131]
2598 #define SWIGTYPE_p_wxPyEvent swig_types[132]
2599 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[133]
2600 #define SWIGTYPE_p_wxPyImageHandler swig_types[134]
2601 #define SWIGTYPE_p_wxPyLocale swig_types[135]
2602 #define SWIGTYPE_p_wxPySizer swig_types[136]
2603 #define SWIGTYPE_p_wxPyValidator swig_types[137]
2604 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[138]
2605 #define SWIGTYPE_p_wxRect swig_types[139]
2606 #define SWIGTYPE_p_wxRect2D swig_types[140]
2607 #define SWIGTYPE_p_wxRegion swig_types[141]
2608 #define SWIGTYPE_p_wxRegionIterator swig_types[142]
2609 #define SWIGTYPE_p_wxRendererNative swig_types[143]
2610 #define SWIGTYPE_p_wxRendererVersion swig_types[144]
2611 #define SWIGTYPE_p_wxScreenDC swig_types[145]
2612 #define SWIGTYPE_p_wxScrollEvent swig_types[146]
2613 #define SWIGTYPE_p_wxScrollWinEvent swig_types[147]
2614 #define SWIGTYPE_p_wxSetCursorEvent swig_types[148]
2615 #define SWIGTYPE_p_wxShowEvent swig_types[149]
2616 #define SWIGTYPE_p_wxSize swig_types[150]
2617 #define SWIGTYPE_p_wxSizeEvent swig_types[151]
2618 #define SWIGTYPE_p_wxSizer swig_types[152]
2619 #define SWIGTYPE_p_wxSizerItem swig_types[153]
2620 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[154]
2621 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[155]
2622 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[156]
2623 #define SWIGTYPE_p_wxStockGDI swig_types[157]
2624 #define SWIGTYPE_p_wxString swig_types[158]
2625 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[159]
2626 #define SWIGTYPE_p_wxTGAHandler swig_types[160]
2627 #define SWIGTYPE_p_wxTIFFHandler swig_types[161]
2628 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[162]
2629 #define SWIGTYPE_p_wxValidator swig_types[163]
2630 #define SWIGTYPE_p_wxWindow swig_types[164]
2631 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[165]
2632 #define SWIGTYPE_p_wxWindowDC swig_types[166]
2633 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[167]
2634 #define SWIGTYPE_p_wxXPMHandler swig_types[168]
2635 static swig_type_info *swig_types[170];
2636 static swig_module_info swig_module = {swig_types, 169, 0, 0, 0, 0};
2637 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2638 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2639
2640 /* -------- TYPES TABLE (END) -------- */
2641
2642 #if (PY_VERSION_HEX <= 0x02000000)
2643 # if !defined(SWIG_PYTHON_CLASSIC)
2644 # error "This python version requires to use swig with the '-classic' option"
2645 # endif
2646 #endif
2647 #if (PY_VERSION_HEX <= 0x02020000)
2648 # error "This python version requires to use swig with the '-nomodern' option"
2649 #endif
2650 #if (PY_VERSION_HEX <= 0x02020000)
2651 # error "This python version requires to use swig with the '-nomodernargs' option"
2652 #endif
2653 #ifndef METH_O
2654 # error "This python version requires to use swig with the '-nofastunpack' option"
2655 #endif
2656
2657 /*-----------------------------------------------
2658 @(target):= _gdi_.so
2659 ------------------------------------------------*/
2660 #define SWIG_init init_gdi_
2661
2662 #define SWIG_name "_gdi_"
2663
2664 #define SWIGVERSION 0x010329
2665
2666
2667 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2668 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2669
2670
2671 #include <stdexcept>
2672
2673
2674 namespace swig {
2675 class PyObject_ptr {
2676 protected:
2677 PyObject *_obj;
2678
2679 public:
2680 PyObject_ptr() :_obj(0)
2681 {
2682 }
2683
2684 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2685 {
2686 Py_XINCREF(_obj);
2687 }
2688
2689 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2690 {
2691 if (initial_ref) Py_XINCREF(_obj);
2692 }
2693
2694 PyObject_ptr & operator=(const PyObject_ptr& item)
2695 {
2696 Py_XINCREF(item._obj);
2697 Py_XDECREF(_obj);
2698 _obj = item._obj;
2699 return *this;
2700 }
2701
2702 ~PyObject_ptr()
2703 {
2704 Py_XDECREF(_obj);
2705 }
2706
2707 operator PyObject *() const
2708 {
2709 return _obj;
2710 }
2711
2712 PyObject *operator->() const
2713 {
2714 return _obj;
2715 }
2716 };
2717 }
2718
2719
2720 namespace swig {
2721 struct PyObject_var : PyObject_ptr {
2722 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2723
2724 PyObject_var & operator = (PyObject* obj)
2725 {
2726 Py_XDECREF(_obj);
2727 _obj = obj;
2728 return *this;
2729 }
2730 };
2731 }
2732
2733
2734 #include "wx/wxPython/wxPython.h"
2735 #include "wx/wxPython/pyclasses.h"
2736
2737
2738 static const wxString wxPyEmptyString(wxEmptyString);
2739
2740 #define SWIG_From_long PyInt_FromLong
2741
2742
2743 SWIGINTERNINLINE PyObject *
2744 SWIG_From_int (int value)
2745 {
2746 return SWIG_From_long (value);
2747 }
2748
2749
2750 #include <limits.h>
2751 #ifndef LLONG_MIN
2752 # define LLONG_MIN LONG_LONG_MIN
2753 #endif
2754 #ifndef LLONG_MAX
2755 # define LLONG_MAX LONG_LONG_MAX
2756 #endif
2757 #ifndef ULLONG_MAX
2758 # define ULLONG_MAX ULONG_LONG_MAX
2759 #endif
2760
2761
2762 SWIGINTERN int
2763 SWIG_AsVal_long (PyObject* obj, long* val)
2764 {
2765 if (PyNumber_Check(obj)) {
2766 if (val) *val = PyInt_AsLong(obj);
2767 return SWIG_OK;
2768 }
2769 return SWIG_TypeError;
2770 }
2771
2772
2773 SWIGINTERN int
2774 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2775 {
2776 long v = 0;
2777 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2778 return SWIG_TypeError;
2779 }
2780 else if (val)
2781 *val = (unsigned long)v;
2782 return SWIG_OK;
2783 }
2784
2785
2786 SWIGINTERN int
2787 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2788 {
2789 unsigned long v;
2790 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2791 if (SWIG_IsOK(res)) {
2792 if ((v > UCHAR_MAX)) {
2793 return SWIG_OverflowError;
2794 } else {
2795 if (val) *val = static_cast< unsigned char >(v);
2796 }
2797 }
2798 return res;
2799 }
2800
2801
2802 SWIGINTERNINLINE PyObject*
2803 SWIG_From_unsigned_SS_long (unsigned long value)
2804 {
2805 return (value > LONG_MAX) ?
2806 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2807 }
2808
2809
2810 SWIGINTERNINLINE PyObject *
2811 SWIG_From_unsigned_SS_char (unsigned char value)
2812 {
2813 return SWIG_From_unsigned_SS_long (value);
2814 }
2815
2816 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2817 wxColour temp, *obj = &temp;
2818 if ( other == Py_None ) return false;
2819 if ( ! wxColour_helper(other, &obj) ) {
2820 PyErr_Clear();
2821 return false;
2822 }
2823 return self->operator==(*obj);
2824 }
2825 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2826 wxColour temp, *obj = &temp;
2827 if ( other == Py_None ) return true;
2828 if ( ! wxColour_helper(other, &obj)) {
2829 PyErr_Clear();
2830 return true;
2831 }
2832 return self->operator!=(*obj);
2833 }
2834
2835 SWIGINTERN int
2836 SWIG_AsVal_bool (PyObject *obj, bool *val)
2837 {
2838 if (obj == Py_True) {
2839 if (val) *val = true;
2840 return SWIG_OK;
2841 } else if (obj == Py_False) {
2842 if (val) *val = false;
2843 return SWIG_OK;
2844 } else {
2845 long v = 0;
2846 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2847 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2848 return res;
2849 }
2850 }
2851
2852 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2853 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2854 int red = -1;
2855 int green = -1;
2856 int blue = -1;
2857 int alpha = wxALPHA_OPAQUE;
2858 if (self->IsOk()) {
2859 red = self->Red();
2860 green = self->Green();
2861 blue = self->Blue();
2862 alpha = self->Alpha();
2863 }
2864 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2865 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2866 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2867 if (includeAlpha)
2868 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2869 return rv;
2870 }
2871 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2872 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2873 }
2874
2875 SWIGINTERN int
2876 SWIG_AsVal_int (PyObject * obj, int *val)
2877 {
2878 long v;
2879 int res = SWIG_AsVal_long (obj, &v);
2880 if (SWIG_IsOK(res)) {
2881 if ((v < INT_MIN || v > INT_MAX)) {
2882 return SWIG_OverflowError;
2883 } else {
2884 if (val) *val = static_cast< int >(v);
2885 }
2886 }
2887 return res;
2888 }
2889
2890 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2891 wxDash* dashes;
2892 int count = self->GetDashes(&dashes);
2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2894 PyObject* retval = PyList_New(0);
2895 for (int x=0; x<count; x++) {
2896 PyObject* pyint = PyInt_FromLong(dashes[x]);
2897 PyList_Append(retval, pyint);
2898 Py_DECREF(pyint);
2899 }
2900 wxPyEndBlockThreads(blocked);
2901 return retval;
2902 }
2903 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2904 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2905 int size = PyList_Size(pyDashes);
2906 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2907
2908 // black magic warning! The array of wxDashes needs to exist as
2909 // long as the pen does because wxPen does not copy the array. So
2910 // stick a copy in a Python string object and attach it to _self,
2911 // and then call SetDashes with a pointer to that array. Then
2912 // when the Python pen object is destroyed the array will be
2913 // cleaned up too.
2914 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2915 PyObject_SetAttrString(_self, "_dashes", strDashes);
2916
2917 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2918 delete [] dashes;
2919 Py_DECREF(strDashes);
2920 wxPyEndBlockThreads(blocked);
2921 }
2922 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2923 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2924
2925 #include <wx/rawbmp.h>
2926
2927
2928 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2929 // appears to me that the other platforms are already doing it, so I'll just
2930 // automatically do it for wxMSW here.
2931 #ifdef __WXMSW__
2932 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2933 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2934 #else
2935 #define wxPy_premultiply(p, a) (p)
2936 #define wxPy_unpremultiply(p, a) (p)
2937 #endif
2938
2939
2940 #include <wx/image.h>
2941
2942 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2943 char** cArray = NULL;
2944 int count;
2945
2946 if (!PyList_Check(listOfStrings)) {
2947 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2948 return NULL;
2949 }
2950 count = PyList_Size(listOfStrings);
2951 cArray = new char*[count];
2952
2953 for(int x=0; x<count; x++) {
2954 // TODO: Need some validation and error checking here
2955 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2956 }
2957 return cArray;
2958 }
2959
2960
2961 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2962 char** cArray = NULL;
2963 wxBitmap* bmp;
2964
2965 cArray = ConvertListOfStrings(listOfStrings);
2966 if (! cArray)
2967 return NULL;
2968 bmp = new wxBitmap(cArray);
2969 delete [] cArray;
2970 return bmp;
2971 }
2972 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2973 char* buf;
2974 Py_ssize_t length;
2975 PyString_AsStringAndSize(bits, &buf, &length);
2976 return new wxBitmap(buf, width, height, depth);
2977 }
2978 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2979 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2980 wxSize size(self->GetWidth(), self->GetHeight());
2981 return size;
2982 }
2983 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2984 wxMask *mask = new wxMask(*self, colour);
2985 self->SetMask(mask);
2986 }
2987 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2988 self->SetWidth(size.x);
2989 self->SetHeight(size.y);
2990 }
2991 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2992 int height=self->GetHeight();
2993 int width=self->GetWidth();
2994
2995 if (DATASIZE != width * height * 3) {
2996 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2997 }
2998 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
2999 if (! pixData) {
3000 // raise an exception...
3001 wxPyErr_SetString(PyExc_RuntimeError,
3002 "Failed to gain raw access to bitmap data.");
3003 return;
3004 }
3005
3006 wxNativePixelData::Iterator p(pixData);
3007 for (int y=0; y<height; y++) {
3008 wxNativePixelData::Iterator rowStart = p;
3009 for (int x=0; x<width; x++) {
3010 p.Red() = *(data++);
3011 p.Green() = *(data++);
3012 p.Blue() = *(data++);
3013 ++p;
3014 }
3015 p = rowStart;
3016 p.OffsetY(pixData, 1);
3017 }
3018 }
3019 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3020 int height=self->GetHeight();
3021 int width=self->GetWidth();
3022
3023 if (DATASIZE != width * height * 4) {
3024 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3025 }
3026 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3027 if (! pixData) {
3028 // raise an exception...
3029 wxPyErr_SetString(PyExc_RuntimeError,
3030 "Failed to gain raw access to bitmap data.");
3031 return;
3032 }
3033
3034 pixData.UseAlpha();
3035 wxAlphaPixelData::Iterator p(pixData);
3036 for (int y=0; y<height; y++) {
3037 wxAlphaPixelData::Iterator rowStart = p;
3038 for (int x=0; x<width; x++) {
3039 byte a = data[3];
3040 p.Red() = wxPy_premultiply(*(data++), a);
3041 p.Green() = wxPy_premultiply(*(data++), a);
3042 p.Blue() = wxPy_premultiply(*(data++), a);
3043 p.Alpha() = a; data++;
3044 ++p;
3045 }
3046 p = rowStart;
3047 p.OffsetY(pixData, 1);
3048 }
3049 }
3050 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3051 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3052
3053 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3054 buffer data, int DATASIZE,
3055 buffer alpha, int ALPHASIZE)
3056 {
3057 if (DATASIZE != width*height*3) {
3058 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3059 return NULL;
3060 }
3061
3062 if (ALPHASIZE != width*height) {
3063 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3064 return NULL;
3065 }
3066
3067 wxBitmap* bmp = new wxBitmap(width, height, 32);
3068 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3069 if (! pixData) {
3070 // raise an exception...
3071 wxPyErr_SetString(PyExc_RuntimeError,
3072 "Failed to gain raw access to bitmap data.");
3073 return NULL;
3074 }
3075
3076 pixData.UseAlpha();
3077 wxAlphaPixelData::Iterator p(pixData);
3078 for (int y=0; y<height; y++) {
3079 wxAlphaPixelData::Iterator rowStart = p;
3080 for (int x=0; x<width; x++) {
3081 byte a = *(alpha++);
3082 p.Red() = wxPy_premultiply(*(data++), a);
3083 p.Green() = wxPy_premultiply(*(data++), a);
3084 p.Blue() = wxPy_premultiply(*(data++), a);
3085 p.Alpha() = a;
3086 ++p;
3087 }
3088 p = rowStart;
3089 p.OffsetY(pixData, 1);
3090 }
3091 return bmp;
3092 }
3093
3094 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3095 {
3096 if (DATASIZE != width*height*3) {
3097 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3098 return NULL;
3099 }
3100
3101 wxBitmap* bmp = new wxBitmap(width, height, 24);
3102 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3103 if (! pixData) {
3104 // raise an exception...
3105 wxPyErr_SetString(PyExc_RuntimeError,
3106 "Failed to gain raw access to bitmap data.");
3107 return NULL;
3108 }
3109
3110 wxNativePixelData::Iterator p(pixData);
3111 for (int y=0; y<height; y++) {
3112 wxNativePixelData::Iterator rowStart = p;
3113 for (int x=0; x<width; x++) {
3114 p.Red() = *(data++);
3115 p.Green() = *(data++);
3116 p.Blue() = *(data++);
3117 ++p;
3118 }
3119 p = rowStart;
3120 p.OffsetY(pixData, 1);
3121 }
3122 return bmp;
3123 }
3124
3125
3126 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3127 {
3128 if (DATASIZE != width*height*4) {
3129 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3130 return NULL;
3131 }
3132
3133 wxBitmap* bmp = new wxBitmap(width, height, 32);
3134 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3135 if (! pixData) {
3136 // raise an exception...
3137 wxPyErr_SetString(PyExc_RuntimeError,
3138 "Failed to gain raw access to bitmap data.");
3139 return NULL;
3140 }
3141
3142 pixData.UseAlpha();
3143 wxAlphaPixelData::Iterator p(pixData);
3144 for (int y=0; y<height; y++) {
3145 wxAlphaPixelData::Iterator rowStart = p;
3146 for (int x=0; x<width; x++) {
3147 byte a = data[3];
3148 p.Red() = wxPy_premultiply(*(data++), a);
3149 p.Green() = wxPy_premultiply(*(data++), a);
3150 p.Blue() = wxPy_premultiply(*(data++), a);
3151 p.Alpha() = a; data++;
3152 ++p;
3153 }
3154 p = rowStart;
3155 p.OffsetY(pixData, 1);
3156 }
3157 return bmp;
3158 }
3159
3160
3161 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3162
3163 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3164 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3165 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3166 self->Red() = red;
3167 self->Green() = green;
3168 self->Blue() = blue;
3169 }
3170 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3171 PyObject* rv = PyTuple_New(3);
3172 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3173 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3174 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3175 return rv;
3176 }
3177
3178 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3179
3180 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3181 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3182 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3183 self->Red() = wxPy_premultiply(red, alpha);
3184 self->Green() = wxPy_premultiply(green, alpha);
3185 self->Blue() = wxPy_premultiply(blue, alpha);
3186 self->Alpha() = alpha;
3187 }
3188 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3189 PyObject* rv = PyTuple_New(4);
3190 int red = self->Red();
3191 int green = self->Green();
3192 int blue = self->Blue();
3193 int alpha = self->Alpha();
3194
3195 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3196 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3197 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3198 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3199 return rv;
3200 }
3201 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3202 if ( !colour.IsOk() )
3203 return new wxMask(bitmap, *wxBLACK);
3204 else
3205 return new wxMask(bitmap, colour);
3206 }
3207
3208 #include <wx/iconbndl.h>
3209
3210 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3211 wxIcon* icon = new wxIcon();
3212 icon->CopyFromBitmap(bmp);
3213 return icon;
3214 }
3215 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3216 char** cArray = NULL;
3217 wxIcon* icon;
3218
3219 cArray = ConvertListOfStrings(listOfStrings);
3220 if (! cArray)
3221 return NULL;
3222 icon = new wxIcon(cArray);
3223 delete [] cArray;
3224 return icon;
3225 }
3226 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3227 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3228
3229 return new wxIconLocation(*filename, num);
3230
3231
3232
3233 }
3234 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3235
3236 self->SetIndex(num);
3237
3238
3239
3240 }
3241 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3242
3243 return self->GetIndex();
3244
3245
3246
3247 }
3248
3249 SWIGINTERNINLINE PyObject *
3250 SWIG_From_size_t (size_t value)
3251 {
3252 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3253 }
3254
3255
3256 SWIGINTERNINLINE int
3257 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3258 {
3259 unsigned long v;
3260 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3261 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3262 return res;
3263 }
3264
3265 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3266 #ifdef __WXGTK__
3267 wxImage img(cursorName, type);
3268 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3269 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3270 return new wxCursor(img);
3271 #else
3272 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3273 #endif
3274 }
3275 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3276
3277
3278 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3279 (*self) ++;
3280 }
3281 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3282 return self->operator bool();
3283 }
3284
3285 #include <wx/fontutil.h>
3286 #include <wx/fontmap.h>
3287 #include <wx/fontenum.h>
3288
3289 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3290 return self->ToString();
3291 }
3292
3293 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3294 { wxPyRaiseNotImplemented(); return NULL; }
3295
3296 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3297 { wxPyRaiseNotImplemented(); return false; }
3298
3299 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3300 wxFontEncoding alt_enc;
3301 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3302 return PyInt_FromLong(alt_enc);
3303 else {
3304 Py_INCREF(Py_None);
3305 return Py_None;
3306 }
3307 }
3308 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3309 wxNativeFontInfo nfi;
3310 nfi.FromString(info);
3311 return new wxFont(nfi);
3312 }
3313 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3314 return wxFont::New(pointSize, family, flags, face, encoding);
3315 }
3316 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3317 return wxFontBase::New(pixelSize, family,
3318 style, weight, underlined,
3319 face, encoding);
3320 }
3321 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3322 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3323 }
3324 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3325 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3326
3327 class wxPyFontEnumerator : public wxFontEnumerator {
3328 public:
3329 wxPyFontEnumerator() {}
3330 ~wxPyFontEnumerator() {}
3331
3332 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3333 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3334
3335 PYPRIVATE;
3336 };
3337
3338 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3339 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3340
3341
3342 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3343 PyObject* ret;
3344 wxArrayString arr = wxFontEnumerator::GetEncodings();
3345 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3346 ret = wxArrayString2PyList_helper(arr);
3347 wxPyEndBlockThreads(blocked);
3348 return ret;
3349 }
3350 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3351 PyObject* ret;
3352 wxArrayString arr = wxFontEnumerator::GetFacenames();
3353 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3354 ret = wxArrayString2PyList_helper(arr);
3355 wxPyEndBlockThreads(blocked);
3356 return ret;
3357 }
3358
3359 #include <locale.h>
3360
3361 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3362 wxLocale* loc;
3363 if (language == -1)
3364 loc = new wxLocale();
3365 else
3366 loc = new wxLocale(language, flags);
3367 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3368 // for the floating point conversions and such to work right.
3369 #if PY_VERSION_HEX < 0x02040000
3370 setlocale(LC_NUMERIC, "C");
3371 #endif
3372 return loc;
3373 }
3374 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &name,wxString const &shortName=wxPyEmptyString,wxString const &locale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3375 bool rc = self->Init(name, shortName, locale, bLoadDefault, bConvertEncoding);
3376 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3377 // for the floating point conversions and such to work right.
3378 #if PY_VERSION_HEX < 0x02040000
3379 setlocale(LC_NUMERIC, "C");
3380 #endif
3381 return rc;
3382 }
3383 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3384 bool rc = self->Init(language, flags);
3385 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3386 // for the floating point conversions and such to work right.
3387 #if PY_VERSION_HEX < 0x02040000
3388 setlocale(LC_NUMERIC, "C");
3389 #endif
3390 return rc;
3391 }
3392
3393 class wxPyLocale : public wxLocale
3394 {
3395 public:
3396 wxPyLocale();
3397
3398 wxPyLocale(const wxString& name, // name (for messages)
3399 const wxString& shortName = wxPyEmptyString, // dir prefix (for msg files)
3400 const wxString& locale = wxPyEmptyString, // locale (for setlocale)
3401 bool bLoadDefault = true, // preload wxstd.mo?
3402 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3403
3404 wxPyLocale(int language, // wxLanguage id or custom language
3405 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3406
3407 ~wxPyLocale();
3408
3409 virtual const wxString& GetString(const wxString& origString,
3410 const wxString& domain = wxPyEmptyString) const;
3411 virtual const wxString& GetString(const wxString& origString,
3412 const wxString& origString2,
3413 size_t n,
3414 const wxString& domain = wxPyEmptyString) const;
3415
3416 virtual const wxString& GetSingularString(const wxString& origString,
3417 const wxString& domain = wxPyEmptyString) const;
3418 virtual const wxString& GetPluralString(const wxString& origString,
3419 const wxString& origString2,
3420 size_t n,
3421 const wxString& domain = wxPyEmptyString) const;
3422
3423
3424 PYPRIVATE;
3425 private:
3426 DECLARE_NO_COPY_CLASS(wxPyLocale)
3427 };
3428
3429 wxPyLocale::wxPyLocale() : wxLocale()
3430 {
3431 }
3432
3433 wxPyLocale::wxPyLocale(const wxString& name, // name (for messages)
3434 const wxString& shortName, // dir prefix (for msg files)
3435 const wxString& locale, // locale (for setlocale)
3436 bool bLoadDefault, // preload wxstd.mo?
3437 bool bConvertEncoding) // convert Win<->Unix if necessary?
3438 : wxLocale(name, shortName, locale, bLoadDefault, bConvertEncoding)
3439 {
3440 }
3441
3442 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3443 int flags) : wxLocale(language, flags)
3444 {
3445 }
3446
3447 wxPyLocale::~wxPyLocale()
3448 {
3449 }
3450
3451 const wxString& wxPyLocale::GetString(const wxString& origString,
3452 const wxString& domain) const
3453 {
3454 return GetSingularString(origString, domain);
3455 }
3456
3457 const wxString& wxPyLocale::GetString(const wxString& origString,
3458 const wxString& origString2,
3459 size_t n,
3460 const wxString& domain) const
3461 {
3462 return GetPluralString(origString, origString2, n, domain);
3463 }
3464
3465 const wxString& wxPyLocale::GetSingularString(const wxString& origString,
3466 const wxString& domain) const
3467 {
3468 bool found;
3469 wxString str( _T("error in translation"));
3470 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3471 if ((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3472 PyObject* param1 = wx2PyString(origString);
3473 PyObject* param2 = wx2PyString(domain);
3474 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3475 Py_DECREF(param1);
3476 Py_DECREF(param2);
3477 if (ret) {
3478 str = Py2wxString(ret);
3479 Py_DECREF(ret);
3480 }
3481 }
3482 wxPyEndBlockThreads(blocked);
3483 return (found ? str : wxLocale::GetString(origString, domain));
3484 }
3485
3486 const wxString& wxPyLocale::GetPluralString(const wxString& origString,
3487 const wxString& origString2, size_t n,
3488 const wxString& domain) const
3489 {
3490 bool found;
3491 wxString str( _T("error in translation"));
3492 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3493 if ((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3494 PyObject* param1 = wx2PyString(origString);
3495 PyObject* param2 = wx2PyString(origString2);
3496 PyObject* param4 = wx2PyString(domain);
3497 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst,
3498 Py_BuildValue("(OOiO)",
3499 param1, param2,
3500 (int)n, param4));
3501 Py_DECREF(param1);
3502 Py_DECREF(param2);
3503 Py_DECREF(param4);
3504 if( ret) {
3505 str = Py2wxString(ret);
3506 Py_DECREF(ret);
3507 }
3508 }
3509 wxPyEndBlockThreads(blocked);
3510 return (found ? str : wxLocale::GetString(origString, origString2, n, domain) );
3511 }
3512
3513 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3514 wxPyLocale* loc;
3515 if (language == -1)
3516 loc = new wxPyLocale();
3517 else
3518 loc = new wxPyLocale(language, flags);
3519 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3520 // for the floating point conversions and such to work right.
3521 #if PY_VERSION_HEX < 0x02040000
3522 setlocale(LC_NUMERIC, "C");
3523 #endif
3524 return loc;
3525 }
3526
3527 #include "wx/wxPython/pydrawxxx.h"
3528
3529 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3530 wxColour col;
3531 self->GetPixel(x, y, &col);
3532 return col;
3533 }
3534 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3535 wxColour col;
3536 self->GetPixel(pt, &col);
3537 return col;
3538 }
3539
3540 SWIGINTERN int
3541 SWIG_AsVal_double (PyObject *obj, double* val)
3542 {
3543 if (PyNumber_Check(obj)) {
3544 if (val) *val = PyFloat_AsDouble(obj);
3545 return SWIG_OK;
3546 }
3547 return SWIG_TypeError;
3548 }
3549
3550 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3551 wxRect rv;
3552 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3553 return rv;
3554 }
3555 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3556 wxRect rect;
3557 self->GetClippingBox(rect);
3558 return rect;
3559 }
3560 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3561 wxArrayInt widths;
3562 self->GetPartialTextExtents(text, widths);
3563 return widths;
3564 }
3565
3566 #define SWIG_From_double PyFloat_FromDouble
3567
3568 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3569 self->SetLogicalOrigin(point.x, point.y);
3570 }
3571 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3572 self->SetDeviceOrigin(point.x, point.y);
3573 }
3574 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3575 self->CalcBoundingBox(point.x, point.y);
3576 }
3577 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3578 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3579 }
3580 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3581 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3582 }
3583 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3584 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3585 }
3586 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3587 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3588 }
3589 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3590 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3591 }
3592 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3593 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3594 }
3595
3596 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3597 *x1 = dc->MinX();
3598 *y1 = dc->MinY();
3599 *x2 = dc->MaxX();
3600 *y2 = dc->MaxY();
3601 }
3602
3603
3604 #include <wx/dcbuffer.h>
3605
3606
3607 #include <wx/dcps.h>
3608
3609
3610 #include <wx/metafile.h>
3611
3612
3613 #include <wx/graphics.h>
3614
3615
3616 #if !wxUSE_GRAPHICS_CONTEXT
3617 // C++ stub classes for platforms or build configurations that don't have
3618 // wxGraphicsContext yet.
3619
3620 class wxGraphicsRenderer;
3621 class wxGraphicsMatrix;
3622
3623
3624 class wxGraphicsObject : public wxObject
3625 {
3626 public :
3627 wxGraphicsObject() {}
3628 wxGraphicsObject( wxGraphicsRenderer* ) {
3629 PyErr_SetString(PyExc_NotImplementedError,
3630 "wx.GraphicsObject is not available on this platform.");
3631 }
3632 wxGraphicsObject( const wxGraphicsObject& ) {}
3633 virtual ~wxGraphicsObject() {}
3634 bool IsNull() const { return false; }
3635 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3636 } ;
3637
3638
3639
3640 class wxGraphicsPen : public wxGraphicsObject
3641 {
3642 public:
3643 wxGraphicsPen() {}
3644 virtual ~wxGraphicsPen() {}
3645 } ;
3646 wxGraphicsPen wxNullGraphicsPen;
3647
3648
3649
3650 class wxGraphicsBrush : public wxGraphicsObject
3651 {
3652 public :
3653 wxGraphicsBrush() {}
3654 virtual ~wxGraphicsBrush() {}
3655 } ;
3656 wxGraphicsBrush wxNullGraphicsBrush;
3657
3658
3659
3660 class wxGraphicsFont : public wxGraphicsObject
3661 {
3662 public :
3663 wxGraphicsFont() {}
3664 virtual ~wxGraphicsFont() {}
3665 } ;
3666 wxGraphicsFont wxNullGraphicsFont;
3667
3668
3669
3670 class wxGraphicsPath : public wxGraphicsObject
3671 {
3672 public :
3673 wxGraphicsPath() { }
3674 wxGraphicsPath(wxGraphicsRenderer* ) {
3675 PyErr_SetString(PyExc_NotImplementedError,
3676 "wx.GraphicsPath is not available on this platform.");
3677 }
3678 virtual ~wxGraphicsPath() {}
3679
3680 void MoveToPoint( wxDouble, wxDouble ) {}
3681 void MoveToPoint( const wxPoint2DDouble& ) {}
3682 void AddLineToPoint( wxDouble, wxDouble ) {}
3683 void AddLineToPoint( const wxPoint2DDouble& ) {}
3684 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3685 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3686 void AddPath( const wxGraphicsPath& ) {}
3687 void CloseSubpath() {}
3688 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3689 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
3690 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3691 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3692
3693 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3694 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3695 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3696 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3697
3698 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3699 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3700 void * GetNativePath() const { return NULL; }
3701 void UnGetNativePath(void *) const {}
3702 void Transform( const wxGraphicsMatrix& ) {}
3703 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3704 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
3705
3706 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3707 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
3708 };
3709 wxGraphicsPath wxNullGraphicsPath;
3710
3711
3712 class wxGraphicsMatrix : public wxGraphicsObject
3713 {
3714 public :
3715 wxGraphicsMatrix() { }
3716 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3717 PyErr_SetString(PyExc_NotImplementedError,
3718 "wx.GraphicsMatrix is not available on this platform.");
3719 }
3720 virtual ~wxGraphicsMatrix() {}
3721 virtual void Concat( const wxGraphicsMatrix & ) {}
3722 virtual void Copy( const wxGraphicsMatrix & ) {}
3723 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3724 wxDouble , wxDouble ) {}
3725 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3726 wxDouble*, wxDouble*, wxDouble*) {}
3727 virtual void Invert() {}
3728 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3729 virtual bool IsIdentity() const { return false; }
3730 virtual void Translate( wxDouble , wxDouble ) {}
3731 virtual void Scale( wxDouble , wxDouble ) {}
3732 virtual void Rotate( wxDouble ) {}
3733 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3734 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
3735 virtual void * GetNativeMatrix() const { return NULL; }
3736 };
3737 wxGraphicsMatrix wxNullGraphicsMatrix;
3738
3739
3740 class wxGraphicsContext : public wxGraphicsObject
3741 {
3742 public:
3743
3744 wxGraphicsContext(wxGraphicsRenderer* ) {
3745 PyErr_SetString(PyExc_NotImplementedError,
3746 "wx.GraphicsContext is not available on this platform.");
3747 }
3748
3749 virtual ~wxGraphicsContext() {}
3750
3751 static wxGraphicsContext* Create() {
3752 PyErr_SetString(PyExc_NotImplementedError,
3753 "wx.GraphicsContext is not available on this platform.");
3754 return NULL;
3755 }
3756 static wxGraphicsContext* Create( const wxWindowDC& ) {
3757 PyErr_SetString(PyExc_NotImplementedError,
3758 "wx.GraphicsContext is not available on this platform.");
3759 return NULL;
3760 }
3761
3762 static wxGraphicsContext* CreateFromNative( void * ) {
3763 PyErr_SetString(PyExc_NotImplementedError,
3764 "wx.GraphicsContext is not available on this platform.");
3765 return NULL;
3766 }
3767
3768 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3769 PyErr_SetString(PyExc_NotImplementedError,
3770 "wx.GraphicsContext is not available on this platform.");
3771 return NULL;
3772 }
3773
3774 static wxGraphicsContext* Create( wxWindow* ) {
3775 PyErr_SetString(PyExc_NotImplementedError,
3776 "wx.GraphicsContext is not available on this platform.");
3777 return NULL;
3778 }
3779
3780 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3781
3782 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3783
3784 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3785
3786 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3787 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3788
3789 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3790 wxDouble xc, wxDouble yc, wxDouble radius,
3791 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
3792
3793 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
3794
3795 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3796 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
3797
3798 virtual void PushState() {}
3799 virtual void PopState() {}
3800 virtual void Clip( const wxRegion & ) {}
3801 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3802 virtual void ResetClip() {}
3803 virtual void * GetNativeContext() { return NULL; }
3804 virtual int GetLogicalFunction() const { return 0; }
3805 virtual bool SetLogicalFunction(int ) {}
3806 virtual void Translate( wxDouble , wxDouble ) {}
3807 virtual void Scale( wxDouble , wxDouble ) {}
3808 virtual void Rotate( wxDouble ) {}
3809 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3810 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3811 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
3812
3813 virtual void SetPen( const wxGraphicsPen& ) {}
3814 void SetPen( const wxPen& ) {}
3815
3816 virtual void SetBrush( const wxGraphicsBrush& ) {}
3817 void SetBrush( const wxBrush& ) {}
3818
3819 virtual void SetFont( const wxGraphicsFont& ) {}
3820 void SetFont( const wxFont&, const wxColour& ) {}
3821
3822 virtual void StrokePath( const wxGraphicsPath & ) {}
3823 virtual void FillPath( const wxGraphicsPath &, int ) {}
3824 virtual void DrawPath( const wxGraphicsPath &, int ) {}
3825
3826 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3827 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3828 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3829 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
3830 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3831 wxDouble *, wxDouble * ) const {}
3832 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3833
3834 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3835 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3836
3837 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3838 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3839 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3840 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3841 virtual void DrawRectangle( 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_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10280 PyObject *resultobj = 0;
10281 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10282 bool result;
10283 void *argp1 = 0 ;
10284 int res1 = 0 ;
10285 PyObject *swig_obj[1] ;
10286
10287 if (!args) SWIG_fail;
10288 swig_obj[0] = args;
10289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10290 if (!SWIG_IsOK(res1)) {
10291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_IsOk" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10292 }
10293 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10294 {
10295 PyThreadState* __tstate = wxPyBeginAllowThreads();
10296 result = (bool)((wxIconBundle const *)arg1)->IsOk();
10297 wxPyEndAllowThreads(__tstate);
10298 if (PyErr_Occurred()) SWIG_fail;
10299 }
10300 {
10301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10302 }
10303 return resultobj;
10304 fail:
10305 return NULL;
10306 }
10307
10308
10309 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10310 PyObject *resultobj = 0;
10311 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10312 wxIcon *arg2 = 0 ;
10313 void *argp1 = 0 ;
10314 int res1 = 0 ;
10315 void *argp2 = 0 ;
10316 int res2 = 0 ;
10317 PyObject * obj0 = 0 ;
10318 PyObject * obj1 = 0 ;
10319 char * kwnames[] = {
10320 (char *) "self",(char *) "icon", NULL
10321 };
10322
10323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10325 if (!SWIG_IsOK(res1)) {
10326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10327 }
10328 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10329 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10330 if (!SWIG_IsOK(res2)) {
10331 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10332 }
10333 if (!argp2) {
10334 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10335 }
10336 arg2 = reinterpret_cast< wxIcon * >(argp2);
10337 {
10338 PyThreadState* __tstate = wxPyBeginAllowThreads();
10339 (arg1)->AddIcon((wxIcon const &)*arg2);
10340 wxPyEndAllowThreads(__tstate);
10341 if (PyErr_Occurred()) SWIG_fail;
10342 }
10343 resultobj = SWIG_Py_Void();
10344 return resultobj;
10345 fail:
10346 return NULL;
10347 }
10348
10349
10350 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10351 PyObject *resultobj = 0;
10352 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10353 wxString *arg2 = 0 ;
10354 long arg3 ;
10355 void *argp1 = 0 ;
10356 int res1 = 0 ;
10357 bool temp2 = false ;
10358 long val3 ;
10359 int ecode3 = 0 ;
10360 PyObject * obj0 = 0 ;
10361 PyObject * obj1 = 0 ;
10362 PyObject * obj2 = 0 ;
10363 char * kwnames[] = {
10364 (char *) "self",(char *) "file",(char *) "type", NULL
10365 };
10366
10367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10369 if (!SWIG_IsOK(res1)) {
10370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10371 }
10372 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10373 {
10374 arg2 = wxString_in_helper(obj1);
10375 if (arg2 == NULL) SWIG_fail;
10376 temp2 = true;
10377 }
10378 ecode3 = SWIG_AsVal_long(obj2, &val3);
10379 if (!SWIG_IsOK(ecode3)) {
10380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10381 }
10382 arg3 = static_cast< long >(val3);
10383 {
10384 PyThreadState* __tstate = wxPyBeginAllowThreads();
10385 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10386 wxPyEndAllowThreads(__tstate);
10387 if (PyErr_Occurred()) SWIG_fail;
10388 }
10389 resultobj = SWIG_Py_Void();
10390 {
10391 if (temp2)
10392 delete arg2;
10393 }
10394 return resultobj;
10395 fail:
10396 {
10397 if (temp2)
10398 delete arg2;
10399 }
10400 return NULL;
10401 }
10402
10403
10404 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10405 PyObject *resultobj = 0;
10406 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10407 wxSize *arg2 = 0 ;
10408 wxIcon *result = 0 ;
10409 void *argp1 = 0 ;
10410 int res1 = 0 ;
10411 wxSize temp2 ;
10412 PyObject * obj0 = 0 ;
10413 PyObject * obj1 = 0 ;
10414 char * kwnames[] = {
10415 (char *) "self",(char *) "size", NULL
10416 };
10417
10418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10420 if (!SWIG_IsOK(res1)) {
10421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10422 }
10423 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10424 {
10425 arg2 = &temp2;
10426 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10427 }
10428 {
10429 PyThreadState* __tstate = wxPyBeginAllowThreads();
10430 {
10431 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10432 result = (wxIcon *) &_result_ref;
10433 }
10434 wxPyEndAllowThreads(__tstate);
10435 if (PyErr_Occurred()) SWIG_fail;
10436 }
10437 {
10438 wxIcon* resultptr = new wxIcon(*result);
10439 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10440 }
10441 return resultobj;
10442 fail:
10443 return NULL;
10444 }
10445
10446
10447 SWIGINTERN PyObject *_wrap_IconBundle_GetIconOfExactSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10448 PyObject *resultobj = 0;
10449 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10450 wxSize *arg2 = 0 ;
10451 wxIcon result;
10452 void *argp1 = 0 ;
10453 int res1 = 0 ;
10454 wxSize temp2 ;
10455 PyObject * obj0 = 0 ;
10456 PyObject * obj1 = 0 ;
10457 char * kwnames[] = {
10458 (char *) "self",(char *) "size", NULL
10459 };
10460
10461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIconOfExactSize",kwnames,&obj0,&obj1)) SWIG_fail;
10462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10463 if (!SWIG_IsOK(res1)) {
10464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconOfExactSize" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10465 }
10466 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10467 {
10468 arg2 = &temp2;
10469 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10470 }
10471 {
10472 PyThreadState* __tstate = wxPyBeginAllowThreads();
10473 result = ((wxIconBundle const *)arg1)->GetIconOfExactSize((wxSize const &)*arg2);
10474 wxPyEndAllowThreads(__tstate);
10475 if (PyErr_Occurred()) SWIG_fail;
10476 }
10477 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
10478 return resultobj;
10479 fail:
10480 return NULL;
10481 }
10482
10483
10484 SWIGINTERN PyObject *_wrap_IconBundle_GetIconCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10485 PyObject *resultobj = 0;
10486 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10487 size_t result;
10488 void *argp1 = 0 ;
10489 int res1 = 0 ;
10490 PyObject *swig_obj[1] ;
10491
10492 if (!args) SWIG_fail;
10493 swig_obj[0] = args;
10494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10495 if (!SWIG_IsOK(res1)) {
10496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconCount" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10497 }
10498 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10499 {
10500 PyThreadState* __tstate = wxPyBeginAllowThreads();
10501 result = (size_t)((wxIconBundle const *)arg1)->GetIconCount();
10502 wxPyEndAllowThreads(__tstate);
10503 if (PyErr_Occurred()) SWIG_fail;
10504 }
10505 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10506 return resultobj;
10507 fail:
10508 return NULL;
10509 }
10510
10511
10512 SWIGINTERN PyObject *_wrap_IconBundle_GetIconByIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10513 PyObject *resultobj = 0;
10514 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10515 size_t arg2 ;
10516 wxIcon result;
10517 void *argp1 = 0 ;
10518 int res1 = 0 ;
10519 size_t val2 ;
10520 int ecode2 = 0 ;
10521 PyObject * obj0 = 0 ;
10522 PyObject * obj1 = 0 ;
10523 char * kwnames[] = {
10524 (char *) "self",(char *) "n", NULL
10525 };
10526
10527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIconByIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10529 if (!SWIG_IsOK(res1)) {
10530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconByIndex" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10531 }
10532 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10533 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
10534 if (!SWIG_IsOK(ecode2)) {
10535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconBundle_GetIconByIndex" "', expected argument " "2"" of type '" "size_t""'");
10536 }
10537 arg2 = static_cast< size_t >(val2);
10538 {
10539 PyThreadState* __tstate = wxPyBeginAllowThreads();
10540 result = ((wxIconBundle const *)arg1)->GetIconByIndex(arg2);
10541 wxPyEndAllowThreads(__tstate);
10542 if (PyErr_Occurred()) SWIG_fail;
10543 }
10544 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
10545 return resultobj;
10546 fail:
10547 return NULL;
10548 }
10549
10550
10551 SWIGINTERN PyObject *_wrap_IconBundle_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10552 PyObject *resultobj = 0;
10553 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10554 bool result;
10555 void *argp1 = 0 ;
10556 int res1 = 0 ;
10557 PyObject *swig_obj[1] ;
10558
10559 if (!args) SWIG_fail;
10560 swig_obj[0] = args;
10561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10562 if (!SWIG_IsOK(res1)) {
10563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_IsEmpty" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10564 }
10565 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10566 {
10567 PyThreadState* __tstate = wxPyBeginAllowThreads();
10568 result = (bool)((wxIconBundle const *)arg1)->IsEmpty();
10569 wxPyEndAllowThreads(__tstate);
10570 if (PyErr_Occurred()) SWIG_fail;
10571 }
10572 {
10573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10574 }
10575 return resultobj;
10576 fail:
10577 return NULL;
10578 }
10579
10580
10581 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10582 PyObject *obj;
10583 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10584 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10585 return SWIG_Py_Void();
10586 }
10587
10588 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10589 return SWIG_Python_InitShadowInstance(args);
10590 }
10591
10592 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10593 PyObject *resultobj = 0;
10594 wxString *arg1 = 0 ;
10595 long arg2 ;
10596 int arg3 = (int) 0 ;
10597 int arg4 = (int) 0 ;
10598 wxCursor *result = 0 ;
10599 bool temp1 = false ;
10600 long val2 ;
10601 int ecode2 = 0 ;
10602 int val3 ;
10603 int ecode3 = 0 ;
10604 int val4 ;
10605 int ecode4 = 0 ;
10606 PyObject * obj0 = 0 ;
10607 PyObject * obj1 = 0 ;
10608 PyObject * obj2 = 0 ;
10609 PyObject * obj3 = 0 ;
10610 char * kwnames[] = {
10611 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10612 };
10613
10614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10615 {
10616 arg1 = wxString_in_helper(obj0);
10617 if (arg1 == NULL) SWIG_fail;
10618 temp1 = true;
10619 }
10620 ecode2 = SWIG_AsVal_long(obj1, &val2);
10621 if (!SWIG_IsOK(ecode2)) {
10622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10623 }
10624 arg2 = static_cast< long >(val2);
10625 if (obj2) {
10626 ecode3 = SWIG_AsVal_int(obj2, &val3);
10627 if (!SWIG_IsOK(ecode3)) {
10628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10629 }
10630 arg3 = static_cast< int >(val3);
10631 }
10632 if (obj3) {
10633 ecode4 = SWIG_AsVal_int(obj3, &val4);
10634 if (!SWIG_IsOK(ecode4)) {
10635 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10636 }
10637 arg4 = static_cast< int >(val4);
10638 }
10639 {
10640 if (!wxPyCheckForApp()) SWIG_fail;
10641 PyThreadState* __tstate = wxPyBeginAllowThreads();
10642 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10643 wxPyEndAllowThreads(__tstate);
10644 if (PyErr_Occurred()) SWIG_fail;
10645 }
10646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10647 {
10648 if (temp1)
10649 delete arg1;
10650 }
10651 return resultobj;
10652 fail:
10653 {
10654 if (temp1)
10655 delete arg1;
10656 }
10657 return NULL;
10658 }
10659
10660
10661 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10662 PyObject *resultobj = 0;
10663 wxCursor *arg1 = (wxCursor *) 0 ;
10664 void *argp1 = 0 ;
10665 int res1 = 0 ;
10666 PyObject *swig_obj[1] ;
10667
10668 if (!args) SWIG_fail;
10669 swig_obj[0] = args;
10670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10671 if (!SWIG_IsOK(res1)) {
10672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10673 }
10674 arg1 = reinterpret_cast< wxCursor * >(argp1);
10675 {
10676 PyThreadState* __tstate = wxPyBeginAllowThreads();
10677 delete arg1;
10678
10679 wxPyEndAllowThreads(__tstate);
10680 if (PyErr_Occurred()) SWIG_fail;
10681 }
10682 resultobj = SWIG_Py_Void();
10683 return resultobj;
10684 fail:
10685 return NULL;
10686 }
10687
10688
10689 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10690 PyObject *resultobj = 0;
10691 int arg1 ;
10692 wxCursor *result = 0 ;
10693 int val1 ;
10694 int ecode1 = 0 ;
10695 PyObject * obj0 = 0 ;
10696 char * kwnames[] = {
10697 (char *) "id", NULL
10698 };
10699
10700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10701 ecode1 = SWIG_AsVal_int(obj0, &val1);
10702 if (!SWIG_IsOK(ecode1)) {
10703 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10704 }
10705 arg1 = static_cast< int >(val1);
10706 {
10707 if (!wxPyCheckForApp()) SWIG_fail;
10708 PyThreadState* __tstate = wxPyBeginAllowThreads();
10709 result = (wxCursor *)new wxCursor(arg1);
10710 wxPyEndAllowThreads(__tstate);
10711 if (PyErr_Occurred()) SWIG_fail;
10712 }
10713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10714 return resultobj;
10715 fail:
10716 return NULL;
10717 }
10718
10719
10720 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10721 PyObject *resultobj = 0;
10722 wxImage *arg1 = 0 ;
10723 wxCursor *result = 0 ;
10724 void *argp1 = 0 ;
10725 int res1 = 0 ;
10726 PyObject * obj0 = 0 ;
10727 char * kwnames[] = {
10728 (char *) "image", NULL
10729 };
10730
10731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10732 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10733 if (!SWIG_IsOK(res1)) {
10734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10735 }
10736 if (!argp1) {
10737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10738 }
10739 arg1 = reinterpret_cast< wxImage * >(argp1);
10740 {
10741 if (!wxPyCheckForApp()) SWIG_fail;
10742 PyThreadState* __tstate = wxPyBeginAllowThreads();
10743 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10744 wxPyEndAllowThreads(__tstate);
10745 if (PyErr_Occurred()) SWIG_fail;
10746 }
10747 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10748 return resultobj;
10749 fail:
10750 return NULL;
10751 }
10752
10753
10754 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10755 PyObject *resultobj = 0;
10756 wxCursor *arg1 = (wxCursor *) 0 ;
10757 long result;
10758 void *argp1 = 0 ;
10759 int res1 = 0 ;
10760 PyObject *swig_obj[1] ;
10761
10762 if (!args) SWIG_fail;
10763 swig_obj[0] = args;
10764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10765 if (!SWIG_IsOK(res1)) {
10766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10767 }
10768 arg1 = reinterpret_cast< wxCursor * >(argp1);
10769 {
10770 PyThreadState* __tstate = wxPyBeginAllowThreads();
10771 result = (long)(arg1)->GetHandle();
10772 wxPyEndAllowThreads(__tstate);
10773 if (PyErr_Occurred()) SWIG_fail;
10774 }
10775 resultobj = SWIG_From_long(static_cast< long >(result));
10776 return resultobj;
10777 fail:
10778 return NULL;
10779 }
10780
10781
10782 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10783 PyObject *resultobj = 0;
10784 wxCursor *arg1 = (wxCursor *) 0 ;
10785 long arg2 ;
10786 void *argp1 = 0 ;
10787 int res1 = 0 ;
10788 long val2 ;
10789 int ecode2 = 0 ;
10790 PyObject * obj0 = 0 ;
10791 PyObject * obj1 = 0 ;
10792 char * kwnames[] = {
10793 (char *) "self",(char *) "handle", NULL
10794 };
10795
10796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10798 if (!SWIG_IsOK(res1)) {
10799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10800 }
10801 arg1 = reinterpret_cast< wxCursor * >(argp1);
10802 ecode2 = SWIG_AsVal_long(obj1, &val2);
10803 if (!SWIG_IsOK(ecode2)) {
10804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10805 }
10806 arg2 = static_cast< long >(val2);
10807 {
10808 PyThreadState* __tstate = wxPyBeginAllowThreads();
10809 wxCursor_SetHandle(arg1,arg2);
10810 wxPyEndAllowThreads(__tstate);
10811 if (PyErr_Occurred()) SWIG_fail;
10812 }
10813 resultobj = SWIG_Py_Void();
10814 return resultobj;
10815 fail:
10816 return NULL;
10817 }
10818
10819
10820 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10821 PyObject *resultobj = 0;
10822 wxCursor *arg1 = (wxCursor *) 0 ;
10823 bool result;
10824 void *argp1 = 0 ;
10825 int res1 = 0 ;
10826 PyObject *swig_obj[1] ;
10827
10828 if (!args) SWIG_fail;
10829 swig_obj[0] = args;
10830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10831 if (!SWIG_IsOK(res1)) {
10832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10833 }
10834 arg1 = reinterpret_cast< wxCursor * >(argp1);
10835 {
10836 PyThreadState* __tstate = wxPyBeginAllowThreads();
10837 result = (bool)(arg1)->IsOk();
10838 wxPyEndAllowThreads(__tstate);
10839 if (PyErr_Occurred()) SWIG_fail;
10840 }
10841 {
10842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10843 }
10844 return resultobj;
10845 fail:
10846 return NULL;
10847 }
10848
10849
10850 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10851 PyObject *resultobj = 0;
10852 wxCursor *arg1 = (wxCursor *) 0 ;
10853 int result;
10854 void *argp1 = 0 ;
10855 int res1 = 0 ;
10856 PyObject *swig_obj[1] ;
10857
10858 if (!args) SWIG_fail;
10859 swig_obj[0] = args;
10860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10861 if (!SWIG_IsOK(res1)) {
10862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10863 }
10864 arg1 = reinterpret_cast< wxCursor * >(argp1);
10865 {
10866 PyThreadState* __tstate = wxPyBeginAllowThreads();
10867 result = (int)(arg1)->GetWidth();
10868 wxPyEndAllowThreads(__tstate);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 }
10871 resultobj = SWIG_From_int(static_cast< int >(result));
10872 return resultobj;
10873 fail:
10874 return NULL;
10875 }
10876
10877
10878 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10879 PyObject *resultobj = 0;
10880 wxCursor *arg1 = (wxCursor *) 0 ;
10881 int result;
10882 void *argp1 = 0 ;
10883 int res1 = 0 ;
10884 PyObject *swig_obj[1] ;
10885
10886 if (!args) SWIG_fail;
10887 swig_obj[0] = args;
10888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10889 if (!SWIG_IsOK(res1)) {
10890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10891 }
10892 arg1 = reinterpret_cast< wxCursor * >(argp1);
10893 {
10894 PyThreadState* __tstate = wxPyBeginAllowThreads();
10895 result = (int)(arg1)->GetHeight();
10896 wxPyEndAllowThreads(__tstate);
10897 if (PyErr_Occurred()) SWIG_fail;
10898 }
10899 resultobj = SWIG_From_int(static_cast< int >(result));
10900 return resultobj;
10901 fail:
10902 return NULL;
10903 }
10904
10905
10906 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10907 PyObject *resultobj = 0;
10908 wxCursor *arg1 = (wxCursor *) 0 ;
10909 int result;
10910 void *argp1 = 0 ;
10911 int res1 = 0 ;
10912 PyObject *swig_obj[1] ;
10913
10914 if (!args) SWIG_fail;
10915 swig_obj[0] = args;
10916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10917 if (!SWIG_IsOK(res1)) {
10918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10919 }
10920 arg1 = reinterpret_cast< wxCursor * >(argp1);
10921 {
10922 PyThreadState* __tstate = wxPyBeginAllowThreads();
10923 result = (int)(arg1)->GetDepth();
10924 wxPyEndAllowThreads(__tstate);
10925 if (PyErr_Occurred()) SWIG_fail;
10926 }
10927 resultobj = SWIG_From_int(static_cast< int >(result));
10928 return resultobj;
10929 fail:
10930 return NULL;
10931 }
10932
10933
10934 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10935 PyObject *resultobj = 0;
10936 wxCursor *arg1 = (wxCursor *) 0 ;
10937 int arg2 ;
10938 void *argp1 = 0 ;
10939 int res1 = 0 ;
10940 int val2 ;
10941 int ecode2 = 0 ;
10942 PyObject * obj0 = 0 ;
10943 PyObject * obj1 = 0 ;
10944 char * kwnames[] = {
10945 (char *) "self",(char *) "w", NULL
10946 };
10947
10948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10950 if (!SWIG_IsOK(res1)) {
10951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10952 }
10953 arg1 = reinterpret_cast< wxCursor * >(argp1);
10954 ecode2 = SWIG_AsVal_int(obj1, &val2);
10955 if (!SWIG_IsOK(ecode2)) {
10956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10957 }
10958 arg2 = static_cast< int >(val2);
10959 {
10960 PyThreadState* __tstate = wxPyBeginAllowThreads();
10961 (arg1)->SetWidth(arg2);
10962 wxPyEndAllowThreads(__tstate);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 }
10965 resultobj = SWIG_Py_Void();
10966 return resultobj;
10967 fail:
10968 return NULL;
10969 }
10970
10971
10972 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10973 PyObject *resultobj = 0;
10974 wxCursor *arg1 = (wxCursor *) 0 ;
10975 int arg2 ;
10976 void *argp1 = 0 ;
10977 int res1 = 0 ;
10978 int val2 ;
10979 int ecode2 = 0 ;
10980 PyObject * obj0 = 0 ;
10981 PyObject * obj1 = 0 ;
10982 char * kwnames[] = {
10983 (char *) "self",(char *) "h", NULL
10984 };
10985
10986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10988 if (!SWIG_IsOK(res1)) {
10989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10990 }
10991 arg1 = reinterpret_cast< wxCursor * >(argp1);
10992 ecode2 = SWIG_AsVal_int(obj1, &val2);
10993 if (!SWIG_IsOK(ecode2)) {
10994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10995 }
10996 arg2 = static_cast< int >(val2);
10997 {
10998 PyThreadState* __tstate = wxPyBeginAllowThreads();
10999 (arg1)->SetHeight(arg2);
11000 wxPyEndAllowThreads(__tstate);
11001 if (PyErr_Occurred()) SWIG_fail;
11002 }
11003 resultobj = SWIG_Py_Void();
11004 return resultobj;
11005 fail:
11006 return NULL;
11007 }
11008
11009
11010 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11011 PyObject *resultobj = 0;
11012 wxCursor *arg1 = (wxCursor *) 0 ;
11013 int arg2 ;
11014 void *argp1 = 0 ;
11015 int res1 = 0 ;
11016 int val2 ;
11017 int ecode2 = 0 ;
11018 PyObject * obj0 = 0 ;
11019 PyObject * obj1 = 0 ;
11020 char * kwnames[] = {
11021 (char *) "self",(char *) "d", NULL
11022 };
11023
11024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
11025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
11026 if (!SWIG_IsOK(res1)) {
11027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
11028 }
11029 arg1 = reinterpret_cast< wxCursor * >(argp1);
11030 ecode2 = SWIG_AsVal_int(obj1, &val2);
11031 if (!SWIG_IsOK(ecode2)) {
11032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
11033 }
11034 arg2 = static_cast< int >(val2);
11035 {
11036 PyThreadState* __tstate = wxPyBeginAllowThreads();
11037 (arg1)->SetDepth(arg2);
11038 wxPyEndAllowThreads(__tstate);
11039 if (PyErr_Occurred()) SWIG_fail;
11040 }
11041 resultobj = SWIG_Py_Void();
11042 return resultobj;
11043 fail:
11044 return NULL;
11045 }
11046
11047
11048 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11049 PyObject *resultobj = 0;
11050 wxCursor *arg1 = (wxCursor *) 0 ;
11051 wxSize *arg2 = 0 ;
11052 void *argp1 = 0 ;
11053 int res1 = 0 ;
11054 wxSize temp2 ;
11055 PyObject * obj0 = 0 ;
11056 PyObject * obj1 = 0 ;
11057 char * kwnames[] = {
11058 (char *) "self",(char *) "size", NULL
11059 };
11060
11061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
11062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
11063 if (!SWIG_IsOK(res1)) {
11064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
11065 }
11066 arg1 = reinterpret_cast< wxCursor * >(argp1);
11067 {
11068 arg2 = &temp2;
11069 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
11070 }
11071 {
11072 PyThreadState* __tstate = wxPyBeginAllowThreads();
11073 (arg1)->SetSize((wxSize const &)*arg2);
11074 wxPyEndAllowThreads(__tstate);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 }
11077 resultobj = SWIG_Py_Void();
11078 return resultobj;
11079 fail:
11080 return NULL;
11081 }
11082
11083
11084 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11085 PyObject *obj;
11086 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11087 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
11088 return SWIG_Py_Void();
11089 }
11090
11091 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11092 return SWIG_Python_InitShadowInstance(args);
11093 }
11094
11095 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11096 PyObject *resultobj = 0;
11097 int arg1 = (int) 0 ;
11098 int arg2 = (int) 0 ;
11099 int arg3 = (int) 0 ;
11100 int arg4 = (int) 0 ;
11101 wxRegion *result = 0 ;
11102 int val1 ;
11103 int ecode1 = 0 ;
11104 int val2 ;
11105 int ecode2 = 0 ;
11106 int val3 ;
11107 int ecode3 = 0 ;
11108 int val4 ;
11109 int ecode4 = 0 ;
11110 PyObject * obj0 = 0 ;
11111 PyObject * obj1 = 0 ;
11112 PyObject * obj2 = 0 ;
11113 PyObject * obj3 = 0 ;
11114 char * kwnames[] = {
11115 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11116 };
11117
11118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11119 if (obj0) {
11120 ecode1 = SWIG_AsVal_int(obj0, &val1);
11121 if (!SWIG_IsOK(ecode1)) {
11122 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
11123 }
11124 arg1 = static_cast< int >(val1);
11125 }
11126 if (obj1) {
11127 ecode2 = SWIG_AsVal_int(obj1, &val2);
11128 if (!SWIG_IsOK(ecode2)) {
11129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
11130 }
11131 arg2 = static_cast< int >(val2);
11132 }
11133 if (obj2) {
11134 ecode3 = SWIG_AsVal_int(obj2, &val3);
11135 if (!SWIG_IsOK(ecode3)) {
11136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
11137 }
11138 arg3 = static_cast< int >(val3);
11139 }
11140 if (obj3) {
11141 ecode4 = SWIG_AsVal_int(obj3, &val4);
11142 if (!SWIG_IsOK(ecode4)) {
11143 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
11144 }
11145 arg4 = static_cast< int >(val4);
11146 }
11147 {
11148 if (!wxPyCheckForApp()) SWIG_fail;
11149 PyThreadState* __tstate = wxPyBeginAllowThreads();
11150 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
11151 wxPyEndAllowThreads(__tstate);
11152 if (PyErr_Occurred()) SWIG_fail;
11153 }
11154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
11155 return resultobj;
11156 fail:
11157 return NULL;
11158 }
11159
11160
11161 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11162 PyObject *resultobj = 0;
11163 wxBitmap *arg1 = 0 ;
11164 wxRegion *result = 0 ;
11165 void *argp1 = 0 ;
11166 int res1 = 0 ;
11167 PyObject * obj0 = 0 ;
11168 char * kwnames[] = {
11169 (char *) "bmp", NULL
11170 };
11171
11172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
11173 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11174 if (!SWIG_IsOK(res1)) {
11175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11176 }
11177 if (!argp1) {
11178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11179 }
11180 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11181 {
11182 if (!wxPyCheckForApp()) SWIG_fail;
11183 PyThreadState* __tstate = wxPyBeginAllowThreads();
11184 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
11185 wxPyEndAllowThreads(__tstate);
11186 if (PyErr_Occurred()) SWIG_fail;
11187 }
11188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11189 return resultobj;
11190 fail:
11191 return NULL;
11192 }
11193
11194
11195 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11196 PyObject *resultobj = 0;
11197 wxBitmap *arg1 = 0 ;
11198 wxColour *arg2 = 0 ;
11199 int arg3 = (int) 0 ;
11200 wxRegion *result = 0 ;
11201 void *argp1 = 0 ;
11202 int res1 = 0 ;
11203 wxColour temp2 ;
11204 int val3 ;
11205 int ecode3 = 0 ;
11206 PyObject * obj0 = 0 ;
11207 PyObject * obj1 = 0 ;
11208 PyObject * obj2 = 0 ;
11209 char * kwnames[] = {
11210 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11211 };
11212
11213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11214 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11215 if (!SWIG_IsOK(res1)) {
11216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11217 }
11218 if (!argp1) {
11219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11220 }
11221 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11222 {
11223 arg2 = &temp2;
11224 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11225 }
11226 if (obj2) {
11227 ecode3 = SWIG_AsVal_int(obj2, &val3);
11228 if (!SWIG_IsOK(ecode3)) {
11229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
11230 }
11231 arg3 = static_cast< int >(val3);
11232 }
11233 {
11234 if (!wxPyCheckForApp()) SWIG_fail;
11235 PyThreadState* __tstate = wxPyBeginAllowThreads();
11236 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
11237 wxPyEndAllowThreads(__tstate);
11238 if (PyErr_Occurred()) SWIG_fail;
11239 }
11240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11241 return resultobj;
11242 fail:
11243 return NULL;
11244 }
11245
11246
11247 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11248 PyObject *resultobj = 0;
11249 int arg1 ;
11250 wxPoint *arg2 = (wxPoint *) 0 ;
11251 int arg3 = (int) wxWINDING_RULE ;
11252 wxRegion *result = 0 ;
11253 int val3 ;
11254 int ecode3 = 0 ;
11255 PyObject * obj0 = 0 ;
11256 PyObject * obj1 = 0 ;
11257 char * kwnames[] = {
11258 (char *) "points",(char *) "fillStyle", NULL
11259 };
11260
11261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
11262 {
11263 arg2 = wxPoint_LIST_helper(obj0, &arg1);
11264 if (arg2 == NULL) SWIG_fail;
11265 }
11266 if (obj1) {
11267 ecode3 = SWIG_AsVal_int(obj1, &val3);
11268 if (!SWIG_IsOK(ecode3)) {
11269 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
11270 }
11271 arg3 = static_cast< int >(val3);
11272 }
11273 {
11274 if (!wxPyCheckForApp()) SWIG_fail;
11275 PyThreadState* __tstate = wxPyBeginAllowThreads();
11276 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
11277 wxPyEndAllowThreads(__tstate);
11278 if (PyErr_Occurred()) SWIG_fail;
11279 }
11280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11281 {
11282 if (arg2) delete [] arg2;
11283 }
11284 return resultobj;
11285 fail:
11286 {
11287 if (arg2) delete [] arg2;
11288 }
11289 return NULL;
11290 }
11291
11292
11293 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11294 PyObject *resultobj = 0;
11295 wxRegion *arg1 = (wxRegion *) 0 ;
11296 void *argp1 = 0 ;
11297 int res1 = 0 ;
11298 PyObject *swig_obj[1] ;
11299
11300 if (!args) SWIG_fail;
11301 swig_obj[0] = args;
11302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
11303 if (!SWIG_IsOK(res1)) {
11304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
11305 }
11306 arg1 = reinterpret_cast< wxRegion * >(argp1);
11307 {
11308 PyThreadState* __tstate = wxPyBeginAllowThreads();
11309 delete arg1;
11310
11311 wxPyEndAllowThreads(__tstate);
11312 if (PyErr_Occurred()) SWIG_fail;
11313 }
11314 resultobj = SWIG_Py_Void();
11315 return resultobj;
11316 fail:
11317 return NULL;
11318 }
11319
11320
11321 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11322 PyObject *resultobj = 0;
11323 wxRegion *arg1 = (wxRegion *) 0 ;
11324 void *argp1 = 0 ;
11325 int res1 = 0 ;
11326 PyObject *swig_obj[1] ;
11327
11328 if (!args) SWIG_fail;
11329 swig_obj[0] = args;
11330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11331 if (!SWIG_IsOK(res1)) {
11332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
11333 }
11334 arg1 = reinterpret_cast< wxRegion * >(argp1);
11335 {
11336 PyThreadState* __tstate = wxPyBeginAllowThreads();
11337 (arg1)->Clear();
11338 wxPyEndAllowThreads(__tstate);
11339 if (PyErr_Occurred()) SWIG_fail;
11340 }
11341 resultobj = SWIG_Py_Void();
11342 return resultobj;
11343 fail:
11344 return NULL;
11345 }
11346
11347
11348 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11349 PyObject *resultobj = 0;
11350 wxRegion *arg1 = (wxRegion *) 0 ;
11351 int arg2 ;
11352 int arg3 ;
11353 bool result;
11354 void *argp1 = 0 ;
11355 int res1 = 0 ;
11356 int val2 ;
11357 int ecode2 = 0 ;
11358 int val3 ;
11359 int ecode3 = 0 ;
11360 PyObject * obj0 = 0 ;
11361 PyObject * obj1 = 0 ;
11362 PyObject * obj2 = 0 ;
11363 char * kwnames[] = {
11364 (char *) "self",(char *) "x",(char *) "y", NULL
11365 };
11366
11367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11369 if (!SWIG_IsOK(res1)) {
11370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
11371 }
11372 arg1 = reinterpret_cast< wxRegion * >(argp1);
11373 ecode2 = SWIG_AsVal_int(obj1, &val2);
11374 if (!SWIG_IsOK(ecode2)) {
11375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
11376 }
11377 arg2 = static_cast< int >(val2);
11378 ecode3 = SWIG_AsVal_int(obj2, &val3);
11379 if (!SWIG_IsOK(ecode3)) {
11380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
11381 }
11382 arg3 = static_cast< int >(val3);
11383 {
11384 PyThreadState* __tstate = wxPyBeginAllowThreads();
11385 result = (bool)(arg1)->Offset(arg2,arg3);
11386 wxPyEndAllowThreads(__tstate);
11387 if (PyErr_Occurred()) SWIG_fail;
11388 }
11389 {
11390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11391 }
11392 return resultobj;
11393 fail:
11394 return NULL;
11395 }
11396
11397
11398 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11399 PyObject *resultobj = 0;
11400 wxRegion *arg1 = (wxRegion *) 0 ;
11401 int arg2 ;
11402 int arg3 ;
11403 wxRegionContain result;
11404 void *argp1 = 0 ;
11405 int res1 = 0 ;
11406 int val2 ;
11407 int ecode2 = 0 ;
11408 int val3 ;
11409 int ecode3 = 0 ;
11410 PyObject * obj0 = 0 ;
11411 PyObject * obj1 = 0 ;
11412 PyObject * obj2 = 0 ;
11413 char * kwnames[] = {
11414 (char *) "self",(char *) "x",(char *) "y", NULL
11415 };
11416
11417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11419 if (!SWIG_IsOK(res1)) {
11420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
11421 }
11422 arg1 = reinterpret_cast< wxRegion * >(argp1);
11423 ecode2 = SWIG_AsVal_int(obj1, &val2);
11424 if (!SWIG_IsOK(ecode2)) {
11425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
11426 }
11427 arg2 = static_cast< int >(val2);
11428 ecode3 = SWIG_AsVal_int(obj2, &val3);
11429 if (!SWIG_IsOK(ecode3)) {
11430 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
11431 }
11432 arg3 = static_cast< int >(val3);
11433 {
11434 PyThreadState* __tstate = wxPyBeginAllowThreads();
11435 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
11436 wxPyEndAllowThreads(__tstate);
11437 if (PyErr_Occurred()) SWIG_fail;
11438 }
11439 resultobj = SWIG_From_int(static_cast< int >(result));
11440 return resultobj;
11441 fail:
11442 return NULL;
11443 }
11444
11445
11446 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11447 PyObject *resultobj = 0;
11448 wxRegion *arg1 = (wxRegion *) 0 ;
11449 wxPoint *arg2 = 0 ;
11450 wxRegionContain result;
11451 void *argp1 = 0 ;
11452 int res1 = 0 ;
11453 wxPoint temp2 ;
11454 PyObject * obj0 = 0 ;
11455 PyObject * obj1 = 0 ;
11456 char * kwnames[] = {
11457 (char *) "self",(char *) "pt", NULL
11458 };
11459
11460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
11461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11462 if (!SWIG_IsOK(res1)) {
11463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
11464 }
11465 arg1 = reinterpret_cast< wxRegion * >(argp1);
11466 {
11467 arg2 = &temp2;
11468 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11469 }
11470 {
11471 PyThreadState* __tstate = wxPyBeginAllowThreads();
11472 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
11473 wxPyEndAllowThreads(__tstate);
11474 if (PyErr_Occurred()) SWIG_fail;
11475 }
11476 resultobj = SWIG_From_int(static_cast< int >(result));
11477 return resultobj;
11478 fail:
11479 return NULL;
11480 }
11481
11482
11483 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11484 PyObject *resultobj = 0;
11485 wxRegion *arg1 = (wxRegion *) 0 ;
11486 wxRect *arg2 = 0 ;
11487 wxRegionContain result;
11488 void *argp1 = 0 ;
11489 int res1 = 0 ;
11490 wxRect temp2 ;
11491 PyObject * obj0 = 0 ;
11492 PyObject * obj1 = 0 ;
11493 char * kwnames[] = {
11494 (char *) "self",(char *) "rect", NULL
11495 };
11496
11497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
11498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11499 if (!SWIG_IsOK(res1)) {
11500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11501 }
11502 arg1 = reinterpret_cast< wxRegion * >(argp1);
11503 {
11504 arg2 = &temp2;
11505 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11506 }
11507 {
11508 PyThreadState* __tstate = wxPyBeginAllowThreads();
11509 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11510 wxPyEndAllowThreads(__tstate);
11511 if (PyErr_Occurred()) SWIG_fail;
11512 }
11513 resultobj = SWIG_From_int(static_cast< int >(result));
11514 return resultobj;
11515 fail:
11516 return NULL;
11517 }
11518
11519
11520 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11521 PyObject *resultobj = 0;
11522 wxRegion *arg1 = (wxRegion *) 0 ;
11523 int arg2 ;
11524 int arg3 ;
11525 int arg4 ;
11526 int arg5 ;
11527 wxRegionContain result;
11528 void *argp1 = 0 ;
11529 int res1 = 0 ;
11530 int val2 ;
11531 int ecode2 = 0 ;
11532 int val3 ;
11533 int ecode3 = 0 ;
11534 int val4 ;
11535 int ecode4 = 0 ;
11536 int val5 ;
11537 int ecode5 = 0 ;
11538 PyObject * obj0 = 0 ;
11539 PyObject * obj1 = 0 ;
11540 PyObject * obj2 = 0 ;
11541 PyObject * obj3 = 0 ;
11542 PyObject * obj4 = 0 ;
11543 char * kwnames[] = {
11544 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11545 };
11546
11547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11549 if (!SWIG_IsOK(res1)) {
11550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11551 }
11552 arg1 = reinterpret_cast< wxRegion * >(argp1);
11553 ecode2 = SWIG_AsVal_int(obj1, &val2);
11554 if (!SWIG_IsOK(ecode2)) {
11555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11556 }
11557 arg2 = static_cast< int >(val2);
11558 ecode3 = SWIG_AsVal_int(obj2, &val3);
11559 if (!SWIG_IsOK(ecode3)) {
11560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11561 }
11562 arg3 = static_cast< int >(val3);
11563 ecode4 = SWIG_AsVal_int(obj3, &val4);
11564 if (!SWIG_IsOK(ecode4)) {
11565 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11566 }
11567 arg4 = static_cast< int >(val4);
11568 ecode5 = SWIG_AsVal_int(obj4, &val5);
11569 if (!SWIG_IsOK(ecode5)) {
11570 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11571 }
11572 arg5 = static_cast< int >(val5);
11573 {
11574 PyThreadState* __tstate = wxPyBeginAllowThreads();
11575 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11576 wxPyEndAllowThreads(__tstate);
11577 if (PyErr_Occurred()) SWIG_fail;
11578 }
11579 resultobj = SWIG_From_int(static_cast< int >(result));
11580 return resultobj;
11581 fail:
11582 return NULL;
11583 }
11584
11585
11586 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11587 PyObject *resultobj = 0;
11588 wxRegion *arg1 = (wxRegion *) 0 ;
11589 wxRect result;
11590 void *argp1 = 0 ;
11591 int res1 = 0 ;
11592 PyObject *swig_obj[1] ;
11593
11594 if (!args) SWIG_fail;
11595 swig_obj[0] = args;
11596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11597 if (!SWIG_IsOK(res1)) {
11598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11599 }
11600 arg1 = reinterpret_cast< wxRegion * >(argp1);
11601 {
11602 PyThreadState* __tstate = wxPyBeginAllowThreads();
11603 result = (arg1)->GetBox();
11604 wxPyEndAllowThreads(__tstate);
11605 if (PyErr_Occurred()) SWIG_fail;
11606 }
11607 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11608 return resultobj;
11609 fail:
11610 return NULL;
11611 }
11612
11613
11614 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11615 PyObject *resultobj = 0;
11616 wxRegion *arg1 = (wxRegion *) 0 ;
11617 int arg2 ;
11618 int arg3 ;
11619 int arg4 ;
11620 int arg5 ;
11621 bool result;
11622 void *argp1 = 0 ;
11623 int res1 = 0 ;
11624 int val2 ;
11625 int ecode2 = 0 ;
11626 int val3 ;
11627 int ecode3 = 0 ;
11628 int val4 ;
11629 int ecode4 = 0 ;
11630 int val5 ;
11631 int ecode5 = 0 ;
11632 PyObject * obj0 = 0 ;
11633 PyObject * obj1 = 0 ;
11634 PyObject * obj2 = 0 ;
11635 PyObject * obj3 = 0 ;
11636 PyObject * obj4 = 0 ;
11637 char * kwnames[] = {
11638 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11639 };
11640
11641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11643 if (!SWIG_IsOK(res1)) {
11644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11645 }
11646 arg1 = reinterpret_cast< wxRegion * >(argp1);
11647 ecode2 = SWIG_AsVal_int(obj1, &val2);
11648 if (!SWIG_IsOK(ecode2)) {
11649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11650 }
11651 arg2 = static_cast< int >(val2);
11652 ecode3 = SWIG_AsVal_int(obj2, &val3);
11653 if (!SWIG_IsOK(ecode3)) {
11654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11655 }
11656 arg3 = static_cast< int >(val3);
11657 ecode4 = SWIG_AsVal_int(obj3, &val4);
11658 if (!SWIG_IsOK(ecode4)) {
11659 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11660 }
11661 arg4 = static_cast< int >(val4);
11662 ecode5 = SWIG_AsVal_int(obj4, &val5);
11663 if (!SWIG_IsOK(ecode5)) {
11664 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11665 }
11666 arg5 = static_cast< int >(val5);
11667 {
11668 PyThreadState* __tstate = wxPyBeginAllowThreads();
11669 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11670 wxPyEndAllowThreads(__tstate);
11671 if (PyErr_Occurred()) SWIG_fail;
11672 }
11673 {
11674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11675 }
11676 return resultobj;
11677 fail:
11678 return NULL;
11679 }
11680
11681
11682 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11683 PyObject *resultobj = 0;
11684 wxRegion *arg1 = (wxRegion *) 0 ;
11685 wxRect *arg2 = 0 ;
11686 bool result;
11687 void *argp1 = 0 ;
11688 int res1 = 0 ;
11689 wxRect temp2 ;
11690 PyObject * obj0 = 0 ;
11691 PyObject * obj1 = 0 ;
11692 char * kwnames[] = {
11693 (char *) "self",(char *) "rect", NULL
11694 };
11695
11696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11698 if (!SWIG_IsOK(res1)) {
11699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11700 }
11701 arg1 = reinterpret_cast< wxRegion * >(argp1);
11702 {
11703 arg2 = &temp2;
11704 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11705 }
11706 {
11707 PyThreadState* __tstate = wxPyBeginAllowThreads();
11708 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11709 wxPyEndAllowThreads(__tstate);
11710 if (PyErr_Occurred()) SWIG_fail;
11711 }
11712 {
11713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11714 }
11715 return resultobj;
11716 fail:
11717 return NULL;
11718 }
11719
11720
11721 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11722 PyObject *resultobj = 0;
11723 wxRegion *arg1 = (wxRegion *) 0 ;
11724 wxRegion *arg2 = 0 ;
11725 bool result;
11726 void *argp1 = 0 ;
11727 int res1 = 0 ;
11728 void *argp2 = 0 ;
11729 int res2 = 0 ;
11730 PyObject * obj0 = 0 ;
11731 PyObject * obj1 = 0 ;
11732 char * kwnames[] = {
11733 (char *) "self",(char *) "region", NULL
11734 };
11735
11736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11738 if (!SWIG_IsOK(res1)) {
11739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11740 }
11741 arg1 = reinterpret_cast< wxRegion * >(argp1);
11742 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11743 if (!SWIG_IsOK(res2)) {
11744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11745 }
11746 if (!argp2) {
11747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11748 }
11749 arg2 = reinterpret_cast< wxRegion * >(argp2);
11750 {
11751 PyThreadState* __tstate = wxPyBeginAllowThreads();
11752 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11753 wxPyEndAllowThreads(__tstate);
11754 if (PyErr_Occurred()) SWIG_fail;
11755 }
11756 {
11757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11758 }
11759 return resultobj;
11760 fail:
11761 return NULL;
11762 }
11763
11764
11765 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11766 PyObject *resultobj = 0;
11767 wxRegion *arg1 = (wxRegion *) 0 ;
11768 bool result;
11769 void *argp1 = 0 ;
11770 int res1 = 0 ;
11771 PyObject *swig_obj[1] ;
11772
11773 if (!args) SWIG_fail;
11774 swig_obj[0] = args;
11775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11776 if (!SWIG_IsOK(res1)) {
11777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11778 }
11779 arg1 = reinterpret_cast< wxRegion * >(argp1);
11780 {
11781 PyThreadState* __tstate = wxPyBeginAllowThreads();
11782 result = (bool)(arg1)->IsEmpty();
11783 wxPyEndAllowThreads(__tstate);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 }
11786 {
11787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11788 }
11789 return resultobj;
11790 fail:
11791 return NULL;
11792 }
11793
11794
11795 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11796 PyObject *resultobj = 0;
11797 wxRegion *arg1 = (wxRegion *) 0 ;
11798 wxRegion *arg2 = 0 ;
11799 bool result;
11800 void *argp1 = 0 ;
11801 int res1 = 0 ;
11802 void *argp2 = 0 ;
11803 int res2 = 0 ;
11804 PyObject * obj0 = 0 ;
11805 PyObject * obj1 = 0 ;
11806 char * kwnames[] = {
11807 (char *) "self",(char *) "region", NULL
11808 };
11809
11810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11812 if (!SWIG_IsOK(res1)) {
11813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11814 }
11815 arg1 = reinterpret_cast< wxRegion * >(argp1);
11816 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11817 if (!SWIG_IsOK(res2)) {
11818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11819 }
11820 if (!argp2) {
11821 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11822 }
11823 arg2 = reinterpret_cast< wxRegion * >(argp2);
11824 {
11825 PyThreadState* __tstate = wxPyBeginAllowThreads();
11826 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11827 wxPyEndAllowThreads(__tstate);
11828 if (PyErr_Occurred()) SWIG_fail;
11829 }
11830 {
11831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11832 }
11833 return resultobj;
11834 fail:
11835 return NULL;
11836 }
11837
11838
11839 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11840 PyObject *resultobj = 0;
11841 wxRegion *arg1 = (wxRegion *) 0 ;
11842 int arg2 ;
11843 int arg3 ;
11844 int arg4 ;
11845 int arg5 ;
11846 bool result;
11847 void *argp1 = 0 ;
11848 int res1 = 0 ;
11849 int val2 ;
11850 int ecode2 = 0 ;
11851 int val3 ;
11852 int ecode3 = 0 ;
11853 int val4 ;
11854 int ecode4 = 0 ;
11855 int val5 ;
11856 int ecode5 = 0 ;
11857 PyObject * obj0 = 0 ;
11858 PyObject * obj1 = 0 ;
11859 PyObject * obj2 = 0 ;
11860 PyObject * obj3 = 0 ;
11861 PyObject * obj4 = 0 ;
11862 char * kwnames[] = {
11863 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11864 };
11865
11866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11868 if (!SWIG_IsOK(res1)) {
11869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11870 }
11871 arg1 = reinterpret_cast< wxRegion * >(argp1);
11872 ecode2 = SWIG_AsVal_int(obj1, &val2);
11873 if (!SWIG_IsOK(ecode2)) {
11874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11875 }
11876 arg2 = static_cast< int >(val2);
11877 ecode3 = SWIG_AsVal_int(obj2, &val3);
11878 if (!SWIG_IsOK(ecode3)) {
11879 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11880 }
11881 arg3 = static_cast< int >(val3);
11882 ecode4 = SWIG_AsVal_int(obj3, &val4);
11883 if (!SWIG_IsOK(ecode4)) {
11884 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11885 }
11886 arg4 = static_cast< int >(val4);
11887 ecode5 = SWIG_AsVal_int(obj4, &val5);
11888 if (!SWIG_IsOK(ecode5)) {
11889 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11890 }
11891 arg5 = static_cast< int >(val5);
11892 {
11893 PyThreadState* __tstate = wxPyBeginAllowThreads();
11894 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11895 wxPyEndAllowThreads(__tstate);
11896 if (PyErr_Occurred()) SWIG_fail;
11897 }
11898 {
11899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11900 }
11901 return resultobj;
11902 fail:
11903 return NULL;
11904 }
11905
11906
11907 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11908 PyObject *resultobj = 0;
11909 wxRegion *arg1 = (wxRegion *) 0 ;
11910 wxRect *arg2 = 0 ;
11911 bool result;
11912 void *argp1 = 0 ;
11913 int res1 = 0 ;
11914 wxRect temp2 ;
11915 PyObject * obj0 = 0 ;
11916 PyObject * obj1 = 0 ;
11917 char * kwnames[] = {
11918 (char *) "self",(char *) "rect", NULL
11919 };
11920
11921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11923 if (!SWIG_IsOK(res1)) {
11924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11925 }
11926 arg1 = reinterpret_cast< wxRegion * >(argp1);
11927 {
11928 arg2 = &temp2;
11929 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11930 }
11931 {
11932 PyThreadState* __tstate = wxPyBeginAllowThreads();
11933 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11934 wxPyEndAllowThreads(__tstate);
11935 if (PyErr_Occurred()) SWIG_fail;
11936 }
11937 {
11938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11939 }
11940 return resultobj;
11941 fail:
11942 return NULL;
11943 }
11944
11945
11946 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11947 PyObject *resultobj = 0;
11948 wxRegion *arg1 = (wxRegion *) 0 ;
11949 wxRegion *arg2 = 0 ;
11950 bool result;
11951 void *argp1 = 0 ;
11952 int res1 = 0 ;
11953 void *argp2 = 0 ;
11954 int res2 = 0 ;
11955 PyObject * obj0 = 0 ;
11956 PyObject * obj1 = 0 ;
11957 char * kwnames[] = {
11958 (char *) "self",(char *) "region", NULL
11959 };
11960
11961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11963 if (!SWIG_IsOK(res1)) {
11964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11965 }
11966 arg1 = reinterpret_cast< wxRegion * >(argp1);
11967 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11968 if (!SWIG_IsOK(res2)) {
11969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11970 }
11971 if (!argp2) {
11972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11973 }
11974 arg2 = reinterpret_cast< wxRegion * >(argp2);
11975 {
11976 PyThreadState* __tstate = wxPyBeginAllowThreads();
11977 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11978 wxPyEndAllowThreads(__tstate);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 {
11982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11983 }
11984 return resultobj;
11985 fail:
11986 return NULL;
11987 }
11988
11989
11990 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11991 PyObject *resultobj = 0;
11992 wxRegion *arg1 = (wxRegion *) 0 ;
11993 int arg2 ;
11994 int arg3 ;
11995 int arg4 ;
11996 int arg5 ;
11997 bool result;
11998 void *argp1 = 0 ;
11999 int res1 = 0 ;
12000 int val2 ;
12001 int ecode2 = 0 ;
12002 int val3 ;
12003 int ecode3 = 0 ;
12004 int val4 ;
12005 int ecode4 = 0 ;
12006 int val5 ;
12007 int ecode5 = 0 ;
12008 PyObject * obj0 = 0 ;
12009 PyObject * obj1 = 0 ;
12010 PyObject * obj2 = 0 ;
12011 PyObject * obj3 = 0 ;
12012 PyObject * obj4 = 0 ;
12013 char * kwnames[] = {
12014 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12015 };
12016
12017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12019 if (!SWIG_IsOK(res1)) {
12020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
12021 }
12022 arg1 = reinterpret_cast< wxRegion * >(argp1);
12023 ecode2 = SWIG_AsVal_int(obj1, &val2);
12024 if (!SWIG_IsOK(ecode2)) {
12025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
12026 }
12027 arg2 = static_cast< int >(val2);
12028 ecode3 = SWIG_AsVal_int(obj2, &val3);
12029 if (!SWIG_IsOK(ecode3)) {
12030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
12031 }
12032 arg3 = static_cast< int >(val3);
12033 ecode4 = SWIG_AsVal_int(obj3, &val4);
12034 if (!SWIG_IsOK(ecode4)) {
12035 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
12036 }
12037 arg4 = static_cast< int >(val4);
12038 ecode5 = SWIG_AsVal_int(obj4, &val5);
12039 if (!SWIG_IsOK(ecode5)) {
12040 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
12041 }
12042 arg5 = static_cast< int >(val5);
12043 {
12044 PyThreadState* __tstate = wxPyBeginAllowThreads();
12045 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
12046 wxPyEndAllowThreads(__tstate);
12047 if (PyErr_Occurred()) SWIG_fail;
12048 }
12049 {
12050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12051 }
12052 return resultobj;
12053 fail:
12054 return NULL;
12055 }
12056
12057
12058 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12059 PyObject *resultobj = 0;
12060 wxRegion *arg1 = (wxRegion *) 0 ;
12061 wxRect *arg2 = 0 ;
12062 bool result;
12063 void *argp1 = 0 ;
12064 int res1 = 0 ;
12065 wxRect temp2 ;
12066 PyObject * obj0 = 0 ;
12067 PyObject * obj1 = 0 ;
12068 char * kwnames[] = {
12069 (char *) "self",(char *) "rect", NULL
12070 };
12071
12072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
12073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12074 if (!SWIG_IsOK(res1)) {
12075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
12076 }
12077 arg1 = reinterpret_cast< wxRegion * >(argp1);
12078 {
12079 arg2 = &temp2;
12080 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12081 }
12082 {
12083 PyThreadState* __tstate = wxPyBeginAllowThreads();
12084 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
12085 wxPyEndAllowThreads(__tstate);
12086 if (PyErr_Occurred()) SWIG_fail;
12087 }
12088 {
12089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12090 }
12091 return resultobj;
12092 fail:
12093 return NULL;
12094 }
12095
12096
12097 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12098 PyObject *resultobj = 0;
12099 wxRegion *arg1 = (wxRegion *) 0 ;
12100 wxRegion *arg2 = 0 ;
12101 bool result;
12102 void *argp1 = 0 ;
12103 int res1 = 0 ;
12104 void *argp2 = 0 ;
12105 int res2 = 0 ;
12106 PyObject * obj0 = 0 ;
12107 PyObject * obj1 = 0 ;
12108 char * kwnames[] = {
12109 (char *) "self",(char *) "region", NULL
12110 };
12111
12112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
12113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12114 if (!SWIG_IsOK(res1)) {
12115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
12116 }
12117 arg1 = reinterpret_cast< wxRegion * >(argp1);
12118 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
12119 if (!SWIG_IsOK(res2)) {
12120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12121 }
12122 if (!argp2) {
12123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12124 }
12125 arg2 = reinterpret_cast< wxRegion * >(argp2);
12126 {
12127 PyThreadState* __tstate = wxPyBeginAllowThreads();
12128 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
12129 wxPyEndAllowThreads(__tstate);
12130 if (PyErr_Occurred()) SWIG_fail;
12131 }
12132 {
12133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12134 }
12135 return resultobj;
12136 fail:
12137 return NULL;
12138 }
12139
12140
12141 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12142 PyObject *resultobj = 0;
12143 wxRegion *arg1 = (wxRegion *) 0 ;
12144 int arg2 ;
12145 int arg3 ;
12146 int arg4 ;
12147 int arg5 ;
12148 bool result;
12149 void *argp1 = 0 ;
12150 int res1 = 0 ;
12151 int val2 ;
12152 int ecode2 = 0 ;
12153 int val3 ;
12154 int ecode3 = 0 ;
12155 int val4 ;
12156 int ecode4 = 0 ;
12157 int val5 ;
12158 int ecode5 = 0 ;
12159 PyObject * obj0 = 0 ;
12160 PyObject * obj1 = 0 ;
12161 PyObject * obj2 = 0 ;
12162 PyObject * obj3 = 0 ;
12163 PyObject * obj4 = 0 ;
12164 char * kwnames[] = {
12165 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12166 };
12167
12168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12170 if (!SWIG_IsOK(res1)) {
12171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
12172 }
12173 arg1 = reinterpret_cast< wxRegion * >(argp1);
12174 ecode2 = SWIG_AsVal_int(obj1, &val2);
12175 if (!SWIG_IsOK(ecode2)) {
12176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
12177 }
12178 arg2 = static_cast< int >(val2);
12179 ecode3 = SWIG_AsVal_int(obj2, &val3);
12180 if (!SWIG_IsOK(ecode3)) {
12181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
12182 }
12183 arg3 = static_cast< int >(val3);
12184 ecode4 = SWIG_AsVal_int(obj3, &val4);
12185 if (!SWIG_IsOK(ecode4)) {
12186 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
12187 }
12188 arg4 = static_cast< int >(val4);
12189 ecode5 = SWIG_AsVal_int(obj4, &val5);
12190 if (!SWIG_IsOK(ecode5)) {
12191 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
12192 }
12193 arg5 = static_cast< int >(val5);
12194 {
12195 PyThreadState* __tstate = wxPyBeginAllowThreads();
12196 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
12197 wxPyEndAllowThreads(__tstate);
12198 if (PyErr_Occurred()) SWIG_fail;
12199 }
12200 {
12201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12202 }
12203 return resultobj;
12204 fail:
12205 return NULL;
12206 }
12207
12208
12209 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12210 PyObject *resultobj = 0;
12211 wxRegion *arg1 = (wxRegion *) 0 ;
12212 wxRect *arg2 = 0 ;
12213 bool result;
12214 void *argp1 = 0 ;
12215 int res1 = 0 ;
12216 wxRect temp2 ;
12217 PyObject * obj0 = 0 ;
12218 PyObject * obj1 = 0 ;
12219 char * kwnames[] = {
12220 (char *) "self",(char *) "rect", NULL
12221 };
12222
12223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
12224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12225 if (!SWIG_IsOK(res1)) {
12226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
12227 }
12228 arg1 = reinterpret_cast< wxRegion * >(argp1);
12229 {
12230 arg2 = &temp2;
12231 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12232 }
12233 {
12234 PyThreadState* __tstate = wxPyBeginAllowThreads();
12235 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
12236 wxPyEndAllowThreads(__tstate);
12237 if (PyErr_Occurred()) SWIG_fail;
12238 }
12239 {
12240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12241 }
12242 return resultobj;
12243 fail:
12244 return NULL;
12245 }
12246
12247
12248 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12249 PyObject *resultobj = 0;
12250 wxRegion *arg1 = (wxRegion *) 0 ;
12251 wxRegion *arg2 = 0 ;
12252 bool result;
12253 void *argp1 = 0 ;
12254 int res1 = 0 ;
12255 void *argp2 = 0 ;
12256 int res2 = 0 ;
12257 PyObject * obj0 = 0 ;
12258 PyObject * obj1 = 0 ;
12259 char * kwnames[] = {
12260 (char *) "self",(char *) "region", NULL
12261 };
12262
12263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
12264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12265 if (!SWIG_IsOK(res1)) {
12266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
12267 }
12268 arg1 = reinterpret_cast< wxRegion * >(argp1);
12269 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
12270 if (!SWIG_IsOK(res2)) {
12271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12272 }
12273 if (!argp2) {
12274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12275 }
12276 arg2 = reinterpret_cast< wxRegion * >(argp2);
12277 {
12278 PyThreadState* __tstate = wxPyBeginAllowThreads();
12279 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
12280 wxPyEndAllowThreads(__tstate);
12281 if (PyErr_Occurred()) SWIG_fail;
12282 }
12283 {
12284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12285 }
12286 return resultobj;
12287 fail:
12288 return NULL;
12289 }
12290
12291
12292 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12293 PyObject *resultobj = 0;
12294 wxRegion *arg1 = (wxRegion *) 0 ;
12295 SwigValueWrapper<wxBitmap > result;
12296 void *argp1 = 0 ;
12297 int res1 = 0 ;
12298 PyObject *swig_obj[1] ;
12299
12300 if (!args) SWIG_fail;
12301 swig_obj[0] = args;
12302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12303 if (!SWIG_IsOK(res1)) {
12304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12305 }
12306 arg1 = reinterpret_cast< wxRegion * >(argp1);
12307 {
12308 PyThreadState* __tstate = wxPyBeginAllowThreads();
12309 result = (arg1)->ConvertToBitmap();
12310 wxPyEndAllowThreads(__tstate);
12311 if (PyErr_Occurred()) SWIG_fail;
12312 }
12313 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
12314 return resultobj;
12315 fail:
12316 return NULL;
12317 }
12318
12319
12320 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12321 PyObject *resultobj = 0;
12322 wxRegion *arg1 = (wxRegion *) 0 ;
12323 wxBitmap *arg2 = 0 ;
12324 bool result;
12325 void *argp1 = 0 ;
12326 int res1 = 0 ;
12327 void *argp2 = 0 ;
12328 int res2 = 0 ;
12329 PyObject * obj0 = 0 ;
12330 PyObject * obj1 = 0 ;
12331 char * kwnames[] = {
12332 (char *) "self",(char *) "bmp", NULL
12333 };
12334
12335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
12336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12337 if (!SWIG_IsOK(res1)) {
12338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12339 }
12340 arg1 = reinterpret_cast< wxRegion * >(argp1);
12341 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12342 if (!SWIG_IsOK(res2)) {
12343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12344 }
12345 if (!argp2) {
12346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12347 }
12348 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12349 {
12350 PyThreadState* __tstate = wxPyBeginAllowThreads();
12351 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
12352 wxPyEndAllowThreads(__tstate);
12353 if (PyErr_Occurred()) SWIG_fail;
12354 }
12355 {
12356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12357 }
12358 return resultobj;
12359 fail:
12360 return NULL;
12361 }
12362
12363
12364 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12365 PyObject *resultobj = 0;
12366 wxRegion *arg1 = (wxRegion *) 0 ;
12367 wxBitmap *arg2 = 0 ;
12368 wxColour *arg3 = 0 ;
12369 int arg4 = (int) 0 ;
12370 bool result;
12371 void *argp1 = 0 ;
12372 int res1 = 0 ;
12373 void *argp2 = 0 ;
12374 int res2 = 0 ;
12375 wxColour temp3 ;
12376 int val4 ;
12377 int ecode4 = 0 ;
12378 PyObject * obj0 = 0 ;
12379 PyObject * obj1 = 0 ;
12380 PyObject * obj2 = 0 ;
12381 PyObject * obj3 = 0 ;
12382 char * kwnames[] = {
12383 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
12384 };
12385
12386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12388 if (!SWIG_IsOK(res1)) {
12389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
12390 }
12391 arg1 = reinterpret_cast< wxRegion * >(argp1);
12392 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12393 if (!SWIG_IsOK(res2)) {
12394 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12395 }
12396 if (!argp2) {
12397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12398 }
12399 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12400 {
12401 arg3 = &temp3;
12402 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12403 }
12404 if (obj3) {
12405 ecode4 = SWIG_AsVal_int(obj3, &val4);
12406 if (!SWIG_IsOK(ecode4)) {
12407 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
12408 }
12409 arg4 = static_cast< int >(val4);
12410 }
12411 {
12412 PyThreadState* __tstate = wxPyBeginAllowThreads();
12413 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
12414 wxPyEndAllowThreads(__tstate);
12415 if (PyErr_Occurred()) SWIG_fail;
12416 }
12417 {
12418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12419 }
12420 return resultobj;
12421 fail:
12422 return NULL;
12423 }
12424
12425
12426 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12427 PyObject *obj;
12428 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12429 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
12430 return SWIG_Py_Void();
12431 }
12432
12433 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12434 return SWIG_Python_InitShadowInstance(args);
12435 }
12436
12437 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12438 PyObject *resultobj = 0;
12439 wxRegion *arg1 = 0 ;
12440 wxRegionIterator *result = 0 ;
12441 void *argp1 = 0 ;
12442 int res1 = 0 ;
12443 PyObject * obj0 = 0 ;
12444 char * kwnames[] = {
12445 (char *) "region", NULL
12446 };
12447
12448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
12449 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
12450 if (!SWIG_IsOK(res1)) {
12451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12452 }
12453 if (!argp1) {
12454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12455 }
12456 arg1 = reinterpret_cast< wxRegion * >(argp1);
12457 {
12458 if (!wxPyCheckForApp()) SWIG_fail;
12459 PyThreadState* __tstate = wxPyBeginAllowThreads();
12460 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
12461 wxPyEndAllowThreads(__tstate);
12462 if (PyErr_Occurred()) SWIG_fail;
12463 }
12464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
12465 return resultobj;
12466 fail:
12467 return NULL;
12468 }
12469
12470
12471 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12472 PyObject *resultobj = 0;
12473 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12474 void *argp1 = 0 ;
12475 int res1 = 0 ;
12476 PyObject *swig_obj[1] ;
12477
12478 if (!args) SWIG_fail;
12479 swig_obj[0] = args;
12480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
12481 if (!SWIG_IsOK(res1)) {
12482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12483 }
12484 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12485 {
12486 PyThreadState* __tstate = wxPyBeginAllowThreads();
12487 delete arg1;
12488
12489 wxPyEndAllowThreads(__tstate);
12490 if (PyErr_Occurred()) SWIG_fail;
12491 }
12492 resultobj = SWIG_Py_Void();
12493 return resultobj;
12494 fail:
12495 return NULL;
12496 }
12497
12498
12499 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12500 PyObject *resultobj = 0;
12501 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12502 int result;
12503 void *argp1 = 0 ;
12504 int res1 = 0 ;
12505 PyObject *swig_obj[1] ;
12506
12507 if (!args) SWIG_fail;
12508 swig_obj[0] = args;
12509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12510 if (!SWIG_IsOK(res1)) {
12511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12512 }
12513 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12514 {
12515 PyThreadState* __tstate = wxPyBeginAllowThreads();
12516 result = (int)(arg1)->GetX();
12517 wxPyEndAllowThreads(__tstate);
12518 if (PyErr_Occurred()) SWIG_fail;
12519 }
12520 resultobj = SWIG_From_int(static_cast< int >(result));
12521 return resultobj;
12522 fail:
12523 return NULL;
12524 }
12525
12526
12527 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12528 PyObject *resultobj = 0;
12529 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12530 int result;
12531 void *argp1 = 0 ;
12532 int res1 = 0 ;
12533 PyObject *swig_obj[1] ;
12534
12535 if (!args) SWIG_fail;
12536 swig_obj[0] = args;
12537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12538 if (!SWIG_IsOK(res1)) {
12539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12540 }
12541 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12542 {
12543 PyThreadState* __tstate = wxPyBeginAllowThreads();
12544 result = (int)(arg1)->GetY();
12545 wxPyEndAllowThreads(__tstate);
12546 if (PyErr_Occurred()) SWIG_fail;
12547 }
12548 resultobj = SWIG_From_int(static_cast< int >(result));
12549 return resultobj;
12550 fail:
12551 return NULL;
12552 }
12553
12554
12555 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12556 PyObject *resultobj = 0;
12557 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12558 int result;
12559 void *argp1 = 0 ;
12560 int res1 = 0 ;
12561 PyObject *swig_obj[1] ;
12562
12563 if (!args) SWIG_fail;
12564 swig_obj[0] = args;
12565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12566 if (!SWIG_IsOK(res1)) {
12567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12568 }
12569 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12570 {
12571 PyThreadState* __tstate = wxPyBeginAllowThreads();
12572 result = (int)(arg1)->GetW();
12573 wxPyEndAllowThreads(__tstate);
12574 if (PyErr_Occurred()) SWIG_fail;
12575 }
12576 resultobj = SWIG_From_int(static_cast< int >(result));
12577 return resultobj;
12578 fail:
12579 return NULL;
12580 }
12581
12582
12583 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12584 PyObject *resultobj = 0;
12585 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12586 int result;
12587 void *argp1 = 0 ;
12588 int res1 = 0 ;
12589 PyObject *swig_obj[1] ;
12590
12591 if (!args) SWIG_fail;
12592 swig_obj[0] = args;
12593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12594 if (!SWIG_IsOK(res1)) {
12595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12596 }
12597 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12598 {
12599 PyThreadState* __tstate = wxPyBeginAllowThreads();
12600 result = (int)(arg1)->GetWidth();
12601 wxPyEndAllowThreads(__tstate);
12602 if (PyErr_Occurred()) SWIG_fail;
12603 }
12604 resultobj = SWIG_From_int(static_cast< int >(result));
12605 return resultobj;
12606 fail:
12607 return NULL;
12608 }
12609
12610
12611 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12612 PyObject *resultobj = 0;
12613 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12614 int result;
12615 void *argp1 = 0 ;
12616 int res1 = 0 ;
12617 PyObject *swig_obj[1] ;
12618
12619 if (!args) SWIG_fail;
12620 swig_obj[0] = args;
12621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12622 if (!SWIG_IsOK(res1)) {
12623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12624 }
12625 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12626 {
12627 PyThreadState* __tstate = wxPyBeginAllowThreads();
12628 result = (int)(arg1)->GetH();
12629 wxPyEndAllowThreads(__tstate);
12630 if (PyErr_Occurred()) SWIG_fail;
12631 }
12632 resultobj = SWIG_From_int(static_cast< int >(result));
12633 return resultobj;
12634 fail:
12635 return NULL;
12636 }
12637
12638
12639 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12640 PyObject *resultobj = 0;
12641 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12642 int result;
12643 void *argp1 = 0 ;
12644 int res1 = 0 ;
12645 PyObject *swig_obj[1] ;
12646
12647 if (!args) SWIG_fail;
12648 swig_obj[0] = args;
12649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12650 if (!SWIG_IsOK(res1)) {
12651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12652 }
12653 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12654 {
12655 PyThreadState* __tstate = wxPyBeginAllowThreads();
12656 result = (int)(arg1)->GetHeight();
12657 wxPyEndAllowThreads(__tstate);
12658 if (PyErr_Occurred()) SWIG_fail;
12659 }
12660 resultobj = SWIG_From_int(static_cast< int >(result));
12661 return resultobj;
12662 fail:
12663 return NULL;
12664 }
12665
12666
12667 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12668 PyObject *resultobj = 0;
12669 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12670 wxRect result;
12671 void *argp1 = 0 ;
12672 int res1 = 0 ;
12673 PyObject *swig_obj[1] ;
12674
12675 if (!args) SWIG_fail;
12676 swig_obj[0] = args;
12677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12678 if (!SWIG_IsOK(res1)) {
12679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12680 }
12681 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12682 {
12683 PyThreadState* __tstate = wxPyBeginAllowThreads();
12684 result = (arg1)->GetRect();
12685 wxPyEndAllowThreads(__tstate);
12686 if (PyErr_Occurred()) SWIG_fail;
12687 }
12688 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12689 return resultobj;
12690 fail:
12691 return NULL;
12692 }
12693
12694
12695 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12696 PyObject *resultobj = 0;
12697 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12698 bool result;
12699 void *argp1 = 0 ;
12700 int res1 = 0 ;
12701 PyObject *swig_obj[1] ;
12702
12703 if (!args) SWIG_fail;
12704 swig_obj[0] = args;
12705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12706 if (!SWIG_IsOK(res1)) {
12707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12708 }
12709 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12710 {
12711 PyThreadState* __tstate = wxPyBeginAllowThreads();
12712 result = (bool)(arg1)->HaveRects();
12713 wxPyEndAllowThreads(__tstate);
12714 if (PyErr_Occurred()) SWIG_fail;
12715 }
12716 {
12717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12718 }
12719 return resultobj;
12720 fail:
12721 return NULL;
12722 }
12723
12724
12725 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12726 PyObject *resultobj = 0;
12727 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12728 void *argp1 = 0 ;
12729 int res1 = 0 ;
12730 PyObject *swig_obj[1] ;
12731
12732 if (!args) SWIG_fail;
12733 swig_obj[0] = args;
12734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12735 if (!SWIG_IsOK(res1)) {
12736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12737 }
12738 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12739 {
12740 PyThreadState* __tstate = wxPyBeginAllowThreads();
12741 (arg1)->Reset();
12742 wxPyEndAllowThreads(__tstate);
12743 if (PyErr_Occurred()) SWIG_fail;
12744 }
12745 resultobj = SWIG_Py_Void();
12746 return resultobj;
12747 fail:
12748 return NULL;
12749 }
12750
12751
12752 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12753 PyObject *resultobj = 0;
12754 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12755 void *argp1 = 0 ;
12756 int res1 = 0 ;
12757 PyObject *swig_obj[1] ;
12758
12759 if (!args) SWIG_fail;
12760 swig_obj[0] = args;
12761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12762 if (!SWIG_IsOK(res1)) {
12763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12764 }
12765 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12766 {
12767 PyThreadState* __tstate = wxPyBeginAllowThreads();
12768 wxRegionIterator_Next(arg1);
12769 wxPyEndAllowThreads(__tstate);
12770 if (PyErr_Occurred()) SWIG_fail;
12771 }
12772 resultobj = SWIG_Py_Void();
12773 return resultobj;
12774 fail:
12775 return NULL;
12776 }
12777
12778
12779 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12780 PyObject *resultobj = 0;
12781 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12782 bool result;
12783 void *argp1 = 0 ;
12784 int res1 = 0 ;
12785 PyObject *swig_obj[1] ;
12786
12787 if (!args) SWIG_fail;
12788 swig_obj[0] = args;
12789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12790 if (!SWIG_IsOK(res1)) {
12791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12792 }
12793 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12794 {
12795 PyThreadState* __tstate = wxPyBeginAllowThreads();
12796 result = (bool)wxRegionIterator___nonzero__(arg1);
12797 wxPyEndAllowThreads(__tstate);
12798 if (PyErr_Occurred()) SWIG_fail;
12799 }
12800 {
12801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12802 }
12803 return resultobj;
12804 fail:
12805 return NULL;
12806 }
12807
12808
12809 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12810 PyObject *obj;
12811 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12812 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12813 return SWIG_Py_Void();
12814 }
12815
12816 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12817 return SWIG_Python_InitShadowInstance(args);
12818 }
12819
12820 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12821 PyObject *resultobj = 0;
12822 wxNativeFontInfo *result = 0 ;
12823
12824 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12825 {
12826 PyThreadState* __tstate = wxPyBeginAllowThreads();
12827 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12828 wxPyEndAllowThreads(__tstate);
12829 if (PyErr_Occurred()) SWIG_fail;
12830 }
12831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12832 return resultobj;
12833 fail:
12834 return NULL;
12835 }
12836
12837
12838 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12839 PyObject *resultobj = 0;
12840 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12841 void *argp1 = 0 ;
12842 int res1 = 0 ;
12843 PyObject *swig_obj[1] ;
12844
12845 if (!args) SWIG_fail;
12846 swig_obj[0] = args;
12847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12848 if (!SWIG_IsOK(res1)) {
12849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12850 }
12851 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12852 {
12853 PyThreadState* __tstate = wxPyBeginAllowThreads();
12854 delete arg1;
12855
12856 wxPyEndAllowThreads(__tstate);
12857 if (PyErr_Occurred()) SWIG_fail;
12858 }
12859 resultobj = SWIG_Py_Void();
12860 return resultobj;
12861 fail:
12862 return NULL;
12863 }
12864
12865
12866 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12867 PyObject *resultobj = 0;
12868 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12869 void *argp1 = 0 ;
12870 int res1 = 0 ;
12871 PyObject *swig_obj[1] ;
12872
12873 if (!args) SWIG_fail;
12874 swig_obj[0] = args;
12875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12876 if (!SWIG_IsOK(res1)) {
12877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12878 }
12879 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12880 {
12881 PyThreadState* __tstate = wxPyBeginAllowThreads();
12882 (arg1)->Init();
12883 wxPyEndAllowThreads(__tstate);
12884 if (PyErr_Occurred()) SWIG_fail;
12885 }
12886 resultobj = SWIG_Py_Void();
12887 return resultobj;
12888 fail:
12889 return NULL;
12890 }
12891
12892
12893 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12894 PyObject *resultobj = 0;
12895 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12896 wxFont *arg2 = 0 ;
12897 void *argp1 = 0 ;
12898 int res1 = 0 ;
12899 void *argp2 = 0 ;
12900 int res2 = 0 ;
12901 PyObject * obj0 = 0 ;
12902 PyObject * obj1 = 0 ;
12903 char * kwnames[] = {
12904 (char *) "self",(char *) "font", NULL
12905 };
12906
12907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12909 if (!SWIG_IsOK(res1)) {
12910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12911 }
12912 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12913 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12914 if (!SWIG_IsOK(res2)) {
12915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12916 }
12917 if (!argp2) {
12918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12919 }
12920 arg2 = reinterpret_cast< wxFont * >(argp2);
12921 {
12922 PyThreadState* __tstate = wxPyBeginAllowThreads();
12923 (arg1)->InitFromFont((wxFont const &)*arg2);
12924 wxPyEndAllowThreads(__tstate);
12925 if (PyErr_Occurred()) SWIG_fail;
12926 }
12927 resultobj = SWIG_Py_Void();
12928 return resultobj;
12929 fail:
12930 return NULL;
12931 }
12932
12933
12934 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12935 PyObject *resultobj = 0;
12936 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12937 int result;
12938 void *argp1 = 0 ;
12939 int res1 = 0 ;
12940 PyObject *swig_obj[1] ;
12941
12942 if (!args) SWIG_fail;
12943 swig_obj[0] = args;
12944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12945 if (!SWIG_IsOK(res1)) {
12946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12947 }
12948 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12949 {
12950 PyThreadState* __tstate = wxPyBeginAllowThreads();
12951 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12952 wxPyEndAllowThreads(__tstate);
12953 if (PyErr_Occurred()) SWIG_fail;
12954 }
12955 resultobj = SWIG_From_int(static_cast< int >(result));
12956 return resultobj;
12957 fail:
12958 return NULL;
12959 }
12960
12961
12962 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12963 PyObject *resultobj = 0;
12964 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12965 wxSize result;
12966 void *argp1 = 0 ;
12967 int res1 = 0 ;
12968 PyObject *swig_obj[1] ;
12969
12970 if (!args) SWIG_fail;
12971 swig_obj[0] = args;
12972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12973 if (!SWIG_IsOK(res1)) {
12974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12975 }
12976 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12977 {
12978 PyThreadState* __tstate = wxPyBeginAllowThreads();
12979 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12980 wxPyEndAllowThreads(__tstate);
12981 if (PyErr_Occurred()) SWIG_fail;
12982 }
12983 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12984 return resultobj;
12985 fail:
12986 return NULL;
12987 }
12988
12989
12990 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12991 PyObject *resultobj = 0;
12992 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12993 wxFontStyle result;
12994 void *argp1 = 0 ;
12995 int res1 = 0 ;
12996 PyObject *swig_obj[1] ;
12997
12998 if (!args) SWIG_fail;
12999 swig_obj[0] = args;
13000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13001 if (!SWIG_IsOK(res1)) {
13002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13003 }
13004 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13005 {
13006 PyThreadState* __tstate = wxPyBeginAllowThreads();
13007 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
13008 wxPyEndAllowThreads(__tstate);
13009 if (PyErr_Occurred()) SWIG_fail;
13010 }
13011 resultobj = SWIG_From_int(static_cast< int >(result));
13012 return resultobj;
13013 fail:
13014 return NULL;
13015 }
13016
13017
13018 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13019 PyObject *resultobj = 0;
13020 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13021 wxFontWeight result;
13022 void *argp1 = 0 ;
13023 int res1 = 0 ;
13024 PyObject *swig_obj[1] ;
13025
13026 if (!args) SWIG_fail;
13027 swig_obj[0] = args;
13028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13029 if (!SWIG_IsOK(res1)) {
13030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13031 }
13032 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13033 {
13034 PyThreadState* __tstate = wxPyBeginAllowThreads();
13035 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
13036 wxPyEndAllowThreads(__tstate);
13037 if (PyErr_Occurred()) SWIG_fail;
13038 }
13039 resultobj = SWIG_From_int(static_cast< int >(result));
13040 return resultobj;
13041 fail:
13042 return NULL;
13043 }
13044
13045
13046 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13047 PyObject *resultobj = 0;
13048 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13049 bool result;
13050 void *argp1 = 0 ;
13051 int res1 = 0 ;
13052 PyObject *swig_obj[1] ;
13053
13054 if (!args) SWIG_fail;
13055 swig_obj[0] = args;
13056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13057 if (!SWIG_IsOK(res1)) {
13058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13059 }
13060 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13061 {
13062 PyThreadState* __tstate = wxPyBeginAllowThreads();
13063 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
13064 wxPyEndAllowThreads(__tstate);
13065 if (PyErr_Occurred()) SWIG_fail;
13066 }
13067 {
13068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13069 }
13070 return resultobj;
13071 fail:
13072 return NULL;
13073 }
13074
13075
13076 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13077 PyObject *resultobj = 0;
13078 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13079 wxString result;
13080 void *argp1 = 0 ;
13081 int res1 = 0 ;
13082 PyObject *swig_obj[1] ;
13083
13084 if (!args) SWIG_fail;
13085 swig_obj[0] = args;
13086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13087 if (!SWIG_IsOK(res1)) {
13088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13089 }
13090 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13091 {
13092 PyThreadState* __tstate = wxPyBeginAllowThreads();
13093 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
13094 wxPyEndAllowThreads(__tstate);
13095 if (PyErr_Occurred()) SWIG_fail;
13096 }
13097 {
13098 #if wxUSE_UNICODE
13099 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13100 #else
13101 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13102 #endif
13103 }
13104 return resultobj;
13105 fail:
13106 return NULL;
13107 }
13108
13109
13110 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13111 PyObject *resultobj = 0;
13112 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13113 wxFontFamily result;
13114 void *argp1 = 0 ;
13115 int res1 = 0 ;
13116 PyObject *swig_obj[1] ;
13117
13118 if (!args) SWIG_fail;
13119 swig_obj[0] = args;
13120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13121 if (!SWIG_IsOK(res1)) {
13122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13123 }
13124 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13125 {
13126 PyThreadState* __tstate = wxPyBeginAllowThreads();
13127 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
13128 wxPyEndAllowThreads(__tstate);
13129 if (PyErr_Occurred()) SWIG_fail;
13130 }
13131 resultobj = SWIG_From_int(static_cast< int >(result));
13132 return resultobj;
13133 fail:
13134 return NULL;
13135 }
13136
13137
13138 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13139 PyObject *resultobj = 0;
13140 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13141 wxFontEncoding result;
13142 void *argp1 = 0 ;
13143 int res1 = 0 ;
13144 PyObject *swig_obj[1] ;
13145
13146 if (!args) SWIG_fail;
13147 swig_obj[0] = args;
13148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13149 if (!SWIG_IsOK(res1)) {
13150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13151 }
13152 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13153 {
13154 PyThreadState* __tstate = wxPyBeginAllowThreads();
13155 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
13156 wxPyEndAllowThreads(__tstate);
13157 if (PyErr_Occurred()) SWIG_fail;
13158 }
13159 resultobj = SWIG_From_int(static_cast< int >(result));
13160 return resultobj;
13161 fail:
13162 return NULL;
13163 }
13164
13165
13166 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13167 PyObject *resultobj = 0;
13168 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13169 int arg2 ;
13170 void *argp1 = 0 ;
13171 int res1 = 0 ;
13172 int val2 ;
13173 int ecode2 = 0 ;
13174 PyObject * obj0 = 0 ;
13175 PyObject * obj1 = 0 ;
13176 char * kwnames[] = {
13177 (char *) "self",(char *) "pointsize", NULL
13178 };
13179
13180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
13181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13182 if (!SWIG_IsOK(res1)) {
13183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13184 }
13185 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13186 ecode2 = SWIG_AsVal_int(obj1, &val2);
13187 if (!SWIG_IsOK(ecode2)) {
13188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
13189 }
13190 arg2 = static_cast< int >(val2);
13191 {
13192 PyThreadState* __tstate = wxPyBeginAllowThreads();
13193 (arg1)->SetPointSize(arg2);
13194 wxPyEndAllowThreads(__tstate);
13195 if (PyErr_Occurred()) SWIG_fail;
13196 }
13197 resultobj = SWIG_Py_Void();
13198 return resultobj;
13199 fail:
13200 return NULL;
13201 }
13202
13203
13204 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13205 PyObject *resultobj = 0;
13206 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13207 wxSize *arg2 = 0 ;
13208 void *argp1 = 0 ;
13209 int res1 = 0 ;
13210 wxSize temp2 ;
13211 PyObject * obj0 = 0 ;
13212 PyObject * obj1 = 0 ;
13213 char * kwnames[] = {
13214 (char *) "self",(char *) "pixelSize", NULL
13215 };
13216
13217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
13218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13219 if (!SWIG_IsOK(res1)) {
13220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13221 }
13222 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13223 {
13224 arg2 = &temp2;
13225 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13226 }
13227 {
13228 PyThreadState* __tstate = wxPyBeginAllowThreads();
13229 (arg1)->SetPixelSize((wxSize const &)*arg2);
13230 wxPyEndAllowThreads(__tstate);
13231 if (PyErr_Occurred()) SWIG_fail;
13232 }
13233 resultobj = SWIG_Py_Void();
13234 return resultobj;
13235 fail:
13236 return NULL;
13237 }
13238
13239
13240 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13241 PyObject *resultobj = 0;
13242 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13243 wxFontStyle arg2 ;
13244 void *argp1 = 0 ;
13245 int res1 = 0 ;
13246 int val2 ;
13247 int ecode2 = 0 ;
13248 PyObject * obj0 = 0 ;
13249 PyObject * obj1 = 0 ;
13250 char * kwnames[] = {
13251 (char *) "self",(char *) "style", NULL
13252 };
13253
13254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13256 if (!SWIG_IsOK(res1)) {
13257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13258 }
13259 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13260 ecode2 = SWIG_AsVal_int(obj1, &val2);
13261 if (!SWIG_IsOK(ecode2)) {
13262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
13263 }
13264 arg2 = static_cast< wxFontStyle >(val2);
13265 {
13266 PyThreadState* __tstate = wxPyBeginAllowThreads();
13267 (arg1)->SetStyle(arg2);
13268 wxPyEndAllowThreads(__tstate);
13269 if (PyErr_Occurred()) SWIG_fail;
13270 }
13271 resultobj = SWIG_Py_Void();
13272 return resultobj;
13273 fail:
13274 return NULL;
13275 }
13276
13277
13278 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13279 PyObject *resultobj = 0;
13280 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13281 wxFontWeight arg2 ;
13282 void *argp1 = 0 ;
13283 int res1 = 0 ;
13284 int val2 ;
13285 int ecode2 = 0 ;
13286 PyObject * obj0 = 0 ;
13287 PyObject * obj1 = 0 ;
13288 char * kwnames[] = {
13289 (char *) "self",(char *) "weight", NULL
13290 };
13291
13292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
13293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13294 if (!SWIG_IsOK(res1)) {
13295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13296 }
13297 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13298 ecode2 = SWIG_AsVal_int(obj1, &val2);
13299 if (!SWIG_IsOK(ecode2)) {
13300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
13301 }
13302 arg2 = static_cast< wxFontWeight >(val2);
13303 {
13304 PyThreadState* __tstate = wxPyBeginAllowThreads();
13305 (arg1)->SetWeight(arg2);
13306 wxPyEndAllowThreads(__tstate);
13307 if (PyErr_Occurred()) SWIG_fail;
13308 }
13309 resultobj = SWIG_Py_Void();
13310 return resultobj;
13311 fail:
13312 return NULL;
13313 }
13314
13315
13316 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13317 PyObject *resultobj = 0;
13318 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13319 bool arg2 ;
13320 void *argp1 = 0 ;
13321 int res1 = 0 ;
13322 bool val2 ;
13323 int ecode2 = 0 ;
13324 PyObject * obj0 = 0 ;
13325 PyObject * obj1 = 0 ;
13326 char * kwnames[] = {
13327 (char *) "self",(char *) "underlined", NULL
13328 };
13329
13330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
13331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13332 if (!SWIG_IsOK(res1)) {
13333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13334 }
13335 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13336 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13337 if (!SWIG_IsOK(ecode2)) {
13338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
13339 }
13340 arg2 = static_cast< bool >(val2);
13341 {
13342 PyThreadState* __tstate = wxPyBeginAllowThreads();
13343 (arg1)->SetUnderlined(arg2);
13344 wxPyEndAllowThreads(__tstate);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 }
13347 resultobj = SWIG_Py_Void();
13348 return resultobj;
13349 fail:
13350 return NULL;
13351 }
13352
13353
13354 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13355 PyObject *resultobj = 0;
13356 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13357 wxString arg2 ;
13358 bool result;
13359 void *argp1 = 0 ;
13360 int res1 = 0 ;
13361 PyObject * obj0 = 0 ;
13362 PyObject * obj1 = 0 ;
13363 char * kwnames[] = {
13364 (char *) "self",(char *) "facename", NULL
13365 };
13366
13367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
13368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13369 if (!SWIG_IsOK(res1)) {
13370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13371 }
13372 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13373 {
13374 wxString* sptr = wxString_in_helper(obj1);
13375 if (sptr == NULL) SWIG_fail;
13376 arg2 = *sptr;
13377 delete sptr;
13378 }
13379 {
13380 PyThreadState* __tstate = wxPyBeginAllowThreads();
13381 result = (bool)(arg1)->SetFaceName(arg2);
13382 wxPyEndAllowThreads(__tstate);
13383 if (PyErr_Occurred()) SWIG_fail;
13384 }
13385 {
13386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13387 }
13388 return resultobj;
13389 fail:
13390 return NULL;
13391 }
13392
13393
13394 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13395 PyObject *resultobj = 0;
13396 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13397 wxFontFamily arg2 ;
13398 void *argp1 = 0 ;
13399 int res1 = 0 ;
13400 int val2 ;
13401 int ecode2 = 0 ;
13402 PyObject * obj0 = 0 ;
13403 PyObject * obj1 = 0 ;
13404 char * kwnames[] = {
13405 (char *) "self",(char *) "family", NULL
13406 };
13407
13408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
13409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13410 if (!SWIG_IsOK(res1)) {
13411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13412 }
13413 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13414 ecode2 = SWIG_AsVal_int(obj1, &val2);
13415 if (!SWIG_IsOK(ecode2)) {
13416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
13417 }
13418 arg2 = static_cast< wxFontFamily >(val2);
13419 {
13420 PyThreadState* __tstate = wxPyBeginAllowThreads();
13421 (arg1)->SetFamily(arg2);
13422 wxPyEndAllowThreads(__tstate);
13423 if (PyErr_Occurred()) SWIG_fail;
13424 }
13425 resultobj = SWIG_Py_Void();
13426 return resultobj;
13427 fail:
13428 return NULL;
13429 }
13430
13431
13432 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13433 PyObject *resultobj = 0;
13434 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13435 wxFontEncoding arg2 ;
13436 void *argp1 = 0 ;
13437 int res1 = 0 ;
13438 int val2 ;
13439 int ecode2 = 0 ;
13440 PyObject * obj0 = 0 ;
13441 PyObject * obj1 = 0 ;
13442 char * kwnames[] = {
13443 (char *) "self",(char *) "encoding", NULL
13444 };
13445
13446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13448 if (!SWIG_IsOK(res1)) {
13449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13450 }
13451 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13452 ecode2 = SWIG_AsVal_int(obj1, &val2);
13453 if (!SWIG_IsOK(ecode2)) {
13454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13455 }
13456 arg2 = static_cast< wxFontEncoding >(val2);
13457 {
13458 PyThreadState* __tstate = wxPyBeginAllowThreads();
13459 (arg1)->SetEncoding(arg2);
13460 wxPyEndAllowThreads(__tstate);
13461 if (PyErr_Occurred()) SWIG_fail;
13462 }
13463 resultobj = SWIG_Py_Void();
13464 return resultobj;
13465 fail:
13466 return NULL;
13467 }
13468
13469
13470 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13471 PyObject *resultobj = 0;
13472 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13473 wxString *arg2 = 0 ;
13474 bool result;
13475 void *argp1 = 0 ;
13476 int res1 = 0 ;
13477 bool temp2 = false ;
13478 PyObject * obj0 = 0 ;
13479 PyObject * obj1 = 0 ;
13480 char * kwnames[] = {
13481 (char *) "self",(char *) "s", NULL
13482 };
13483
13484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13486 if (!SWIG_IsOK(res1)) {
13487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13488 }
13489 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13490 {
13491 arg2 = wxString_in_helper(obj1);
13492 if (arg2 == NULL) SWIG_fail;
13493 temp2 = true;
13494 }
13495 {
13496 PyThreadState* __tstate = wxPyBeginAllowThreads();
13497 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13498 wxPyEndAllowThreads(__tstate);
13499 if (PyErr_Occurred()) SWIG_fail;
13500 }
13501 {
13502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13503 }
13504 {
13505 if (temp2)
13506 delete arg2;
13507 }
13508 return resultobj;
13509 fail:
13510 {
13511 if (temp2)
13512 delete arg2;
13513 }
13514 return NULL;
13515 }
13516
13517
13518 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13519 PyObject *resultobj = 0;
13520 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13521 wxString result;
13522 void *argp1 = 0 ;
13523 int res1 = 0 ;
13524 PyObject *swig_obj[1] ;
13525
13526 if (!args) SWIG_fail;
13527 swig_obj[0] = args;
13528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13529 if (!SWIG_IsOK(res1)) {
13530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13531 }
13532 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13533 {
13534 PyThreadState* __tstate = wxPyBeginAllowThreads();
13535 result = ((wxNativeFontInfo const *)arg1)->ToString();
13536 wxPyEndAllowThreads(__tstate);
13537 if (PyErr_Occurred()) SWIG_fail;
13538 }
13539 {
13540 #if wxUSE_UNICODE
13541 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13542 #else
13543 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13544 #endif
13545 }
13546 return resultobj;
13547 fail:
13548 return NULL;
13549 }
13550
13551
13552 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13553 PyObject *resultobj = 0;
13554 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13555 wxString result;
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_wxNativeFontInfo, 0 | 0 );
13563 if (!SWIG_IsOK(res1)) {
13564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13565 }
13566 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13567 {
13568 PyThreadState* __tstate = wxPyBeginAllowThreads();
13569 result = wxNativeFontInfo___str__(arg1);
13570 wxPyEndAllowThreads(__tstate);
13571 if (PyErr_Occurred()) SWIG_fail;
13572 }
13573 {
13574 #if wxUSE_UNICODE
13575 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13576 #else
13577 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13578 #endif
13579 }
13580 return resultobj;
13581 fail:
13582 return NULL;
13583 }
13584
13585
13586 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13587 PyObject *resultobj = 0;
13588 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13589 wxString *arg2 = 0 ;
13590 bool result;
13591 void *argp1 = 0 ;
13592 int res1 = 0 ;
13593 bool temp2 = false ;
13594 PyObject * obj0 = 0 ;
13595 PyObject * obj1 = 0 ;
13596 char * kwnames[] = {
13597 (char *) "self",(char *) "s", NULL
13598 };
13599
13600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13602 if (!SWIG_IsOK(res1)) {
13603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13604 }
13605 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13606 {
13607 arg2 = wxString_in_helper(obj1);
13608 if (arg2 == NULL) SWIG_fail;
13609 temp2 = true;
13610 }
13611 {
13612 PyThreadState* __tstate = wxPyBeginAllowThreads();
13613 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13614 wxPyEndAllowThreads(__tstate);
13615 if (PyErr_Occurred()) SWIG_fail;
13616 }
13617 {
13618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13619 }
13620 {
13621 if (temp2)
13622 delete arg2;
13623 }
13624 return resultobj;
13625 fail:
13626 {
13627 if (temp2)
13628 delete arg2;
13629 }
13630 return NULL;
13631 }
13632
13633
13634 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13635 PyObject *resultobj = 0;
13636 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13637 wxString result;
13638 void *argp1 = 0 ;
13639 int res1 = 0 ;
13640 PyObject *swig_obj[1] ;
13641
13642 if (!args) SWIG_fail;
13643 swig_obj[0] = args;
13644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13645 if (!SWIG_IsOK(res1)) {
13646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13647 }
13648 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13649 {
13650 PyThreadState* __tstate = wxPyBeginAllowThreads();
13651 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13652 wxPyEndAllowThreads(__tstate);
13653 if (PyErr_Occurred()) SWIG_fail;
13654 }
13655 {
13656 #if wxUSE_UNICODE
13657 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13658 #else
13659 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13660 #endif
13661 }
13662 return resultobj;
13663 fail:
13664 return NULL;
13665 }
13666
13667
13668 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13669 PyObject *obj;
13670 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13671 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13672 return SWIG_Py_Void();
13673 }
13674
13675 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13676 return SWIG_Python_InitShadowInstance(args);
13677 }
13678
13679 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13680 PyObject *resultobj = 0;
13681 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13682 wxString *arg2 = (wxString *) 0 ;
13683 void *argp1 = 0 ;
13684 int res1 = 0 ;
13685 bool temp2 = false ;
13686 PyObject *swig_obj[2] ;
13687
13688 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13690 if (!SWIG_IsOK(res1)) {
13691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13692 }
13693 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13694 {
13695 arg2 = wxString_in_helper(swig_obj[1]);
13696 if (arg2 == NULL) SWIG_fail;
13697 temp2 = true;
13698 }
13699 if (arg1) (arg1)->facename = *arg2;
13700
13701 resultobj = SWIG_Py_Void();
13702 {
13703 if (temp2)
13704 delete arg2;
13705 }
13706 return resultobj;
13707 fail:
13708 {
13709 if (temp2)
13710 delete arg2;
13711 }
13712 return NULL;
13713 }
13714
13715
13716 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13717 PyObject *resultobj = 0;
13718 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13719 wxString *result = 0 ;
13720 void *argp1 = 0 ;
13721 int res1 = 0 ;
13722 PyObject *swig_obj[1] ;
13723
13724 if (!args) SWIG_fail;
13725 swig_obj[0] = args;
13726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13727 if (!SWIG_IsOK(res1)) {
13728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13729 }
13730 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13731 result = (wxString *)& ((arg1)->facename);
13732 {
13733 #if wxUSE_UNICODE
13734 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13735 #else
13736 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13737 #endif
13738 }
13739 return resultobj;
13740 fail:
13741 return NULL;
13742 }
13743
13744
13745 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13746 PyObject *resultobj = 0;
13747 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13748 wxFontEncoding arg2 ;
13749 void *argp1 = 0 ;
13750 int res1 = 0 ;
13751 int val2 ;
13752 int ecode2 = 0 ;
13753 PyObject *swig_obj[2] ;
13754
13755 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13757 if (!SWIG_IsOK(res1)) {
13758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13759 }
13760 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13761 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13762 if (!SWIG_IsOK(ecode2)) {
13763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13764 }
13765 arg2 = static_cast< wxFontEncoding >(val2);
13766 if (arg1) (arg1)->encoding = arg2;
13767
13768 resultobj = SWIG_Py_Void();
13769 return resultobj;
13770 fail:
13771 return NULL;
13772 }
13773
13774
13775 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13776 PyObject *resultobj = 0;
13777 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13778 wxFontEncoding result;
13779 void *argp1 = 0 ;
13780 int res1 = 0 ;
13781 PyObject *swig_obj[1] ;
13782
13783 if (!args) SWIG_fail;
13784 swig_obj[0] = args;
13785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13786 if (!SWIG_IsOK(res1)) {
13787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13788 }
13789 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13790 result = (wxFontEncoding) ((arg1)->encoding);
13791 resultobj = SWIG_From_int(static_cast< int >(result));
13792 return resultobj;
13793 fail:
13794 return NULL;
13795 }
13796
13797
13798 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13799 PyObject *resultobj = 0;
13800 wxNativeEncodingInfo *result = 0 ;
13801
13802 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13803 {
13804 PyThreadState* __tstate = wxPyBeginAllowThreads();
13805 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13806 wxPyEndAllowThreads(__tstate);
13807 if (PyErr_Occurred()) SWIG_fail;
13808 }
13809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13810 return resultobj;
13811 fail:
13812 return NULL;
13813 }
13814
13815
13816 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13817 PyObject *resultobj = 0;
13818 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13819 void *argp1 = 0 ;
13820 int res1 = 0 ;
13821 PyObject *swig_obj[1] ;
13822
13823 if (!args) SWIG_fail;
13824 swig_obj[0] = args;
13825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13826 if (!SWIG_IsOK(res1)) {
13827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13828 }
13829 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13830 {
13831 PyThreadState* __tstate = wxPyBeginAllowThreads();
13832 delete arg1;
13833
13834 wxPyEndAllowThreads(__tstate);
13835 if (PyErr_Occurred()) SWIG_fail;
13836 }
13837 resultobj = SWIG_Py_Void();
13838 return resultobj;
13839 fail:
13840 return NULL;
13841 }
13842
13843
13844 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13845 PyObject *resultobj = 0;
13846 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13847 wxString *arg2 = 0 ;
13848 bool result;
13849 void *argp1 = 0 ;
13850 int res1 = 0 ;
13851 bool temp2 = false ;
13852 PyObject * obj0 = 0 ;
13853 PyObject * obj1 = 0 ;
13854 char * kwnames[] = {
13855 (char *) "self",(char *) "s", NULL
13856 };
13857
13858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13860 if (!SWIG_IsOK(res1)) {
13861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13862 }
13863 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13864 {
13865 arg2 = wxString_in_helper(obj1);
13866 if (arg2 == NULL) SWIG_fail;
13867 temp2 = true;
13868 }
13869 {
13870 PyThreadState* __tstate = wxPyBeginAllowThreads();
13871 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13872 wxPyEndAllowThreads(__tstate);
13873 if (PyErr_Occurred()) SWIG_fail;
13874 }
13875 {
13876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13877 }
13878 {
13879 if (temp2)
13880 delete arg2;
13881 }
13882 return resultobj;
13883 fail:
13884 {
13885 if (temp2)
13886 delete arg2;
13887 }
13888 return NULL;
13889 }
13890
13891
13892 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13893 PyObject *resultobj = 0;
13894 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13895 wxString result;
13896 void *argp1 = 0 ;
13897 int res1 = 0 ;
13898 PyObject *swig_obj[1] ;
13899
13900 if (!args) SWIG_fail;
13901 swig_obj[0] = args;
13902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13903 if (!SWIG_IsOK(res1)) {
13904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13905 }
13906 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13907 {
13908 PyThreadState* __tstate = wxPyBeginAllowThreads();
13909 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13910 wxPyEndAllowThreads(__tstate);
13911 if (PyErr_Occurred()) SWIG_fail;
13912 }
13913 {
13914 #if wxUSE_UNICODE
13915 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13916 #else
13917 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13918 #endif
13919 }
13920 return resultobj;
13921 fail:
13922 return NULL;
13923 }
13924
13925
13926 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13927 PyObject *obj;
13928 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13929 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13930 return SWIG_Py_Void();
13931 }
13932
13933 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13934 return SWIG_Python_InitShadowInstance(args);
13935 }
13936
13937 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13938 PyObject *resultobj = 0;
13939 wxFontEncoding arg1 ;
13940 wxNativeEncodingInfo *result = 0 ;
13941 int val1 ;
13942 int ecode1 = 0 ;
13943 PyObject * obj0 = 0 ;
13944 char * kwnames[] = {
13945 (char *) "encoding", NULL
13946 };
13947
13948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13949 ecode1 = SWIG_AsVal_int(obj0, &val1);
13950 if (!SWIG_IsOK(ecode1)) {
13951 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13952 }
13953 arg1 = static_cast< wxFontEncoding >(val1);
13954 {
13955 PyThreadState* __tstate = wxPyBeginAllowThreads();
13956 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13957 wxPyEndAllowThreads(__tstate);
13958 if (PyErr_Occurred()) SWIG_fail;
13959 }
13960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13961 return resultobj;
13962 fail:
13963 return NULL;
13964 }
13965
13966
13967 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13968 PyObject *resultobj = 0;
13969 wxNativeEncodingInfo *arg1 = 0 ;
13970 bool result;
13971 void *argp1 = 0 ;
13972 int res1 = 0 ;
13973 PyObject * obj0 = 0 ;
13974 char * kwnames[] = {
13975 (char *) "info", NULL
13976 };
13977
13978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13979 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13980 if (!SWIG_IsOK(res1)) {
13981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13982 }
13983 if (!argp1) {
13984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13985 }
13986 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13987 {
13988 PyThreadState* __tstate = wxPyBeginAllowThreads();
13989 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13990 wxPyEndAllowThreads(__tstate);
13991 if (PyErr_Occurred()) SWIG_fail;
13992 }
13993 {
13994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13995 }
13996 return resultobj;
13997 fail:
13998 return NULL;
13999 }
14000
14001
14002 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14003 PyObject *resultobj = 0;
14004 wxFontMapper *result = 0 ;
14005
14006 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
14007 {
14008 PyThreadState* __tstate = wxPyBeginAllowThreads();
14009 result = (wxFontMapper *)new wxFontMapper();
14010 wxPyEndAllowThreads(__tstate);
14011 if (PyErr_Occurred()) SWIG_fail;
14012 }
14013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
14014 return resultobj;
14015 fail:
14016 return NULL;
14017 }
14018
14019
14020 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14021 PyObject *resultobj = 0;
14022 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14023 void *argp1 = 0 ;
14024 int res1 = 0 ;
14025 PyObject *swig_obj[1] ;
14026
14027 if (!args) SWIG_fail;
14028 swig_obj[0] = args;
14029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
14030 if (!SWIG_IsOK(res1)) {
14031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14032 }
14033 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14034 {
14035 PyThreadState* __tstate = wxPyBeginAllowThreads();
14036 delete arg1;
14037
14038 wxPyEndAllowThreads(__tstate);
14039 if (PyErr_Occurred()) SWIG_fail;
14040 }
14041 resultobj = SWIG_Py_Void();
14042 return resultobj;
14043 fail:
14044 return NULL;
14045 }
14046
14047
14048 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14049 PyObject *resultobj = 0;
14050 wxFontMapper *result = 0 ;
14051
14052 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
14053 {
14054 PyThreadState* __tstate = wxPyBeginAllowThreads();
14055 result = (wxFontMapper *)wxFontMapper::Get();
14056 wxPyEndAllowThreads(__tstate);
14057 if (PyErr_Occurred()) SWIG_fail;
14058 }
14059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
14060 return resultobj;
14061 fail:
14062 return NULL;
14063 }
14064
14065
14066 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14067 PyObject *resultobj = 0;
14068 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14069 wxFontMapper *result = 0 ;
14070 void *argp1 = 0 ;
14071 int res1 = 0 ;
14072 PyObject * obj0 = 0 ;
14073 char * kwnames[] = {
14074 (char *) "mapper", NULL
14075 };
14076
14077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
14078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14079 if (!SWIG_IsOK(res1)) {
14080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14081 }
14082 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14083 {
14084 PyThreadState* __tstate = wxPyBeginAllowThreads();
14085 result = (wxFontMapper *)wxFontMapper::Set(arg1);
14086 wxPyEndAllowThreads(__tstate);
14087 if (PyErr_Occurred()) SWIG_fail;
14088 }
14089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
14090 return resultobj;
14091 fail:
14092 return NULL;
14093 }
14094
14095
14096 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14097 PyObject *resultobj = 0;
14098 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14099 wxString *arg2 = 0 ;
14100 bool arg3 = (bool) true ;
14101 wxFontEncoding result;
14102 void *argp1 = 0 ;
14103 int res1 = 0 ;
14104 bool temp2 = false ;
14105 bool val3 ;
14106 int ecode3 = 0 ;
14107 PyObject * obj0 = 0 ;
14108 PyObject * obj1 = 0 ;
14109 PyObject * obj2 = 0 ;
14110 char * kwnames[] = {
14111 (char *) "self",(char *) "charset",(char *) "interactive", NULL
14112 };
14113
14114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14116 if (!SWIG_IsOK(res1)) {
14117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14118 }
14119 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14120 {
14121 arg2 = wxString_in_helper(obj1);
14122 if (arg2 == NULL) SWIG_fail;
14123 temp2 = true;
14124 }
14125 if (obj2) {
14126 ecode3 = SWIG_AsVal_bool(obj2, &val3);
14127 if (!SWIG_IsOK(ecode3)) {
14128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
14129 }
14130 arg3 = static_cast< bool >(val3);
14131 }
14132 {
14133 PyThreadState* __tstate = wxPyBeginAllowThreads();
14134 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
14135 wxPyEndAllowThreads(__tstate);
14136 if (PyErr_Occurred()) SWIG_fail;
14137 }
14138 resultobj = SWIG_From_int(static_cast< int >(result));
14139 {
14140 if (temp2)
14141 delete arg2;
14142 }
14143 return resultobj;
14144 fail:
14145 {
14146 if (temp2)
14147 delete arg2;
14148 }
14149 return NULL;
14150 }
14151
14152
14153 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14154 PyObject *resultobj = 0;
14155 size_t result;
14156
14157 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
14158 {
14159 PyThreadState* __tstate = wxPyBeginAllowThreads();
14160 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
14161 wxPyEndAllowThreads(__tstate);
14162 if (PyErr_Occurred()) SWIG_fail;
14163 }
14164 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
14165 return resultobj;
14166 fail:
14167 return NULL;
14168 }
14169
14170
14171 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14172 PyObject *resultobj = 0;
14173 size_t arg1 ;
14174 wxFontEncoding result;
14175 size_t val1 ;
14176 int ecode1 = 0 ;
14177 PyObject * obj0 = 0 ;
14178 char * kwnames[] = {
14179 (char *) "n", NULL
14180 };
14181
14182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
14183 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
14184 if (!SWIG_IsOK(ecode1)) {
14185 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
14186 }
14187 arg1 = static_cast< size_t >(val1);
14188 {
14189 PyThreadState* __tstate = wxPyBeginAllowThreads();
14190 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
14191 wxPyEndAllowThreads(__tstate);
14192 if (PyErr_Occurred()) SWIG_fail;
14193 }
14194 resultobj = SWIG_From_int(static_cast< int >(result));
14195 return resultobj;
14196 fail:
14197 return NULL;
14198 }
14199
14200
14201 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14202 PyObject *resultobj = 0;
14203 wxFontEncoding arg1 ;
14204 wxString result;
14205 int val1 ;
14206 int ecode1 = 0 ;
14207 PyObject * obj0 = 0 ;
14208 char * kwnames[] = {
14209 (char *) "encoding", NULL
14210 };
14211
14212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
14213 ecode1 = SWIG_AsVal_int(obj0, &val1);
14214 if (!SWIG_IsOK(ecode1)) {
14215 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14216 }
14217 arg1 = static_cast< wxFontEncoding >(val1);
14218 {
14219 PyThreadState* __tstate = wxPyBeginAllowThreads();
14220 result = wxFontMapper::GetEncodingName(arg1);
14221 wxPyEndAllowThreads(__tstate);
14222 if (PyErr_Occurred()) SWIG_fail;
14223 }
14224 {
14225 #if wxUSE_UNICODE
14226 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14227 #else
14228 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14229 #endif
14230 }
14231 return resultobj;
14232 fail:
14233 return NULL;
14234 }
14235
14236
14237 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14238 PyObject *resultobj = 0;
14239 wxFontEncoding arg1 ;
14240 wxString result;
14241 int val1 ;
14242 int ecode1 = 0 ;
14243 PyObject * obj0 = 0 ;
14244 char * kwnames[] = {
14245 (char *) "encoding", NULL
14246 };
14247
14248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
14249 ecode1 = SWIG_AsVal_int(obj0, &val1);
14250 if (!SWIG_IsOK(ecode1)) {
14251 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14252 }
14253 arg1 = static_cast< wxFontEncoding >(val1);
14254 {
14255 PyThreadState* __tstate = wxPyBeginAllowThreads();
14256 result = wxFontMapper::GetEncodingDescription(arg1);
14257 wxPyEndAllowThreads(__tstate);
14258 if (PyErr_Occurred()) SWIG_fail;
14259 }
14260 {
14261 #if wxUSE_UNICODE
14262 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14263 #else
14264 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14265 #endif
14266 }
14267 return resultobj;
14268 fail:
14269 return NULL;
14270 }
14271
14272
14273 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14274 PyObject *resultobj = 0;
14275 wxString *arg1 = 0 ;
14276 wxFontEncoding result;
14277 bool temp1 = false ;
14278 PyObject * obj0 = 0 ;
14279 char * kwnames[] = {
14280 (char *) "name", NULL
14281 };
14282
14283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
14284 {
14285 arg1 = wxString_in_helper(obj0);
14286 if (arg1 == NULL) SWIG_fail;
14287 temp1 = true;
14288 }
14289 {
14290 PyThreadState* __tstate = wxPyBeginAllowThreads();
14291 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
14292 wxPyEndAllowThreads(__tstate);
14293 if (PyErr_Occurred()) SWIG_fail;
14294 }
14295 resultobj = SWIG_From_int(static_cast< int >(result));
14296 {
14297 if (temp1)
14298 delete arg1;
14299 }
14300 return resultobj;
14301 fail:
14302 {
14303 if (temp1)
14304 delete arg1;
14305 }
14306 return NULL;
14307 }
14308
14309
14310 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14311 PyObject *resultobj = 0;
14312 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14313 wxString *arg2 = 0 ;
14314 void *argp1 = 0 ;
14315 int res1 = 0 ;
14316 bool temp2 = false ;
14317 PyObject * obj0 = 0 ;
14318 PyObject * obj1 = 0 ;
14319 char * kwnames[] = {
14320 (char *) "self",(char *) "prefix", NULL
14321 };
14322
14323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
14324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14325 if (!SWIG_IsOK(res1)) {
14326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14327 }
14328 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14329 {
14330 arg2 = wxString_in_helper(obj1);
14331 if (arg2 == NULL) SWIG_fail;
14332 temp2 = true;
14333 }
14334 {
14335 PyThreadState* __tstate = wxPyBeginAllowThreads();
14336 (arg1)->SetConfigPath((wxString const &)*arg2);
14337 wxPyEndAllowThreads(__tstate);
14338 if (PyErr_Occurred()) SWIG_fail;
14339 }
14340 resultobj = SWIG_Py_Void();
14341 {
14342 if (temp2)
14343 delete arg2;
14344 }
14345 return resultobj;
14346 fail:
14347 {
14348 if (temp2)
14349 delete arg2;
14350 }
14351 return NULL;
14352 }
14353
14354
14355 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14356 PyObject *resultobj = 0;
14357 wxString result;
14358
14359 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
14360 {
14361 PyThreadState* __tstate = wxPyBeginAllowThreads();
14362 result = wxFontMapper::GetDefaultConfigPath();
14363 wxPyEndAllowThreads(__tstate);
14364 if (PyErr_Occurred()) SWIG_fail;
14365 }
14366 {
14367 #if wxUSE_UNICODE
14368 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14369 #else
14370 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14371 #endif
14372 }
14373 return resultobj;
14374 fail:
14375 return NULL;
14376 }
14377
14378
14379 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14380 PyObject *resultobj = 0;
14381 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14382 wxFontEncoding arg2 ;
14383 wxString const &arg3_defvalue = wxPyEmptyString ;
14384 wxString *arg3 = (wxString *) &arg3_defvalue ;
14385 bool arg4 = (bool) true ;
14386 PyObject *result = 0 ;
14387 void *argp1 = 0 ;
14388 int res1 = 0 ;
14389 int val2 ;
14390 int ecode2 = 0 ;
14391 bool temp3 = false ;
14392 bool val4 ;
14393 int ecode4 = 0 ;
14394 PyObject * obj0 = 0 ;
14395 PyObject * obj1 = 0 ;
14396 PyObject * obj2 = 0 ;
14397 PyObject * obj3 = 0 ;
14398 char * kwnames[] = {
14399 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
14400 };
14401
14402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14404 if (!SWIG_IsOK(res1)) {
14405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14406 }
14407 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14408 ecode2 = SWIG_AsVal_int(obj1, &val2);
14409 if (!SWIG_IsOK(ecode2)) {
14410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14411 }
14412 arg2 = static_cast< wxFontEncoding >(val2);
14413 if (obj2) {
14414 {
14415 arg3 = wxString_in_helper(obj2);
14416 if (arg3 == NULL) SWIG_fail;
14417 temp3 = true;
14418 }
14419 }
14420 if (obj3) {
14421 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14422 if (!SWIG_IsOK(ecode4)) {
14423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
14424 }
14425 arg4 = static_cast< bool >(val4);
14426 }
14427 {
14428 PyThreadState* __tstate = wxPyBeginAllowThreads();
14429 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
14430 wxPyEndAllowThreads(__tstate);
14431 if (PyErr_Occurred()) SWIG_fail;
14432 }
14433 resultobj = result;
14434 {
14435 if (temp3)
14436 delete arg3;
14437 }
14438 return resultobj;
14439 fail:
14440 {
14441 if (temp3)
14442 delete arg3;
14443 }
14444 return NULL;
14445 }
14446
14447
14448 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14449 PyObject *resultobj = 0;
14450 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14451 wxFontEncoding arg2 ;
14452 wxString const &arg3_defvalue = wxPyEmptyString ;
14453 wxString *arg3 = (wxString *) &arg3_defvalue ;
14454 bool result;
14455 void *argp1 = 0 ;
14456 int res1 = 0 ;
14457 int val2 ;
14458 int ecode2 = 0 ;
14459 bool temp3 = false ;
14460 PyObject * obj0 = 0 ;
14461 PyObject * obj1 = 0 ;
14462 PyObject * obj2 = 0 ;
14463 char * kwnames[] = {
14464 (char *) "self",(char *) "encoding",(char *) "facename", NULL
14465 };
14466
14467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14469 if (!SWIG_IsOK(res1)) {
14470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14471 }
14472 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14473 ecode2 = SWIG_AsVal_int(obj1, &val2);
14474 if (!SWIG_IsOK(ecode2)) {
14475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14476 }
14477 arg2 = static_cast< wxFontEncoding >(val2);
14478 if (obj2) {
14479 {
14480 arg3 = wxString_in_helper(obj2);
14481 if (arg3 == NULL) SWIG_fail;
14482 temp3 = true;
14483 }
14484 }
14485 {
14486 PyThreadState* __tstate = wxPyBeginAllowThreads();
14487 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
14488 wxPyEndAllowThreads(__tstate);
14489 if (PyErr_Occurred()) SWIG_fail;
14490 }
14491 {
14492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14493 }
14494 {
14495 if (temp3)
14496 delete arg3;
14497 }
14498 return resultobj;
14499 fail:
14500 {
14501 if (temp3)
14502 delete arg3;
14503 }
14504 return NULL;
14505 }
14506
14507
14508 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14509 PyObject *resultobj = 0;
14510 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14511 wxWindow *arg2 = (wxWindow *) 0 ;
14512 void *argp1 = 0 ;
14513 int res1 = 0 ;
14514 void *argp2 = 0 ;
14515 int res2 = 0 ;
14516 PyObject * obj0 = 0 ;
14517 PyObject * obj1 = 0 ;
14518 char * kwnames[] = {
14519 (char *) "self",(char *) "parent", NULL
14520 };
14521
14522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14524 if (!SWIG_IsOK(res1)) {
14525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14526 }
14527 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14528 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14529 if (!SWIG_IsOK(res2)) {
14530 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14531 }
14532 arg2 = reinterpret_cast< wxWindow * >(argp2);
14533 {
14534 PyThreadState* __tstate = wxPyBeginAllowThreads();
14535 (arg1)->SetDialogParent(arg2);
14536 wxPyEndAllowThreads(__tstate);
14537 if (PyErr_Occurred()) SWIG_fail;
14538 }
14539 resultobj = SWIG_Py_Void();
14540 return resultobj;
14541 fail:
14542 return NULL;
14543 }
14544
14545
14546 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14547 PyObject *resultobj = 0;
14548 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14549 wxString *arg2 = 0 ;
14550 void *argp1 = 0 ;
14551 int res1 = 0 ;
14552 bool temp2 = false ;
14553 PyObject * obj0 = 0 ;
14554 PyObject * obj1 = 0 ;
14555 char * kwnames[] = {
14556 (char *) "self",(char *) "title", NULL
14557 };
14558
14559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14561 if (!SWIG_IsOK(res1)) {
14562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14563 }
14564 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14565 {
14566 arg2 = wxString_in_helper(obj1);
14567 if (arg2 == NULL) SWIG_fail;
14568 temp2 = true;
14569 }
14570 {
14571 PyThreadState* __tstate = wxPyBeginAllowThreads();
14572 (arg1)->SetDialogTitle((wxString const &)*arg2);
14573 wxPyEndAllowThreads(__tstate);
14574 if (PyErr_Occurred()) SWIG_fail;
14575 }
14576 resultobj = SWIG_Py_Void();
14577 {
14578 if (temp2)
14579 delete arg2;
14580 }
14581 return resultobj;
14582 fail:
14583 {
14584 if (temp2)
14585 delete arg2;
14586 }
14587 return NULL;
14588 }
14589
14590
14591 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14592 PyObject *obj;
14593 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14594 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14595 return SWIG_Py_Void();
14596 }
14597
14598 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14599 return SWIG_Python_InitShadowInstance(args);
14600 }
14601
14602 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14603 PyObject *resultobj = 0;
14604 int arg1 ;
14605 int arg2 ;
14606 int arg3 ;
14607 int arg4 ;
14608 bool arg5 = (bool) false ;
14609 wxString const &arg6_defvalue = wxPyEmptyString ;
14610 wxString *arg6 = (wxString *) &arg6_defvalue ;
14611 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14612 wxFont *result = 0 ;
14613 int val1 ;
14614 int ecode1 = 0 ;
14615 int val2 ;
14616 int ecode2 = 0 ;
14617 int val3 ;
14618 int ecode3 = 0 ;
14619 int val4 ;
14620 int ecode4 = 0 ;
14621 bool val5 ;
14622 int ecode5 = 0 ;
14623 bool temp6 = false ;
14624 int val7 ;
14625 int ecode7 = 0 ;
14626 PyObject * obj0 = 0 ;
14627 PyObject * obj1 = 0 ;
14628 PyObject * obj2 = 0 ;
14629 PyObject * obj3 = 0 ;
14630 PyObject * obj4 = 0 ;
14631 PyObject * obj5 = 0 ;
14632 PyObject * obj6 = 0 ;
14633 char * kwnames[] = {
14634 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14635 };
14636
14637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14638 ecode1 = SWIG_AsVal_int(obj0, &val1);
14639 if (!SWIG_IsOK(ecode1)) {
14640 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14641 }
14642 arg1 = static_cast< int >(val1);
14643 ecode2 = SWIG_AsVal_int(obj1, &val2);
14644 if (!SWIG_IsOK(ecode2)) {
14645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14646 }
14647 arg2 = static_cast< int >(val2);
14648 ecode3 = SWIG_AsVal_int(obj2, &val3);
14649 if (!SWIG_IsOK(ecode3)) {
14650 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14651 }
14652 arg3 = static_cast< int >(val3);
14653 ecode4 = SWIG_AsVal_int(obj3, &val4);
14654 if (!SWIG_IsOK(ecode4)) {
14655 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14656 }
14657 arg4 = static_cast< int >(val4);
14658 if (obj4) {
14659 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14660 if (!SWIG_IsOK(ecode5)) {
14661 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14662 }
14663 arg5 = static_cast< bool >(val5);
14664 }
14665 if (obj5) {
14666 {
14667 arg6 = wxString_in_helper(obj5);
14668 if (arg6 == NULL) SWIG_fail;
14669 temp6 = true;
14670 }
14671 }
14672 if (obj6) {
14673 ecode7 = SWIG_AsVal_int(obj6, &val7);
14674 if (!SWIG_IsOK(ecode7)) {
14675 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14676 }
14677 arg7 = static_cast< wxFontEncoding >(val7);
14678 }
14679 {
14680 if (!wxPyCheckForApp()) SWIG_fail;
14681 PyThreadState* __tstate = wxPyBeginAllowThreads();
14682 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14683 wxPyEndAllowThreads(__tstate);
14684 if (PyErr_Occurred()) SWIG_fail;
14685 }
14686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14687 {
14688 if (temp6)
14689 delete arg6;
14690 }
14691 return resultobj;
14692 fail:
14693 {
14694 if (temp6)
14695 delete arg6;
14696 }
14697 return NULL;
14698 }
14699
14700
14701 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14702 PyObject *resultobj = 0;
14703 wxFont *arg1 = (wxFont *) 0 ;
14704 void *argp1 = 0 ;
14705 int res1 = 0 ;
14706 PyObject *swig_obj[1] ;
14707
14708 if (!args) SWIG_fail;
14709 swig_obj[0] = args;
14710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14711 if (!SWIG_IsOK(res1)) {
14712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14713 }
14714 arg1 = reinterpret_cast< wxFont * >(argp1);
14715 {
14716 PyThreadState* __tstate = wxPyBeginAllowThreads();
14717 delete arg1;
14718
14719 wxPyEndAllowThreads(__tstate);
14720 if (PyErr_Occurred()) SWIG_fail;
14721 }
14722 resultobj = SWIG_Py_Void();
14723 return resultobj;
14724 fail:
14725 return NULL;
14726 }
14727
14728
14729 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14730 PyObject *resultobj = 0;
14731 wxNativeFontInfo *arg1 = 0 ;
14732 wxFont *result = 0 ;
14733 void *argp1 = 0 ;
14734 int res1 = 0 ;
14735 PyObject * obj0 = 0 ;
14736 char * kwnames[] = {
14737 (char *) "info", NULL
14738 };
14739
14740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14741 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14742 if (!SWIG_IsOK(res1)) {
14743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14744 }
14745 if (!argp1) {
14746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14747 }
14748 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14749 {
14750 if (!wxPyCheckForApp()) SWIG_fail;
14751 PyThreadState* __tstate = wxPyBeginAllowThreads();
14752 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14753 wxPyEndAllowThreads(__tstate);
14754 if (PyErr_Occurred()) SWIG_fail;
14755 }
14756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14757 return resultobj;
14758 fail:
14759 return NULL;
14760 }
14761
14762
14763 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14764 PyObject *resultobj = 0;
14765 wxString *arg1 = 0 ;
14766 wxFont *result = 0 ;
14767 bool temp1 = false ;
14768 PyObject * obj0 = 0 ;
14769 char * kwnames[] = {
14770 (char *) "info", NULL
14771 };
14772
14773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14774 {
14775 arg1 = wxString_in_helper(obj0);
14776 if (arg1 == NULL) SWIG_fail;
14777 temp1 = true;
14778 }
14779 {
14780 if (!wxPyCheckForApp()) SWIG_fail;
14781 PyThreadState* __tstate = wxPyBeginAllowThreads();
14782 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14783 wxPyEndAllowThreads(__tstate);
14784 if (PyErr_Occurred()) SWIG_fail;
14785 }
14786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14787 {
14788 if (temp1)
14789 delete arg1;
14790 }
14791 return resultobj;
14792 fail:
14793 {
14794 if (temp1)
14795 delete arg1;
14796 }
14797 return NULL;
14798 }
14799
14800
14801 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14802 PyObject *resultobj = 0;
14803 int arg1 ;
14804 wxFontFamily arg2 ;
14805 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14806 wxString const &arg4_defvalue = wxPyEmptyString ;
14807 wxString *arg4 = (wxString *) &arg4_defvalue ;
14808 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14809 wxFont *result = 0 ;
14810 int val1 ;
14811 int ecode1 = 0 ;
14812 int val2 ;
14813 int ecode2 = 0 ;
14814 int val3 ;
14815 int ecode3 = 0 ;
14816 bool temp4 = false ;
14817 int val5 ;
14818 int ecode5 = 0 ;
14819 PyObject * obj0 = 0 ;
14820 PyObject * obj1 = 0 ;
14821 PyObject * obj2 = 0 ;
14822 PyObject * obj3 = 0 ;
14823 PyObject * obj4 = 0 ;
14824 char * kwnames[] = {
14825 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14826 };
14827
14828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14829 ecode1 = SWIG_AsVal_int(obj0, &val1);
14830 if (!SWIG_IsOK(ecode1)) {
14831 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14832 }
14833 arg1 = static_cast< int >(val1);
14834 ecode2 = SWIG_AsVal_int(obj1, &val2);
14835 if (!SWIG_IsOK(ecode2)) {
14836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14837 }
14838 arg2 = static_cast< wxFontFamily >(val2);
14839 if (obj2) {
14840 ecode3 = SWIG_AsVal_int(obj2, &val3);
14841 if (!SWIG_IsOK(ecode3)) {
14842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14843 }
14844 arg3 = static_cast< int >(val3);
14845 }
14846 if (obj3) {
14847 {
14848 arg4 = wxString_in_helper(obj3);
14849 if (arg4 == NULL) SWIG_fail;
14850 temp4 = true;
14851 }
14852 }
14853 if (obj4) {
14854 ecode5 = SWIG_AsVal_int(obj4, &val5);
14855 if (!SWIG_IsOK(ecode5)) {
14856 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14857 }
14858 arg5 = static_cast< wxFontEncoding >(val5);
14859 }
14860 {
14861 if (!wxPyCheckForApp()) SWIG_fail;
14862 PyThreadState* __tstate = wxPyBeginAllowThreads();
14863 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14864 wxPyEndAllowThreads(__tstate);
14865 if (PyErr_Occurred()) SWIG_fail;
14866 }
14867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14868 {
14869 if (temp4)
14870 delete arg4;
14871 }
14872 return resultobj;
14873 fail:
14874 {
14875 if (temp4)
14876 delete arg4;
14877 }
14878 return NULL;
14879 }
14880
14881
14882 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14883 PyObject *resultobj = 0;
14884 wxSize *arg1 = 0 ;
14885 int arg2 ;
14886 int arg3 ;
14887 int arg4 ;
14888 bool arg5 = (bool) false ;
14889 wxString const &arg6_defvalue = wxEmptyString ;
14890 wxString *arg6 = (wxString *) &arg6_defvalue ;
14891 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14892 wxFont *result = 0 ;
14893 wxSize temp1 ;
14894 int val2 ;
14895 int ecode2 = 0 ;
14896 int val3 ;
14897 int ecode3 = 0 ;
14898 int val4 ;
14899 int ecode4 = 0 ;
14900 bool val5 ;
14901 int ecode5 = 0 ;
14902 bool temp6 = false ;
14903 int val7 ;
14904 int ecode7 = 0 ;
14905 PyObject * obj0 = 0 ;
14906 PyObject * obj1 = 0 ;
14907 PyObject * obj2 = 0 ;
14908 PyObject * obj3 = 0 ;
14909 PyObject * obj4 = 0 ;
14910 PyObject * obj5 = 0 ;
14911 PyObject * obj6 = 0 ;
14912 char * kwnames[] = {
14913 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14914 };
14915
14916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14917 {
14918 arg1 = &temp1;
14919 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14920 }
14921 ecode2 = SWIG_AsVal_int(obj1, &val2);
14922 if (!SWIG_IsOK(ecode2)) {
14923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14924 }
14925 arg2 = static_cast< int >(val2);
14926 ecode3 = SWIG_AsVal_int(obj2, &val3);
14927 if (!SWIG_IsOK(ecode3)) {
14928 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14929 }
14930 arg3 = static_cast< int >(val3);
14931 ecode4 = SWIG_AsVal_int(obj3, &val4);
14932 if (!SWIG_IsOK(ecode4)) {
14933 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14934 }
14935 arg4 = static_cast< int >(val4);
14936 if (obj4) {
14937 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14938 if (!SWIG_IsOK(ecode5)) {
14939 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14940 }
14941 arg5 = static_cast< bool >(val5);
14942 }
14943 if (obj5) {
14944 {
14945 arg6 = wxString_in_helper(obj5);
14946 if (arg6 == NULL) SWIG_fail;
14947 temp6 = true;
14948 }
14949 }
14950 if (obj6) {
14951 ecode7 = SWIG_AsVal_int(obj6, &val7);
14952 if (!SWIG_IsOK(ecode7)) {
14953 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14954 }
14955 arg7 = static_cast< wxFontEncoding >(val7);
14956 }
14957 {
14958 if (!wxPyCheckForApp()) SWIG_fail;
14959 PyThreadState* __tstate = wxPyBeginAllowThreads();
14960 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14961 wxPyEndAllowThreads(__tstate);
14962 if (PyErr_Occurred()) SWIG_fail;
14963 }
14964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14965 {
14966 if (temp6)
14967 delete arg6;
14968 }
14969 return resultobj;
14970 fail:
14971 {
14972 if (temp6)
14973 delete arg6;
14974 }
14975 return NULL;
14976 }
14977
14978
14979 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14980 PyObject *resultobj = 0;
14981 wxSize *arg1 = 0 ;
14982 wxFontFamily arg2 ;
14983 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14984 wxString const &arg4_defvalue = wxEmptyString ;
14985 wxString *arg4 = (wxString *) &arg4_defvalue ;
14986 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14987 wxFont *result = 0 ;
14988 wxSize temp1 ;
14989 int val2 ;
14990 int ecode2 = 0 ;
14991 int val3 ;
14992 int ecode3 = 0 ;
14993 bool temp4 = false ;
14994 int val5 ;
14995 int ecode5 = 0 ;
14996 PyObject * obj0 = 0 ;
14997 PyObject * obj1 = 0 ;
14998 PyObject * obj2 = 0 ;
14999 PyObject * obj3 = 0 ;
15000 PyObject * obj4 = 0 ;
15001 char * kwnames[] = {
15002 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
15003 };
15004
15005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15006 {
15007 arg1 = &temp1;
15008 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
15009 }
15010 ecode2 = SWIG_AsVal_int(obj1, &val2);
15011 if (!SWIG_IsOK(ecode2)) {
15012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
15013 }
15014 arg2 = static_cast< wxFontFamily >(val2);
15015 if (obj2) {
15016 ecode3 = SWIG_AsVal_int(obj2, &val3);
15017 if (!SWIG_IsOK(ecode3)) {
15018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
15019 }
15020 arg3 = static_cast< int >(val3);
15021 }
15022 if (obj3) {
15023 {
15024 arg4 = wxString_in_helper(obj3);
15025 if (arg4 == NULL) SWIG_fail;
15026 temp4 = true;
15027 }
15028 }
15029 if (obj4) {
15030 ecode5 = SWIG_AsVal_int(obj4, &val5);
15031 if (!SWIG_IsOK(ecode5)) {
15032 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
15033 }
15034 arg5 = static_cast< wxFontEncoding >(val5);
15035 }
15036 {
15037 if (!wxPyCheckForApp()) SWIG_fail;
15038 PyThreadState* __tstate = wxPyBeginAllowThreads();
15039 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
15040 wxPyEndAllowThreads(__tstate);
15041 if (PyErr_Occurred()) SWIG_fail;
15042 }
15043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
15044 {
15045 if (temp4)
15046 delete arg4;
15047 }
15048 return resultobj;
15049 fail:
15050 {
15051 if (temp4)
15052 delete arg4;
15053 }
15054 return NULL;
15055 }
15056
15057
15058 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15059 PyObject *resultobj = 0;
15060 wxFont *arg1 = (wxFont *) 0 ;
15061 bool result;
15062 void *argp1 = 0 ;
15063 int res1 = 0 ;
15064 PyObject *swig_obj[1] ;
15065
15066 if (!args) SWIG_fail;
15067 swig_obj[0] = args;
15068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15069 if (!SWIG_IsOK(res1)) {
15070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
15071 }
15072 arg1 = reinterpret_cast< wxFont * >(argp1);
15073 {
15074 PyThreadState* __tstate = wxPyBeginAllowThreads();
15075 result = (bool)((wxFont const *)arg1)->IsOk();
15076 wxPyEndAllowThreads(__tstate);
15077 if (PyErr_Occurred()) SWIG_fail;
15078 }
15079 {
15080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15081 }
15082 return resultobj;
15083 fail:
15084 return NULL;
15085 }
15086
15087
15088 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15089 PyObject *resultobj = 0;
15090 wxFont *arg1 = (wxFont *) 0 ;
15091 wxFont *arg2 = (wxFont *) 0 ;
15092 bool result;
15093 void *argp1 = 0 ;
15094 int res1 = 0 ;
15095 void *argp2 = 0 ;
15096 int res2 = 0 ;
15097 PyObject * obj0 = 0 ;
15098 PyObject * obj1 = 0 ;
15099 char * kwnames[] = {
15100 (char *) "self",(char *) "other", NULL
15101 };
15102
15103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
15104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15105 if (!SWIG_IsOK(res1)) {
15106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
15107 }
15108 arg1 = reinterpret_cast< wxFont * >(argp1);
15109 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
15110 if (!SWIG_IsOK(res2)) {
15111 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
15112 }
15113 arg2 = reinterpret_cast< wxFont * >(argp2);
15114 {
15115 PyThreadState* __tstate = wxPyBeginAllowThreads();
15116 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
15117 wxPyEndAllowThreads(__tstate);
15118 if (PyErr_Occurred()) SWIG_fail;
15119 }
15120 {
15121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15122 }
15123 return resultobj;
15124 fail:
15125 return NULL;
15126 }
15127
15128
15129 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15130 PyObject *resultobj = 0;
15131 wxFont *arg1 = (wxFont *) 0 ;
15132 wxFont *arg2 = (wxFont *) 0 ;
15133 bool result;
15134 void *argp1 = 0 ;
15135 int res1 = 0 ;
15136 void *argp2 = 0 ;
15137 int res2 = 0 ;
15138 PyObject * obj0 = 0 ;
15139 PyObject * obj1 = 0 ;
15140 char * kwnames[] = {
15141 (char *) "self",(char *) "other", NULL
15142 };
15143
15144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
15145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15146 if (!SWIG_IsOK(res1)) {
15147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
15148 }
15149 arg1 = reinterpret_cast< wxFont * >(argp1);
15150 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
15151 if (!SWIG_IsOK(res2)) {
15152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
15153 }
15154 arg2 = reinterpret_cast< wxFont * >(argp2);
15155 {
15156 PyThreadState* __tstate = wxPyBeginAllowThreads();
15157 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
15158 wxPyEndAllowThreads(__tstate);
15159 if (PyErr_Occurred()) SWIG_fail;
15160 }
15161 {
15162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15163 }
15164 return resultobj;
15165 fail:
15166 return NULL;
15167 }
15168
15169
15170 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15171 PyObject *resultobj = 0;
15172 wxFont *arg1 = (wxFont *) 0 ;
15173 int result;
15174 void *argp1 = 0 ;
15175 int res1 = 0 ;
15176 PyObject *swig_obj[1] ;
15177
15178 if (!args) SWIG_fail;
15179 swig_obj[0] = args;
15180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15181 if (!SWIG_IsOK(res1)) {
15182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15183 }
15184 arg1 = reinterpret_cast< wxFont * >(argp1);
15185 {
15186 PyThreadState* __tstate = wxPyBeginAllowThreads();
15187 result = (int)((wxFont const *)arg1)->GetPointSize();
15188 wxPyEndAllowThreads(__tstate);
15189 if (PyErr_Occurred()) SWIG_fail;
15190 }
15191 resultobj = SWIG_From_int(static_cast< int >(result));
15192 return resultobj;
15193 fail:
15194 return NULL;
15195 }
15196
15197
15198 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15199 PyObject *resultobj = 0;
15200 wxFont *arg1 = (wxFont *) 0 ;
15201 wxSize result;
15202 void *argp1 = 0 ;
15203 int res1 = 0 ;
15204 PyObject *swig_obj[1] ;
15205
15206 if (!args) SWIG_fail;
15207 swig_obj[0] = args;
15208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15209 if (!SWIG_IsOK(res1)) {
15210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15211 }
15212 arg1 = reinterpret_cast< wxFont * >(argp1);
15213 {
15214 PyThreadState* __tstate = wxPyBeginAllowThreads();
15215 result = ((wxFont const *)arg1)->GetPixelSize();
15216 wxPyEndAllowThreads(__tstate);
15217 if (PyErr_Occurred()) SWIG_fail;
15218 }
15219 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
15220 return resultobj;
15221 fail:
15222 return NULL;
15223 }
15224
15225
15226 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15227 PyObject *resultobj = 0;
15228 wxFont *arg1 = (wxFont *) 0 ;
15229 bool result;
15230 void *argp1 = 0 ;
15231 int res1 = 0 ;
15232 PyObject *swig_obj[1] ;
15233
15234 if (!args) SWIG_fail;
15235 swig_obj[0] = args;
15236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15237 if (!SWIG_IsOK(res1)) {
15238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
15239 }
15240 arg1 = reinterpret_cast< wxFont * >(argp1);
15241 {
15242 PyThreadState* __tstate = wxPyBeginAllowThreads();
15243 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
15244 wxPyEndAllowThreads(__tstate);
15245 if (PyErr_Occurred()) SWIG_fail;
15246 }
15247 {
15248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15249 }
15250 return resultobj;
15251 fail:
15252 return NULL;
15253 }
15254
15255
15256 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15257 PyObject *resultobj = 0;
15258 wxFont *arg1 = (wxFont *) 0 ;
15259 int result;
15260 void *argp1 = 0 ;
15261 int res1 = 0 ;
15262 PyObject *swig_obj[1] ;
15263
15264 if (!args) SWIG_fail;
15265 swig_obj[0] = args;
15266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15267 if (!SWIG_IsOK(res1)) {
15268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
15269 }
15270 arg1 = reinterpret_cast< wxFont * >(argp1);
15271 {
15272 PyThreadState* __tstate = wxPyBeginAllowThreads();
15273 result = (int)((wxFont const *)arg1)->GetFamily();
15274 wxPyEndAllowThreads(__tstate);
15275 if (PyErr_Occurred()) SWIG_fail;
15276 }
15277 resultobj = SWIG_From_int(static_cast< int >(result));
15278 return resultobj;
15279 fail:
15280 return NULL;
15281 }
15282
15283
15284 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15285 PyObject *resultobj = 0;
15286 wxFont *arg1 = (wxFont *) 0 ;
15287 int result;
15288 void *argp1 = 0 ;
15289 int res1 = 0 ;
15290 PyObject *swig_obj[1] ;
15291
15292 if (!args) SWIG_fail;
15293 swig_obj[0] = args;
15294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15295 if (!SWIG_IsOK(res1)) {
15296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
15297 }
15298 arg1 = reinterpret_cast< wxFont * >(argp1);
15299 {
15300 PyThreadState* __tstate = wxPyBeginAllowThreads();
15301 result = (int)((wxFont const *)arg1)->GetStyle();
15302 wxPyEndAllowThreads(__tstate);
15303 if (PyErr_Occurred()) SWIG_fail;
15304 }
15305 resultobj = SWIG_From_int(static_cast< int >(result));
15306 return resultobj;
15307 fail:
15308 return NULL;
15309 }
15310
15311
15312 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15313 PyObject *resultobj = 0;
15314 wxFont *arg1 = (wxFont *) 0 ;
15315 int result;
15316 void *argp1 = 0 ;
15317 int res1 = 0 ;
15318 PyObject *swig_obj[1] ;
15319
15320 if (!args) SWIG_fail;
15321 swig_obj[0] = args;
15322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15323 if (!SWIG_IsOK(res1)) {
15324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
15325 }
15326 arg1 = reinterpret_cast< wxFont * >(argp1);
15327 {
15328 PyThreadState* __tstate = wxPyBeginAllowThreads();
15329 result = (int)((wxFont const *)arg1)->GetWeight();
15330 wxPyEndAllowThreads(__tstate);
15331 if (PyErr_Occurred()) SWIG_fail;
15332 }
15333 resultobj = SWIG_From_int(static_cast< int >(result));
15334 return resultobj;
15335 fail:
15336 return NULL;
15337 }
15338
15339
15340 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15341 PyObject *resultobj = 0;
15342 wxFont *arg1 = (wxFont *) 0 ;
15343 bool result;
15344 void *argp1 = 0 ;
15345 int res1 = 0 ;
15346 PyObject *swig_obj[1] ;
15347
15348 if (!args) SWIG_fail;
15349 swig_obj[0] = args;
15350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15351 if (!SWIG_IsOK(res1)) {
15352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
15353 }
15354 arg1 = reinterpret_cast< wxFont * >(argp1);
15355 {
15356 PyThreadState* __tstate = wxPyBeginAllowThreads();
15357 result = (bool)((wxFont const *)arg1)->GetUnderlined();
15358 wxPyEndAllowThreads(__tstate);
15359 if (PyErr_Occurred()) SWIG_fail;
15360 }
15361 {
15362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15363 }
15364 return resultobj;
15365 fail:
15366 return NULL;
15367 }
15368
15369
15370 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15371 PyObject *resultobj = 0;
15372 wxFont *arg1 = (wxFont *) 0 ;
15373 wxString result;
15374 void *argp1 = 0 ;
15375 int res1 = 0 ;
15376 PyObject *swig_obj[1] ;
15377
15378 if (!args) SWIG_fail;
15379 swig_obj[0] = args;
15380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15381 if (!SWIG_IsOK(res1)) {
15382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
15383 }
15384 arg1 = reinterpret_cast< wxFont * >(argp1);
15385 {
15386 PyThreadState* __tstate = wxPyBeginAllowThreads();
15387 result = ((wxFont const *)arg1)->GetFaceName();
15388 wxPyEndAllowThreads(__tstate);
15389 if (PyErr_Occurred()) SWIG_fail;
15390 }
15391 {
15392 #if wxUSE_UNICODE
15393 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15394 #else
15395 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15396 #endif
15397 }
15398 return resultobj;
15399 fail:
15400 return NULL;
15401 }
15402
15403
15404 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15405 PyObject *resultobj = 0;
15406 wxFont *arg1 = (wxFont *) 0 ;
15407 wxFontEncoding result;
15408 void *argp1 = 0 ;
15409 int res1 = 0 ;
15410 PyObject *swig_obj[1] ;
15411
15412 if (!args) SWIG_fail;
15413 swig_obj[0] = args;
15414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15415 if (!SWIG_IsOK(res1)) {
15416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
15417 }
15418 arg1 = reinterpret_cast< wxFont * >(argp1);
15419 {
15420 PyThreadState* __tstate = wxPyBeginAllowThreads();
15421 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
15422 wxPyEndAllowThreads(__tstate);
15423 if (PyErr_Occurred()) SWIG_fail;
15424 }
15425 resultobj = SWIG_From_int(static_cast< int >(result));
15426 return resultobj;
15427 fail:
15428 return NULL;
15429 }
15430
15431
15432 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15433 PyObject *resultobj = 0;
15434 wxFont *arg1 = (wxFont *) 0 ;
15435 wxNativeFontInfo *result = 0 ;
15436 void *argp1 = 0 ;
15437 int res1 = 0 ;
15438 PyObject *swig_obj[1] ;
15439
15440 if (!args) SWIG_fail;
15441 swig_obj[0] = args;
15442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15443 if (!SWIG_IsOK(res1)) {
15444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
15445 }
15446 arg1 = reinterpret_cast< wxFont * >(argp1);
15447 {
15448 PyThreadState* __tstate = wxPyBeginAllowThreads();
15449 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
15450 wxPyEndAllowThreads(__tstate);
15451 if (PyErr_Occurred()) SWIG_fail;
15452 }
15453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
15454 return resultobj;
15455 fail:
15456 return NULL;
15457 }
15458
15459
15460 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15461 PyObject *resultobj = 0;
15462 wxFont *arg1 = (wxFont *) 0 ;
15463 bool result;
15464 void *argp1 = 0 ;
15465 int res1 = 0 ;
15466 PyObject *swig_obj[1] ;
15467
15468 if (!args) SWIG_fail;
15469 swig_obj[0] = args;
15470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15471 if (!SWIG_IsOK(res1)) {
15472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
15473 }
15474 arg1 = reinterpret_cast< wxFont * >(argp1);
15475 {
15476 PyThreadState* __tstate = wxPyBeginAllowThreads();
15477 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
15478 wxPyEndAllowThreads(__tstate);
15479 if (PyErr_Occurred()) SWIG_fail;
15480 }
15481 {
15482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15483 }
15484 return resultobj;
15485 fail:
15486 return NULL;
15487 }
15488
15489
15490 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15491 PyObject *resultobj = 0;
15492 wxFont *arg1 = (wxFont *) 0 ;
15493 wxString result;
15494 void *argp1 = 0 ;
15495 int res1 = 0 ;
15496 PyObject *swig_obj[1] ;
15497
15498 if (!args) SWIG_fail;
15499 swig_obj[0] = args;
15500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15501 if (!SWIG_IsOK(res1)) {
15502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15503 }
15504 arg1 = reinterpret_cast< wxFont * >(argp1);
15505 {
15506 PyThreadState* __tstate = wxPyBeginAllowThreads();
15507 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
15508 wxPyEndAllowThreads(__tstate);
15509 if (PyErr_Occurred()) SWIG_fail;
15510 }
15511 {
15512 #if wxUSE_UNICODE
15513 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15514 #else
15515 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15516 #endif
15517 }
15518 return resultobj;
15519 fail:
15520 return NULL;
15521 }
15522
15523
15524 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15525 PyObject *resultobj = 0;
15526 wxFont *arg1 = (wxFont *) 0 ;
15527 wxString result;
15528 void *argp1 = 0 ;
15529 int res1 = 0 ;
15530 PyObject *swig_obj[1] ;
15531
15532 if (!args) SWIG_fail;
15533 swig_obj[0] = args;
15534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15535 if (!SWIG_IsOK(res1)) {
15536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15537 }
15538 arg1 = reinterpret_cast< wxFont * >(argp1);
15539 {
15540 PyThreadState* __tstate = wxPyBeginAllowThreads();
15541 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15542 wxPyEndAllowThreads(__tstate);
15543 if (PyErr_Occurred()) SWIG_fail;
15544 }
15545 {
15546 #if wxUSE_UNICODE
15547 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15548 #else
15549 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15550 #endif
15551 }
15552 return resultobj;
15553 fail:
15554 return NULL;
15555 }
15556
15557
15558 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15559 PyObject *resultobj = 0;
15560 wxFont *arg1 = (wxFont *) 0 ;
15561 int arg2 ;
15562 void *argp1 = 0 ;
15563 int res1 = 0 ;
15564 int val2 ;
15565 int ecode2 = 0 ;
15566 PyObject * obj0 = 0 ;
15567 PyObject * obj1 = 0 ;
15568 char * kwnames[] = {
15569 (char *) "self",(char *) "pointSize", NULL
15570 };
15571
15572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15574 if (!SWIG_IsOK(res1)) {
15575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15576 }
15577 arg1 = reinterpret_cast< wxFont * >(argp1);
15578 ecode2 = SWIG_AsVal_int(obj1, &val2);
15579 if (!SWIG_IsOK(ecode2)) {
15580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15581 }
15582 arg2 = static_cast< int >(val2);
15583 {
15584 PyThreadState* __tstate = wxPyBeginAllowThreads();
15585 (arg1)->SetPointSize(arg2);
15586 wxPyEndAllowThreads(__tstate);
15587 if (PyErr_Occurred()) SWIG_fail;
15588 }
15589 resultobj = SWIG_Py_Void();
15590 return resultobj;
15591 fail:
15592 return NULL;
15593 }
15594
15595
15596 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15597 PyObject *resultobj = 0;
15598 wxFont *arg1 = (wxFont *) 0 ;
15599 wxSize *arg2 = 0 ;
15600 void *argp1 = 0 ;
15601 int res1 = 0 ;
15602 wxSize temp2 ;
15603 PyObject * obj0 = 0 ;
15604 PyObject * obj1 = 0 ;
15605 char * kwnames[] = {
15606 (char *) "self",(char *) "pixelSize", NULL
15607 };
15608
15609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15611 if (!SWIG_IsOK(res1)) {
15612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15613 }
15614 arg1 = reinterpret_cast< wxFont * >(argp1);
15615 {
15616 arg2 = &temp2;
15617 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15618 }
15619 {
15620 PyThreadState* __tstate = wxPyBeginAllowThreads();
15621 (arg1)->SetPixelSize((wxSize const &)*arg2);
15622 wxPyEndAllowThreads(__tstate);
15623 if (PyErr_Occurred()) SWIG_fail;
15624 }
15625 resultobj = SWIG_Py_Void();
15626 return resultobj;
15627 fail:
15628 return NULL;
15629 }
15630
15631
15632 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15633 PyObject *resultobj = 0;
15634 wxFont *arg1 = (wxFont *) 0 ;
15635 int arg2 ;
15636 void *argp1 = 0 ;
15637 int res1 = 0 ;
15638 int val2 ;
15639 int ecode2 = 0 ;
15640 PyObject * obj0 = 0 ;
15641 PyObject * obj1 = 0 ;
15642 char * kwnames[] = {
15643 (char *) "self",(char *) "family", NULL
15644 };
15645
15646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15648 if (!SWIG_IsOK(res1)) {
15649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15650 }
15651 arg1 = reinterpret_cast< wxFont * >(argp1);
15652 ecode2 = SWIG_AsVal_int(obj1, &val2);
15653 if (!SWIG_IsOK(ecode2)) {
15654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15655 }
15656 arg2 = static_cast< int >(val2);
15657 {
15658 PyThreadState* __tstate = wxPyBeginAllowThreads();
15659 (arg1)->SetFamily(arg2);
15660 wxPyEndAllowThreads(__tstate);
15661 if (PyErr_Occurred()) SWIG_fail;
15662 }
15663 resultobj = SWIG_Py_Void();
15664 return resultobj;
15665 fail:
15666 return NULL;
15667 }
15668
15669
15670 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15671 PyObject *resultobj = 0;
15672 wxFont *arg1 = (wxFont *) 0 ;
15673 int arg2 ;
15674 void *argp1 = 0 ;
15675 int res1 = 0 ;
15676 int val2 ;
15677 int ecode2 = 0 ;
15678 PyObject * obj0 = 0 ;
15679 PyObject * obj1 = 0 ;
15680 char * kwnames[] = {
15681 (char *) "self",(char *) "style", NULL
15682 };
15683
15684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15686 if (!SWIG_IsOK(res1)) {
15687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15688 }
15689 arg1 = reinterpret_cast< wxFont * >(argp1);
15690 ecode2 = SWIG_AsVal_int(obj1, &val2);
15691 if (!SWIG_IsOK(ecode2)) {
15692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15693 }
15694 arg2 = static_cast< int >(val2);
15695 {
15696 PyThreadState* __tstate = wxPyBeginAllowThreads();
15697 (arg1)->SetStyle(arg2);
15698 wxPyEndAllowThreads(__tstate);
15699 if (PyErr_Occurred()) SWIG_fail;
15700 }
15701 resultobj = SWIG_Py_Void();
15702 return resultobj;
15703 fail:
15704 return NULL;
15705 }
15706
15707
15708 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15709 PyObject *resultobj = 0;
15710 wxFont *arg1 = (wxFont *) 0 ;
15711 int arg2 ;
15712 void *argp1 = 0 ;
15713 int res1 = 0 ;
15714 int val2 ;
15715 int ecode2 = 0 ;
15716 PyObject * obj0 = 0 ;
15717 PyObject * obj1 = 0 ;
15718 char * kwnames[] = {
15719 (char *) "self",(char *) "weight", NULL
15720 };
15721
15722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15724 if (!SWIG_IsOK(res1)) {
15725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15726 }
15727 arg1 = reinterpret_cast< wxFont * >(argp1);
15728 ecode2 = SWIG_AsVal_int(obj1, &val2);
15729 if (!SWIG_IsOK(ecode2)) {
15730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15731 }
15732 arg2 = static_cast< int >(val2);
15733 {
15734 PyThreadState* __tstate = wxPyBeginAllowThreads();
15735 (arg1)->SetWeight(arg2);
15736 wxPyEndAllowThreads(__tstate);
15737 if (PyErr_Occurred()) SWIG_fail;
15738 }
15739 resultobj = SWIG_Py_Void();
15740 return resultobj;
15741 fail:
15742 return NULL;
15743 }
15744
15745
15746 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15747 PyObject *resultobj = 0;
15748 wxFont *arg1 = (wxFont *) 0 ;
15749 wxString *arg2 = 0 ;
15750 bool result;
15751 void *argp1 = 0 ;
15752 int res1 = 0 ;
15753 bool temp2 = false ;
15754 PyObject * obj0 = 0 ;
15755 PyObject * obj1 = 0 ;
15756 char * kwnames[] = {
15757 (char *) "self",(char *) "faceName", NULL
15758 };
15759
15760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15762 if (!SWIG_IsOK(res1)) {
15763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15764 }
15765 arg1 = reinterpret_cast< wxFont * >(argp1);
15766 {
15767 arg2 = wxString_in_helper(obj1);
15768 if (arg2 == NULL) SWIG_fail;
15769 temp2 = true;
15770 }
15771 {
15772 PyThreadState* __tstate = wxPyBeginAllowThreads();
15773 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15774 wxPyEndAllowThreads(__tstate);
15775 if (PyErr_Occurred()) SWIG_fail;
15776 }
15777 {
15778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15779 }
15780 {
15781 if (temp2)
15782 delete arg2;
15783 }
15784 return resultobj;
15785 fail:
15786 {
15787 if (temp2)
15788 delete arg2;
15789 }
15790 return NULL;
15791 }
15792
15793
15794 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15795 PyObject *resultobj = 0;
15796 wxFont *arg1 = (wxFont *) 0 ;
15797 bool arg2 ;
15798 void *argp1 = 0 ;
15799 int res1 = 0 ;
15800 bool val2 ;
15801 int ecode2 = 0 ;
15802 PyObject * obj0 = 0 ;
15803 PyObject * obj1 = 0 ;
15804 char * kwnames[] = {
15805 (char *) "self",(char *) "underlined", NULL
15806 };
15807
15808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15810 if (!SWIG_IsOK(res1)) {
15811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15812 }
15813 arg1 = reinterpret_cast< wxFont * >(argp1);
15814 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15815 if (!SWIG_IsOK(ecode2)) {
15816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15817 }
15818 arg2 = static_cast< bool >(val2);
15819 {
15820 PyThreadState* __tstate = wxPyBeginAllowThreads();
15821 (arg1)->SetUnderlined(arg2);
15822 wxPyEndAllowThreads(__tstate);
15823 if (PyErr_Occurred()) SWIG_fail;
15824 }
15825 resultobj = SWIG_Py_Void();
15826 return resultobj;
15827 fail:
15828 return NULL;
15829 }
15830
15831
15832 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15833 PyObject *resultobj = 0;
15834 wxFont *arg1 = (wxFont *) 0 ;
15835 wxFontEncoding arg2 ;
15836 void *argp1 = 0 ;
15837 int res1 = 0 ;
15838 int val2 ;
15839 int ecode2 = 0 ;
15840 PyObject * obj0 = 0 ;
15841 PyObject * obj1 = 0 ;
15842 char * kwnames[] = {
15843 (char *) "self",(char *) "encoding", NULL
15844 };
15845
15846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15848 if (!SWIG_IsOK(res1)) {
15849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15850 }
15851 arg1 = reinterpret_cast< wxFont * >(argp1);
15852 ecode2 = SWIG_AsVal_int(obj1, &val2);
15853 if (!SWIG_IsOK(ecode2)) {
15854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15855 }
15856 arg2 = static_cast< wxFontEncoding >(val2);
15857 {
15858 PyThreadState* __tstate = wxPyBeginAllowThreads();
15859 (arg1)->SetEncoding(arg2);
15860 wxPyEndAllowThreads(__tstate);
15861 if (PyErr_Occurred()) SWIG_fail;
15862 }
15863 resultobj = SWIG_Py_Void();
15864 return resultobj;
15865 fail:
15866 return NULL;
15867 }
15868
15869
15870 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15871 PyObject *resultobj = 0;
15872 wxFont *arg1 = (wxFont *) 0 ;
15873 wxNativeFontInfo *arg2 = 0 ;
15874 void *argp1 = 0 ;
15875 int res1 = 0 ;
15876 void *argp2 = 0 ;
15877 int res2 = 0 ;
15878 PyObject * obj0 = 0 ;
15879 PyObject * obj1 = 0 ;
15880 char * kwnames[] = {
15881 (char *) "self",(char *) "info", NULL
15882 };
15883
15884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15886 if (!SWIG_IsOK(res1)) {
15887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15888 }
15889 arg1 = reinterpret_cast< wxFont * >(argp1);
15890 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15891 if (!SWIG_IsOK(res2)) {
15892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15893 }
15894 if (!argp2) {
15895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15896 }
15897 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15898 {
15899 PyThreadState* __tstate = wxPyBeginAllowThreads();
15900 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15901 wxPyEndAllowThreads(__tstate);
15902 if (PyErr_Occurred()) SWIG_fail;
15903 }
15904 resultobj = SWIG_Py_Void();
15905 return resultobj;
15906 fail:
15907 return NULL;
15908 }
15909
15910
15911 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15912 PyObject *resultobj = 0;
15913 wxFont *arg1 = (wxFont *) 0 ;
15914 wxString *arg2 = 0 ;
15915 bool result;
15916 void *argp1 = 0 ;
15917 int res1 = 0 ;
15918 bool temp2 = false ;
15919 PyObject * obj0 = 0 ;
15920 PyObject * obj1 = 0 ;
15921 char * kwnames[] = {
15922 (char *) "self",(char *) "info", NULL
15923 };
15924
15925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15927 if (!SWIG_IsOK(res1)) {
15928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15929 }
15930 arg1 = reinterpret_cast< wxFont * >(argp1);
15931 {
15932 arg2 = wxString_in_helper(obj1);
15933 if (arg2 == NULL) SWIG_fail;
15934 temp2 = true;
15935 }
15936 {
15937 PyThreadState* __tstate = wxPyBeginAllowThreads();
15938 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15939 wxPyEndAllowThreads(__tstate);
15940 if (PyErr_Occurred()) SWIG_fail;
15941 }
15942 {
15943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15944 }
15945 {
15946 if (temp2)
15947 delete arg2;
15948 }
15949 return resultobj;
15950 fail:
15951 {
15952 if (temp2)
15953 delete arg2;
15954 }
15955 return NULL;
15956 }
15957
15958
15959 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15960 PyObject *resultobj = 0;
15961 wxFont *arg1 = (wxFont *) 0 ;
15962 wxString *arg2 = 0 ;
15963 bool result;
15964 void *argp1 = 0 ;
15965 int res1 = 0 ;
15966 bool temp2 = false ;
15967 PyObject * obj0 = 0 ;
15968 PyObject * obj1 = 0 ;
15969 char * kwnames[] = {
15970 (char *) "self",(char *) "info", NULL
15971 };
15972
15973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15975 if (!SWIG_IsOK(res1)) {
15976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15977 }
15978 arg1 = reinterpret_cast< wxFont * >(argp1);
15979 {
15980 arg2 = wxString_in_helper(obj1);
15981 if (arg2 == NULL) SWIG_fail;
15982 temp2 = true;
15983 }
15984 {
15985 PyThreadState* __tstate = wxPyBeginAllowThreads();
15986 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15987 wxPyEndAllowThreads(__tstate);
15988 if (PyErr_Occurred()) SWIG_fail;
15989 }
15990 {
15991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15992 }
15993 {
15994 if (temp2)
15995 delete arg2;
15996 }
15997 return resultobj;
15998 fail:
15999 {
16000 if (temp2)
16001 delete arg2;
16002 }
16003 return NULL;
16004 }
16005
16006
16007 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16008 PyObject *resultobj = 0;
16009 wxFont *arg1 = (wxFont *) 0 ;
16010 wxString result;
16011 void *argp1 = 0 ;
16012 int res1 = 0 ;
16013 PyObject *swig_obj[1] ;
16014
16015 if (!args) SWIG_fail;
16016 swig_obj[0] = args;
16017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
16018 if (!SWIG_IsOK(res1)) {
16019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
16020 }
16021 arg1 = reinterpret_cast< wxFont * >(argp1);
16022 {
16023 PyThreadState* __tstate = wxPyBeginAllowThreads();
16024 result = ((wxFont const *)arg1)->GetFamilyString();
16025 wxPyEndAllowThreads(__tstate);
16026 if (PyErr_Occurred()) SWIG_fail;
16027 }
16028 {
16029 #if wxUSE_UNICODE
16030 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16031 #else
16032 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16033 #endif
16034 }
16035 return resultobj;
16036 fail:
16037 return NULL;
16038 }
16039
16040
16041 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16042 PyObject *resultobj = 0;
16043 wxFont *arg1 = (wxFont *) 0 ;
16044 wxString result;
16045 void *argp1 = 0 ;
16046 int res1 = 0 ;
16047 PyObject *swig_obj[1] ;
16048
16049 if (!args) SWIG_fail;
16050 swig_obj[0] = args;
16051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
16052 if (!SWIG_IsOK(res1)) {
16053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
16054 }
16055 arg1 = reinterpret_cast< wxFont * >(argp1);
16056 {
16057 PyThreadState* __tstate = wxPyBeginAllowThreads();
16058 result = ((wxFont const *)arg1)->GetStyleString();
16059 wxPyEndAllowThreads(__tstate);
16060 if (PyErr_Occurred()) SWIG_fail;
16061 }
16062 {
16063 #if wxUSE_UNICODE
16064 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16065 #else
16066 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16067 #endif
16068 }
16069 return resultobj;
16070 fail:
16071 return NULL;
16072 }
16073
16074
16075 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16076 PyObject *resultobj = 0;
16077 wxFont *arg1 = (wxFont *) 0 ;
16078 wxString result;
16079 void *argp1 = 0 ;
16080 int res1 = 0 ;
16081 PyObject *swig_obj[1] ;
16082
16083 if (!args) SWIG_fail;
16084 swig_obj[0] = args;
16085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
16086 if (!SWIG_IsOK(res1)) {
16087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
16088 }
16089 arg1 = reinterpret_cast< wxFont * >(argp1);
16090 {
16091 PyThreadState* __tstate = wxPyBeginAllowThreads();
16092 result = ((wxFont const *)arg1)->GetWeightString();
16093 wxPyEndAllowThreads(__tstate);
16094 if (PyErr_Occurred()) SWIG_fail;
16095 }
16096 {
16097 #if wxUSE_UNICODE
16098 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16099 #else
16100 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16101 #endif
16102 }
16103 return resultobj;
16104 fail:
16105 return NULL;
16106 }
16107
16108
16109 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16110 PyObject *resultobj = 0;
16111 wxFont *arg1 = (wxFont *) 0 ;
16112 bool arg2 = (bool) true ;
16113 void *argp1 = 0 ;
16114 int res1 = 0 ;
16115 bool val2 ;
16116 int ecode2 = 0 ;
16117 PyObject * obj0 = 0 ;
16118 PyObject * obj1 = 0 ;
16119 char * kwnames[] = {
16120 (char *) "self",(char *) "no", NULL
16121 };
16122
16123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
16124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
16125 if (!SWIG_IsOK(res1)) {
16126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
16127 }
16128 arg1 = reinterpret_cast< wxFont * >(argp1);
16129 if (obj1) {
16130 ecode2 = SWIG_AsVal_bool(obj1, &val2);
16131 if (!SWIG_IsOK(ecode2)) {
16132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
16133 }
16134 arg2 = static_cast< bool >(val2);
16135 }
16136 {
16137 PyThreadState* __tstate = wxPyBeginAllowThreads();
16138 (arg1)->SetNoAntiAliasing(arg2);
16139 wxPyEndAllowThreads(__tstate);
16140 if (PyErr_Occurred()) SWIG_fail;
16141 }
16142 resultobj = SWIG_Py_Void();
16143 return resultobj;
16144 fail:
16145 return NULL;
16146 }
16147
16148
16149 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16150 PyObject *resultobj = 0;
16151 wxFont *arg1 = (wxFont *) 0 ;
16152 bool result;
16153 void *argp1 = 0 ;
16154 int res1 = 0 ;
16155 PyObject *swig_obj[1] ;
16156
16157 if (!args) SWIG_fail;
16158 swig_obj[0] = args;
16159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
16160 if (!SWIG_IsOK(res1)) {
16161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
16162 }
16163 arg1 = reinterpret_cast< wxFont * >(argp1);
16164 {
16165 PyThreadState* __tstate = wxPyBeginAllowThreads();
16166 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
16167 wxPyEndAllowThreads(__tstate);
16168 if (PyErr_Occurred()) SWIG_fail;
16169 }
16170 {
16171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16172 }
16173 return resultobj;
16174 fail:
16175 return NULL;
16176 }
16177
16178
16179 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16180 PyObject *resultobj = 0;
16181 wxFontEncoding result;
16182
16183 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
16184 {
16185 if (!wxPyCheckForApp()) SWIG_fail;
16186 PyThreadState* __tstate = wxPyBeginAllowThreads();
16187 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
16188 wxPyEndAllowThreads(__tstate);
16189 if (PyErr_Occurred()) SWIG_fail;
16190 }
16191 resultobj = SWIG_From_int(static_cast< int >(result));
16192 return resultobj;
16193 fail:
16194 return NULL;
16195 }
16196
16197
16198 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16199 PyObject *resultobj = 0;
16200 wxFontEncoding arg1 ;
16201 int val1 ;
16202 int ecode1 = 0 ;
16203 PyObject * obj0 = 0 ;
16204 char * kwnames[] = {
16205 (char *) "encoding", NULL
16206 };
16207
16208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
16209 ecode1 = SWIG_AsVal_int(obj0, &val1);
16210 if (!SWIG_IsOK(ecode1)) {
16211 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16212 }
16213 arg1 = static_cast< wxFontEncoding >(val1);
16214 {
16215 if (!wxPyCheckForApp()) SWIG_fail;
16216 PyThreadState* __tstate = wxPyBeginAllowThreads();
16217 wxFont::SetDefaultEncoding(arg1);
16218 wxPyEndAllowThreads(__tstate);
16219 if (PyErr_Occurred()) SWIG_fail;
16220 }
16221 resultobj = SWIG_Py_Void();
16222 return resultobj;
16223 fail:
16224 return NULL;
16225 }
16226
16227
16228 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16229 PyObject *obj;
16230 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16231 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
16232 return SWIG_Py_Void();
16233 }
16234
16235 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16236 return SWIG_Python_InitShadowInstance(args);
16237 }
16238
16239 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16240 PyObject *resultobj = 0;
16241 wxPyFontEnumerator *result = 0 ;
16242
16243 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
16244 {
16245 if (!wxPyCheckForApp()) SWIG_fail;
16246 PyThreadState* __tstate = wxPyBeginAllowThreads();
16247 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
16248 wxPyEndAllowThreads(__tstate);
16249 if (PyErr_Occurred()) SWIG_fail;
16250 }
16251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
16252 return resultobj;
16253 fail:
16254 return NULL;
16255 }
16256
16257
16258 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16259 PyObject *resultobj = 0;
16260 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16261 void *argp1 = 0 ;
16262 int res1 = 0 ;
16263 PyObject *swig_obj[1] ;
16264
16265 if (!args) SWIG_fail;
16266 swig_obj[0] = args;
16267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
16268 if (!SWIG_IsOK(res1)) {
16269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16270 }
16271 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16272 {
16273 PyThreadState* __tstate = wxPyBeginAllowThreads();
16274 delete arg1;
16275
16276 wxPyEndAllowThreads(__tstate);
16277 if (PyErr_Occurred()) SWIG_fail;
16278 }
16279 resultobj = SWIG_Py_Void();
16280 return resultobj;
16281 fail:
16282 return NULL;
16283 }
16284
16285
16286 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16287 PyObject *resultobj = 0;
16288 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16289 PyObject *arg2 = (PyObject *) 0 ;
16290 PyObject *arg3 = (PyObject *) 0 ;
16291 int arg4 = (int) 0 ;
16292 void *argp1 = 0 ;
16293 int res1 = 0 ;
16294 int val4 ;
16295 int ecode4 = 0 ;
16296 PyObject * obj0 = 0 ;
16297 PyObject * obj1 = 0 ;
16298 PyObject * obj2 = 0 ;
16299 PyObject * obj3 = 0 ;
16300 char * kwnames[] = {
16301 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
16302 };
16303
16304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16306 if (!SWIG_IsOK(res1)) {
16307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16308 }
16309 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16310 arg2 = obj1;
16311 arg3 = obj2;
16312 if (obj3) {
16313 ecode4 = SWIG_AsVal_int(obj3, &val4);
16314 if (!SWIG_IsOK(ecode4)) {
16315 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
16316 }
16317 arg4 = static_cast< int >(val4);
16318 }
16319 {
16320 PyThreadState* __tstate = wxPyBeginAllowThreads();
16321 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
16322 wxPyEndAllowThreads(__tstate);
16323 if (PyErr_Occurred()) SWIG_fail;
16324 }
16325 resultobj = SWIG_Py_Void();
16326 return resultobj;
16327 fail:
16328 return NULL;
16329 }
16330
16331
16332 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16333 PyObject *resultobj = 0;
16334 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16335 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
16336 bool arg3 = (bool) false ;
16337 bool result;
16338 void *argp1 = 0 ;
16339 int res1 = 0 ;
16340 int val2 ;
16341 int ecode2 = 0 ;
16342 bool val3 ;
16343 int ecode3 = 0 ;
16344 PyObject * obj0 = 0 ;
16345 PyObject * obj1 = 0 ;
16346 PyObject * obj2 = 0 ;
16347 char * kwnames[] = {
16348 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
16349 };
16350
16351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16353 if (!SWIG_IsOK(res1)) {
16354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16355 }
16356 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16357 if (obj1) {
16358 ecode2 = SWIG_AsVal_int(obj1, &val2);
16359 if (!SWIG_IsOK(ecode2)) {
16360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16361 }
16362 arg2 = static_cast< wxFontEncoding >(val2);
16363 }
16364 if (obj2) {
16365 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16366 if (!SWIG_IsOK(ecode3)) {
16367 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
16368 }
16369 arg3 = static_cast< bool >(val3);
16370 }
16371 {
16372 PyThreadState* __tstate = wxPyBeginAllowThreads();
16373 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
16374 wxPyEndAllowThreads(__tstate);
16375 if (PyErr_Occurred()) SWIG_fail;
16376 }
16377 {
16378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16379 }
16380 return resultobj;
16381 fail:
16382 return NULL;
16383 }
16384
16385
16386 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16387 PyObject *resultobj = 0;
16388 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16389 wxString const &arg2_defvalue = wxPyEmptyString ;
16390 wxString *arg2 = (wxString *) &arg2_defvalue ;
16391 bool result;
16392 void *argp1 = 0 ;
16393 int res1 = 0 ;
16394 bool temp2 = false ;
16395 PyObject * obj0 = 0 ;
16396 PyObject * obj1 = 0 ;
16397 char * kwnames[] = {
16398 (char *) "self",(char *) "facename", NULL
16399 };
16400
16401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
16402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16403 if (!SWIG_IsOK(res1)) {
16404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16405 }
16406 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16407 if (obj1) {
16408 {
16409 arg2 = wxString_in_helper(obj1);
16410 if (arg2 == NULL) SWIG_fail;
16411 temp2 = true;
16412 }
16413 }
16414 {
16415 PyThreadState* __tstate = wxPyBeginAllowThreads();
16416 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
16417 wxPyEndAllowThreads(__tstate);
16418 if (PyErr_Occurred()) SWIG_fail;
16419 }
16420 {
16421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16422 }
16423 {
16424 if (temp2)
16425 delete arg2;
16426 }
16427 return resultobj;
16428 fail:
16429 {
16430 if (temp2)
16431 delete arg2;
16432 }
16433 return NULL;
16434 }
16435
16436
16437 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16438 PyObject *resultobj = 0;
16439 PyObject *result = 0 ;
16440
16441 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
16442 {
16443 PyThreadState* __tstate = wxPyBeginAllowThreads();
16444 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
16445 wxPyEndAllowThreads(__tstate);
16446 if (PyErr_Occurred()) SWIG_fail;
16447 }
16448 resultobj = result;
16449 return resultobj;
16450 fail:
16451 return NULL;
16452 }
16453
16454
16455 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16456 PyObject *resultobj = 0;
16457 PyObject *result = 0 ;
16458
16459 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
16460 {
16461 PyThreadState* __tstate = wxPyBeginAllowThreads();
16462 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
16463 wxPyEndAllowThreads(__tstate);
16464 if (PyErr_Occurred()) SWIG_fail;
16465 }
16466 resultobj = result;
16467 return resultobj;
16468 fail:
16469 return NULL;
16470 }
16471
16472
16473 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16474 PyObject *resultobj = 0;
16475 wxString *arg1 = 0 ;
16476 bool result;
16477 bool temp1 = false ;
16478 PyObject * obj0 = 0 ;
16479 char * kwnames[] = {
16480 (char *) "str", NULL
16481 };
16482
16483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
16484 {
16485 arg1 = wxString_in_helper(obj0);
16486 if (arg1 == NULL) SWIG_fail;
16487 temp1 = true;
16488 }
16489 {
16490 PyThreadState* __tstate = wxPyBeginAllowThreads();
16491 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
16492 wxPyEndAllowThreads(__tstate);
16493 if (PyErr_Occurred()) SWIG_fail;
16494 }
16495 {
16496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16497 }
16498 {
16499 if (temp1)
16500 delete arg1;
16501 }
16502 return resultobj;
16503 fail:
16504 {
16505 if (temp1)
16506 delete arg1;
16507 }
16508 return NULL;
16509 }
16510
16511
16512 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16513 PyObject *obj;
16514 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16515 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16516 return SWIG_Py_Void();
16517 }
16518
16519 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16520 return SWIG_Python_InitShadowInstance(args);
16521 }
16522
16523 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16524 PyObject *resultobj = 0;
16525 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16526 int arg2 ;
16527 void *argp1 = 0 ;
16528 int res1 = 0 ;
16529 int val2 ;
16530 int ecode2 = 0 ;
16531 PyObject *swig_obj[2] ;
16532
16533 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16535 if (!SWIG_IsOK(res1)) {
16536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16537 }
16538 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16539 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16540 if (!SWIG_IsOK(ecode2)) {
16541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16542 }
16543 arg2 = static_cast< int >(val2);
16544 if (arg1) (arg1)->Language = arg2;
16545
16546 resultobj = SWIG_Py_Void();
16547 return resultobj;
16548 fail:
16549 return NULL;
16550 }
16551
16552
16553 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16554 PyObject *resultobj = 0;
16555 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16556 int result;
16557 void *argp1 = 0 ;
16558 int res1 = 0 ;
16559 PyObject *swig_obj[1] ;
16560
16561 if (!args) SWIG_fail;
16562 swig_obj[0] = args;
16563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16564 if (!SWIG_IsOK(res1)) {
16565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16566 }
16567 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16568 result = (int) ((arg1)->Language);
16569 resultobj = SWIG_From_int(static_cast< int >(result));
16570 return resultobj;
16571 fail:
16572 return NULL;
16573 }
16574
16575
16576 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16577 PyObject *resultobj = 0;
16578 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16579 wxString *arg2 = (wxString *) 0 ;
16580 void *argp1 = 0 ;
16581 int res1 = 0 ;
16582 bool temp2 = false ;
16583 PyObject *swig_obj[2] ;
16584
16585 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16587 if (!SWIG_IsOK(res1)) {
16588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16589 }
16590 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16591 {
16592 arg2 = wxString_in_helper(swig_obj[1]);
16593 if (arg2 == NULL) SWIG_fail;
16594 temp2 = true;
16595 }
16596 if (arg1) (arg1)->CanonicalName = *arg2;
16597
16598 resultobj = SWIG_Py_Void();
16599 {
16600 if (temp2)
16601 delete arg2;
16602 }
16603 return resultobj;
16604 fail:
16605 {
16606 if (temp2)
16607 delete arg2;
16608 }
16609 return NULL;
16610 }
16611
16612
16613 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16614 PyObject *resultobj = 0;
16615 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16616 wxString *result = 0 ;
16617 void *argp1 = 0 ;
16618 int res1 = 0 ;
16619 PyObject *swig_obj[1] ;
16620
16621 if (!args) SWIG_fail;
16622 swig_obj[0] = args;
16623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16624 if (!SWIG_IsOK(res1)) {
16625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16626 }
16627 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16628 result = (wxString *)& ((arg1)->CanonicalName);
16629 {
16630 #if wxUSE_UNICODE
16631 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16632 #else
16633 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16634 #endif
16635 }
16636 return resultobj;
16637 fail:
16638 return NULL;
16639 }
16640
16641
16642 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16643 PyObject *resultobj = 0;
16644 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16645 wxString *arg2 = (wxString *) 0 ;
16646 void *argp1 = 0 ;
16647 int res1 = 0 ;
16648 bool temp2 = false ;
16649 PyObject *swig_obj[2] ;
16650
16651 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16653 if (!SWIG_IsOK(res1)) {
16654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16655 }
16656 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16657 {
16658 arg2 = wxString_in_helper(swig_obj[1]);
16659 if (arg2 == NULL) SWIG_fail;
16660 temp2 = true;
16661 }
16662 if (arg1) (arg1)->Description = *arg2;
16663
16664 resultobj = SWIG_Py_Void();
16665 {
16666 if (temp2)
16667 delete arg2;
16668 }
16669 return resultobj;
16670 fail:
16671 {
16672 if (temp2)
16673 delete arg2;
16674 }
16675 return NULL;
16676 }
16677
16678
16679 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16680 PyObject *resultobj = 0;
16681 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16682 wxString *result = 0 ;
16683 void *argp1 = 0 ;
16684 int res1 = 0 ;
16685 PyObject *swig_obj[1] ;
16686
16687 if (!args) SWIG_fail;
16688 swig_obj[0] = args;
16689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16690 if (!SWIG_IsOK(res1)) {
16691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16692 }
16693 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16694 result = (wxString *)& ((arg1)->Description);
16695 {
16696 #if wxUSE_UNICODE
16697 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16698 #else
16699 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16700 #endif
16701 }
16702 return resultobj;
16703 fail:
16704 return NULL;
16705 }
16706
16707
16708 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16709 PyObject *obj;
16710 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16711 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16712 return SWIG_Py_Void();
16713 }
16714
16715 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16716 PyObject *resultobj = 0;
16717 int arg1 = (int) -1 ;
16718 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16719 wxLocale *result = 0 ;
16720 int val1 ;
16721 int ecode1 = 0 ;
16722 int val2 ;
16723 int ecode2 = 0 ;
16724 PyObject * obj0 = 0 ;
16725 PyObject * obj1 = 0 ;
16726 char * kwnames[] = {
16727 (char *) "language",(char *) "flags", NULL
16728 };
16729
16730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16731 if (obj0) {
16732 ecode1 = SWIG_AsVal_int(obj0, &val1);
16733 if (!SWIG_IsOK(ecode1)) {
16734 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16735 }
16736 arg1 = static_cast< int >(val1);
16737 }
16738 if (obj1) {
16739 ecode2 = SWIG_AsVal_int(obj1, &val2);
16740 if (!SWIG_IsOK(ecode2)) {
16741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16742 }
16743 arg2 = static_cast< int >(val2);
16744 }
16745 {
16746 PyThreadState* __tstate = wxPyBeginAllowThreads();
16747 result = (wxLocale *)new_wxLocale(arg1,arg2);
16748 wxPyEndAllowThreads(__tstate);
16749 if (PyErr_Occurred()) SWIG_fail;
16750 }
16751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16752 return resultobj;
16753 fail:
16754 return NULL;
16755 }
16756
16757
16758 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16759 PyObject *resultobj = 0;
16760 wxLocale *arg1 = (wxLocale *) 0 ;
16761 void *argp1 = 0 ;
16762 int res1 = 0 ;
16763 PyObject *swig_obj[1] ;
16764
16765 if (!args) SWIG_fail;
16766 swig_obj[0] = args;
16767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16768 if (!SWIG_IsOK(res1)) {
16769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16770 }
16771 arg1 = reinterpret_cast< wxLocale * >(argp1);
16772 {
16773 PyThreadState* __tstate = wxPyBeginAllowThreads();
16774 delete arg1;
16775
16776 wxPyEndAllowThreads(__tstate);
16777 if (PyErr_Occurred()) SWIG_fail;
16778 }
16779 resultobj = SWIG_Py_Void();
16780 return resultobj;
16781 fail:
16782 return NULL;
16783 }
16784
16785
16786 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16787 PyObject *resultobj = 0;
16788 wxLocale *arg1 = (wxLocale *) 0 ;
16789 wxString *arg2 = 0 ;
16790 wxString const &arg3_defvalue = wxPyEmptyString ;
16791 wxString *arg3 = (wxString *) &arg3_defvalue ;
16792 wxString const &arg4_defvalue = wxPyEmptyString ;
16793 wxString *arg4 = (wxString *) &arg4_defvalue ;
16794 bool arg5 = (bool) true ;
16795 bool arg6 = (bool) false ;
16796 bool result;
16797 void *argp1 = 0 ;
16798 int res1 = 0 ;
16799 bool temp2 = false ;
16800 bool temp3 = false ;
16801 bool temp4 = false ;
16802 bool val5 ;
16803 int ecode5 = 0 ;
16804 bool val6 ;
16805 int ecode6 = 0 ;
16806 PyObject * obj0 = 0 ;
16807 PyObject * obj1 = 0 ;
16808 PyObject * obj2 = 0 ;
16809 PyObject * obj3 = 0 ;
16810 PyObject * obj4 = 0 ;
16811 PyObject * obj5 = 0 ;
16812 char * kwnames[] = {
16813 (char *) "self",(char *) "name",(char *) "shortName",(char *) "locale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16814 };
16815
16816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16818 if (!SWIG_IsOK(res1)) {
16819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16820 }
16821 arg1 = reinterpret_cast< wxLocale * >(argp1);
16822 {
16823 arg2 = wxString_in_helper(obj1);
16824 if (arg2 == NULL) SWIG_fail;
16825 temp2 = true;
16826 }
16827 if (obj2) {
16828 {
16829 arg3 = wxString_in_helper(obj2);
16830 if (arg3 == NULL) SWIG_fail;
16831 temp3 = true;
16832 }
16833 }
16834 if (obj3) {
16835 {
16836 arg4 = wxString_in_helper(obj3);
16837 if (arg4 == NULL) SWIG_fail;
16838 temp4 = true;
16839 }
16840 }
16841 if (obj4) {
16842 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16843 if (!SWIG_IsOK(ecode5)) {
16844 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16845 }
16846 arg5 = static_cast< bool >(val5);
16847 }
16848 if (obj5) {
16849 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16850 if (!SWIG_IsOK(ecode6)) {
16851 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16852 }
16853 arg6 = static_cast< bool >(val6);
16854 }
16855 {
16856 PyThreadState* __tstate = wxPyBeginAllowThreads();
16857 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16858 wxPyEndAllowThreads(__tstate);
16859 if (PyErr_Occurred()) SWIG_fail;
16860 }
16861 {
16862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16863 }
16864 {
16865 if (temp2)
16866 delete arg2;
16867 }
16868 {
16869 if (temp3)
16870 delete arg3;
16871 }
16872 {
16873 if (temp4)
16874 delete arg4;
16875 }
16876 return resultobj;
16877 fail:
16878 {
16879 if (temp2)
16880 delete arg2;
16881 }
16882 {
16883 if (temp3)
16884 delete arg3;
16885 }
16886 {
16887 if (temp4)
16888 delete arg4;
16889 }
16890 return NULL;
16891 }
16892
16893
16894 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16895 PyObject *resultobj = 0;
16896 wxLocale *arg1 = (wxLocale *) 0 ;
16897 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16898 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16899 bool result;
16900 void *argp1 = 0 ;
16901 int res1 = 0 ;
16902 int val2 ;
16903 int ecode2 = 0 ;
16904 int val3 ;
16905 int ecode3 = 0 ;
16906 PyObject * obj0 = 0 ;
16907 PyObject * obj1 = 0 ;
16908 PyObject * obj2 = 0 ;
16909 char * kwnames[] = {
16910 (char *) "self",(char *) "language",(char *) "flags", NULL
16911 };
16912
16913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16915 if (!SWIG_IsOK(res1)) {
16916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16917 }
16918 arg1 = reinterpret_cast< wxLocale * >(argp1);
16919 if (obj1) {
16920 ecode2 = SWIG_AsVal_int(obj1, &val2);
16921 if (!SWIG_IsOK(ecode2)) {
16922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16923 }
16924 arg2 = static_cast< int >(val2);
16925 }
16926 if (obj2) {
16927 ecode3 = SWIG_AsVal_int(obj2, &val3);
16928 if (!SWIG_IsOK(ecode3)) {
16929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16930 }
16931 arg3 = static_cast< int >(val3);
16932 }
16933 {
16934 PyThreadState* __tstate = wxPyBeginAllowThreads();
16935 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16936 wxPyEndAllowThreads(__tstate);
16937 if (PyErr_Occurred()) SWIG_fail;
16938 }
16939 {
16940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16941 }
16942 return resultobj;
16943 fail:
16944 return NULL;
16945 }
16946
16947
16948 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16949 PyObject *resultobj = 0;
16950 int result;
16951
16952 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16953 {
16954 PyThreadState* __tstate = wxPyBeginAllowThreads();
16955 result = (int)wxLocale::GetSystemLanguage();
16956 wxPyEndAllowThreads(__tstate);
16957 if (PyErr_Occurred()) SWIG_fail;
16958 }
16959 resultobj = SWIG_From_int(static_cast< int >(result));
16960 return resultobj;
16961 fail:
16962 return NULL;
16963 }
16964
16965
16966 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16967 PyObject *resultobj = 0;
16968 wxFontEncoding result;
16969
16970 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16971 {
16972 PyThreadState* __tstate = wxPyBeginAllowThreads();
16973 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16974 wxPyEndAllowThreads(__tstate);
16975 if (PyErr_Occurred()) SWIG_fail;
16976 }
16977 resultobj = SWIG_From_int(static_cast< int >(result));
16978 return resultobj;
16979 fail:
16980 return NULL;
16981 }
16982
16983
16984 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16985 PyObject *resultobj = 0;
16986 wxString result;
16987
16988 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16989 {
16990 PyThreadState* __tstate = wxPyBeginAllowThreads();
16991 result = wxLocale::GetSystemEncodingName();
16992 wxPyEndAllowThreads(__tstate);
16993 if (PyErr_Occurred()) SWIG_fail;
16994 }
16995 {
16996 #if wxUSE_UNICODE
16997 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16998 #else
16999 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17000 #endif
17001 }
17002 return resultobj;
17003 fail:
17004 return NULL;
17005 }
17006
17007
17008 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17009 PyObject *resultobj = 0;
17010 wxLocale *arg1 = (wxLocale *) 0 ;
17011 bool result;
17012 void *argp1 = 0 ;
17013 int res1 = 0 ;
17014 PyObject *swig_obj[1] ;
17015
17016 if (!args) SWIG_fail;
17017 swig_obj[0] = args;
17018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17019 if (!SWIG_IsOK(res1)) {
17020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
17021 }
17022 arg1 = reinterpret_cast< wxLocale * >(argp1);
17023 {
17024 PyThreadState* __tstate = wxPyBeginAllowThreads();
17025 result = (bool)((wxLocale const *)arg1)->IsOk();
17026 wxPyEndAllowThreads(__tstate);
17027 if (PyErr_Occurred()) SWIG_fail;
17028 }
17029 {
17030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17031 }
17032 return resultobj;
17033 fail:
17034 return NULL;
17035 }
17036
17037
17038 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17039 PyObject *resultobj = 0;
17040 wxLocale *arg1 = (wxLocale *) 0 ;
17041 wxString result;
17042 void *argp1 = 0 ;
17043 int res1 = 0 ;
17044 PyObject *swig_obj[1] ;
17045
17046 if (!args) SWIG_fail;
17047 swig_obj[0] = args;
17048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17049 if (!SWIG_IsOK(res1)) {
17050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
17051 }
17052 arg1 = reinterpret_cast< wxLocale * >(argp1);
17053 {
17054 PyThreadState* __tstate = wxPyBeginAllowThreads();
17055 result = ((wxLocale const *)arg1)->GetLocale();
17056 wxPyEndAllowThreads(__tstate);
17057 if (PyErr_Occurred()) SWIG_fail;
17058 }
17059 {
17060 #if wxUSE_UNICODE
17061 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17062 #else
17063 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17064 #endif
17065 }
17066 return resultobj;
17067 fail:
17068 return NULL;
17069 }
17070
17071
17072 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17073 PyObject *resultobj = 0;
17074 wxLocale *arg1 = (wxLocale *) 0 ;
17075 int result;
17076 void *argp1 = 0 ;
17077 int res1 = 0 ;
17078 PyObject *swig_obj[1] ;
17079
17080 if (!args) SWIG_fail;
17081 swig_obj[0] = args;
17082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17083 if (!SWIG_IsOK(res1)) {
17084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
17085 }
17086 arg1 = reinterpret_cast< wxLocale * >(argp1);
17087 {
17088 PyThreadState* __tstate = wxPyBeginAllowThreads();
17089 result = (int)((wxLocale const *)arg1)->GetLanguage();
17090 wxPyEndAllowThreads(__tstate);
17091 if (PyErr_Occurred()) SWIG_fail;
17092 }
17093 resultobj = SWIG_From_int(static_cast< int >(result));
17094 return resultobj;
17095 fail:
17096 return NULL;
17097 }
17098
17099
17100 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17101 PyObject *resultobj = 0;
17102 wxLocale *arg1 = (wxLocale *) 0 ;
17103 wxString result;
17104 void *argp1 = 0 ;
17105 int res1 = 0 ;
17106 PyObject *swig_obj[1] ;
17107
17108 if (!args) SWIG_fail;
17109 swig_obj[0] = args;
17110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17111 if (!SWIG_IsOK(res1)) {
17112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17113 }
17114 arg1 = reinterpret_cast< wxLocale * >(argp1);
17115 {
17116 PyThreadState* __tstate = wxPyBeginAllowThreads();
17117 result = ((wxLocale const *)arg1)->GetSysName();
17118 wxPyEndAllowThreads(__tstate);
17119 if (PyErr_Occurred()) SWIG_fail;
17120 }
17121 {
17122 #if wxUSE_UNICODE
17123 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17124 #else
17125 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17126 #endif
17127 }
17128 return resultobj;
17129 fail:
17130 return NULL;
17131 }
17132
17133
17134 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17135 PyObject *resultobj = 0;
17136 wxLocale *arg1 = (wxLocale *) 0 ;
17137 wxString result;
17138 void *argp1 = 0 ;
17139 int res1 = 0 ;
17140 PyObject *swig_obj[1] ;
17141
17142 if (!args) SWIG_fail;
17143 swig_obj[0] = args;
17144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17145 if (!SWIG_IsOK(res1)) {
17146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17147 }
17148 arg1 = reinterpret_cast< wxLocale * >(argp1);
17149 {
17150 PyThreadState* __tstate = wxPyBeginAllowThreads();
17151 result = ((wxLocale const *)arg1)->GetCanonicalName();
17152 wxPyEndAllowThreads(__tstate);
17153 if (PyErr_Occurred()) SWIG_fail;
17154 }
17155 {
17156 #if wxUSE_UNICODE
17157 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17158 #else
17159 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17160 #endif
17161 }
17162 return resultobj;
17163 fail:
17164 return NULL;
17165 }
17166
17167
17168 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17169 PyObject *resultobj = 0;
17170 wxString *arg1 = 0 ;
17171 bool temp1 = false ;
17172 PyObject * obj0 = 0 ;
17173 char * kwnames[] = {
17174 (char *) "prefix", NULL
17175 };
17176
17177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
17178 {
17179 arg1 = wxString_in_helper(obj0);
17180 if (arg1 == NULL) SWIG_fail;
17181 temp1 = true;
17182 }
17183 {
17184 PyThreadState* __tstate = wxPyBeginAllowThreads();
17185 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
17186 wxPyEndAllowThreads(__tstate);
17187 if (PyErr_Occurred()) SWIG_fail;
17188 }
17189 resultobj = SWIG_Py_Void();
17190 {
17191 if (temp1)
17192 delete arg1;
17193 }
17194 return resultobj;
17195 fail:
17196 {
17197 if (temp1)
17198 delete arg1;
17199 }
17200 return NULL;
17201 }
17202
17203
17204 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17205 PyObject *resultobj = 0;
17206 wxLocale *arg1 = (wxLocale *) 0 ;
17207 wxString *arg2 = 0 ;
17208 bool result;
17209 void *argp1 = 0 ;
17210 int res1 = 0 ;
17211 bool temp2 = false ;
17212 PyObject * obj0 = 0 ;
17213 PyObject * obj1 = 0 ;
17214 char * kwnames[] = {
17215 (char *) "self",(char *) "domain", NULL
17216 };
17217
17218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
17219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17220 if (!SWIG_IsOK(res1)) {
17221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
17222 }
17223 arg1 = reinterpret_cast< wxLocale * >(argp1);
17224 {
17225 arg2 = wxString_in_helper(obj1);
17226 if (arg2 == NULL) SWIG_fail;
17227 temp2 = true;
17228 }
17229 {
17230 PyThreadState* __tstate = wxPyBeginAllowThreads();
17231 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
17232 wxPyEndAllowThreads(__tstate);
17233 if (PyErr_Occurred()) SWIG_fail;
17234 }
17235 {
17236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17237 }
17238 {
17239 if (temp2)
17240 delete arg2;
17241 }
17242 return resultobj;
17243 fail:
17244 {
17245 if (temp2)
17246 delete arg2;
17247 }
17248 return NULL;
17249 }
17250
17251
17252 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17253 PyObject *resultobj = 0;
17254 int arg1 ;
17255 bool result;
17256 int val1 ;
17257 int ecode1 = 0 ;
17258 PyObject * obj0 = 0 ;
17259 char * kwnames[] = {
17260 (char *) "lang", NULL
17261 };
17262
17263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
17264 ecode1 = SWIG_AsVal_int(obj0, &val1);
17265 if (!SWIG_IsOK(ecode1)) {
17266 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
17267 }
17268 arg1 = static_cast< int >(val1);
17269 {
17270 PyThreadState* __tstate = wxPyBeginAllowThreads();
17271 result = (bool)wxLocale::IsAvailable(arg1);
17272 wxPyEndAllowThreads(__tstate);
17273 if (PyErr_Occurred()) SWIG_fail;
17274 }
17275 {
17276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17277 }
17278 return resultobj;
17279 fail:
17280 return NULL;
17281 }
17282
17283
17284 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17285 PyObject *resultobj = 0;
17286 wxLocale *arg1 = (wxLocale *) 0 ;
17287 wxString *arg2 = 0 ;
17288 bool result;
17289 void *argp1 = 0 ;
17290 int res1 = 0 ;
17291 bool temp2 = false ;
17292 PyObject * obj0 = 0 ;
17293 PyObject * obj1 = 0 ;
17294 char * kwnames[] = {
17295 (char *) "self",(char *) "domain", NULL
17296 };
17297
17298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
17299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17300 if (!SWIG_IsOK(res1)) {
17301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
17302 }
17303 arg1 = reinterpret_cast< wxLocale * >(argp1);
17304 {
17305 arg2 = wxString_in_helper(obj1);
17306 if (arg2 == NULL) SWIG_fail;
17307 temp2 = true;
17308 }
17309 {
17310 PyThreadState* __tstate = wxPyBeginAllowThreads();
17311 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
17312 wxPyEndAllowThreads(__tstate);
17313 if (PyErr_Occurred()) SWIG_fail;
17314 }
17315 {
17316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17317 }
17318 {
17319 if (temp2)
17320 delete arg2;
17321 }
17322 return resultobj;
17323 fail:
17324 {
17325 if (temp2)
17326 delete arg2;
17327 }
17328 return NULL;
17329 }
17330
17331
17332 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17333 PyObject *resultobj = 0;
17334 int arg1 ;
17335 wxLanguageInfo *result = 0 ;
17336 int val1 ;
17337 int ecode1 = 0 ;
17338 PyObject * obj0 = 0 ;
17339 char * kwnames[] = {
17340 (char *) "lang", NULL
17341 };
17342
17343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
17344 ecode1 = SWIG_AsVal_int(obj0, &val1);
17345 if (!SWIG_IsOK(ecode1)) {
17346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
17347 }
17348 arg1 = static_cast< int >(val1);
17349 {
17350 PyThreadState* __tstate = wxPyBeginAllowThreads();
17351 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
17352 wxPyEndAllowThreads(__tstate);
17353 if (PyErr_Occurred()) SWIG_fail;
17354 }
17355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17356 return resultobj;
17357 fail:
17358 return NULL;
17359 }
17360
17361
17362 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17363 PyObject *resultobj = 0;
17364 int arg1 ;
17365 wxString result;
17366 int val1 ;
17367 int ecode1 = 0 ;
17368 PyObject * obj0 = 0 ;
17369 char * kwnames[] = {
17370 (char *) "lang", NULL
17371 };
17372
17373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
17374 ecode1 = SWIG_AsVal_int(obj0, &val1);
17375 if (!SWIG_IsOK(ecode1)) {
17376 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
17377 }
17378 arg1 = static_cast< int >(val1);
17379 {
17380 PyThreadState* __tstate = wxPyBeginAllowThreads();
17381 result = wxLocale::GetLanguageName(arg1);
17382 wxPyEndAllowThreads(__tstate);
17383 if (PyErr_Occurred()) SWIG_fail;
17384 }
17385 {
17386 #if wxUSE_UNICODE
17387 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17388 #else
17389 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17390 #endif
17391 }
17392 return resultobj;
17393 fail:
17394 return NULL;
17395 }
17396
17397
17398 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17399 PyObject *resultobj = 0;
17400 wxString *arg1 = 0 ;
17401 wxLanguageInfo *result = 0 ;
17402 bool temp1 = false ;
17403 PyObject * obj0 = 0 ;
17404 char * kwnames[] = {
17405 (char *) "locale", NULL
17406 };
17407
17408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
17409 {
17410 arg1 = wxString_in_helper(obj0);
17411 if (arg1 == NULL) SWIG_fail;
17412 temp1 = true;
17413 }
17414 {
17415 PyThreadState* __tstate = wxPyBeginAllowThreads();
17416 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
17417 wxPyEndAllowThreads(__tstate);
17418 if (PyErr_Occurred()) SWIG_fail;
17419 }
17420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17421 {
17422 if (temp1)
17423 delete arg1;
17424 }
17425 return resultobj;
17426 fail:
17427 {
17428 if (temp1)
17429 delete arg1;
17430 }
17431 return NULL;
17432 }
17433
17434
17435 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17436 PyObject *resultobj = 0;
17437 wxLanguageInfo *arg1 = 0 ;
17438 void *argp1 = 0 ;
17439 int res1 = 0 ;
17440 PyObject * obj0 = 0 ;
17441 char * kwnames[] = {
17442 (char *) "info", NULL
17443 };
17444
17445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
17446 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
17447 if (!SWIG_IsOK(res1)) {
17448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17449 }
17450 if (!argp1) {
17451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17452 }
17453 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
17454 {
17455 PyThreadState* __tstate = wxPyBeginAllowThreads();
17456 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
17457 wxPyEndAllowThreads(__tstate);
17458 if (PyErr_Occurred()) SWIG_fail;
17459 }
17460 resultobj = SWIG_Py_Void();
17461 return resultobj;
17462 fail:
17463 return NULL;
17464 }
17465
17466
17467 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17468 PyObject *resultobj = 0;
17469 wxLocale *arg1 = (wxLocale *) 0 ;
17470 wxString *arg2 = 0 ;
17471 wxString const &arg3_defvalue = wxPyEmptyString ;
17472 wxString *arg3 = (wxString *) &arg3_defvalue ;
17473 wxString result;
17474 void *argp1 = 0 ;
17475 int res1 = 0 ;
17476 bool temp2 = false ;
17477 bool temp3 = false ;
17478 PyObject * obj0 = 0 ;
17479 PyObject * obj1 = 0 ;
17480 PyObject * obj2 = 0 ;
17481 char * kwnames[] = {
17482 (char *) "self",(char *) "origString",(char *) "domain", NULL
17483 };
17484
17485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17487 if (!SWIG_IsOK(res1)) {
17488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
17489 }
17490 arg1 = reinterpret_cast< wxLocale * >(argp1);
17491 {
17492 arg2 = wxString_in_helper(obj1);
17493 if (arg2 == NULL) SWIG_fail;
17494 temp2 = true;
17495 }
17496 if (obj2) {
17497 {
17498 arg3 = wxString_in_helper(obj2);
17499 if (arg3 == NULL) SWIG_fail;
17500 temp3 = true;
17501 }
17502 }
17503 {
17504 PyThreadState* __tstate = wxPyBeginAllowThreads();
17505 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
17506 wxPyEndAllowThreads(__tstate);
17507 if (PyErr_Occurred()) SWIG_fail;
17508 }
17509 {
17510 #if wxUSE_UNICODE
17511 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17512 #else
17513 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17514 #endif
17515 }
17516 {
17517 if (temp2)
17518 delete arg2;
17519 }
17520 {
17521 if (temp3)
17522 delete arg3;
17523 }
17524 return resultobj;
17525 fail:
17526 {
17527 if (temp2)
17528 delete arg2;
17529 }
17530 {
17531 if (temp3)
17532 delete arg3;
17533 }
17534 return NULL;
17535 }
17536
17537
17538 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17539 PyObject *resultobj = 0;
17540 wxLocale *arg1 = (wxLocale *) 0 ;
17541 wxString *result = 0 ;
17542 void *argp1 = 0 ;
17543 int res1 = 0 ;
17544 PyObject *swig_obj[1] ;
17545
17546 if (!args) SWIG_fail;
17547 swig_obj[0] = args;
17548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17549 if (!SWIG_IsOK(res1)) {
17550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17551 }
17552 arg1 = reinterpret_cast< wxLocale * >(argp1);
17553 {
17554 PyThreadState* __tstate = wxPyBeginAllowThreads();
17555 {
17556 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17557 result = (wxString *) &_result_ref;
17558 }
17559 wxPyEndAllowThreads(__tstate);
17560 if (PyErr_Occurred()) SWIG_fail;
17561 }
17562 {
17563 #if wxUSE_UNICODE
17564 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17565 #else
17566 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17567 #endif
17568 }
17569 return resultobj;
17570 fail:
17571 return NULL;
17572 }
17573
17574
17575 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17576 PyObject *obj;
17577 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17578 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17579 return SWIG_Py_Void();
17580 }
17581
17582 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17583 return SWIG_Python_InitShadowInstance(args);
17584 }
17585
17586 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17587 PyObject *resultobj = 0;
17588 int arg1 = (int) -1 ;
17589 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17590 wxPyLocale *result = 0 ;
17591 int val1 ;
17592 int ecode1 = 0 ;
17593 int val2 ;
17594 int ecode2 = 0 ;
17595 PyObject * obj0 = 0 ;
17596 PyObject * obj1 = 0 ;
17597 char * kwnames[] = {
17598 (char *) "language",(char *) "flags", NULL
17599 };
17600
17601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17602 if (obj0) {
17603 ecode1 = SWIG_AsVal_int(obj0, &val1);
17604 if (!SWIG_IsOK(ecode1)) {
17605 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17606 }
17607 arg1 = static_cast< int >(val1);
17608 }
17609 if (obj1) {
17610 ecode2 = SWIG_AsVal_int(obj1, &val2);
17611 if (!SWIG_IsOK(ecode2)) {
17612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17613 }
17614 arg2 = static_cast< int >(val2);
17615 }
17616 {
17617 PyThreadState* __tstate = wxPyBeginAllowThreads();
17618 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17619 wxPyEndAllowThreads(__tstate);
17620 if (PyErr_Occurred()) SWIG_fail;
17621 }
17622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17623 return resultobj;
17624 fail:
17625 return NULL;
17626 }
17627
17628
17629 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17630 PyObject *resultobj = 0;
17631 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17632 void *argp1 = 0 ;
17633 int res1 = 0 ;
17634 PyObject *swig_obj[1] ;
17635
17636 if (!args) SWIG_fail;
17637 swig_obj[0] = args;
17638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17639 if (!SWIG_IsOK(res1)) {
17640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17641 }
17642 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17643 {
17644 PyThreadState* __tstate = wxPyBeginAllowThreads();
17645 delete arg1;
17646
17647 wxPyEndAllowThreads(__tstate);
17648 if (PyErr_Occurred()) SWIG_fail;
17649 }
17650 resultobj = SWIG_Py_Void();
17651 return resultobj;
17652 fail:
17653 return NULL;
17654 }
17655
17656
17657 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17658 PyObject *resultobj = 0;
17659 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17660 PyObject *arg2 = (PyObject *) 0 ;
17661 PyObject *arg3 = (PyObject *) 0 ;
17662 void *argp1 = 0 ;
17663 int res1 = 0 ;
17664 PyObject * obj0 = 0 ;
17665 PyObject * obj1 = 0 ;
17666 PyObject * obj2 = 0 ;
17667 char * kwnames[] = {
17668 (char *) "self",(char *) "self",(char *) "_class", NULL
17669 };
17670
17671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17673 if (!SWIG_IsOK(res1)) {
17674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17675 }
17676 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17677 arg2 = obj1;
17678 arg3 = obj2;
17679 {
17680 PyThreadState* __tstate = wxPyBeginAllowThreads();
17681 (arg1)->_setCallbackInfo(arg2,arg3);
17682 wxPyEndAllowThreads(__tstate);
17683 if (PyErr_Occurred()) SWIG_fail;
17684 }
17685 resultobj = SWIG_Py_Void();
17686 return resultobj;
17687 fail:
17688 return NULL;
17689 }
17690
17691
17692 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17693 PyObject *resultobj = 0;
17694 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17695 wxString *arg2 = 0 ;
17696 wxString const &arg3_defvalue = wxPyEmptyString ;
17697 wxString *arg3 = (wxString *) &arg3_defvalue ;
17698 wxString *result = 0 ;
17699 void *argp1 = 0 ;
17700 int res1 = 0 ;
17701 bool temp2 = false ;
17702 bool temp3 = false ;
17703 PyObject * obj0 = 0 ;
17704 PyObject * obj1 = 0 ;
17705 PyObject * obj2 = 0 ;
17706 char * kwnames[] = {
17707 (char *) "self",(char *) "origString",(char *) "domain", NULL
17708 };
17709
17710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17712 if (!SWIG_IsOK(res1)) {
17713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17714 }
17715 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17716 {
17717 arg2 = wxString_in_helper(obj1);
17718 if (arg2 == NULL) SWIG_fail;
17719 temp2 = true;
17720 }
17721 if (obj2) {
17722 {
17723 arg3 = wxString_in_helper(obj2);
17724 if (arg3 == NULL) SWIG_fail;
17725 temp3 = true;
17726 }
17727 }
17728 {
17729 PyThreadState* __tstate = wxPyBeginAllowThreads();
17730 {
17731 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetSingularString((wxString const &)*arg2,(wxString const &)*arg3);
17732 result = (wxString *) &_result_ref;
17733 }
17734 wxPyEndAllowThreads(__tstate);
17735 if (PyErr_Occurred()) SWIG_fail;
17736 }
17737 {
17738 #if wxUSE_UNICODE
17739 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17740 #else
17741 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17742 #endif
17743 }
17744 {
17745 if (temp2)
17746 delete arg2;
17747 }
17748 {
17749 if (temp3)
17750 delete arg3;
17751 }
17752 return resultobj;
17753 fail:
17754 {
17755 if (temp2)
17756 delete arg2;
17757 }
17758 {
17759 if (temp3)
17760 delete arg3;
17761 }
17762 return NULL;
17763 }
17764
17765
17766 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17767 PyObject *resultobj = 0;
17768 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17769 wxString *arg2 = 0 ;
17770 wxString *arg3 = 0 ;
17771 size_t arg4 ;
17772 wxString const &arg5_defvalue = wxPyEmptyString ;
17773 wxString *arg5 = (wxString *) &arg5_defvalue ;
17774 wxString *result = 0 ;
17775 void *argp1 = 0 ;
17776 int res1 = 0 ;
17777 bool temp2 = false ;
17778 bool temp3 = false ;
17779 size_t val4 ;
17780 int ecode4 = 0 ;
17781 bool temp5 = false ;
17782 PyObject * obj0 = 0 ;
17783 PyObject * obj1 = 0 ;
17784 PyObject * obj2 = 0 ;
17785 PyObject * obj3 = 0 ;
17786 PyObject * obj4 = 0 ;
17787 char * kwnames[] = {
17788 (char *) "self",(char *) "origString",(char *) "origString2",(char *) "n",(char *) "domain", NULL
17789 };
17790
17791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17793 if (!SWIG_IsOK(res1)) {
17794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17795 }
17796 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17797 {
17798 arg2 = wxString_in_helper(obj1);
17799 if (arg2 == NULL) SWIG_fail;
17800 temp2 = true;
17801 }
17802 {
17803 arg3 = wxString_in_helper(obj2);
17804 if (arg3 == NULL) SWIG_fail;
17805 temp3 = true;
17806 }
17807 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17808 if (!SWIG_IsOK(ecode4)) {
17809 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17810 }
17811 arg4 = static_cast< size_t >(val4);
17812 if (obj4) {
17813 {
17814 arg5 = wxString_in_helper(obj4);
17815 if (arg5 == NULL) SWIG_fail;
17816 temp5 = true;
17817 }
17818 }
17819 {
17820 PyThreadState* __tstate = wxPyBeginAllowThreads();
17821 {
17822 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetPluralString((wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
17823 result = (wxString *) &_result_ref;
17824 }
17825 wxPyEndAllowThreads(__tstate);
17826 if (PyErr_Occurred()) SWIG_fail;
17827 }
17828 {
17829 #if wxUSE_UNICODE
17830 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17831 #else
17832 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17833 #endif
17834 }
17835 {
17836 if (temp2)
17837 delete arg2;
17838 }
17839 {
17840 if (temp3)
17841 delete arg3;
17842 }
17843 {
17844 if (temp5)
17845 delete arg5;
17846 }
17847 return resultobj;
17848 fail:
17849 {
17850 if (temp2)
17851 delete arg2;
17852 }
17853 {
17854 if (temp3)
17855 delete arg3;
17856 }
17857 {
17858 if (temp5)
17859 delete arg5;
17860 }
17861 return NULL;
17862 }
17863
17864
17865 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17866 PyObject *obj;
17867 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17868 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17869 return SWIG_Py_Void();
17870 }
17871
17872 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17873 return SWIG_Python_InitShadowInstance(args);
17874 }
17875
17876 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17877 PyObject *resultobj = 0;
17878 wxLocale *result = 0 ;
17879
17880 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17881 {
17882 PyThreadState* __tstate = wxPyBeginAllowThreads();
17883 result = (wxLocale *)wxGetLocale();
17884 wxPyEndAllowThreads(__tstate);
17885 if (PyErr_Occurred()) SWIG_fail;
17886 }
17887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17888 return resultobj;
17889 fail:
17890 return NULL;
17891 }
17892
17893
17894 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17895 PyObject *resultobj = 0;
17896 wxString *arg1 = 0 ;
17897 wxString result;
17898 bool temp1 = false ;
17899
17900 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17901 {
17902 arg1 = wxString_in_helper(swig_obj[0]);
17903 if (arg1 == NULL) SWIG_fail;
17904 temp1 = true;
17905 }
17906 {
17907 PyThreadState* __tstate = wxPyBeginAllowThreads();
17908 result = wxGetTranslation((wxString const &)*arg1);
17909 wxPyEndAllowThreads(__tstate);
17910 if (PyErr_Occurred()) SWIG_fail;
17911 }
17912 {
17913 #if wxUSE_UNICODE
17914 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17915 #else
17916 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17917 #endif
17918 }
17919 {
17920 if (temp1)
17921 delete arg1;
17922 }
17923 return resultobj;
17924 fail:
17925 {
17926 if (temp1)
17927 delete arg1;
17928 }
17929 return NULL;
17930 }
17931
17932
17933 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17934 PyObject *resultobj = 0;
17935 wxString *arg1 = 0 ;
17936 wxString *arg2 = 0 ;
17937 wxString result;
17938 bool temp1 = false ;
17939 bool temp2 = false ;
17940
17941 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17942 {
17943 arg1 = wxString_in_helper(swig_obj[0]);
17944 if (arg1 == NULL) SWIG_fail;
17945 temp1 = true;
17946 }
17947 {
17948 arg2 = wxString_in_helper(swig_obj[1]);
17949 if (arg2 == NULL) SWIG_fail;
17950 temp2 = true;
17951 }
17952 {
17953 PyThreadState* __tstate = wxPyBeginAllowThreads();
17954 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17955 wxPyEndAllowThreads(__tstate);
17956 if (PyErr_Occurred()) SWIG_fail;
17957 }
17958 {
17959 #if wxUSE_UNICODE
17960 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17961 #else
17962 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17963 #endif
17964 }
17965 {
17966 if (temp1)
17967 delete arg1;
17968 }
17969 {
17970 if (temp2)
17971 delete arg2;
17972 }
17973 return resultobj;
17974 fail:
17975 {
17976 if (temp1)
17977 delete arg1;
17978 }
17979 {
17980 if (temp2)
17981 delete arg2;
17982 }
17983 return NULL;
17984 }
17985
17986
17987 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17988 PyObject *resultobj = 0;
17989 wxString *arg1 = 0 ;
17990 wxString *arg2 = 0 ;
17991 size_t arg3 ;
17992 wxString result;
17993 bool temp1 = false ;
17994 bool temp2 = false ;
17995 size_t val3 ;
17996 int ecode3 = 0 ;
17997
17998 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17999 {
18000 arg1 = wxString_in_helper(swig_obj[0]);
18001 if (arg1 == NULL) SWIG_fail;
18002 temp1 = true;
18003 }
18004 {
18005 arg2 = wxString_in_helper(swig_obj[1]);
18006 if (arg2 == NULL) SWIG_fail;
18007 temp2 = true;
18008 }
18009 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
18010 if (!SWIG_IsOK(ecode3)) {
18011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
18012 }
18013 arg3 = static_cast< size_t >(val3);
18014 {
18015 PyThreadState* __tstate = wxPyBeginAllowThreads();
18016 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
18017 wxPyEndAllowThreads(__tstate);
18018 if (PyErr_Occurred()) SWIG_fail;
18019 }
18020 {
18021 #if wxUSE_UNICODE
18022 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18023 #else
18024 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18025 #endif
18026 }
18027 {
18028 if (temp1)
18029 delete arg1;
18030 }
18031 {
18032 if (temp2)
18033 delete arg2;
18034 }
18035 return resultobj;
18036 fail:
18037 {
18038 if (temp1)
18039 delete arg1;
18040 }
18041 {
18042 if (temp2)
18043 delete arg2;
18044 }
18045 return NULL;
18046 }
18047
18048
18049 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18050 PyObject *resultobj = 0;
18051 wxString *arg1 = 0 ;
18052 wxString *arg2 = 0 ;
18053 size_t arg3 ;
18054 wxString *arg4 = 0 ;
18055 wxString result;
18056 bool temp1 = false ;
18057 bool temp2 = false ;
18058 size_t val3 ;
18059 int ecode3 = 0 ;
18060 bool temp4 = false ;
18061
18062 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
18063 {
18064 arg1 = wxString_in_helper(swig_obj[0]);
18065 if (arg1 == NULL) SWIG_fail;
18066 temp1 = true;
18067 }
18068 {
18069 arg2 = wxString_in_helper(swig_obj[1]);
18070 if (arg2 == NULL) SWIG_fail;
18071 temp2 = true;
18072 }
18073 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
18074 if (!SWIG_IsOK(ecode3)) {
18075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
18076 }
18077 arg3 = static_cast< size_t >(val3);
18078 {
18079 arg4 = wxString_in_helper(swig_obj[3]);
18080 if (arg4 == NULL) SWIG_fail;
18081 temp4 = true;
18082 }
18083 {
18084 PyThreadState* __tstate = wxPyBeginAllowThreads();
18085 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
18086 wxPyEndAllowThreads(__tstate);
18087 if (PyErr_Occurred()) SWIG_fail;
18088 }
18089 {
18090 #if wxUSE_UNICODE
18091 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18092 #else
18093 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18094 #endif
18095 }
18096 {
18097 if (temp1)
18098 delete arg1;
18099 }
18100 {
18101 if (temp2)
18102 delete arg2;
18103 }
18104 {
18105 if (temp4)
18106 delete arg4;
18107 }
18108 return resultobj;
18109 fail:
18110 {
18111 if (temp1)
18112 delete arg1;
18113 }
18114 {
18115 if (temp2)
18116 delete arg2;
18117 }
18118 {
18119 if (temp4)
18120 delete arg4;
18121 }
18122 return NULL;
18123 }
18124
18125
18126 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
18127 int argc;
18128 PyObject *argv[5];
18129
18130 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
18131 --argc;
18132 if (argc == 1) {
18133 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
18134 }
18135 if (argc == 2) {
18136 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
18137 }
18138 if (argc == 3) {
18139 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
18140 }
18141 if (argc == 4) {
18142 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
18143 }
18144
18145 fail:
18146 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
18147 return NULL;
18148 }
18149
18150
18151 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18152 PyObject *resultobj = 0;
18153 wxEncodingConverter *result = 0 ;
18154
18155 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
18156 {
18157 PyThreadState* __tstate = wxPyBeginAllowThreads();
18158 result = (wxEncodingConverter *)new wxEncodingConverter();
18159 wxPyEndAllowThreads(__tstate);
18160 if (PyErr_Occurred()) SWIG_fail;
18161 }
18162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
18163 return resultobj;
18164 fail:
18165 return NULL;
18166 }
18167
18168
18169 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18170 PyObject *resultobj = 0;
18171 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
18172 void *argp1 = 0 ;
18173 int res1 = 0 ;
18174 PyObject *swig_obj[1] ;
18175
18176 if (!args) SWIG_fail;
18177 swig_obj[0] = args;
18178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
18179 if (!SWIG_IsOK(res1)) {
18180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18181 }
18182 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18183 {
18184 PyThreadState* __tstate = wxPyBeginAllowThreads();
18185 delete arg1;
18186
18187 wxPyEndAllowThreads(__tstate);
18188 if (PyErr_Occurred()) SWIG_fail;
18189 }
18190 resultobj = SWIG_Py_Void();
18191 return resultobj;
18192 fail:
18193 return NULL;
18194 }
18195
18196
18197 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18198 PyObject *resultobj = 0;
18199 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
18200 wxFontEncoding arg2 ;
18201 wxFontEncoding arg3 ;
18202 int arg4 = (int) wxCONVERT_STRICT ;
18203 bool result;
18204 void *argp1 = 0 ;
18205 int res1 = 0 ;
18206 int val2 ;
18207 int ecode2 = 0 ;
18208 int val3 ;
18209 int ecode3 = 0 ;
18210 int val4 ;
18211 int ecode4 = 0 ;
18212 PyObject * obj0 = 0 ;
18213 PyObject * obj1 = 0 ;
18214 PyObject * obj2 = 0 ;
18215 PyObject * obj3 = 0 ;
18216 char * kwnames[] = {
18217 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
18218 };
18219
18220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18222 if (!SWIG_IsOK(res1)) {
18223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18224 }
18225 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18226 ecode2 = SWIG_AsVal_int(obj1, &val2);
18227 if (!SWIG_IsOK(ecode2)) {
18228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18229 }
18230 arg2 = static_cast< wxFontEncoding >(val2);
18231 ecode3 = SWIG_AsVal_int(obj2, &val3);
18232 if (!SWIG_IsOK(ecode3)) {
18233 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
18234 }
18235 arg3 = static_cast< wxFontEncoding >(val3);
18236 if (obj3) {
18237 ecode4 = SWIG_AsVal_int(obj3, &val4);
18238 if (!SWIG_IsOK(ecode4)) {
18239 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
18240 }
18241 arg4 = static_cast< int >(val4);
18242 }
18243 {
18244 PyThreadState* __tstate = wxPyBeginAllowThreads();
18245 result = (bool)(arg1)->Init(arg2,arg3,arg4);
18246 wxPyEndAllowThreads(__tstate);
18247 if (PyErr_Occurred()) SWIG_fail;
18248 }
18249 {
18250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18251 }
18252 return resultobj;
18253 fail:
18254 return NULL;
18255 }
18256
18257
18258 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18259 PyObject *resultobj = 0;
18260 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
18261 wxString *arg2 = 0 ;
18262 wxString result;
18263 void *argp1 = 0 ;
18264 int res1 = 0 ;
18265 bool temp2 = false ;
18266 PyObject * obj0 = 0 ;
18267 PyObject * obj1 = 0 ;
18268 char * kwnames[] = {
18269 (char *) "self",(char *) "input", NULL
18270 };
18271
18272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
18273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18274 if (!SWIG_IsOK(res1)) {
18275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18276 }
18277 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18278 {
18279 arg2 = wxString_in_helper(obj1);
18280 if (arg2 == NULL) SWIG_fail;
18281 temp2 = true;
18282 }
18283 {
18284 PyThreadState* __tstate = wxPyBeginAllowThreads();
18285 result = (arg1)->Convert((wxString const &)*arg2);
18286 wxPyEndAllowThreads(__tstate);
18287 if (PyErr_Occurred()) SWIG_fail;
18288 }
18289 {
18290 #if wxUSE_UNICODE
18291 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18292 #else
18293 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18294 #endif
18295 }
18296 {
18297 if (temp2)
18298 delete arg2;
18299 }
18300 return resultobj;
18301 fail:
18302 {
18303 if (temp2)
18304 delete arg2;
18305 }
18306 return NULL;
18307 }
18308
18309
18310 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18311 PyObject *resultobj = 0;
18312 wxFontEncoding arg1 ;
18313 int arg2 = (int) wxPLATFORM_CURRENT ;
18314 wxFontEncodingArray result;
18315 int val1 ;
18316 int ecode1 = 0 ;
18317 int val2 ;
18318 int ecode2 = 0 ;
18319 PyObject * obj0 = 0 ;
18320 PyObject * obj1 = 0 ;
18321 char * kwnames[] = {
18322 (char *) "enc",(char *) "platform", NULL
18323 };
18324
18325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
18326 ecode1 = SWIG_AsVal_int(obj0, &val1);
18327 if (!SWIG_IsOK(ecode1)) {
18328 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18329 }
18330 arg1 = static_cast< wxFontEncoding >(val1);
18331 if (obj1) {
18332 ecode2 = SWIG_AsVal_int(obj1, &val2);
18333 if (!SWIG_IsOK(ecode2)) {
18334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
18335 }
18336 arg2 = static_cast< int >(val2);
18337 }
18338 {
18339 PyThreadState* __tstate = wxPyBeginAllowThreads();
18340 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
18341 wxPyEndAllowThreads(__tstate);
18342 if (PyErr_Occurred()) SWIG_fail;
18343 }
18344 {
18345 resultobj = PyList_New(0);
18346 for (size_t i=0; i < (&result)->GetCount(); i++) {
18347 PyObject* number = PyInt_FromLong((&result)->Item(i));
18348 PyList_Append(resultobj, number);
18349 Py_DECREF(number);
18350 }
18351 }
18352 return resultobj;
18353 fail:
18354 return NULL;
18355 }
18356
18357
18358 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18359 PyObject *resultobj = 0;
18360 wxFontEncoding arg1 ;
18361 wxFontEncodingArray result;
18362 int val1 ;
18363 int ecode1 = 0 ;
18364 PyObject * obj0 = 0 ;
18365 char * kwnames[] = {
18366 (char *) "enc", NULL
18367 };
18368
18369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
18370 ecode1 = SWIG_AsVal_int(obj0, &val1);
18371 if (!SWIG_IsOK(ecode1)) {
18372 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18373 }
18374 arg1 = static_cast< wxFontEncoding >(val1);
18375 {
18376 PyThreadState* __tstate = wxPyBeginAllowThreads();
18377 result = wxEncodingConverter::GetAllEquivalents(arg1);
18378 wxPyEndAllowThreads(__tstate);
18379 if (PyErr_Occurred()) SWIG_fail;
18380 }
18381 {
18382 resultobj = PyList_New(0);
18383 for (size_t i=0; i < (&result)->GetCount(); i++) {
18384 PyObject* number = PyInt_FromLong((&result)->Item(i));
18385 PyList_Append(resultobj, number);
18386 Py_DECREF(number);
18387 }
18388 }
18389 return resultobj;
18390 fail:
18391 return NULL;
18392 }
18393
18394
18395 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18396 PyObject *resultobj = 0;
18397 wxFontEncoding arg1 ;
18398 wxFontEncoding arg2 ;
18399 bool result;
18400 int val1 ;
18401 int ecode1 = 0 ;
18402 int val2 ;
18403 int ecode2 = 0 ;
18404 PyObject * obj0 = 0 ;
18405 PyObject * obj1 = 0 ;
18406 char * kwnames[] = {
18407 (char *) "encIn",(char *) "encOut", NULL
18408 };
18409
18410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
18411 ecode1 = SWIG_AsVal_int(obj0, &val1);
18412 if (!SWIG_IsOK(ecode1)) {
18413 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18414 }
18415 arg1 = static_cast< wxFontEncoding >(val1);
18416 ecode2 = SWIG_AsVal_int(obj1, &val2);
18417 if (!SWIG_IsOK(ecode2)) {
18418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18419 }
18420 arg2 = static_cast< wxFontEncoding >(val2);
18421 {
18422 PyThreadState* __tstate = wxPyBeginAllowThreads();
18423 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
18424 wxPyEndAllowThreads(__tstate);
18425 if (PyErr_Occurred()) SWIG_fail;
18426 }
18427 {
18428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18429 }
18430 return resultobj;
18431 fail:
18432 return NULL;
18433 }
18434
18435
18436 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18437 PyObject *obj;
18438 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18439 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
18440 return SWIG_Py_Void();
18441 }
18442
18443 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18444 return SWIG_Python_InitShadowInstance(args);
18445 }
18446
18447 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18448 PyObject *resultobj = 0;
18449 wxDC *arg1 = (wxDC *) 0 ;
18450 void *argp1 = 0 ;
18451 int res1 = 0 ;
18452 PyObject *swig_obj[1] ;
18453
18454 if (!args) SWIG_fail;
18455 swig_obj[0] = args;
18456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
18457 if (!SWIG_IsOK(res1)) {
18458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
18459 }
18460 arg1 = reinterpret_cast< wxDC * >(argp1);
18461 {
18462 PyThreadState* __tstate = wxPyBeginAllowThreads();
18463 delete arg1;
18464
18465 wxPyEndAllowThreads(__tstate);
18466 if (PyErr_Occurred()) SWIG_fail;
18467 }
18468 resultobj = SWIG_Py_Void();
18469 return resultobj;
18470 fail:
18471 return NULL;
18472 }
18473
18474
18475 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18476 PyObject *resultobj = 0;
18477 wxDC *arg1 = (wxDC *) 0 ;
18478 int arg2 ;
18479 int arg3 ;
18480 wxColour *arg4 = 0 ;
18481 int arg5 = (int) wxFLOOD_SURFACE ;
18482 bool result;
18483 void *argp1 = 0 ;
18484 int res1 = 0 ;
18485 int val2 ;
18486 int ecode2 = 0 ;
18487 int val3 ;
18488 int ecode3 = 0 ;
18489 wxColour temp4 ;
18490 int val5 ;
18491 int ecode5 = 0 ;
18492 PyObject * obj0 = 0 ;
18493 PyObject * obj1 = 0 ;
18494 PyObject * obj2 = 0 ;
18495 PyObject * obj3 = 0 ;
18496 PyObject * obj4 = 0 ;
18497 char * kwnames[] = {
18498 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
18499 };
18500
18501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18503 if (!SWIG_IsOK(res1)) {
18504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
18505 }
18506 arg1 = reinterpret_cast< wxDC * >(argp1);
18507 ecode2 = SWIG_AsVal_int(obj1, &val2);
18508 if (!SWIG_IsOK(ecode2)) {
18509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
18510 }
18511 arg2 = static_cast< int >(val2);
18512 ecode3 = SWIG_AsVal_int(obj2, &val3);
18513 if (!SWIG_IsOK(ecode3)) {
18514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
18515 }
18516 arg3 = static_cast< int >(val3);
18517 {
18518 arg4 = &temp4;
18519 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18520 }
18521 if (obj4) {
18522 ecode5 = SWIG_AsVal_int(obj4, &val5);
18523 if (!SWIG_IsOK(ecode5)) {
18524 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
18525 }
18526 arg5 = static_cast< int >(val5);
18527 }
18528 {
18529 PyThreadState* __tstate = wxPyBeginAllowThreads();
18530 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
18531 wxPyEndAllowThreads(__tstate);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 }
18534 {
18535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18536 }
18537 return resultobj;
18538 fail:
18539 return NULL;
18540 }
18541
18542
18543 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18544 PyObject *resultobj = 0;
18545 wxDC *arg1 = (wxDC *) 0 ;
18546 wxPoint *arg2 = 0 ;
18547 wxColour *arg3 = 0 ;
18548 int arg4 = (int) wxFLOOD_SURFACE ;
18549 bool result;
18550 void *argp1 = 0 ;
18551 int res1 = 0 ;
18552 wxPoint temp2 ;
18553 wxColour temp3 ;
18554 int val4 ;
18555 int ecode4 = 0 ;
18556 PyObject * obj0 = 0 ;
18557 PyObject * obj1 = 0 ;
18558 PyObject * obj2 = 0 ;
18559 PyObject * obj3 = 0 ;
18560 char * kwnames[] = {
18561 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
18562 };
18563
18564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18566 if (!SWIG_IsOK(res1)) {
18567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18568 }
18569 arg1 = reinterpret_cast< wxDC * >(argp1);
18570 {
18571 arg2 = &temp2;
18572 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18573 }
18574 {
18575 arg3 = &temp3;
18576 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18577 }
18578 if (obj3) {
18579 ecode4 = SWIG_AsVal_int(obj3, &val4);
18580 if (!SWIG_IsOK(ecode4)) {
18581 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18582 }
18583 arg4 = static_cast< int >(val4);
18584 }
18585 {
18586 PyThreadState* __tstate = wxPyBeginAllowThreads();
18587 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18588 wxPyEndAllowThreads(__tstate);
18589 if (PyErr_Occurred()) SWIG_fail;
18590 }
18591 {
18592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18593 }
18594 return resultobj;
18595 fail:
18596 return NULL;
18597 }
18598
18599
18600 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18601 PyObject *resultobj = 0;
18602 wxDC *arg1 = (wxDC *) 0 ;
18603 wxRect *arg2 = 0 ;
18604 wxColour *arg3 = 0 ;
18605 wxColour *arg4 = 0 ;
18606 wxPoint *arg5 = 0 ;
18607 void *argp1 = 0 ;
18608 int res1 = 0 ;
18609 wxRect temp2 ;
18610 wxColour temp3 ;
18611 wxColour temp4 ;
18612 wxPoint temp5 ;
18613 PyObject * obj0 = 0 ;
18614 PyObject * obj1 = 0 ;
18615 PyObject * obj2 = 0 ;
18616 PyObject * obj3 = 0 ;
18617 PyObject * obj4 = 0 ;
18618 char * kwnames[] = {
18619 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18620 };
18621
18622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18624 if (!SWIG_IsOK(res1)) {
18625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18626 }
18627 arg1 = reinterpret_cast< wxDC * >(argp1);
18628 {
18629 arg2 = &temp2;
18630 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18631 }
18632 {
18633 arg3 = &temp3;
18634 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18635 }
18636 {
18637 arg4 = &temp4;
18638 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18639 }
18640 {
18641 arg5 = &temp5;
18642 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18643 }
18644 {
18645 PyThreadState* __tstate = wxPyBeginAllowThreads();
18646 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18647 wxPyEndAllowThreads(__tstate);
18648 if (PyErr_Occurred()) SWIG_fail;
18649 }
18650 resultobj = SWIG_Py_Void();
18651 return resultobj;
18652 fail:
18653 return NULL;
18654 }
18655
18656
18657 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18658 PyObject *resultobj = 0;
18659 wxDC *arg1 = (wxDC *) 0 ;
18660 wxRect *arg2 = 0 ;
18661 wxColour *arg3 = 0 ;
18662 wxColour *arg4 = 0 ;
18663 wxDirection arg5 = (wxDirection) wxEAST ;
18664 void *argp1 = 0 ;
18665 int res1 = 0 ;
18666 wxRect temp2 ;
18667 wxColour temp3 ;
18668 wxColour temp4 ;
18669 int val5 ;
18670 int ecode5 = 0 ;
18671 PyObject * obj0 = 0 ;
18672 PyObject * obj1 = 0 ;
18673 PyObject * obj2 = 0 ;
18674 PyObject * obj3 = 0 ;
18675 PyObject * obj4 = 0 ;
18676 char * kwnames[] = {
18677 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18678 };
18679
18680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18682 if (!SWIG_IsOK(res1)) {
18683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18684 }
18685 arg1 = reinterpret_cast< wxDC * >(argp1);
18686 {
18687 arg2 = &temp2;
18688 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18689 }
18690 {
18691 arg3 = &temp3;
18692 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18693 }
18694 {
18695 arg4 = &temp4;
18696 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18697 }
18698 if (obj4) {
18699 ecode5 = SWIG_AsVal_int(obj4, &val5);
18700 if (!SWIG_IsOK(ecode5)) {
18701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18702 }
18703 arg5 = static_cast< wxDirection >(val5);
18704 }
18705 {
18706 PyThreadState* __tstate = wxPyBeginAllowThreads();
18707 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18708 wxPyEndAllowThreads(__tstate);
18709 if (PyErr_Occurred()) SWIG_fail;
18710 }
18711 resultobj = SWIG_Py_Void();
18712 return resultobj;
18713 fail:
18714 return NULL;
18715 }
18716
18717
18718 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18719 PyObject *resultobj = 0;
18720 wxDC *arg1 = (wxDC *) 0 ;
18721 int arg2 ;
18722 int arg3 ;
18723 wxColour result;
18724 void *argp1 = 0 ;
18725 int res1 = 0 ;
18726 int val2 ;
18727 int ecode2 = 0 ;
18728 int val3 ;
18729 int ecode3 = 0 ;
18730 PyObject * obj0 = 0 ;
18731 PyObject * obj1 = 0 ;
18732 PyObject * obj2 = 0 ;
18733 char * kwnames[] = {
18734 (char *) "self",(char *) "x",(char *) "y", NULL
18735 };
18736
18737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18739 if (!SWIG_IsOK(res1)) {
18740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18741 }
18742 arg1 = reinterpret_cast< wxDC * >(argp1);
18743 ecode2 = SWIG_AsVal_int(obj1, &val2);
18744 if (!SWIG_IsOK(ecode2)) {
18745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18746 }
18747 arg2 = static_cast< int >(val2);
18748 ecode3 = SWIG_AsVal_int(obj2, &val3);
18749 if (!SWIG_IsOK(ecode3)) {
18750 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18751 }
18752 arg3 = static_cast< int >(val3);
18753 {
18754 PyThreadState* __tstate = wxPyBeginAllowThreads();
18755 result = wxDC_GetPixel(arg1,arg2,arg3);
18756 wxPyEndAllowThreads(__tstate);
18757 if (PyErr_Occurred()) SWIG_fail;
18758 }
18759 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18760 return resultobj;
18761 fail:
18762 return NULL;
18763 }
18764
18765
18766 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18767 PyObject *resultobj = 0;
18768 wxDC *arg1 = (wxDC *) 0 ;
18769 wxPoint *arg2 = 0 ;
18770 wxColour result;
18771 void *argp1 = 0 ;
18772 int res1 = 0 ;
18773 wxPoint temp2 ;
18774 PyObject * obj0 = 0 ;
18775 PyObject * obj1 = 0 ;
18776 char * kwnames[] = {
18777 (char *) "self",(char *) "pt", NULL
18778 };
18779
18780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18782 if (!SWIG_IsOK(res1)) {
18783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18784 }
18785 arg1 = reinterpret_cast< wxDC * >(argp1);
18786 {
18787 arg2 = &temp2;
18788 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18789 }
18790 {
18791 PyThreadState* __tstate = wxPyBeginAllowThreads();
18792 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18793 wxPyEndAllowThreads(__tstate);
18794 if (PyErr_Occurred()) SWIG_fail;
18795 }
18796 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18797 return resultobj;
18798 fail:
18799 return NULL;
18800 }
18801
18802
18803 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18804 PyObject *resultobj = 0;
18805 wxDC *arg1 = (wxDC *) 0 ;
18806 int arg2 ;
18807 int arg3 ;
18808 int arg4 ;
18809 int arg5 ;
18810 void *argp1 = 0 ;
18811 int res1 = 0 ;
18812 int val2 ;
18813 int ecode2 = 0 ;
18814 int val3 ;
18815 int ecode3 = 0 ;
18816 int val4 ;
18817 int ecode4 = 0 ;
18818 int val5 ;
18819 int ecode5 = 0 ;
18820 PyObject * obj0 = 0 ;
18821 PyObject * obj1 = 0 ;
18822 PyObject * obj2 = 0 ;
18823 PyObject * obj3 = 0 ;
18824 PyObject * obj4 = 0 ;
18825 char * kwnames[] = {
18826 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18827 };
18828
18829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18831 if (!SWIG_IsOK(res1)) {
18832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18833 }
18834 arg1 = reinterpret_cast< wxDC * >(argp1);
18835 ecode2 = SWIG_AsVal_int(obj1, &val2);
18836 if (!SWIG_IsOK(ecode2)) {
18837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18838 }
18839 arg2 = static_cast< int >(val2);
18840 ecode3 = SWIG_AsVal_int(obj2, &val3);
18841 if (!SWIG_IsOK(ecode3)) {
18842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18843 }
18844 arg3 = static_cast< int >(val3);
18845 ecode4 = SWIG_AsVal_int(obj3, &val4);
18846 if (!SWIG_IsOK(ecode4)) {
18847 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18848 }
18849 arg4 = static_cast< int >(val4);
18850 ecode5 = SWIG_AsVal_int(obj4, &val5);
18851 if (!SWIG_IsOK(ecode5)) {
18852 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18853 }
18854 arg5 = static_cast< int >(val5);
18855 {
18856 PyThreadState* __tstate = wxPyBeginAllowThreads();
18857 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18858 wxPyEndAllowThreads(__tstate);
18859 if (PyErr_Occurred()) SWIG_fail;
18860 }
18861 resultobj = SWIG_Py_Void();
18862 return resultobj;
18863 fail:
18864 return NULL;
18865 }
18866
18867
18868 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18869 PyObject *resultobj = 0;
18870 wxDC *arg1 = (wxDC *) 0 ;
18871 wxPoint *arg2 = 0 ;
18872 wxPoint *arg3 = 0 ;
18873 void *argp1 = 0 ;
18874 int res1 = 0 ;
18875 wxPoint temp2 ;
18876 wxPoint temp3 ;
18877 PyObject * obj0 = 0 ;
18878 PyObject * obj1 = 0 ;
18879 PyObject * obj2 = 0 ;
18880 char * kwnames[] = {
18881 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18882 };
18883
18884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18886 if (!SWIG_IsOK(res1)) {
18887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18888 }
18889 arg1 = reinterpret_cast< wxDC * >(argp1);
18890 {
18891 arg2 = &temp2;
18892 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18893 }
18894 {
18895 arg3 = &temp3;
18896 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18897 }
18898 {
18899 PyThreadState* __tstate = wxPyBeginAllowThreads();
18900 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18901 wxPyEndAllowThreads(__tstate);
18902 if (PyErr_Occurred()) SWIG_fail;
18903 }
18904 resultobj = SWIG_Py_Void();
18905 return resultobj;
18906 fail:
18907 return NULL;
18908 }
18909
18910
18911 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18912 PyObject *resultobj = 0;
18913 wxDC *arg1 = (wxDC *) 0 ;
18914 int arg2 ;
18915 int arg3 ;
18916 void *argp1 = 0 ;
18917 int res1 = 0 ;
18918 int val2 ;
18919 int ecode2 = 0 ;
18920 int val3 ;
18921 int ecode3 = 0 ;
18922 PyObject * obj0 = 0 ;
18923 PyObject * obj1 = 0 ;
18924 PyObject * obj2 = 0 ;
18925 char * kwnames[] = {
18926 (char *) "self",(char *) "x",(char *) "y", NULL
18927 };
18928
18929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18931 if (!SWIG_IsOK(res1)) {
18932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18933 }
18934 arg1 = reinterpret_cast< wxDC * >(argp1);
18935 ecode2 = SWIG_AsVal_int(obj1, &val2);
18936 if (!SWIG_IsOK(ecode2)) {
18937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18938 }
18939 arg2 = static_cast< int >(val2);
18940 ecode3 = SWIG_AsVal_int(obj2, &val3);
18941 if (!SWIG_IsOK(ecode3)) {
18942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18943 }
18944 arg3 = static_cast< int >(val3);
18945 {
18946 PyThreadState* __tstate = wxPyBeginAllowThreads();
18947 (arg1)->CrossHair(arg2,arg3);
18948 wxPyEndAllowThreads(__tstate);
18949 if (PyErr_Occurred()) SWIG_fail;
18950 }
18951 resultobj = SWIG_Py_Void();
18952 return resultobj;
18953 fail:
18954 return NULL;
18955 }
18956
18957
18958 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18959 PyObject *resultobj = 0;
18960 wxDC *arg1 = (wxDC *) 0 ;
18961 wxPoint *arg2 = 0 ;
18962 void *argp1 = 0 ;
18963 int res1 = 0 ;
18964 wxPoint temp2 ;
18965 PyObject * obj0 = 0 ;
18966 PyObject * obj1 = 0 ;
18967 char * kwnames[] = {
18968 (char *) "self",(char *) "pt", NULL
18969 };
18970
18971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18973 if (!SWIG_IsOK(res1)) {
18974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18975 }
18976 arg1 = reinterpret_cast< wxDC * >(argp1);
18977 {
18978 arg2 = &temp2;
18979 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18980 }
18981 {
18982 PyThreadState* __tstate = wxPyBeginAllowThreads();
18983 (arg1)->CrossHair((wxPoint const &)*arg2);
18984 wxPyEndAllowThreads(__tstate);
18985 if (PyErr_Occurred()) SWIG_fail;
18986 }
18987 resultobj = SWIG_Py_Void();
18988 return resultobj;
18989 fail:
18990 return NULL;
18991 }
18992
18993
18994 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18995 PyObject *resultobj = 0;
18996 wxDC *arg1 = (wxDC *) 0 ;
18997 int arg2 ;
18998 int arg3 ;
18999 int arg4 ;
19000 int arg5 ;
19001 int arg6 ;
19002 int arg7 ;
19003 void *argp1 = 0 ;
19004 int res1 = 0 ;
19005 int val2 ;
19006 int ecode2 = 0 ;
19007 int val3 ;
19008 int ecode3 = 0 ;
19009 int val4 ;
19010 int ecode4 = 0 ;
19011 int val5 ;
19012 int ecode5 = 0 ;
19013 int val6 ;
19014 int ecode6 = 0 ;
19015 int val7 ;
19016 int ecode7 = 0 ;
19017 PyObject * obj0 = 0 ;
19018 PyObject * obj1 = 0 ;
19019 PyObject * obj2 = 0 ;
19020 PyObject * obj3 = 0 ;
19021 PyObject * obj4 = 0 ;
19022 PyObject * obj5 = 0 ;
19023 PyObject * obj6 = 0 ;
19024 char * kwnames[] = {
19025 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
19026 };
19027
19028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
19029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19030 if (!SWIG_IsOK(res1)) {
19031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
19032 }
19033 arg1 = reinterpret_cast< wxDC * >(argp1);
19034 ecode2 = SWIG_AsVal_int(obj1, &val2);
19035 if (!SWIG_IsOK(ecode2)) {
19036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
19037 }
19038 arg2 = static_cast< int >(val2);
19039 ecode3 = SWIG_AsVal_int(obj2, &val3);
19040 if (!SWIG_IsOK(ecode3)) {
19041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
19042 }
19043 arg3 = static_cast< int >(val3);
19044 ecode4 = SWIG_AsVal_int(obj3, &val4);
19045 if (!SWIG_IsOK(ecode4)) {
19046 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
19047 }
19048 arg4 = static_cast< int >(val4);
19049 ecode5 = SWIG_AsVal_int(obj4, &val5);
19050 if (!SWIG_IsOK(ecode5)) {
19051 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
19052 }
19053 arg5 = static_cast< int >(val5);
19054 ecode6 = SWIG_AsVal_int(obj5, &val6);
19055 if (!SWIG_IsOK(ecode6)) {
19056 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
19057 }
19058 arg6 = static_cast< int >(val6);
19059 ecode7 = SWIG_AsVal_int(obj6, &val7);
19060 if (!SWIG_IsOK(ecode7)) {
19061 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
19062 }
19063 arg7 = static_cast< int >(val7);
19064 {
19065 PyThreadState* __tstate = wxPyBeginAllowThreads();
19066 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
19067 wxPyEndAllowThreads(__tstate);
19068 if (PyErr_Occurred()) SWIG_fail;
19069 }
19070 resultobj = SWIG_Py_Void();
19071 return resultobj;
19072 fail:
19073 return NULL;
19074 }
19075
19076
19077 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19078 PyObject *resultobj = 0;
19079 wxDC *arg1 = (wxDC *) 0 ;
19080 wxPoint *arg2 = 0 ;
19081 wxPoint *arg3 = 0 ;
19082 wxPoint *arg4 = 0 ;
19083 void *argp1 = 0 ;
19084 int res1 = 0 ;
19085 wxPoint temp2 ;
19086 wxPoint temp3 ;
19087 wxPoint temp4 ;
19088 PyObject * obj0 = 0 ;
19089 PyObject * obj1 = 0 ;
19090 PyObject * obj2 = 0 ;
19091 PyObject * obj3 = 0 ;
19092 char * kwnames[] = {
19093 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
19094 };
19095
19096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19098 if (!SWIG_IsOK(res1)) {
19099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19100 }
19101 arg1 = reinterpret_cast< wxDC * >(argp1);
19102 {
19103 arg2 = &temp2;
19104 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19105 }
19106 {
19107 arg3 = &temp3;
19108 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19109 }
19110 {
19111 arg4 = &temp4;
19112 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
19113 }
19114 {
19115 PyThreadState* __tstate = wxPyBeginAllowThreads();
19116 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
19117 wxPyEndAllowThreads(__tstate);
19118 if (PyErr_Occurred()) SWIG_fail;
19119 }
19120 resultobj = SWIG_Py_Void();
19121 return resultobj;
19122 fail:
19123 return NULL;
19124 }
19125
19126
19127 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19128 PyObject *resultobj = 0;
19129 wxDC *arg1 = (wxDC *) 0 ;
19130 int arg2 ;
19131 int arg3 ;
19132 int arg4 ;
19133 int arg5 ;
19134 void *argp1 = 0 ;
19135 int res1 = 0 ;
19136 int val2 ;
19137 int ecode2 = 0 ;
19138 int val3 ;
19139 int ecode3 = 0 ;
19140 int val4 ;
19141 int ecode4 = 0 ;
19142 int val5 ;
19143 int ecode5 = 0 ;
19144 PyObject * obj0 = 0 ;
19145 PyObject * obj1 = 0 ;
19146 PyObject * obj2 = 0 ;
19147 PyObject * obj3 = 0 ;
19148 PyObject * obj4 = 0 ;
19149 char * kwnames[] = {
19150 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19151 };
19152
19153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19155 if (!SWIG_IsOK(res1)) {
19156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
19157 }
19158 arg1 = reinterpret_cast< wxDC * >(argp1);
19159 ecode2 = SWIG_AsVal_int(obj1, &val2);
19160 if (!SWIG_IsOK(ecode2)) {
19161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
19162 }
19163 arg2 = static_cast< int >(val2);
19164 ecode3 = SWIG_AsVal_int(obj2, &val3);
19165 if (!SWIG_IsOK(ecode3)) {
19166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
19167 }
19168 arg3 = static_cast< int >(val3);
19169 ecode4 = SWIG_AsVal_int(obj3, &val4);
19170 if (!SWIG_IsOK(ecode4)) {
19171 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
19172 }
19173 arg4 = static_cast< int >(val4);
19174 ecode5 = SWIG_AsVal_int(obj4, &val5);
19175 if (!SWIG_IsOK(ecode5)) {
19176 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
19177 }
19178 arg5 = static_cast< int >(val5);
19179 {
19180 PyThreadState* __tstate = wxPyBeginAllowThreads();
19181 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
19182 wxPyEndAllowThreads(__tstate);
19183 if (PyErr_Occurred()) SWIG_fail;
19184 }
19185 resultobj = SWIG_Py_Void();
19186 return resultobj;
19187 fail:
19188 return NULL;
19189 }
19190
19191
19192 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19193 PyObject *resultobj = 0;
19194 wxDC *arg1 = (wxDC *) 0 ;
19195 wxRect *arg2 = 0 ;
19196 void *argp1 = 0 ;
19197 int res1 = 0 ;
19198 wxRect temp2 ;
19199 PyObject * obj0 = 0 ;
19200 PyObject * obj1 = 0 ;
19201 char * kwnames[] = {
19202 (char *) "self",(char *) "rect", NULL
19203 };
19204
19205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
19206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19207 if (!SWIG_IsOK(res1)) {
19208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
19209 }
19210 arg1 = reinterpret_cast< wxDC * >(argp1);
19211 {
19212 arg2 = &temp2;
19213 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19214 }
19215 {
19216 PyThreadState* __tstate = wxPyBeginAllowThreads();
19217 (arg1)->DrawCheckMark((wxRect const &)*arg2);
19218 wxPyEndAllowThreads(__tstate);
19219 if (PyErr_Occurred()) SWIG_fail;
19220 }
19221 resultobj = SWIG_Py_Void();
19222 return resultobj;
19223 fail:
19224 return NULL;
19225 }
19226
19227
19228 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19229 PyObject *resultobj = 0;
19230 wxDC *arg1 = (wxDC *) 0 ;
19231 int arg2 ;
19232 int arg3 ;
19233 int arg4 ;
19234 int arg5 ;
19235 double arg6 ;
19236 double arg7 ;
19237 void *argp1 = 0 ;
19238 int res1 = 0 ;
19239 int val2 ;
19240 int ecode2 = 0 ;
19241 int val3 ;
19242 int ecode3 = 0 ;
19243 int val4 ;
19244 int ecode4 = 0 ;
19245 int val5 ;
19246 int ecode5 = 0 ;
19247 double val6 ;
19248 int ecode6 = 0 ;
19249 double val7 ;
19250 int ecode7 = 0 ;
19251 PyObject * obj0 = 0 ;
19252 PyObject * obj1 = 0 ;
19253 PyObject * obj2 = 0 ;
19254 PyObject * obj3 = 0 ;
19255 PyObject * obj4 = 0 ;
19256 PyObject * obj5 = 0 ;
19257 PyObject * obj6 = 0 ;
19258 char * kwnames[] = {
19259 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
19260 };
19261
19262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) 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_DrawEllipticArc" "', 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_DrawEllipticArc" "', 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_DrawEllipticArc" "', 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_DrawEllipticArc" "', 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_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
19286 }
19287 arg5 = static_cast< int >(val5);
19288 ecode6 = SWIG_AsVal_double(obj5, &val6);
19289 if (!SWIG_IsOK(ecode6)) {
19290 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
19291 }
19292 arg6 = static_cast< double >(val6);
19293 ecode7 = SWIG_AsVal_double(obj6, &val7);
19294 if (!SWIG_IsOK(ecode7)) {
19295 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
19296 }
19297 arg7 = static_cast< double >(val7);
19298 {
19299 PyThreadState* __tstate = wxPyBeginAllowThreads();
19300 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
19301 wxPyEndAllowThreads(__tstate);
19302 if (PyErr_Occurred()) SWIG_fail;
19303 }
19304 resultobj = SWIG_Py_Void();
19305 return resultobj;
19306 fail:
19307 return NULL;
19308 }
19309
19310
19311 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19312 PyObject *resultobj = 0;
19313 wxDC *arg1 = (wxDC *) 0 ;
19314 wxPoint *arg2 = 0 ;
19315 wxSize *arg3 = 0 ;
19316 double arg4 ;
19317 double arg5 ;
19318 void *argp1 = 0 ;
19319 int res1 = 0 ;
19320 wxPoint temp2 ;
19321 wxSize temp3 ;
19322 double val4 ;
19323 int ecode4 = 0 ;
19324 double val5 ;
19325 int ecode5 = 0 ;
19326 PyObject * obj0 = 0 ;
19327 PyObject * obj1 = 0 ;
19328 PyObject * obj2 = 0 ;
19329 PyObject * obj3 = 0 ;
19330 PyObject * obj4 = 0 ;
19331 char * kwnames[] = {
19332 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
19333 };
19334
19335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19337 if (!SWIG_IsOK(res1)) {
19338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19339 }
19340 arg1 = reinterpret_cast< wxDC * >(argp1);
19341 {
19342 arg2 = &temp2;
19343 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19344 }
19345 {
19346 arg3 = &temp3;
19347 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19348 }
19349 ecode4 = SWIG_AsVal_double(obj3, &val4);
19350 if (!SWIG_IsOK(ecode4)) {
19351 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
19352 }
19353 arg4 = static_cast< double >(val4);
19354 ecode5 = SWIG_AsVal_double(obj4, &val5);
19355 if (!SWIG_IsOK(ecode5)) {
19356 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
19357 }
19358 arg5 = static_cast< double >(val5);
19359 {
19360 PyThreadState* __tstate = wxPyBeginAllowThreads();
19361 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
19362 wxPyEndAllowThreads(__tstate);
19363 if (PyErr_Occurred()) SWIG_fail;
19364 }
19365 resultobj = SWIG_Py_Void();
19366 return resultobj;
19367 fail:
19368 return NULL;
19369 }
19370
19371
19372 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19373 PyObject *resultobj = 0;
19374 wxDC *arg1 = (wxDC *) 0 ;
19375 int arg2 ;
19376 int arg3 ;
19377 void *argp1 = 0 ;
19378 int res1 = 0 ;
19379 int val2 ;
19380 int ecode2 = 0 ;
19381 int val3 ;
19382 int ecode3 = 0 ;
19383 PyObject * obj0 = 0 ;
19384 PyObject * obj1 = 0 ;
19385 PyObject * obj2 = 0 ;
19386 char * kwnames[] = {
19387 (char *) "self",(char *) "x",(char *) "y", NULL
19388 };
19389
19390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19392 if (!SWIG_IsOK(res1)) {
19393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19394 }
19395 arg1 = reinterpret_cast< wxDC * >(argp1);
19396 ecode2 = SWIG_AsVal_int(obj1, &val2);
19397 if (!SWIG_IsOK(ecode2)) {
19398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
19399 }
19400 arg2 = static_cast< int >(val2);
19401 ecode3 = SWIG_AsVal_int(obj2, &val3);
19402 if (!SWIG_IsOK(ecode3)) {
19403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
19404 }
19405 arg3 = static_cast< int >(val3);
19406 {
19407 PyThreadState* __tstate = wxPyBeginAllowThreads();
19408 (arg1)->DrawPoint(arg2,arg3);
19409 wxPyEndAllowThreads(__tstate);
19410 if (PyErr_Occurred()) SWIG_fail;
19411 }
19412 resultobj = SWIG_Py_Void();
19413 return resultobj;
19414 fail:
19415 return NULL;
19416 }
19417
19418
19419 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19420 PyObject *resultobj = 0;
19421 wxDC *arg1 = (wxDC *) 0 ;
19422 wxPoint *arg2 = 0 ;
19423 void *argp1 = 0 ;
19424 int res1 = 0 ;
19425 wxPoint temp2 ;
19426 PyObject * obj0 = 0 ;
19427 PyObject * obj1 = 0 ;
19428 char * kwnames[] = {
19429 (char *) "self",(char *) "pt", NULL
19430 };
19431
19432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19434 if (!SWIG_IsOK(res1)) {
19435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19436 }
19437 arg1 = reinterpret_cast< wxDC * >(argp1);
19438 {
19439 arg2 = &temp2;
19440 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19441 }
19442 {
19443 PyThreadState* __tstate = wxPyBeginAllowThreads();
19444 (arg1)->DrawPoint((wxPoint const &)*arg2);
19445 wxPyEndAllowThreads(__tstate);
19446 if (PyErr_Occurred()) SWIG_fail;
19447 }
19448 resultobj = SWIG_Py_Void();
19449 return resultobj;
19450 fail:
19451 return NULL;
19452 }
19453
19454
19455 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19456 PyObject *resultobj = 0;
19457 wxDC *arg1 = (wxDC *) 0 ;
19458 int arg2 ;
19459 int arg3 ;
19460 int arg4 ;
19461 int arg5 ;
19462 void *argp1 = 0 ;
19463 int res1 = 0 ;
19464 int val2 ;
19465 int ecode2 = 0 ;
19466 int val3 ;
19467 int ecode3 = 0 ;
19468 int val4 ;
19469 int ecode4 = 0 ;
19470 int val5 ;
19471 int ecode5 = 0 ;
19472 PyObject * obj0 = 0 ;
19473 PyObject * obj1 = 0 ;
19474 PyObject * obj2 = 0 ;
19475 PyObject * obj3 = 0 ;
19476 PyObject * obj4 = 0 ;
19477 char * kwnames[] = {
19478 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19479 };
19480
19481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19483 if (!SWIG_IsOK(res1)) {
19484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19485 }
19486 arg1 = reinterpret_cast< wxDC * >(argp1);
19487 ecode2 = SWIG_AsVal_int(obj1, &val2);
19488 if (!SWIG_IsOK(ecode2)) {
19489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
19490 }
19491 arg2 = static_cast< int >(val2);
19492 ecode3 = SWIG_AsVal_int(obj2, &val3);
19493 if (!SWIG_IsOK(ecode3)) {
19494 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
19495 }
19496 arg3 = static_cast< int >(val3);
19497 ecode4 = SWIG_AsVal_int(obj3, &val4);
19498 if (!SWIG_IsOK(ecode4)) {
19499 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
19500 }
19501 arg4 = static_cast< int >(val4);
19502 ecode5 = SWIG_AsVal_int(obj4, &val5);
19503 if (!SWIG_IsOK(ecode5)) {
19504 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
19505 }
19506 arg5 = static_cast< int >(val5);
19507 {
19508 PyThreadState* __tstate = wxPyBeginAllowThreads();
19509 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
19510 wxPyEndAllowThreads(__tstate);
19511 if (PyErr_Occurred()) SWIG_fail;
19512 }
19513 resultobj = SWIG_Py_Void();
19514 return resultobj;
19515 fail:
19516 return NULL;
19517 }
19518
19519
19520 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19521 PyObject *resultobj = 0;
19522 wxDC *arg1 = (wxDC *) 0 ;
19523 wxRect *arg2 = 0 ;
19524 void *argp1 = 0 ;
19525 int res1 = 0 ;
19526 wxRect temp2 ;
19527 PyObject * obj0 = 0 ;
19528 PyObject * obj1 = 0 ;
19529 char * kwnames[] = {
19530 (char *) "self",(char *) "rect", NULL
19531 };
19532
19533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
19534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19535 if (!SWIG_IsOK(res1)) {
19536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19537 }
19538 arg1 = reinterpret_cast< wxDC * >(argp1);
19539 {
19540 arg2 = &temp2;
19541 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19542 }
19543 {
19544 PyThreadState* __tstate = wxPyBeginAllowThreads();
19545 (arg1)->DrawRectangle((wxRect const &)*arg2);
19546 wxPyEndAllowThreads(__tstate);
19547 if (PyErr_Occurred()) SWIG_fail;
19548 }
19549 resultobj = SWIG_Py_Void();
19550 return resultobj;
19551 fail:
19552 return NULL;
19553 }
19554
19555
19556 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19557 PyObject *resultobj = 0;
19558 wxDC *arg1 = (wxDC *) 0 ;
19559 wxPoint *arg2 = 0 ;
19560 wxSize *arg3 = 0 ;
19561 void *argp1 = 0 ;
19562 int res1 = 0 ;
19563 wxPoint temp2 ;
19564 wxSize temp3 ;
19565 PyObject * obj0 = 0 ;
19566 PyObject * obj1 = 0 ;
19567 PyObject * obj2 = 0 ;
19568 char * kwnames[] = {
19569 (char *) "self",(char *) "pt",(char *) "sz", NULL
19570 };
19571
19572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19574 if (!SWIG_IsOK(res1)) {
19575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19576 }
19577 arg1 = reinterpret_cast< wxDC * >(argp1);
19578 {
19579 arg2 = &temp2;
19580 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19581 }
19582 {
19583 arg3 = &temp3;
19584 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19585 }
19586 {
19587 PyThreadState* __tstate = wxPyBeginAllowThreads();
19588 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19589 wxPyEndAllowThreads(__tstate);
19590 if (PyErr_Occurred()) SWIG_fail;
19591 }
19592 resultobj = SWIG_Py_Void();
19593 return resultobj;
19594 fail:
19595 return NULL;
19596 }
19597
19598
19599 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19600 PyObject *resultobj = 0;
19601 wxDC *arg1 = (wxDC *) 0 ;
19602 int arg2 ;
19603 int arg3 ;
19604 int arg4 ;
19605 int arg5 ;
19606 double arg6 ;
19607 void *argp1 = 0 ;
19608 int res1 = 0 ;
19609 int val2 ;
19610 int ecode2 = 0 ;
19611 int val3 ;
19612 int ecode3 = 0 ;
19613 int val4 ;
19614 int ecode4 = 0 ;
19615 int val5 ;
19616 int ecode5 = 0 ;
19617 double val6 ;
19618 int ecode6 = 0 ;
19619 PyObject * obj0 = 0 ;
19620 PyObject * obj1 = 0 ;
19621 PyObject * obj2 = 0 ;
19622 PyObject * obj3 = 0 ;
19623 PyObject * obj4 = 0 ;
19624 PyObject * obj5 = 0 ;
19625 char * kwnames[] = {
19626 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19627 };
19628
19629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19631 if (!SWIG_IsOK(res1)) {
19632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19633 }
19634 arg1 = reinterpret_cast< wxDC * >(argp1);
19635 ecode2 = SWIG_AsVal_int(obj1, &val2);
19636 if (!SWIG_IsOK(ecode2)) {
19637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19638 }
19639 arg2 = static_cast< int >(val2);
19640 ecode3 = SWIG_AsVal_int(obj2, &val3);
19641 if (!SWIG_IsOK(ecode3)) {
19642 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19643 }
19644 arg3 = static_cast< int >(val3);
19645 ecode4 = SWIG_AsVal_int(obj3, &val4);
19646 if (!SWIG_IsOK(ecode4)) {
19647 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19648 }
19649 arg4 = static_cast< int >(val4);
19650 ecode5 = SWIG_AsVal_int(obj4, &val5);
19651 if (!SWIG_IsOK(ecode5)) {
19652 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19653 }
19654 arg5 = static_cast< int >(val5);
19655 ecode6 = SWIG_AsVal_double(obj5, &val6);
19656 if (!SWIG_IsOK(ecode6)) {
19657 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19658 }
19659 arg6 = static_cast< double >(val6);
19660 {
19661 PyThreadState* __tstate = wxPyBeginAllowThreads();
19662 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19663 wxPyEndAllowThreads(__tstate);
19664 if (PyErr_Occurred()) SWIG_fail;
19665 }
19666 resultobj = SWIG_Py_Void();
19667 return resultobj;
19668 fail:
19669 return NULL;
19670 }
19671
19672
19673 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19674 PyObject *resultobj = 0;
19675 wxDC *arg1 = (wxDC *) 0 ;
19676 wxRect *arg2 = 0 ;
19677 double arg3 ;
19678 void *argp1 = 0 ;
19679 int res1 = 0 ;
19680 wxRect temp2 ;
19681 double val3 ;
19682 int ecode3 = 0 ;
19683 PyObject * obj0 = 0 ;
19684 PyObject * obj1 = 0 ;
19685 PyObject * obj2 = 0 ;
19686 char * kwnames[] = {
19687 (char *) "self",(char *) "r",(char *) "radius", NULL
19688 };
19689
19690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19692 if (!SWIG_IsOK(res1)) {
19693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19694 }
19695 arg1 = reinterpret_cast< wxDC * >(argp1);
19696 {
19697 arg2 = &temp2;
19698 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19699 }
19700 ecode3 = SWIG_AsVal_double(obj2, &val3);
19701 if (!SWIG_IsOK(ecode3)) {
19702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19703 }
19704 arg3 = static_cast< double >(val3);
19705 {
19706 PyThreadState* __tstate = wxPyBeginAllowThreads();
19707 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19708 wxPyEndAllowThreads(__tstate);
19709 if (PyErr_Occurred()) SWIG_fail;
19710 }
19711 resultobj = SWIG_Py_Void();
19712 return resultobj;
19713 fail:
19714 return NULL;
19715 }
19716
19717
19718 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19719 PyObject *resultobj = 0;
19720 wxDC *arg1 = (wxDC *) 0 ;
19721 wxPoint *arg2 = 0 ;
19722 wxSize *arg3 = 0 ;
19723 double arg4 ;
19724 void *argp1 = 0 ;
19725 int res1 = 0 ;
19726 wxPoint temp2 ;
19727 wxSize temp3 ;
19728 double val4 ;
19729 int ecode4 = 0 ;
19730 PyObject * obj0 = 0 ;
19731 PyObject * obj1 = 0 ;
19732 PyObject * obj2 = 0 ;
19733 PyObject * obj3 = 0 ;
19734 char * kwnames[] = {
19735 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19736 };
19737
19738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19740 if (!SWIG_IsOK(res1)) {
19741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19742 }
19743 arg1 = reinterpret_cast< wxDC * >(argp1);
19744 {
19745 arg2 = &temp2;
19746 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19747 }
19748 {
19749 arg3 = &temp3;
19750 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19751 }
19752 ecode4 = SWIG_AsVal_double(obj3, &val4);
19753 if (!SWIG_IsOK(ecode4)) {
19754 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19755 }
19756 arg4 = static_cast< double >(val4);
19757 {
19758 PyThreadState* __tstate = wxPyBeginAllowThreads();
19759 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19760 wxPyEndAllowThreads(__tstate);
19761 if (PyErr_Occurred()) SWIG_fail;
19762 }
19763 resultobj = SWIG_Py_Void();
19764 return resultobj;
19765 fail:
19766 return NULL;
19767 }
19768
19769
19770 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19771 PyObject *resultobj = 0;
19772 wxDC *arg1 = (wxDC *) 0 ;
19773 int arg2 ;
19774 int arg3 ;
19775 int arg4 ;
19776 void *argp1 = 0 ;
19777 int res1 = 0 ;
19778 int val2 ;
19779 int ecode2 = 0 ;
19780 int val3 ;
19781 int ecode3 = 0 ;
19782 int val4 ;
19783 int ecode4 = 0 ;
19784 PyObject * obj0 = 0 ;
19785 PyObject * obj1 = 0 ;
19786 PyObject * obj2 = 0 ;
19787 PyObject * obj3 = 0 ;
19788 char * kwnames[] = {
19789 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19790 };
19791
19792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19794 if (!SWIG_IsOK(res1)) {
19795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19796 }
19797 arg1 = reinterpret_cast< wxDC * >(argp1);
19798 ecode2 = SWIG_AsVal_int(obj1, &val2);
19799 if (!SWIG_IsOK(ecode2)) {
19800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19801 }
19802 arg2 = static_cast< int >(val2);
19803 ecode3 = SWIG_AsVal_int(obj2, &val3);
19804 if (!SWIG_IsOK(ecode3)) {
19805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19806 }
19807 arg3 = static_cast< int >(val3);
19808 ecode4 = SWIG_AsVal_int(obj3, &val4);
19809 if (!SWIG_IsOK(ecode4)) {
19810 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19811 }
19812 arg4 = static_cast< int >(val4);
19813 {
19814 PyThreadState* __tstate = wxPyBeginAllowThreads();
19815 (arg1)->DrawCircle(arg2,arg3,arg4);
19816 wxPyEndAllowThreads(__tstate);
19817 if (PyErr_Occurred()) SWIG_fail;
19818 }
19819 resultobj = SWIG_Py_Void();
19820 return resultobj;
19821 fail:
19822 return NULL;
19823 }
19824
19825
19826 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19827 PyObject *resultobj = 0;
19828 wxDC *arg1 = (wxDC *) 0 ;
19829 wxPoint *arg2 = 0 ;
19830 int arg3 ;
19831 void *argp1 = 0 ;
19832 int res1 = 0 ;
19833 wxPoint temp2 ;
19834 int val3 ;
19835 int ecode3 = 0 ;
19836 PyObject * obj0 = 0 ;
19837 PyObject * obj1 = 0 ;
19838 PyObject * obj2 = 0 ;
19839 char * kwnames[] = {
19840 (char *) "self",(char *) "pt",(char *) "radius", NULL
19841 };
19842
19843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19845 if (!SWIG_IsOK(res1)) {
19846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19847 }
19848 arg1 = reinterpret_cast< wxDC * >(argp1);
19849 {
19850 arg2 = &temp2;
19851 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19852 }
19853 ecode3 = SWIG_AsVal_int(obj2, &val3);
19854 if (!SWIG_IsOK(ecode3)) {
19855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19856 }
19857 arg3 = static_cast< int >(val3);
19858 {
19859 PyThreadState* __tstate = wxPyBeginAllowThreads();
19860 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19861 wxPyEndAllowThreads(__tstate);
19862 if (PyErr_Occurred()) SWIG_fail;
19863 }
19864 resultobj = SWIG_Py_Void();
19865 return resultobj;
19866 fail:
19867 return NULL;
19868 }
19869
19870
19871 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19872 PyObject *resultobj = 0;
19873 wxDC *arg1 = (wxDC *) 0 ;
19874 int arg2 ;
19875 int arg3 ;
19876 int arg4 ;
19877 int arg5 ;
19878 void *argp1 = 0 ;
19879 int res1 = 0 ;
19880 int val2 ;
19881 int ecode2 = 0 ;
19882 int val3 ;
19883 int ecode3 = 0 ;
19884 int val4 ;
19885 int ecode4 = 0 ;
19886 int val5 ;
19887 int ecode5 = 0 ;
19888 PyObject * obj0 = 0 ;
19889 PyObject * obj1 = 0 ;
19890 PyObject * obj2 = 0 ;
19891 PyObject * obj3 = 0 ;
19892 PyObject * obj4 = 0 ;
19893 char * kwnames[] = {
19894 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19895 };
19896
19897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19899 if (!SWIG_IsOK(res1)) {
19900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19901 }
19902 arg1 = reinterpret_cast< wxDC * >(argp1);
19903 ecode2 = SWIG_AsVal_int(obj1, &val2);
19904 if (!SWIG_IsOK(ecode2)) {
19905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19906 }
19907 arg2 = static_cast< int >(val2);
19908 ecode3 = SWIG_AsVal_int(obj2, &val3);
19909 if (!SWIG_IsOK(ecode3)) {
19910 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19911 }
19912 arg3 = static_cast< int >(val3);
19913 ecode4 = SWIG_AsVal_int(obj3, &val4);
19914 if (!SWIG_IsOK(ecode4)) {
19915 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19916 }
19917 arg4 = static_cast< int >(val4);
19918 ecode5 = SWIG_AsVal_int(obj4, &val5);
19919 if (!SWIG_IsOK(ecode5)) {
19920 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19921 }
19922 arg5 = static_cast< int >(val5);
19923 {
19924 PyThreadState* __tstate = wxPyBeginAllowThreads();
19925 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19926 wxPyEndAllowThreads(__tstate);
19927 if (PyErr_Occurred()) SWIG_fail;
19928 }
19929 resultobj = SWIG_Py_Void();
19930 return resultobj;
19931 fail:
19932 return NULL;
19933 }
19934
19935
19936 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19937 PyObject *resultobj = 0;
19938 wxDC *arg1 = (wxDC *) 0 ;
19939 wxRect *arg2 = 0 ;
19940 void *argp1 = 0 ;
19941 int res1 = 0 ;
19942 wxRect temp2 ;
19943 PyObject * obj0 = 0 ;
19944 PyObject * obj1 = 0 ;
19945 char * kwnames[] = {
19946 (char *) "self",(char *) "rect", NULL
19947 };
19948
19949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19951 if (!SWIG_IsOK(res1)) {
19952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19953 }
19954 arg1 = reinterpret_cast< wxDC * >(argp1);
19955 {
19956 arg2 = &temp2;
19957 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19958 }
19959 {
19960 PyThreadState* __tstate = wxPyBeginAllowThreads();
19961 (arg1)->DrawEllipse((wxRect const &)*arg2);
19962 wxPyEndAllowThreads(__tstate);
19963 if (PyErr_Occurred()) SWIG_fail;
19964 }
19965 resultobj = SWIG_Py_Void();
19966 return resultobj;
19967 fail:
19968 return NULL;
19969 }
19970
19971
19972 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19973 PyObject *resultobj = 0;
19974 wxDC *arg1 = (wxDC *) 0 ;
19975 wxPoint *arg2 = 0 ;
19976 wxSize *arg3 = 0 ;
19977 void *argp1 = 0 ;
19978 int res1 = 0 ;
19979 wxPoint temp2 ;
19980 wxSize temp3 ;
19981 PyObject * obj0 = 0 ;
19982 PyObject * obj1 = 0 ;
19983 PyObject * obj2 = 0 ;
19984 char * kwnames[] = {
19985 (char *) "self",(char *) "pt",(char *) "sz", NULL
19986 };
19987
19988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19990 if (!SWIG_IsOK(res1)) {
19991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19992 }
19993 arg1 = reinterpret_cast< wxDC * >(argp1);
19994 {
19995 arg2 = &temp2;
19996 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19997 }
19998 {
19999 arg3 = &temp3;
20000 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20001 }
20002 {
20003 PyThreadState* __tstate = wxPyBeginAllowThreads();
20004 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
20005 wxPyEndAllowThreads(__tstate);
20006 if (PyErr_Occurred()) SWIG_fail;
20007 }
20008 resultobj = SWIG_Py_Void();
20009 return resultobj;
20010 fail:
20011 return NULL;
20012 }
20013
20014
20015 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20016 PyObject *resultobj = 0;
20017 wxDC *arg1 = (wxDC *) 0 ;
20018 wxIcon *arg2 = 0 ;
20019 int arg3 ;
20020 int arg4 ;
20021 void *argp1 = 0 ;
20022 int res1 = 0 ;
20023 void *argp2 = 0 ;
20024 int res2 = 0 ;
20025 int val3 ;
20026 int ecode3 = 0 ;
20027 int val4 ;
20028 int ecode4 = 0 ;
20029 PyObject * obj0 = 0 ;
20030 PyObject * obj1 = 0 ;
20031 PyObject * obj2 = 0 ;
20032 PyObject * obj3 = 0 ;
20033 char * kwnames[] = {
20034 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
20035 };
20036
20037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20039 if (!SWIG_IsOK(res1)) {
20040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
20041 }
20042 arg1 = reinterpret_cast< wxDC * >(argp1);
20043 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
20044 if (!SWIG_IsOK(res2)) {
20045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
20046 }
20047 if (!argp2) {
20048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
20049 }
20050 arg2 = reinterpret_cast< wxIcon * >(argp2);
20051 ecode3 = SWIG_AsVal_int(obj2, &val3);
20052 if (!SWIG_IsOK(ecode3)) {
20053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
20054 }
20055 arg3 = static_cast< int >(val3);
20056 ecode4 = SWIG_AsVal_int(obj3, &val4);
20057 if (!SWIG_IsOK(ecode4)) {
20058 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
20059 }
20060 arg4 = static_cast< int >(val4);
20061 {
20062 PyThreadState* __tstate = wxPyBeginAllowThreads();
20063 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
20064 wxPyEndAllowThreads(__tstate);
20065 if (PyErr_Occurred()) SWIG_fail;
20066 }
20067 resultobj = SWIG_Py_Void();
20068 return resultobj;
20069 fail:
20070 return NULL;
20071 }
20072
20073
20074 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20075 PyObject *resultobj = 0;
20076 wxDC *arg1 = (wxDC *) 0 ;
20077 wxIcon *arg2 = 0 ;
20078 wxPoint *arg3 = 0 ;
20079 void *argp1 = 0 ;
20080 int res1 = 0 ;
20081 void *argp2 = 0 ;
20082 int res2 = 0 ;
20083 wxPoint temp3 ;
20084 PyObject * obj0 = 0 ;
20085 PyObject * obj1 = 0 ;
20086 PyObject * obj2 = 0 ;
20087 char * kwnames[] = {
20088 (char *) "self",(char *) "icon",(char *) "pt", NULL
20089 };
20090
20091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20093 if (!SWIG_IsOK(res1)) {
20094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20095 }
20096 arg1 = reinterpret_cast< wxDC * >(argp1);
20097 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
20098 if (!SWIG_IsOK(res2)) {
20099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
20100 }
20101 if (!argp2) {
20102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
20103 }
20104 arg2 = reinterpret_cast< wxIcon * >(argp2);
20105 {
20106 arg3 = &temp3;
20107 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20108 }
20109 {
20110 PyThreadState* __tstate = wxPyBeginAllowThreads();
20111 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
20112 wxPyEndAllowThreads(__tstate);
20113 if (PyErr_Occurred()) SWIG_fail;
20114 }
20115 resultobj = SWIG_Py_Void();
20116 return resultobj;
20117 fail:
20118 return NULL;
20119 }
20120
20121
20122 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20123 PyObject *resultobj = 0;
20124 wxDC *arg1 = (wxDC *) 0 ;
20125 wxBitmap *arg2 = 0 ;
20126 int arg3 ;
20127 int arg4 ;
20128 bool arg5 = (bool) false ;
20129 void *argp1 = 0 ;
20130 int res1 = 0 ;
20131 void *argp2 = 0 ;
20132 int res2 = 0 ;
20133 int val3 ;
20134 int ecode3 = 0 ;
20135 int val4 ;
20136 int ecode4 = 0 ;
20137 bool val5 ;
20138 int ecode5 = 0 ;
20139 PyObject * obj0 = 0 ;
20140 PyObject * obj1 = 0 ;
20141 PyObject * obj2 = 0 ;
20142 PyObject * obj3 = 0 ;
20143 PyObject * obj4 = 0 ;
20144 char * kwnames[] = {
20145 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
20146 };
20147
20148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20150 if (!SWIG_IsOK(res1)) {
20151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
20152 }
20153 arg1 = reinterpret_cast< wxDC * >(argp1);
20154 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20155 if (!SWIG_IsOK(res2)) {
20156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20157 }
20158 if (!argp2) {
20159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20160 }
20161 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20162 ecode3 = SWIG_AsVal_int(obj2, &val3);
20163 if (!SWIG_IsOK(ecode3)) {
20164 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
20165 }
20166 arg3 = static_cast< int >(val3);
20167 ecode4 = SWIG_AsVal_int(obj3, &val4);
20168 if (!SWIG_IsOK(ecode4)) {
20169 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
20170 }
20171 arg4 = static_cast< int >(val4);
20172 if (obj4) {
20173 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20174 if (!SWIG_IsOK(ecode5)) {
20175 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
20176 }
20177 arg5 = static_cast< bool >(val5);
20178 }
20179 {
20180 PyThreadState* __tstate = wxPyBeginAllowThreads();
20181 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
20182 wxPyEndAllowThreads(__tstate);
20183 if (PyErr_Occurred()) SWIG_fail;
20184 }
20185 resultobj = SWIG_Py_Void();
20186 return resultobj;
20187 fail:
20188 return NULL;
20189 }
20190
20191
20192 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20193 PyObject *resultobj = 0;
20194 wxDC *arg1 = (wxDC *) 0 ;
20195 wxBitmap *arg2 = 0 ;
20196 wxPoint *arg3 = 0 ;
20197 bool arg4 = (bool) false ;
20198 void *argp1 = 0 ;
20199 int res1 = 0 ;
20200 void *argp2 = 0 ;
20201 int res2 = 0 ;
20202 wxPoint temp3 ;
20203 bool val4 ;
20204 int ecode4 = 0 ;
20205 PyObject * obj0 = 0 ;
20206 PyObject * obj1 = 0 ;
20207 PyObject * obj2 = 0 ;
20208 PyObject * obj3 = 0 ;
20209 char * kwnames[] = {
20210 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
20211 };
20212
20213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20215 if (!SWIG_IsOK(res1)) {
20216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20217 }
20218 arg1 = reinterpret_cast< wxDC * >(argp1);
20219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20220 if (!SWIG_IsOK(res2)) {
20221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20222 }
20223 if (!argp2) {
20224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20225 }
20226 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20227 {
20228 arg3 = &temp3;
20229 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20230 }
20231 if (obj3) {
20232 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20233 if (!SWIG_IsOK(ecode4)) {
20234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
20235 }
20236 arg4 = static_cast< bool >(val4);
20237 }
20238 {
20239 PyThreadState* __tstate = wxPyBeginAllowThreads();
20240 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
20241 wxPyEndAllowThreads(__tstate);
20242 if (PyErr_Occurred()) SWIG_fail;
20243 }
20244 resultobj = SWIG_Py_Void();
20245 return resultobj;
20246 fail:
20247 return NULL;
20248 }
20249
20250
20251 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20252 PyObject *resultobj = 0;
20253 wxDC *arg1 = (wxDC *) 0 ;
20254 wxString *arg2 = 0 ;
20255 int arg3 ;
20256 int arg4 ;
20257 void *argp1 = 0 ;
20258 int res1 = 0 ;
20259 bool temp2 = false ;
20260 int val3 ;
20261 int ecode3 = 0 ;
20262 int val4 ;
20263 int ecode4 = 0 ;
20264 PyObject * obj0 = 0 ;
20265 PyObject * obj1 = 0 ;
20266 PyObject * obj2 = 0 ;
20267 PyObject * obj3 = 0 ;
20268 char * kwnames[] = {
20269 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
20270 };
20271
20272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20274 if (!SWIG_IsOK(res1)) {
20275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
20276 }
20277 arg1 = reinterpret_cast< wxDC * >(argp1);
20278 {
20279 arg2 = wxString_in_helper(obj1);
20280 if (arg2 == NULL) SWIG_fail;
20281 temp2 = true;
20282 }
20283 ecode3 = SWIG_AsVal_int(obj2, &val3);
20284 if (!SWIG_IsOK(ecode3)) {
20285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
20286 }
20287 arg3 = static_cast< int >(val3);
20288 ecode4 = SWIG_AsVal_int(obj3, &val4);
20289 if (!SWIG_IsOK(ecode4)) {
20290 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
20291 }
20292 arg4 = static_cast< int >(val4);
20293 {
20294 PyThreadState* __tstate = wxPyBeginAllowThreads();
20295 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
20296 wxPyEndAllowThreads(__tstate);
20297 if (PyErr_Occurred()) SWIG_fail;
20298 }
20299 resultobj = SWIG_Py_Void();
20300 {
20301 if (temp2)
20302 delete arg2;
20303 }
20304 return resultobj;
20305 fail:
20306 {
20307 if (temp2)
20308 delete arg2;
20309 }
20310 return NULL;
20311 }
20312
20313
20314 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20315 PyObject *resultobj = 0;
20316 wxDC *arg1 = (wxDC *) 0 ;
20317 wxString *arg2 = 0 ;
20318 wxPoint *arg3 = 0 ;
20319 void *argp1 = 0 ;
20320 int res1 = 0 ;
20321 bool temp2 = false ;
20322 wxPoint temp3 ;
20323 PyObject * obj0 = 0 ;
20324 PyObject * obj1 = 0 ;
20325 PyObject * obj2 = 0 ;
20326 char * kwnames[] = {
20327 (char *) "self",(char *) "text",(char *) "pt", NULL
20328 };
20329
20330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20332 if (!SWIG_IsOK(res1)) {
20333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20334 }
20335 arg1 = reinterpret_cast< wxDC * >(argp1);
20336 {
20337 arg2 = wxString_in_helper(obj1);
20338 if (arg2 == NULL) SWIG_fail;
20339 temp2 = true;
20340 }
20341 {
20342 arg3 = &temp3;
20343 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20344 }
20345 {
20346 PyThreadState* __tstate = wxPyBeginAllowThreads();
20347 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
20348 wxPyEndAllowThreads(__tstate);
20349 if (PyErr_Occurred()) SWIG_fail;
20350 }
20351 resultobj = SWIG_Py_Void();
20352 {
20353 if (temp2)
20354 delete arg2;
20355 }
20356 return resultobj;
20357 fail:
20358 {
20359 if (temp2)
20360 delete arg2;
20361 }
20362 return NULL;
20363 }
20364
20365
20366 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20367 PyObject *resultobj = 0;
20368 wxDC *arg1 = (wxDC *) 0 ;
20369 wxString *arg2 = 0 ;
20370 int arg3 ;
20371 int arg4 ;
20372 double arg5 ;
20373 void *argp1 = 0 ;
20374 int res1 = 0 ;
20375 bool temp2 = false ;
20376 int val3 ;
20377 int ecode3 = 0 ;
20378 int val4 ;
20379 int ecode4 = 0 ;
20380 double val5 ;
20381 int ecode5 = 0 ;
20382 PyObject * obj0 = 0 ;
20383 PyObject * obj1 = 0 ;
20384 PyObject * obj2 = 0 ;
20385 PyObject * obj3 = 0 ;
20386 PyObject * obj4 = 0 ;
20387 char * kwnames[] = {
20388 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
20389 };
20390
20391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20393 if (!SWIG_IsOK(res1)) {
20394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
20395 }
20396 arg1 = reinterpret_cast< wxDC * >(argp1);
20397 {
20398 arg2 = wxString_in_helper(obj1);
20399 if (arg2 == NULL) SWIG_fail;
20400 temp2 = true;
20401 }
20402 ecode3 = SWIG_AsVal_int(obj2, &val3);
20403 if (!SWIG_IsOK(ecode3)) {
20404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
20405 }
20406 arg3 = static_cast< int >(val3);
20407 ecode4 = SWIG_AsVal_int(obj3, &val4);
20408 if (!SWIG_IsOK(ecode4)) {
20409 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
20410 }
20411 arg4 = static_cast< int >(val4);
20412 ecode5 = SWIG_AsVal_double(obj4, &val5);
20413 if (!SWIG_IsOK(ecode5)) {
20414 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
20415 }
20416 arg5 = static_cast< double >(val5);
20417 {
20418 PyThreadState* __tstate = wxPyBeginAllowThreads();
20419 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
20420 wxPyEndAllowThreads(__tstate);
20421 if (PyErr_Occurred()) SWIG_fail;
20422 }
20423 resultobj = SWIG_Py_Void();
20424 {
20425 if (temp2)
20426 delete arg2;
20427 }
20428 return resultobj;
20429 fail:
20430 {
20431 if (temp2)
20432 delete arg2;
20433 }
20434 return NULL;
20435 }
20436
20437
20438 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20439 PyObject *resultobj = 0;
20440 wxDC *arg1 = (wxDC *) 0 ;
20441 wxString *arg2 = 0 ;
20442 wxPoint *arg3 = 0 ;
20443 double arg4 ;
20444 void *argp1 = 0 ;
20445 int res1 = 0 ;
20446 bool temp2 = false ;
20447 wxPoint temp3 ;
20448 double val4 ;
20449 int ecode4 = 0 ;
20450 PyObject * obj0 = 0 ;
20451 PyObject * obj1 = 0 ;
20452 PyObject * obj2 = 0 ;
20453 PyObject * obj3 = 0 ;
20454 char * kwnames[] = {
20455 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
20456 };
20457
20458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20460 if (!SWIG_IsOK(res1)) {
20461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20462 }
20463 arg1 = reinterpret_cast< wxDC * >(argp1);
20464 {
20465 arg2 = wxString_in_helper(obj1);
20466 if (arg2 == NULL) SWIG_fail;
20467 temp2 = true;
20468 }
20469 {
20470 arg3 = &temp3;
20471 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20472 }
20473 ecode4 = SWIG_AsVal_double(obj3, &val4);
20474 if (!SWIG_IsOK(ecode4)) {
20475 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
20476 }
20477 arg4 = static_cast< double >(val4);
20478 {
20479 PyThreadState* __tstate = wxPyBeginAllowThreads();
20480 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
20481 wxPyEndAllowThreads(__tstate);
20482 if (PyErr_Occurred()) SWIG_fail;
20483 }
20484 resultobj = SWIG_Py_Void();
20485 {
20486 if (temp2)
20487 delete arg2;
20488 }
20489 return resultobj;
20490 fail:
20491 {
20492 if (temp2)
20493 delete arg2;
20494 }
20495 return NULL;
20496 }
20497
20498
20499 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20500 PyObject *resultobj = 0;
20501 wxDC *arg1 = (wxDC *) 0 ;
20502 int arg2 ;
20503 int arg3 ;
20504 int arg4 ;
20505 int arg5 ;
20506 wxDC *arg6 = (wxDC *) 0 ;
20507 int arg7 ;
20508 int arg8 ;
20509 int arg9 = (int) wxCOPY ;
20510 bool arg10 = (bool) false ;
20511 int arg11 = (int) -1 ;
20512 int arg12 = (int) -1 ;
20513 bool result;
20514 void *argp1 = 0 ;
20515 int res1 = 0 ;
20516 int val2 ;
20517 int ecode2 = 0 ;
20518 int val3 ;
20519 int ecode3 = 0 ;
20520 int val4 ;
20521 int ecode4 = 0 ;
20522 int val5 ;
20523 int ecode5 = 0 ;
20524 void *argp6 = 0 ;
20525 int res6 = 0 ;
20526 int val7 ;
20527 int ecode7 = 0 ;
20528 int val8 ;
20529 int ecode8 = 0 ;
20530 int val9 ;
20531 int ecode9 = 0 ;
20532 bool val10 ;
20533 int ecode10 = 0 ;
20534 int val11 ;
20535 int ecode11 = 0 ;
20536 int val12 ;
20537 int ecode12 = 0 ;
20538 PyObject * obj0 = 0 ;
20539 PyObject * obj1 = 0 ;
20540 PyObject * obj2 = 0 ;
20541 PyObject * obj3 = 0 ;
20542 PyObject * obj4 = 0 ;
20543 PyObject * obj5 = 0 ;
20544 PyObject * obj6 = 0 ;
20545 PyObject * obj7 = 0 ;
20546 PyObject * obj8 = 0 ;
20547 PyObject * obj9 = 0 ;
20548 PyObject * obj10 = 0 ;
20549 PyObject * obj11 = 0 ;
20550 char * kwnames[] = {
20551 (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
20552 };
20553
20554 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;
20555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20556 if (!SWIG_IsOK(res1)) {
20557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
20558 }
20559 arg1 = reinterpret_cast< wxDC * >(argp1);
20560 ecode2 = SWIG_AsVal_int(obj1, &val2);
20561 if (!SWIG_IsOK(ecode2)) {
20562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
20563 }
20564 arg2 = static_cast< int >(val2);
20565 ecode3 = SWIG_AsVal_int(obj2, &val3);
20566 if (!SWIG_IsOK(ecode3)) {
20567 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20568 }
20569 arg3 = static_cast< int >(val3);
20570 ecode4 = SWIG_AsVal_int(obj3, &val4);
20571 if (!SWIG_IsOK(ecode4)) {
20572 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20573 }
20574 arg4 = static_cast< int >(val4);
20575 ecode5 = SWIG_AsVal_int(obj4, &val5);
20576 if (!SWIG_IsOK(ecode5)) {
20577 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20578 }
20579 arg5 = static_cast< int >(val5);
20580 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20581 if (!SWIG_IsOK(res6)) {
20582 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20583 }
20584 arg6 = reinterpret_cast< wxDC * >(argp6);
20585 ecode7 = SWIG_AsVal_int(obj6, &val7);
20586 if (!SWIG_IsOK(ecode7)) {
20587 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20588 }
20589 arg7 = static_cast< int >(val7);
20590 ecode8 = SWIG_AsVal_int(obj7, &val8);
20591 if (!SWIG_IsOK(ecode8)) {
20592 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20593 }
20594 arg8 = static_cast< int >(val8);
20595 if (obj8) {
20596 ecode9 = SWIG_AsVal_int(obj8, &val9);
20597 if (!SWIG_IsOK(ecode9)) {
20598 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20599 }
20600 arg9 = static_cast< int >(val9);
20601 }
20602 if (obj9) {
20603 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20604 if (!SWIG_IsOK(ecode10)) {
20605 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20606 }
20607 arg10 = static_cast< bool >(val10);
20608 }
20609 if (obj10) {
20610 ecode11 = SWIG_AsVal_int(obj10, &val11);
20611 if (!SWIG_IsOK(ecode11)) {
20612 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20613 }
20614 arg11 = static_cast< int >(val11);
20615 }
20616 if (obj11) {
20617 ecode12 = SWIG_AsVal_int(obj11, &val12);
20618 if (!SWIG_IsOK(ecode12)) {
20619 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20620 }
20621 arg12 = static_cast< int >(val12);
20622 }
20623 {
20624 PyThreadState* __tstate = wxPyBeginAllowThreads();
20625 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20626 wxPyEndAllowThreads(__tstate);
20627 if (PyErr_Occurred()) SWIG_fail;
20628 }
20629 {
20630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20631 }
20632 return resultobj;
20633 fail:
20634 return NULL;
20635 }
20636
20637
20638 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20639 PyObject *resultobj = 0;
20640 wxDC *arg1 = (wxDC *) 0 ;
20641 wxPoint *arg2 = 0 ;
20642 wxSize *arg3 = 0 ;
20643 wxDC *arg4 = (wxDC *) 0 ;
20644 wxPoint *arg5 = 0 ;
20645 int arg6 = (int) wxCOPY ;
20646 bool arg7 = (bool) false ;
20647 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20648 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20649 bool result;
20650 void *argp1 = 0 ;
20651 int res1 = 0 ;
20652 wxPoint temp2 ;
20653 wxSize temp3 ;
20654 void *argp4 = 0 ;
20655 int res4 = 0 ;
20656 wxPoint temp5 ;
20657 int val6 ;
20658 int ecode6 = 0 ;
20659 bool val7 ;
20660 int ecode7 = 0 ;
20661 wxPoint temp8 ;
20662 PyObject * obj0 = 0 ;
20663 PyObject * obj1 = 0 ;
20664 PyObject * obj2 = 0 ;
20665 PyObject * obj3 = 0 ;
20666 PyObject * obj4 = 0 ;
20667 PyObject * obj5 = 0 ;
20668 PyObject * obj6 = 0 ;
20669 PyObject * obj7 = 0 ;
20670 char * kwnames[] = {
20671 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20672 };
20673
20674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20676 if (!SWIG_IsOK(res1)) {
20677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20678 }
20679 arg1 = reinterpret_cast< wxDC * >(argp1);
20680 {
20681 arg2 = &temp2;
20682 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20683 }
20684 {
20685 arg3 = &temp3;
20686 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20687 }
20688 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20689 if (!SWIG_IsOK(res4)) {
20690 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20691 }
20692 arg4 = reinterpret_cast< wxDC * >(argp4);
20693 {
20694 arg5 = &temp5;
20695 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20696 }
20697 if (obj5) {
20698 ecode6 = SWIG_AsVal_int(obj5, &val6);
20699 if (!SWIG_IsOK(ecode6)) {
20700 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20701 }
20702 arg6 = static_cast< int >(val6);
20703 }
20704 if (obj6) {
20705 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20706 if (!SWIG_IsOK(ecode7)) {
20707 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20708 }
20709 arg7 = static_cast< bool >(val7);
20710 }
20711 if (obj7) {
20712 {
20713 arg8 = &temp8;
20714 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20715 }
20716 }
20717 {
20718 PyThreadState* __tstate = wxPyBeginAllowThreads();
20719 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20720 wxPyEndAllowThreads(__tstate);
20721 if (PyErr_Occurred()) SWIG_fail;
20722 }
20723 {
20724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20725 }
20726 return resultobj;
20727 fail:
20728 return NULL;
20729 }
20730
20731
20732 SWIGINTERN PyObject *_wrap_DC_StretchBlit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20733 PyObject *resultobj = 0;
20734 wxDC *arg1 = (wxDC *) 0 ;
20735 int arg2 ;
20736 int arg3 ;
20737 int arg4 ;
20738 int arg5 ;
20739 wxDC *arg6 = (wxDC *) 0 ;
20740 int arg7 ;
20741 int arg8 ;
20742 int arg9 ;
20743 int arg10 ;
20744 int arg11 = (int) wxCOPY ;
20745 bool arg12 = (bool) false ;
20746 int arg13 = (int) wxDefaultCoord ;
20747 int arg14 = (int) wxDefaultCoord ;
20748 bool result;
20749 void *argp1 = 0 ;
20750 int res1 = 0 ;
20751 int val2 ;
20752 int ecode2 = 0 ;
20753 int val3 ;
20754 int ecode3 = 0 ;
20755 int val4 ;
20756 int ecode4 = 0 ;
20757 int val5 ;
20758 int ecode5 = 0 ;
20759 void *argp6 = 0 ;
20760 int res6 = 0 ;
20761 int val7 ;
20762 int ecode7 = 0 ;
20763 int val8 ;
20764 int ecode8 = 0 ;
20765 int val9 ;
20766 int ecode9 = 0 ;
20767 int val10 ;
20768 int ecode10 = 0 ;
20769 int val11 ;
20770 int ecode11 = 0 ;
20771 bool val12 ;
20772 int ecode12 = 0 ;
20773 int val13 ;
20774 int ecode13 = 0 ;
20775 int val14 ;
20776 int ecode14 = 0 ;
20777 PyObject * obj0 = 0 ;
20778 PyObject * obj1 = 0 ;
20779 PyObject * obj2 = 0 ;
20780 PyObject * obj3 = 0 ;
20781 PyObject * obj4 = 0 ;
20782 PyObject * obj5 = 0 ;
20783 PyObject * obj6 = 0 ;
20784 PyObject * obj7 = 0 ;
20785 PyObject * obj8 = 0 ;
20786 PyObject * obj9 = 0 ;
20787 PyObject * obj10 = 0 ;
20788 PyObject * obj11 = 0 ;
20789 PyObject * obj12 = 0 ;
20790 PyObject * obj13 = 0 ;
20791 char * kwnames[] = {
20792 (char *) "self",(char *) "dstX",(char *) "dstY",(char *) "dstWidth",(char *) "dstHeight",(char *) "source",(char *) "srcX",(char *) "srcY",(char *) "srcWidth",(char *) "srcHeight",(char *) "rop",(char *) "useMask",(char *) "srcMaskX",(char *) "srcMaskY", NULL
20793 };
20794
20795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOOOO|OOOO:DC_StretchBlit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
20796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20797 if (!SWIG_IsOK(res1)) {
20798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlit" "', expected argument " "1"" of type '" "wxDC *""'");
20799 }
20800 arg1 = reinterpret_cast< wxDC * >(argp1);
20801 ecode2 = SWIG_AsVal_int(obj1, &val2);
20802 if (!SWIG_IsOK(ecode2)) {
20803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_StretchBlit" "', expected argument " "2"" of type '" "int""'");
20804 }
20805 arg2 = static_cast< int >(val2);
20806 ecode3 = SWIG_AsVal_int(obj2, &val3);
20807 if (!SWIG_IsOK(ecode3)) {
20808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_StretchBlit" "', expected argument " "3"" of type '" "int""'");
20809 }
20810 arg3 = static_cast< int >(val3);
20811 ecode4 = SWIG_AsVal_int(obj3, &val4);
20812 if (!SWIG_IsOK(ecode4)) {
20813 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_StretchBlit" "', expected argument " "4"" of type '" "int""'");
20814 }
20815 arg4 = static_cast< int >(val4);
20816 ecode5 = SWIG_AsVal_int(obj4, &val5);
20817 if (!SWIG_IsOK(ecode5)) {
20818 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_StretchBlit" "', expected argument " "5"" of type '" "int""'");
20819 }
20820 arg5 = static_cast< int >(val5);
20821 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20822 if (!SWIG_IsOK(res6)) {
20823 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_StretchBlit" "', expected argument " "6"" of type '" "wxDC *""'");
20824 }
20825 arg6 = reinterpret_cast< wxDC * >(argp6);
20826 ecode7 = SWIG_AsVal_int(obj6, &val7);
20827 if (!SWIG_IsOK(ecode7)) {
20828 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlit" "', expected argument " "7"" of type '" "int""'");
20829 }
20830 arg7 = static_cast< int >(val7);
20831 ecode8 = SWIG_AsVal_int(obj7, &val8);
20832 if (!SWIG_IsOK(ecode8)) {
20833 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlit" "', expected argument " "8"" of type '" "int""'");
20834 }
20835 arg8 = static_cast< int >(val8);
20836 ecode9 = SWIG_AsVal_int(obj8, &val9);
20837 if (!SWIG_IsOK(ecode9)) {
20838 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_StretchBlit" "', expected argument " "9"" of type '" "int""'");
20839 }
20840 arg9 = static_cast< int >(val9);
20841 ecode10 = SWIG_AsVal_int(obj9, &val10);
20842 if (!SWIG_IsOK(ecode10)) {
20843 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_StretchBlit" "', expected argument " "10"" of type '" "int""'");
20844 }
20845 arg10 = static_cast< int >(val10);
20846 if (obj10) {
20847 ecode11 = SWIG_AsVal_int(obj10, &val11);
20848 if (!SWIG_IsOK(ecode11)) {
20849 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_StretchBlit" "', expected argument " "11"" of type '" "int""'");
20850 }
20851 arg11 = static_cast< int >(val11);
20852 }
20853 if (obj11) {
20854 ecode12 = SWIG_AsVal_bool(obj11, &val12);
20855 if (!SWIG_IsOK(ecode12)) {
20856 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_StretchBlit" "', expected argument " "12"" of type '" "bool""'");
20857 }
20858 arg12 = static_cast< bool >(val12);
20859 }
20860 if (obj12) {
20861 ecode13 = SWIG_AsVal_int(obj12, &val13);
20862 if (!SWIG_IsOK(ecode13)) {
20863 SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "DC_StretchBlit" "', expected argument " "13"" of type '" "int""'");
20864 }
20865 arg13 = static_cast< int >(val13);
20866 }
20867 if (obj13) {
20868 ecode14 = SWIG_AsVal_int(obj13, &val14);
20869 if (!SWIG_IsOK(ecode14)) {
20870 SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "DC_StretchBlit" "', expected argument " "14"" of type '" "int""'");
20871 }
20872 arg14 = static_cast< int >(val14);
20873 }
20874 {
20875 PyThreadState* __tstate = wxPyBeginAllowThreads();
20876 result = (bool)(arg1)->StretchBlit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14);
20877 wxPyEndAllowThreads(__tstate);
20878 if (PyErr_Occurred()) SWIG_fail;
20879 }
20880 {
20881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20882 }
20883 return resultobj;
20884 fail:
20885 return NULL;
20886 }
20887
20888
20889 SWIGINTERN PyObject *_wrap_DC_StretchBlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20890 PyObject *resultobj = 0;
20891 wxDC *arg1 = (wxDC *) 0 ;
20892 wxPoint *arg2 = 0 ;
20893 wxSize *arg3 = 0 ;
20894 wxDC *arg4 = (wxDC *) 0 ;
20895 wxPoint *arg5 = 0 ;
20896 wxSize *arg6 = 0 ;
20897 int arg7 = (int) wxCOPY ;
20898 bool arg8 = (bool) false ;
20899 wxPoint const &arg9_defvalue = wxDefaultPosition ;
20900 wxPoint *arg9 = (wxPoint *) &arg9_defvalue ;
20901 bool result;
20902 void *argp1 = 0 ;
20903 int res1 = 0 ;
20904 wxPoint temp2 ;
20905 wxSize temp3 ;
20906 void *argp4 = 0 ;
20907 int res4 = 0 ;
20908 wxPoint temp5 ;
20909 wxSize temp6 ;
20910 int val7 ;
20911 int ecode7 = 0 ;
20912 bool val8 ;
20913 int ecode8 = 0 ;
20914 wxPoint temp9 ;
20915 PyObject * obj0 = 0 ;
20916 PyObject * obj1 = 0 ;
20917 PyObject * obj2 = 0 ;
20918 PyObject * obj3 = 0 ;
20919 PyObject * obj4 = 0 ;
20920 PyObject * obj5 = 0 ;
20921 PyObject * obj6 = 0 ;
20922 PyObject * obj7 = 0 ;
20923 PyObject * obj8 = 0 ;
20924 char * kwnames[] = {
20925 (char *) "self",(char *) "dstPt",(char *) "dstSize",(char *) "source",(char *) "srcPt",(char *) "srcSize",(char *) "rop",(char *) "useMask",(char *) "srcMaskPt", NULL
20926 };
20927
20928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOO:DC_StretchBlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
20929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20930 if (!SWIG_IsOK(res1)) {
20931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20932 }
20933 arg1 = reinterpret_cast< wxDC * >(argp1);
20934 {
20935 arg2 = &temp2;
20936 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20937 }
20938 {
20939 arg3 = &temp3;
20940 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20941 }
20942 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20943 if (!SWIG_IsOK(res4)) {
20944 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_StretchBlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20945 }
20946 arg4 = reinterpret_cast< wxDC * >(argp4);
20947 {
20948 arg5 = &temp5;
20949 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20950 }
20951 {
20952 arg6 = &temp6;
20953 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
20954 }
20955 if (obj6) {
20956 ecode7 = SWIG_AsVal_int(obj6, &val7);
20957 if (!SWIG_IsOK(ecode7)) {
20958 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlitPointSize" "', expected argument " "7"" of type '" "int""'");
20959 }
20960 arg7 = static_cast< int >(val7);
20961 }
20962 if (obj7) {
20963 ecode8 = SWIG_AsVal_bool(obj7, &val8);
20964 if (!SWIG_IsOK(ecode8)) {
20965 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlitPointSize" "', expected argument " "8"" of type '" "bool""'");
20966 }
20967 arg8 = static_cast< bool >(val8);
20968 }
20969 if (obj8) {
20970 {
20971 arg9 = &temp9;
20972 if ( ! wxPoint_helper(obj8, &arg9)) SWIG_fail;
20973 }
20974 }
20975 {
20976 PyThreadState* __tstate = wxPyBeginAllowThreads();
20977 result = (bool)(arg1)->StretchBlit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,(wxPoint const &)*arg9);
20978 wxPyEndAllowThreads(__tstate);
20979 if (PyErr_Occurred()) SWIG_fail;
20980 }
20981 {
20982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20983 }
20984 return resultobj;
20985 fail:
20986 return NULL;
20987 }
20988
20989
20990 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20991 PyObject *resultobj = 0;
20992 wxDC *arg1 = (wxDC *) 0 ;
20993 wxRect *arg2 = (wxRect *) NULL ;
20994 SwigValueWrapper<wxBitmap > result;
20995 void *argp1 = 0 ;
20996 int res1 = 0 ;
20997 void *argp2 = 0 ;
20998 int res2 = 0 ;
20999 PyObject * obj0 = 0 ;
21000 PyObject * obj1 = 0 ;
21001 char * kwnames[] = {
21002 (char *) "self",(char *) "subrect", NULL
21003 };
21004
21005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
21006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21007 if (!SWIG_IsOK(res1)) {
21008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21009 }
21010 arg1 = reinterpret_cast< wxDC * >(argp1);
21011 if (obj1) {
21012 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
21013 if (!SWIG_IsOK(res2)) {
21014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
21015 }
21016 arg2 = reinterpret_cast< wxRect * >(argp2);
21017 }
21018 {
21019 PyThreadState* __tstate = wxPyBeginAllowThreads();
21020 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
21021 wxPyEndAllowThreads(__tstate);
21022 if (PyErr_Occurred()) SWIG_fail;
21023 }
21024 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
21025 return resultobj;
21026 fail:
21027 return NULL;
21028 }
21029
21030
21031 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21032 PyObject *resultobj = 0;
21033 wxDC *arg1 = (wxDC *) 0 ;
21034 int arg2 ;
21035 int arg3 ;
21036 int arg4 ;
21037 int arg5 ;
21038 void *argp1 = 0 ;
21039 int res1 = 0 ;
21040 int val2 ;
21041 int ecode2 = 0 ;
21042 int val3 ;
21043 int ecode3 = 0 ;
21044 int val4 ;
21045 int ecode4 = 0 ;
21046 int val5 ;
21047 int ecode5 = 0 ;
21048 PyObject * obj0 = 0 ;
21049 PyObject * obj1 = 0 ;
21050 PyObject * obj2 = 0 ;
21051 PyObject * obj3 = 0 ;
21052 PyObject * obj4 = 0 ;
21053 char * kwnames[] = {
21054 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
21055 };
21056
21057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21059 if (!SWIG_IsOK(res1)) {
21060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21061 }
21062 arg1 = reinterpret_cast< wxDC * >(argp1);
21063 ecode2 = SWIG_AsVal_int(obj1, &val2);
21064 if (!SWIG_IsOK(ecode2)) {
21065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
21066 }
21067 arg2 = static_cast< int >(val2);
21068 ecode3 = SWIG_AsVal_int(obj2, &val3);
21069 if (!SWIG_IsOK(ecode3)) {
21070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
21071 }
21072 arg3 = static_cast< int >(val3);
21073 ecode4 = SWIG_AsVal_int(obj3, &val4);
21074 if (!SWIG_IsOK(ecode4)) {
21075 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
21076 }
21077 arg4 = static_cast< int >(val4);
21078 ecode5 = SWIG_AsVal_int(obj4, &val5);
21079 if (!SWIG_IsOK(ecode5)) {
21080 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
21081 }
21082 arg5 = static_cast< int >(val5);
21083 {
21084 PyThreadState* __tstate = wxPyBeginAllowThreads();
21085 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
21086 wxPyEndAllowThreads(__tstate);
21087 if (PyErr_Occurred()) SWIG_fail;
21088 }
21089 resultobj = SWIG_Py_Void();
21090 return resultobj;
21091 fail:
21092 return NULL;
21093 }
21094
21095
21096 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21097 PyObject *resultobj = 0;
21098 wxDC *arg1 = (wxDC *) 0 ;
21099 wxPoint *arg2 = 0 ;
21100 wxSize *arg3 = 0 ;
21101 void *argp1 = 0 ;
21102 int res1 = 0 ;
21103 wxPoint temp2 ;
21104 wxSize temp3 ;
21105 PyObject * obj0 = 0 ;
21106 PyObject * obj1 = 0 ;
21107 PyObject * obj2 = 0 ;
21108 char * kwnames[] = {
21109 (char *) "self",(char *) "pt",(char *) "sz", NULL
21110 };
21111
21112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21114 if (!SWIG_IsOK(res1)) {
21115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
21116 }
21117 arg1 = reinterpret_cast< wxDC * >(argp1);
21118 {
21119 arg2 = &temp2;
21120 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
21121 }
21122 {
21123 arg3 = &temp3;
21124 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
21125 }
21126 {
21127 PyThreadState* __tstate = wxPyBeginAllowThreads();
21128 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
21129 wxPyEndAllowThreads(__tstate);
21130 if (PyErr_Occurred()) SWIG_fail;
21131 }
21132 resultobj = SWIG_Py_Void();
21133 return resultobj;
21134 fail:
21135 return NULL;
21136 }
21137
21138
21139 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21140 PyObject *resultobj = 0;
21141 wxDC *arg1 = (wxDC *) 0 ;
21142 wxRegion *arg2 = 0 ;
21143 void *argp1 = 0 ;
21144 int res1 = 0 ;
21145 void *argp2 = 0 ;
21146 int res2 = 0 ;
21147 PyObject * obj0 = 0 ;
21148 PyObject * obj1 = 0 ;
21149 char * kwnames[] = {
21150 (char *) "self",(char *) "region", NULL
21151 };
21152
21153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
21154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21155 if (!SWIG_IsOK(res1)) {
21156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21157 }
21158 arg1 = reinterpret_cast< wxDC * >(argp1);
21159 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
21160 if (!SWIG_IsOK(res2)) {
21161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
21162 }
21163 if (!argp2) {
21164 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
21165 }
21166 arg2 = reinterpret_cast< wxRegion * >(argp2);
21167 {
21168 PyThreadState* __tstate = wxPyBeginAllowThreads();
21169 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
21170 wxPyEndAllowThreads(__tstate);
21171 if (PyErr_Occurred()) SWIG_fail;
21172 }
21173 resultobj = SWIG_Py_Void();
21174 return resultobj;
21175 fail:
21176 return NULL;
21177 }
21178
21179
21180 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21181 PyObject *resultobj = 0;
21182 wxDC *arg1 = (wxDC *) 0 ;
21183 wxRect *arg2 = 0 ;
21184 void *argp1 = 0 ;
21185 int res1 = 0 ;
21186 wxRect temp2 ;
21187 PyObject * obj0 = 0 ;
21188 PyObject * obj1 = 0 ;
21189 char * kwnames[] = {
21190 (char *) "self",(char *) "rect", NULL
21191 };
21192
21193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
21194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21195 if (!SWIG_IsOK(res1)) {
21196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21197 }
21198 arg1 = reinterpret_cast< wxDC * >(argp1);
21199 {
21200 arg2 = &temp2;
21201 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
21202 }
21203 {
21204 PyThreadState* __tstate = wxPyBeginAllowThreads();
21205 (arg1)->SetClippingRegion((wxRect const &)*arg2);
21206 wxPyEndAllowThreads(__tstate);
21207 if (PyErr_Occurred()) SWIG_fail;
21208 }
21209 resultobj = SWIG_Py_Void();
21210 return resultobj;
21211 fail:
21212 return NULL;
21213 }
21214
21215
21216 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21217 PyObject *resultobj = 0;
21218 wxDC *arg1 = (wxDC *) 0 ;
21219 int arg2 ;
21220 wxPoint *arg3 = (wxPoint *) 0 ;
21221 int arg4 = (int) 0 ;
21222 int arg5 = (int) 0 ;
21223 void *argp1 = 0 ;
21224 int res1 = 0 ;
21225 int val4 ;
21226 int ecode4 = 0 ;
21227 int val5 ;
21228 int ecode5 = 0 ;
21229 PyObject * obj0 = 0 ;
21230 PyObject * obj1 = 0 ;
21231 PyObject * obj2 = 0 ;
21232 PyObject * obj3 = 0 ;
21233 char * kwnames[] = {
21234 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
21235 };
21236
21237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21239 if (!SWIG_IsOK(res1)) {
21240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
21241 }
21242 arg1 = reinterpret_cast< wxDC * >(argp1);
21243 {
21244 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21245 if (arg3 == NULL) SWIG_fail;
21246 }
21247 if (obj2) {
21248 ecode4 = SWIG_AsVal_int(obj2, &val4);
21249 if (!SWIG_IsOK(ecode4)) {
21250 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
21251 }
21252 arg4 = static_cast< int >(val4);
21253 }
21254 if (obj3) {
21255 ecode5 = SWIG_AsVal_int(obj3, &val5);
21256 if (!SWIG_IsOK(ecode5)) {
21257 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
21258 }
21259 arg5 = static_cast< int >(val5);
21260 }
21261 {
21262 PyThreadState* __tstate = wxPyBeginAllowThreads();
21263 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
21264 wxPyEndAllowThreads(__tstate);
21265 if (PyErr_Occurred()) SWIG_fail;
21266 }
21267 resultobj = SWIG_Py_Void();
21268 {
21269 if (arg3) delete [] arg3;
21270 }
21271 return resultobj;
21272 fail:
21273 {
21274 if (arg3) delete [] arg3;
21275 }
21276 return NULL;
21277 }
21278
21279
21280 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21281 PyObject *resultobj = 0;
21282 wxDC *arg1 = (wxDC *) 0 ;
21283 int arg2 ;
21284 wxPoint *arg3 = (wxPoint *) 0 ;
21285 int arg4 = (int) 0 ;
21286 int arg5 = (int) 0 ;
21287 int arg6 = (int) wxODDEVEN_RULE ;
21288 void *argp1 = 0 ;
21289 int res1 = 0 ;
21290 int val4 ;
21291 int ecode4 = 0 ;
21292 int val5 ;
21293 int ecode5 = 0 ;
21294 int val6 ;
21295 int ecode6 = 0 ;
21296 PyObject * obj0 = 0 ;
21297 PyObject * obj1 = 0 ;
21298 PyObject * obj2 = 0 ;
21299 PyObject * obj3 = 0 ;
21300 PyObject * obj4 = 0 ;
21301 char * kwnames[] = {
21302 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
21303 };
21304
21305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21307 if (!SWIG_IsOK(res1)) {
21308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
21309 }
21310 arg1 = reinterpret_cast< wxDC * >(argp1);
21311 {
21312 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21313 if (arg3 == NULL) SWIG_fail;
21314 }
21315 if (obj2) {
21316 ecode4 = SWIG_AsVal_int(obj2, &val4);
21317 if (!SWIG_IsOK(ecode4)) {
21318 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
21319 }
21320 arg4 = static_cast< int >(val4);
21321 }
21322 if (obj3) {
21323 ecode5 = SWIG_AsVal_int(obj3, &val5);
21324 if (!SWIG_IsOK(ecode5)) {
21325 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
21326 }
21327 arg5 = static_cast< int >(val5);
21328 }
21329 if (obj4) {
21330 ecode6 = SWIG_AsVal_int(obj4, &val6);
21331 if (!SWIG_IsOK(ecode6)) {
21332 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
21333 }
21334 arg6 = static_cast< int >(val6);
21335 }
21336 {
21337 PyThreadState* __tstate = wxPyBeginAllowThreads();
21338 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
21339 wxPyEndAllowThreads(__tstate);
21340 if (PyErr_Occurred()) SWIG_fail;
21341 }
21342 resultobj = SWIG_Py_Void();
21343 {
21344 if (arg3) delete [] arg3;
21345 }
21346 return resultobj;
21347 fail:
21348 {
21349 if (arg3) delete [] arg3;
21350 }
21351 return NULL;
21352 }
21353
21354
21355 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21356 PyObject *resultobj = 0;
21357 wxDC *arg1 = (wxDC *) 0 ;
21358 wxString *arg2 = 0 ;
21359 wxRect *arg3 = 0 ;
21360 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
21361 int arg5 = (int) -1 ;
21362 void *argp1 = 0 ;
21363 int res1 = 0 ;
21364 bool temp2 = false ;
21365 wxRect temp3 ;
21366 int val4 ;
21367 int ecode4 = 0 ;
21368 int val5 ;
21369 int ecode5 = 0 ;
21370 PyObject * obj0 = 0 ;
21371 PyObject * obj1 = 0 ;
21372 PyObject * obj2 = 0 ;
21373 PyObject * obj3 = 0 ;
21374 PyObject * obj4 = 0 ;
21375 char * kwnames[] = {
21376 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
21377 };
21378
21379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21381 if (!SWIG_IsOK(res1)) {
21382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
21383 }
21384 arg1 = reinterpret_cast< wxDC * >(argp1);
21385 {
21386 arg2 = wxString_in_helper(obj1);
21387 if (arg2 == NULL) SWIG_fail;
21388 temp2 = true;
21389 }
21390 {
21391 arg3 = &temp3;
21392 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
21393 }
21394 if (obj3) {
21395 ecode4 = SWIG_AsVal_int(obj3, &val4);
21396 if (!SWIG_IsOK(ecode4)) {
21397 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
21398 }
21399 arg4 = static_cast< int >(val4);
21400 }
21401 if (obj4) {
21402 ecode5 = SWIG_AsVal_int(obj4, &val5);
21403 if (!SWIG_IsOK(ecode5)) {
21404 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
21405 }
21406 arg5 = static_cast< int >(val5);
21407 }
21408 {
21409 PyThreadState* __tstate = wxPyBeginAllowThreads();
21410 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
21411 wxPyEndAllowThreads(__tstate);
21412 if (PyErr_Occurred()) SWIG_fail;
21413 }
21414 resultobj = SWIG_Py_Void();
21415 {
21416 if (temp2)
21417 delete arg2;
21418 }
21419 return resultobj;
21420 fail:
21421 {
21422 if (temp2)
21423 delete arg2;
21424 }
21425 return NULL;
21426 }
21427
21428
21429 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21430 PyObject *resultobj = 0;
21431 wxDC *arg1 = (wxDC *) 0 ;
21432 wxString *arg2 = 0 ;
21433 wxBitmap *arg3 = 0 ;
21434 wxRect *arg4 = 0 ;
21435 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
21436 int arg6 = (int) -1 ;
21437 wxRect result;
21438 void *argp1 = 0 ;
21439 int res1 = 0 ;
21440 bool temp2 = false ;
21441 void *argp3 = 0 ;
21442 int res3 = 0 ;
21443 wxRect temp4 ;
21444 int val5 ;
21445 int ecode5 = 0 ;
21446 int val6 ;
21447 int ecode6 = 0 ;
21448 PyObject * obj0 = 0 ;
21449 PyObject * obj1 = 0 ;
21450 PyObject * obj2 = 0 ;
21451 PyObject * obj3 = 0 ;
21452 PyObject * obj4 = 0 ;
21453 PyObject * obj5 = 0 ;
21454 char * kwnames[] = {
21455 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
21456 };
21457
21458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21460 if (!SWIG_IsOK(res1)) {
21461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
21462 }
21463 arg1 = reinterpret_cast< wxDC * >(argp1);
21464 {
21465 arg2 = wxString_in_helper(obj1);
21466 if (arg2 == NULL) SWIG_fail;
21467 temp2 = true;
21468 }
21469 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21470 if (!SWIG_IsOK(res3)) {
21471 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21472 }
21473 if (!argp3) {
21474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21475 }
21476 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21477 {
21478 arg4 = &temp4;
21479 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21480 }
21481 if (obj4) {
21482 ecode5 = SWIG_AsVal_int(obj4, &val5);
21483 if (!SWIG_IsOK(ecode5)) {
21484 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
21485 }
21486 arg5 = static_cast< int >(val5);
21487 }
21488 if (obj5) {
21489 ecode6 = SWIG_AsVal_int(obj5, &val6);
21490 if (!SWIG_IsOK(ecode6)) {
21491 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
21492 }
21493 arg6 = static_cast< int >(val6);
21494 }
21495 {
21496 PyThreadState* __tstate = wxPyBeginAllowThreads();
21497 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
21498 wxPyEndAllowThreads(__tstate);
21499 if (PyErr_Occurred()) SWIG_fail;
21500 }
21501 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21502 {
21503 if (temp2)
21504 delete arg2;
21505 }
21506 return resultobj;
21507 fail:
21508 {
21509 if (temp2)
21510 delete arg2;
21511 }
21512 return NULL;
21513 }
21514
21515
21516 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21517 PyObject *resultobj = 0;
21518 wxDC *arg1 = (wxDC *) 0 ;
21519 int arg2 ;
21520 wxPoint *arg3 = (wxPoint *) 0 ;
21521 void *argp1 = 0 ;
21522 int res1 = 0 ;
21523 PyObject * obj0 = 0 ;
21524 PyObject * obj1 = 0 ;
21525 char * kwnames[] = {
21526 (char *) "self",(char *) "points", NULL
21527 };
21528
21529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
21530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21531 if (!SWIG_IsOK(res1)) {
21532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
21533 }
21534 arg1 = reinterpret_cast< wxDC * >(argp1);
21535 {
21536 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21537 if (arg3 == NULL) SWIG_fail;
21538 }
21539 {
21540 PyThreadState* __tstate = wxPyBeginAllowThreads();
21541 (arg1)->DrawSpline(arg2,arg3);
21542 wxPyEndAllowThreads(__tstate);
21543 if (PyErr_Occurred()) SWIG_fail;
21544 }
21545 resultobj = SWIG_Py_Void();
21546 {
21547 if (arg3) delete [] arg3;
21548 }
21549 return resultobj;
21550 fail:
21551 {
21552 if (arg3) delete [] arg3;
21553 }
21554 return NULL;
21555 }
21556
21557
21558 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21559 PyObject *resultobj = 0;
21560 wxDC *arg1 = (wxDC *) 0 ;
21561 void *argp1 = 0 ;
21562 int res1 = 0 ;
21563 PyObject *swig_obj[1] ;
21564
21565 if (!args) SWIG_fail;
21566 swig_obj[0] = args;
21567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21568 if (!SWIG_IsOK(res1)) {
21569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
21570 }
21571 arg1 = reinterpret_cast< wxDC * >(argp1);
21572 {
21573 PyThreadState* __tstate = wxPyBeginAllowThreads();
21574 (arg1)->Clear();
21575 wxPyEndAllowThreads(__tstate);
21576 if (PyErr_Occurred()) SWIG_fail;
21577 }
21578 resultobj = SWIG_Py_Void();
21579 return resultobj;
21580 fail:
21581 return NULL;
21582 }
21583
21584
21585 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21586 PyObject *resultobj = 0;
21587 wxDC *arg1 = (wxDC *) 0 ;
21588 wxString *arg2 = 0 ;
21589 bool result;
21590 void *argp1 = 0 ;
21591 int res1 = 0 ;
21592 bool temp2 = false ;
21593 PyObject * obj0 = 0 ;
21594 PyObject * obj1 = 0 ;
21595 char * kwnames[] = {
21596 (char *) "self",(char *) "message", NULL
21597 };
21598
21599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
21600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21601 if (!SWIG_IsOK(res1)) {
21602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21603 }
21604 arg1 = reinterpret_cast< wxDC * >(argp1);
21605 {
21606 arg2 = wxString_in_helper(obj1);
21607 if (arg2 == NULL) SWIG_fail;
21608 temp2 = true;
21609 }
21610 {
21611 PyThreadState* __tstate = wxPyBeginAllowThreads();
21612 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
21613 wxPyEndAllowThreads(__tstate);
21614 if (PyErr_Occurred()) SWIG_fail;
21615 }
21616 {
21617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21618 }
21619 {
21620 if (temp2)
21621 delete arg2;
21622 }
21623 return resultobj;
21624 fail:
21625 {
21626 if (temp2)
21627 delete arg2;
21628 }
21629 return NULL;
21630 }
21631
21632
21633 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21634 PyObject *resultobj = 0;
21635 wxDC *arg1 = (wxDC *) 0 ;
21636 void *argp1 = 0 ;
21637 int res1 = 0 ;
21638 PyObject *swig_obj[1] ;
21639
21640 if (!args) SWIG_fail;
21641 swig_obj[0] = args;
21642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21643 if (!SWIG_IsOK(res1)) {
21644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21645 }
21646 arg1 = reinterpret_cast< wxDC * >(argp1);
21647 {
21648 PyThreadState* __tstate = wxPyBeginAllowThreads();
21649 (arg1)->EndDoc();
21650 wxPyEndAllowThreads(__tstate);
21651 if (PyErr_Occurred()) SWIG_fail;
21652 }
21653 resultobj = SWIG_Py_Void();
21654 return resultobj;
21655 fail:
21656 return NULL;
21657 }
21658
21659
21660 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21661 PyObject *resultobj = 0;
21662 wxDC *arg1 = (wxDC *) 0 ;
21663 void *argp1 = 0 ;
21664 int res1 = 0 ;
21665 PyObject *swig_obj[1] ;
21666
21667 if (!args) SWIG_fail;
21668 swig_obj[0] = args;
21669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21670 if (!SWIG_IsOK(res1)) {
21671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
21672 }
21673 arg1 = reinterpret_cast< wxDC * >(argp1);
21674 {
21675 PyThreadState* __tstate = wxPyBeginAllowThreads();
21676 (arg1)->StartPage();
21677 wxPyEndAllowThreads(__tstate);
21678 if (PyErr_Occurred()) SWIG_fail;
21679 }
21680 resultobj = SWIG_Py_Void();
21681 return resultobj;
21682 fail:
21683 return NULL;
21684 }
21685
21686
21687 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21688 PyObject *resultobj = 0;
21689 wxDC *arg1 = (wxDC *) 0 ;
21690 void *argp1 = 0 ;
21691 int res1 = 0 ;
21692 PyObject *swig_obj[1] ;
21693
21694 if (!args) SWIG_fail;
21695 swig_obj[0] = args;
21696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21697 if (!SWIG_IsOK(res1)) {
21698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21699 }
21700 arg1 = reinterpret_cast< wxDC * >(argp1);
21701 {
21702 PyThreadState* __tstate = wxPyBeginAllowThreads();
21703 (arg1)->EndPage();
21704 wxPyEndAllowThreads(__tstate);
21705 if (PyErr_Occurred()) SWIG_fail;
21706 }
21707 resultobj = SWIG_Py_Void();
21708 return resultobj;
21709 fail:
21710 return NULL;
21711 }
21712
21713
21714 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21715 PyObject *resultobj = 0;
21716 wxDC *arg1 = (wxDC *) 0 ;
21717 wxFont *arg2 = 0 ;
21718 void *argp1 = 0 ;
21719 int res1 = 0 ;
21720 void *argp2 = 0 ;
21721 int res2 = 0 ;
21722 PyObject * obj0 = 0 ;
21723 PyObject * obj1 = 0 ;
21724 char * kwnames[] = {
21725 (char *) "self",(char *) "font", NULL
21726 };
21727
21728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21730 if (!SWIG_IsOK(res1)) {
21731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21732 }
21733 arg1 = reinterpret_cast< wxDC * >(argp1);
21734 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21735 if (!SWIG_IsOK(res2)) {
21736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21737 }
21738 if (!argp2) {
21739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21740 }
21741 arg2 = reinterpret_cast< wxFont * >(argp2);
21742 {
21743 PyThreadState* __tstate = wxPyBeginAllowThreads();
21744 (arg1)->SetFont((wxFont const &)*arg2);
21745 wxPyEndAllowThreads(__tstate);
21746 if (PyErr_Occurred()) SWIG_fail;
21747 }
21748 resultobj = SWIG_Py_Void();
21749 return resultobj;
21750 fail:
21751 return NULL;
21752 }
21753
21754
21755 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21756 PyObject *resultobj = 0;
21757 wxDC *arg1 = (wxDC *) 0 ;
21758 wxPen *arg2 = 0 ;
21759 void *argp1 = 0 ;
21760 int res1 = 0 ;
21761 void *argp2 = 0 ;
21762 int res2 = 0 ;
21763 PyObject * obj0 = 0 ;
21764 PyObject * obj1 = 0 ;
21765 char * kwnames[] = {
21766 (char *) "self",(char *) "pen", NULL
21767 };
21768
21769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21771 if (!SWIG_IsOK(res1)) {
21772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21773 }
21774 arg1 = reinterpret_cast< wxDC * >(argp1);
21775 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21776 if (!SWIG_IsOK(res2)) {
21777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21778 }
21779 if (!argp2) {
21780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21781 }
21782 arg2 = reinterpret_cast< wxPen * >(argp2);
21783 {
21784 PyThreadState* __tstate = wxPyBeginAllowThreads();
21785 (arg1)->SetPen((wxPen const &)*arg2);
21786 wxPyEndAllowThreads(__tstate);
21787 if (PyErr_Occurred()) SWIG_fail;
21788 }
21789 resultobj = SWIG_Py_Void();
21790 return resultobj;
21791 fail:
21792 return NULL;
21793 }
21794
21795
21796 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21797 PyObject *resultobj = 0;
21798 wxDC *arg1 = (wxDC *) 0 ;
21799 wxBrush *arg2 = 0 ;
21800 void *argp1 = 0 ;
21801 int res1 = 0 ;
21802 void *argp2 = 0 ;
21803 int res2 = 0 ;
21804 PyObject * obj0 = 0 ;
21805 PyObject * obj1 = 0 ;
21806 char * kwnames[] = {
21807 (char *) "self",(char *) "brush", NULL
21808 };
21809
21810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21812 if (!SWIG_IsOK(res1)) {
21813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21814 }
21815 arg1 = reinterpret_cast< wxDC * >(argp1);
21816 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21817 if (!SWIG_IsOK(res2)) {
21818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21819 }
21820 if (!argp2) {
21821 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21822 }
21823 arg2 = reinterpret_cast< wxBrush * >(argp2);
21824 {
21825 PyThreadState* __tstate = wxPyBeginAllowThreads();
21826 (arg1)->SetBrush((wxBrush const &)*arg2);
21827 wxPyEndAllowThreads(__tstate);
21828 if (PyErr_Occurred()) SWIG_fail;
21829 }
21830 resultobj = SWIG_Py_Void();
21831 return resultobj;
21832 fail:
21833 return NULL;
21834 }
21835
21836
21837 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21838 PyObject *resultobj = 0;
21839 wxDC *arg1 = (wxDC *) 0 ;
21840 wxBrush *arg2 = 0 ;
21841 void *argp1 = 0 ;
21842 int res1 = 0 ;
21843 void *argp2 = 0 ;
21844 int res2 = 0 ;
21845 PyObject * obj0 = 0 ;
21846 PyObject * obj1 = 0 ;
21847 char * kwnames[] = {
21848 (char *) "self",(char *) "brush", NULL
21849 };
21850
21851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21853 if (!SWIG_IsOK(res1)) {
21854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21855 }
21856 arg1 = reinterpret_cast< wxDC * >(argp1);
21857 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21858 if (!SWIG_IsOK(res2)) {
21859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21860 }
21861 if (!argp2) {
21862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21863 }
21864 arg2 = reinterpret_cast< wxBrush * >(argp2);
21865 {
21866 PyThreadState* __tstate = wxPyBeginAllowThreads();
21867 (arg1)->SetBackground((wxBrush const &)*arg2);
21868 wxPyEndAllowThreads(__tstate);
21869 if (PyErr_Occurred()) SWIG_fail;
21870 }
21871 resultobj = SWIG_Py_Void();
21872 return resultobj;
21873 fail:
21874 return NULL;
21875 }
21876
21877
21878 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21879 PyObject *resultobj = 0;
21880 wxDC *arg1 = (wxDC *) 0 ;
21881 int arg2 ;
21882 void *argp1 = 0 ;
21883 int res1 = 0 ;
21884 int val2 ;
21885 int ecode2 = 0 ;
21886 PyObject * obj0 = 0 ;
21887 PyObject * obj1 = 0 ;
21888 char * kwnames[] = {
21889 (char *) "self",(char *) "mode", NULL
21890 };
21891
21892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21894 if (!SWIG_IsOK(res1)) {
21895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21896 }
21897 arg1 = reinterpret_cast< wxDC * >(argp1);
21898 ecode2 = SWIG_AsVal_int(obj1, &val2);
21899 if (!SWIG_IsOK(ecode2)) {
21900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21901 }
21902 arg2 = static_cast< int >(val2);
21903 {
21904 PyThreadState* __tstate = wxPyBeginAllowThreads();
21905 (arg1)->SetBackgroundMode(arg2);
21906 wxPyEndAllowThreads(__tstate);
21907 if (PyErr_Occurred()) SWIG_fail;
21908 }
21909 resultobj = SWIG_Py_Void();
21910 return resultobj;
21911 fail:
21912 return NULL;
21913 }
21914
21915
21916 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21917 PyObject *resultobj = 0;
21918 wxDC *arg1 = (wxDC *) 0 ;
21919 wxPalette *arg2 = 0 ;
21920 void *argp1 = 0 ;
21921 int res1 = 0 ;
21922 void *argp2 = 0 ;
21923 int res2 = 0 ;
21924 PyObject * obj0 = 0 ;
21925 PyObject * obj1 = 0 ;
21926 char * kwnames[] = {
21927 (char *) "self",(char *) "palette", NULL
21928 };
21929
21930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21932 if (!SWIG_IsOK(res1)) {
21933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21934 }
21935 arg1 = reinterpret_cast< wxDC * >(argp1);
21936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21937 if (!SWIG_IsOK(res2)) {
21938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21939 }
21940 if (!argp2) {
21941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21942 }
21943 arg2 = reinterpret_cast< wxPalette * >(argp2);
21944 {
21945 PyThreadState* __tstate = wxPyBeginAllowThreads();
21946 (arg1)->SetPalette((wxPalette const &)*arg2);
21947 wxPyEndAllowThreads(__tstate);
21948 if (PyErr_Occurred()) SWIG_fail;
21949 }
21950 resultobj = SWIG_Py_Void();
21951 return resultobj;
21952 fail:
21953 return NULL;
21954 }
21955
21956
21957 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21958 PyObject *resultobj = 0;
21959 wxDC *arg1 = (wxDC *) 0 ;
21960 void *argp1 = 0 ;
21961 int res1 = 0 ;
21962 PyObject *swig_obj[1] ;
21963
21964 if (!args) SWIG_fail;
21965 swig_obj[0] = args;
21966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21967 if (!SWIG_IsOK(res1)) {
21968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21969 }
21970 arg1 = reinterpret_cast< wxDC * >(argp1);
21971 {
21972 PyThreadState* __tstate = wxPyBeginAllowThreads();
21973 (arg1)->DestroyClippingRegion();
21974 wxPyEndAllowThreads(__tstate);
21975 if (PyErr_Occurred()) SWIG_fail;
21976 }
21977 resultobj = SWIG_Py_Void();
21978 return resultobj;
21979 fail:
21980 return NULL;
21981 }
21982
21983
21984 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21985 PyObject *resultobj = 0;
21986 wxDC *arg1 = (wxDC *) 0 ;
21987 int *arg2 = (int *) 0 ;
21988 int *arg3 = (int *) 0 ;
21989 int *arg4 = (int *) 0 ;
21990 int *arg5 = (int *) 0 ;
21991 void *argp1 = 0 ;
21992 int res1 = 0 ;
21993 int temp2 ;
21994 int res2 = SWIG_TMPOBJ ;
21995 int temp3 ;
21996 int res3 = SWIG_TMPOBJ ;
21997 int temp4 ;
21998 int res4 = SWIG_TMPOBJ ;
21999 int temp5 ;
22000 int res5 = SWIG_TMPOBJ ;
22001 PyObject *swig_obj[1] ;
22002
22003 arg2 = &temp2;
22004 arg3 = &temp3;
22005 arg4 = &temp4;
22006 arg5 = &temp5;
22007 if (!args) SWIG_fail;
22008 swig_obj[0] = args;
22009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22010 if (!SWIG_IsOK(res1)) {
22011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
22012 }
22013 arg1 = reinterpret_cast< wxDC * >(argp1);
22014 {
22015 PyThreadState* __tstate = wxPyBeginAllowThreads();
22016 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
22017 wxPyEndAllowThreads(__tstate);
22018 if (PyErr_Occurred()) SWIG_fail;
22019 }
22020 resultobj = SWIG_Py_Void();
22021 if (SWIG_IsTmpObj(res2)) {
22022 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22023 } else {
22024 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22026 }
22027 if (SWIG_IsTmpObj(res3)) {
22028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22029 } else {
22030 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22031 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22032 }
22033 if (SWIG_IsTmpObj(res4)) {
22034 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22035 } else {
22036 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22037 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22038 }
22039 if (SWIG_IsTmpObj(res5)) {
22040 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22041 } else {
22042 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22044 }
22045 return resultobj;
22046 fail:
22047 return NULL;
22048 }
22049
22050
22051 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22052 PyObject *resultobj = 0;
22053 wxDC *arg1 = (wxDC *) 0 ;
22054 wxRect result;
22055 void *argp1 = 0 ;
22056 int res1 = 0 ;
22057 PyObject *swig_obj[1] ;
22058
22059 if (!args) SWIG_fail;
22060 swig_obj[0] = args;
22061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22062 if (!SWIG_IsOK(res1)) {
22063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
22064 }
22065 arg1 = reinterpret_cast< wxDC * >(argp1);
22066 {
22067 PyThreadState* __tstate = wxPyBeginAllowThreads();
22068 result = wxDC_GetClippingRect(arg1);
22069 wxPyEndAllowThreads(__tstate);
22070 if (PyErr_Occurred()) SWIG_fail;
22071 }
22072 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
22073 return resultobj;
22074 fail:
22075 return NULL;
22076 }
22077
22078
22079 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22080 PyObject *resultobj = 0;
22081 wxDC *arg1 = (wxDC *) 0 ;
22082 int result;
22083 void *argp1 = 0 ;
22084 int res1 = 0 ;
22085 PyObject *swig_obj[1] ;
22086
22087 if (!args) SWIG_fail;
22088 swig_obj[0] = args;
22089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22090 if (!SWIG_IsOK(res1)) {
22091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
22092 }
22093 arg1 = reinterpret_cast< wxDC * >(argp1);
22094 {
22095 PyThreadState* __tstate = wxPyBeginAllowThreads();
22096 result = (int)((wxDC const *)arg1)->GetCharHeight();
22097 wxPyEndAllowThreads(__tstate);
22098 if (PyErr_Occurred()) SWIG_fail;
22099 }
22100 resultobj = SWIG_From_int(static_cast< int >(result));
22101 return resultobj;
22102 fail:
22103 return NULL;
22104 }
22105
22106
22107 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22108 PyObject *resultobj = 0;
22109 wxDC *arg1 = (wxDC *) 0 ;
22110 int result;
22111 void *argp1 = 0 ;
22112 int res1 = 0 ;
22113 PyObject *swig_obj[1] ;
22114
22115 if (!args) SWIG_fail;
22116 swig_obj[0] = args;
22117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22118 if (!SWIG_IsOK(res1)) {
22119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
22120 }
22121 arg1 = reinterpret_cast< wxDC * >(argp1);
22122 {
22123 PyThreadState* __tstate = wxPyBeginAllowThreads();
22124 result = (int)((wxDC const *)arg1)->GetCharWidth();
22125 wxPyEndAllowThreads(__tstate);
22126 if (PyErr_Occurred()) SWIG_fail;
22127 }
22128 resultobj = SWIG_From_int(static_cast< int >(result));
22129 return resultobj;
22130 fail:
22131 return NULL;
22132 }
22133
22134
22135 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22136 PyObject *resultobj = 0;
22137 wxDC *arg1 = (wxDC *) 0 ;
22138 wxString *arg2 = 0 ;
22139 int *arg3 = (int *) 0 ;
22140 int *arg4 = (int *) 0 ;
22141 void *argp1 = 0 ;
22142 int res1 = 0 ;
22143 bool temp2 = false ;
22144 int temp3 ;
22145 int res3 = SWIG_TMPOBJ ;
22146 int temp4 ;
22147 int res4 = SWIG_TMPOBJ ;
22148 PyObject * obj0 = 0 ;
22149 PyObject * obj1 = 0 ;
22150 char * kwnames[] = {
22151 (char *) "self",(char *) "string", NULL
22152 };
22153
22154 arg3 = &temp3;
22155 arg4 = &temp4;
22156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
22157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22158 if (!SWIG_IsOK(res1)) {
22159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
22160 }
22161 arg1 = reinterpret_cast< wxDC * >(argp1);
22162 {
22163 arg2 = wxString_in_helper(obj1);
22164 if (arg2 == NULL) SWIG_fail;
22165 temp2 = true;
22166 }
22167 {
22168 PyThreadState* __tstate = wxPyBeginAllowThreads();
22169 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
22170 wxPyEndAllowThreads(__tstate);
22171 if (PyErr_Occurred()) SWIG_fail;
22172 }
22173 resultobj = SWIG_Py_Void();
22174 if (SWIG_IsTmpObj(res3)) {
22175 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22176 } else {
22177 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22178 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22179 }
22180 if (SWIG_IsTmpObj(res4)) {
22181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22182 } else {
22183 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22185 }
22186 {
22187 if (temp2)
22188 delete arg2;
22189 }
22190 return resultobj;
22191 fail:
22192 {
22193 if (temp2)
22194 delete arg2;
22195 }
22196 return NULL;
22197 }
22198
22199
22200 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22201 PyObject *resultobj = 0;
22202 wxDC *arg1 = (wxDC *) 0 ;
22203 wxString *arg2 = 0 ;
22204 int *arg3 = (int *) 0 ;
22205 int *arg4 = (int *) 0 ;
22206 int *arg5 = (int *) 0 ;
22207 int *arg6 = (int *) 0 ;
22208 wxFont *arg7 = (wxFont *) NULL ;
22209 void *argp1 = 0 ;
22210 int res1 = 0 ;
22211 bool temp2 = false ;
22212 int temp3 ;
22213 int res3 = SWIG_TMPOBJ ;
22214 int temp4 ;
22215 int res4 = SWIG_TMPOBJ ;
22216 int temp5 ;
22217 int res5 = SWIG_TMPOBJ ;
22218 int temp6 ;
22219 int res6 = SWIG_TMPOBJ ;
22220 void *argp7 = 0 ;
22221 int res7 = 0 ;
22222 PyObject * obj0 = 0 ;
22223 PyObject * obj1 = 0 ;
22224 PyObject * obj2 = 0 ;
22225 char * kwnames[] = {
22226 (char *) "self",(char *) "string",(char *) "font", NULL
22227 };
22228
22229 arg3 = &temp3;
22230 arg4 = &temp4;
22231 arg5 = &temp5;
22232 arg6 = &temp6;
22233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22235 if (!SWIG_IsOK(res1)) {
22236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
22237 }
22238 arg1 = reinterpret_cast< wxDC * >(argp1);
22239 {
22240 arg2 = wxString_in_helper(obj1);
22241 if (arg2 == NULL) SWIG_fail;
22242 temp2 = true;
22243 }
22244 if (obj2) {
22245 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
22246 if (!SWIG_IsOK(res7)) {
22247 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
22248 }
22249 arg7 = reinterpret_cast< wxFont * >(argp7);
22250 }
22251 {
22252 PyThreadState* __tstate = wxPyBeginAllowThreads();
22253 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
22254 wxPyEndAllowThreads(__tstate);
22255 if (PyErr_Occurred()) SWIG_fail;
22256 }
22257 resultobj = SWIG_Py_Void();
22258 if (SWIG_IsTmpObj(res3)) {
22259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22260 } else {
22261 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22263 }
22264 if (SWIG_IsTmpObj(res4)) {
22265 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22266 } else {
22267 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22268 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22269 }
22270 if (SWIG_IsTmpObj(res5)) {
22271 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22272 } else {
22273 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22274 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22275 }
22276 if (SWIG_IsTmpObj(res6)) {
22277 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
22278 } else {
22279 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22280 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
22281 }
22282 {
22283 if (temp2)
22284 delete arg2;
22285 }
22286 return resultobj;
22287 fail:
22288 {
22289 if (temp2)
22290 delete arg2;
22291 }
22292 return NULL;
22293 }
22294
22295
22296 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22297 PyObject *resultobj = 0;
22298 wxDC *arg1 = (wxDC *) 0 ;
22299 wxString *arg2 = 0 ;
22300 int *arg3 = (int *) 0 ;
22301 int *arg4 = (int *) 0 ;
22302 int *arg5 = (int *) 0 ;
22303 wxFont *arg6 = (wxFont *) NULL ;
22304 void *argp1 = 0 ;
22305 int res1 = 0 ;
22306 bool temp2 = false ;
22307 int temp3 ;
22308 int res3 = SWIG_TMPOBJ ;
22309 int temp4 ;
22310 int res4 = SWIG_TMPOBJ ;
22311 int temp5 ;
22312 int res5 = SWIG_TMPOBJ ;
22313 void *argp6 = 0 ;
22314 int res6 = 0 ;
22315 PyObject * obj0 = 0 ;
22316 PyObject * obj1 = 0 ;
22317 PyObject * obj2 = 0 ;
22318 char * kwnames[] = {
22319 (char *) "self",(char *) "text",(char *) "font", NULL
22320 };
22321
22322 arg3 = &temp3;
22323 arg4 = &temp4;
22324 arg5 = &temp5;
22325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22327 if (!SWIG_IsOK(res1)) {
22328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
22329 }
22330 arg1 = reinterpret_cast< wxDC * >(argp1);
22331 {
22332 arg2 = wxString_in_helper(obj1);
22333 if (arg2 == NULL) SWIG_fail;
22334 temp2 = true;
22335 }
22336 if (obj2) {
22337 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
22338 if (!SWIG_IsOK(res6)) {
22339 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
22340 }
22341 arg6 = reinterpret_cast< wxFont * >(argp6);
22342 }
22343 {
22344 PyThreadState* __tstate = wxPyBeginAllowThreads();
22345 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
22346 wxPyEndAllowThreads(__tstate);
22347 if (PyErr_Occurred()) SWIG_fail;
22348 }
22349 resultobj = SWIG_Py_Void();
22350 if (SWIG_IsTmpObj(res3)) {
22351 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22352 } else {
22353 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22354 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22355 }
22356 if (SWIG_IsTmpObj(res4)) {
22357 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22358 } else {
22359 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22360 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22361 }
22362 if (SWIG_IsTmpObj(res5)) {
22363 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22364 } else {
22365 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22366 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22367 }
22368 {
22369 if (temp2)
22370 delete arg2;
22371 }
22372 return resultobj;
22373 fail:
22374 {
22375 if (temp2)
22376 delete arg2;
22377 }
22378 return NULL;
22379 }
22380
22381
22382 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22383 PyObject *resultobj = 0;
22384 wxDC *arg1 = (wxDC *) 0 ;
22385 wxString *arg2 = 0 ;
22386 wxArrayInt result;
22387 void *argp1 = 0 ;
22388 int res1 = 0 ;
22389 bool temp2 = false ;
22390 PyObject * obj0 = 0 ;
22391 PyObject * obj1 = 0 ;
22392 char * kwnames[] = {
22393 (char *) "self",(char *) "text", NULL
22394 };
22395
22396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
22397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22398 if (!SWIG_IsOK(res1)) {
22399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
22400 }
22401 arg1 = reinterpret_cast< wxDC * >(argp1);
22402 {
22403 arg2 = wxString_in_helper(obj1);
22404 if (arg2 == NULL) SWIG_fail;
22405 temp2 = true;
22406 }
22407 {
22408 PyThreadState* __tstate = wxPyBeginAllowThreads();
22409 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
22410 wxPyEndAllowThreads(__tstate);
22411 if (PyErr_Occurred()) SWIG_fail;
22412 }
22413 {
22414 resultobj = wxArrayInt2PyList_helper(result);
22415 }
22416 {
22417 if (temp2)
22418 delete arg2;
22419 }
22420 return resultobj;
22421 fail:
22422 {
22423 if (temp2)
22424 delete arg2;
22425 }
22426 return NULL;
22427 }
22428
22429
22430 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22431 PyObject *resultobj = 0;
22432 wxDC *arg1 = (wxDC *) 0 ;
22433 wxSize result;
22434 void *argp1 = 0 ;
22435 int res1 = 0 ;
22436 PyObject *swig_obj[1] ;
22437
22438 if (!args) SWIG_fail;
22439 swig_obj[0] = args;
22440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22441 if (!SWIG_IsOK(res1)) {
22442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
22443 }
22444 arg1 = reinterpret_cast< wxDC * >(argp1);
22445 {
22446 PyThreadState* __tstate = wxPyBeginAllowThreads();
22447 result = (arg1)->GetSize();
22448 wxPyEndAllowThreads(__tstate);
22449 if (PyErr_Occurred()) SWIG_fail;
22450 }
22451 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22452 return resultobj;
22453 fail:
22454 return NULL;
22455 }
22456
22457
22458 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22459 PyObject *resultobj = 0;
22460 wxDC *arg1 = (wxDC *) 0 ;
22461 int *arg2 = (int *) 0 ;
22462 int *arg3 = (int *) 0 ;
22463 void *argp1 = 0 ;
22464 int res1 = 0 ;
22465 int temp2 ;
22466 int res2 = SWIG_TMPOBJ ;
22467 int temp3 ;
22468 int res3 = SWIG_TMPOBJ ;
22469 PyObject *swig_obj[1] ;
22470
22471 arg2 = &temp2;
22472 arg3 = &temp3;
22473 if (!args) SWIG_fail;
22474 swig_obj[0] = args;
22475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22476 if (!SWIG_IsOK(res1)) {
22477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
22478 }
22479 arg1 = reinterpret_cast< wxDC * >(argp1);
22480 {
22481 PyThreadState* __tstate = wxPyBeginAllowThreads();
22482 (arg1)->GetSize(arg2,arg3);
22483 wxPyEndAllowThreads(__tstate);
22484 if (PyErr_Occurred()) SWIG_fail;
22485 }
22486 resultobj = SWIG_Py_Void();
22487 if (SWIG_IsTmpObj(res2)) {
22488 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22489 } else {
22490 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22491 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22492 }
22493 if (SWIG_IsTmpObj(res3)) {
22494 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22495 } else {
22496 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22497 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22498 }
22499 return resultobj;
22500 fail:
22501 return NULL;
22502 }
22503
22504
22505 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22506 PyObject *resultobj = 0;
22507 wxDC *arg1 = (wxDC *) 0 ;
22508 wxSize result;
22509 void *argp1 = 0 ;
22510 int res1 = 0 ;
22511 PyObject *swig_obj[1] ;
22512
22513 if (!args) SWIG_fail;
22514 swig_obj[0] = args;
22515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22516 if (!SWIG_IsOK(res1)) {
22517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
22518 }
22519 arg1 = reinterpret_cast< wxDC * >(argp1);
22520 {
22521 PyThreadState* __tstate = wxPyBeginAllowThreads();
22522 result = ((wxDC const *)arg1)->GetSizeMM();
22523 wxPyEndAllowThreads(__tstate);
22524 if (PyErr_Occurred()) SWIG_fail;
22525 }
22526 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22527 return resultobj;
22528 fail:
22529 return NULL;
22530 }
22531
22532
22533 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22534 PyObject *resultobj = 0;
22535 wxDC *arg1 = (wxDC *) 0 ;
22536 int *arg2 = (int *) 0 ;
22537 int *arg3 = (int *) 0 ;
22538 void *argp1 = 0 ;
22539 int res1 = 0 ;
22540 int temp2 ;
22541 int res2 = SWIG_TMPOBJ ;
22542 int temp3 ;
22543 int res3 = SWIG_TMPOBJ ;
22544 PyObject *swig_obj[1] ;
22545
22546 arg2 = &temp2;
22547 arg3 = &temp3;
22548 if (!args) SWIG_fail;
22549 swig_obj[0] = args;
22550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22551 if (!SWIG_IsOK(res1)) {
22552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22553 }
22554 arg1 = reinterpret_cast< wxDC * >(argp1);
22555 {
22556 PyThreadState* __tstate = wxPyBeginAllowThreads();
22557 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
22558 wxPyEndAllowThreads(__tstate);
22559 if (PyErr_Occurred()) SWIG_fail;
22560 }
22561 resultobj = SWIG_Py_Void();
22562 if (SWIG_IsTmpObj(res2)) {
22563 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22564 } else {
22565 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22566 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22567 }
22568 if (SWIG_IsTmpObj(res3)) {
22569 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22570 } else {
22571 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22572 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22573 }
22574 return resultobj;
22575 fail:
22576 return NULL;
22577 }
22578
22579
22580 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22581 PyObject *resultobj = 0;
22582 wxDC *arg1 = (wxDC *) 0 ;
22583 int arg2 ;
22584 int result;
22585 void *argp1 = 0 ;
22586 int res1 = 0 ;
22587 int val2 ;
22588 int ecode2 = 0 ;
22589 PyObject * obj0 = 0 ;
22590 PyObject * obj1 = 0 ;
22591 char * kwnames[] = {
22592 (char *) "self",(char *) "x", NULL
22593 };
22594
22595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
22596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22597 if (!SWIG_IsOK(res1)) {
22598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
22599 }
22600 arg1 = reinterpret_cast< wxDC * >(argp1);
22601 ecode2 = SWIG_AsVal_int(obj1, &val2);
22602 if (!SWIG_IsOK(ecode2)) {
22603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
22604 }
22605 arg2 = static_cast< int >(val2);
22606 {
22607 PyThreadState* __tstate = wxPyBeginAllowThreads();
22608 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
22609 wxPyEndAllowThreads(__tstate);
22610 if (PyErr_Occurred()) SWIG_fail;
22611 }
22612 resultobj = SWIG_From_int(static_cast< int >(result));
22613 return resultobj;
22614 fail:
22615 return NULL;
22616 }
22617
22618
22619 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22620 PyObject *resultobj = 0;
22621 wxDC *arg1 = (wxDC *) 0 ;
22622 int arg2 ;
22623 int result;
22624 void *argp1 = 0 ;
22625 int res1 = 0 ;
22626 int val2 ;
22627 int ecode2 = 0 ;
22628 PyObject * obj0 = 0 ;
22629 PyObject * obj1 = 0 ;
22630 char * kwnames[] = {
22631 (char *) "self",(char *) "y", NULL
22632 };
22633
22634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
22635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22636 if (!SWIG_IsOK(res1)) {
22637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
22638 }
22639 arg1 = reinterpret_cast< wxDC * >(argp1);
22640 ecode2 = SWIG_AsVal_int(obj1, &val2);
22641 if (!SWIG_IsOK(ecode2)) {
22642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
22643 }
22644 arg2 = static_cast< int >(val2);
22645 {
22646 PyThreadState* __tstate = wxPyBeginAllowThreads();
22647 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
22648 wxPyEndAllowThreads(__tstate);
22649 if (PyErr_Occurred()) SWIG_fail;
22650 }
22651 resultobj = SWIG_From_int(static_cast< int >(result));
22652 return resultobj;
22653 fail:
22654 return NULL;
22655 }
22656
22657
22658 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22659 PyObject *resultobj = 0;
22660 wxDC *arg1 = (wxDC *) 0 ;
22661 int arg2 ;
22662 int result;
22663 void *argp1 = 0 ;
22664 int res1 = 0 ;
22665 int val2 ;
22666 int ecode2 = 0 ;
22667 PyObject * obj0 = 0 ;
22668 PyObject * obj1 = 0 ;
22669 char * kwnames[] = {
22670 (char *) "self",(char *) "x", NULL
22671 };
22672
22673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22675 if (!SWIG_IsOK(res1)) {
22676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22677 }
22678 arg1 = reinterpret_cast< wxDC * >(argp1);
22679 ecode2 = SWIG_AsVal_int(obj1, &val2);
22680 if (!SWIG_IsOK(ecode2)) {
22681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
22682 }
22683 arg2 = static_cast< int >(val2);
22684 {
22685 PyThreadState* __tstate = wxPyBeginAllowThreads();
22686 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
22687 wxPyEndAllowThreads(__tstate);
22688 if (PyErr_Occurred()) SWIG_fail;
22689 }
22690 resultobj = SWIG_From_int(static_cast< int >(result));
22691 return resultobj;
22692 fail:
22693 return NULL;
22694 }
22695
22696
22697 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22698 PyObject *resultobj = 0;
22699 wxDC *arg1 = (wxDC *) 0 ;
22700 int arg2 ;
22701 int result;
22702 void *argp1 = 0 ;
22703 int res1 = 0 ;
22704 int val2 ;
22705 int ecode2 = 0 ;
22706 PyObject * obj0 = 0 ;
22707 PyObject * obj1 = 0 ;
22708 char * kwnames[] = {
22709 (char *) "self",(char *) "y", NULL
22710 };
22711
22712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22714 if (!SWIG_IsOK(res1)) {
22715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22716 }
22717 arg1 = reinterpret_cast< wxDC * >(argp1);
22718 ecode2 = SWIG_AsVal_int(obj1, &val2);
22719 if (!SWIG_IsOK(ecode2)) {
22720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22721 }
22722 arg2 = static_cast< int >(val2);
22723 {
22724 PyThreadState* __tstate = wxPyBeginAllowThreads();
22725 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22726 wxPyEndAllowThreads(__tstate);
22727 if (PyErr_Occurred()) SWIG_fail;
22728 }
22729 resultobj = SWIG_From_int(static_cast< int >(result));
22730 return resultobj;
22731 fail:
22732 return NULL;
22733 }
22734
22735
22736 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22737 PyObject *resultobj = 0;
22738 wxDC *arg1 = (wxDC *) 0 ;
22739 int arg2 ;
22740 int result;
22741 void *argp1 = 0 ;
22742 int res1 = 0 ;
22743 int val2 ;
22744 int ecode2 = 0 ;
22745 PyObject * obj0 = 0 ;
22746 PyObject * obj1 = 0 ;
22747 char * kwnames[] = {
22748 (char *) "self",(char *) "x", NULL
22749 };
22750
22751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22753 if (!SWIG_IsOK(res1)) {
22754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22755 }
22756 arg1 = reinterpret_cast< wxDC * >(argp1);
22757 ecode2 = SWIG_AsVal_int(obj1, &val2);
22758 if (!SWIG_IsOK(ecode2)) {
22759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22760 }
22761 arg2 = static_cast< int >(val2);
22762 {
22763 PyThreadState* __tstate = wxPyBeginAllowThreads();
22764 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22765 wxPyEndAllowThreads(__tstate);
22766 if (PyErr_Occurred()) SWIG_fail;
22767 }
22768 resultobj = SWIG_From_int(static_cast< int >(result));
22769 return resultobj;
22770 fail:
22771 return NULL;
22772 }
22773
22774
22775 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22776 PyObject *resultobj = 0;
22777 wxDC *arg1 = (wxDC *) 0 ;
22778 int arg2 ;
22779 int result;
22780 void *argp1 = 0 ;
22781 int res1 = 0 ;
22782 int val2 ;
22783 int ecode2 = 0 ;
22784 PyObject * obj0 = 0 ;
22785 PyObject * obj1 = 0 ;
22786 char * kwnames[] = {
22787 (char *) "self",(char *) "y", NULL
22788 };
22789
22790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22792 if (!SWIG_IsOK(res1)) {
22793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22794 }
22795 arg1 = reinterpret_cast< wxDC * >(argp1);
22796 ecode2 = SWIG_AsVal_int(obj1, &val2);
22797 if (!SWIG_IsOK(ecode2)) {
22798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22799 }
22800 arg2 = static_cast< int >(val2);
22801 {
22802 PyThreadState* __tstate = wxPyBeginAllowThreads();
22803 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22804 wxPyEndAllowThreads(__tstate);
22805 if (PyErr_Occurred()) SWIG_fail;
22806 }
22807 resultobj = SWIG_From_int(static_cast< int >(result));
22808 return resultobj;
22809 fail:
22810 return NULL;
22811 }
22812
22813
22814 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22815 PyObject *resultobj = 0;
22816 wxDC *arg1 = (wxDC *) 0 ;
22817 int arg2 ;
22818 int result;
22819 void *argp1 = 0 ;
22820 int res1 = 0 ;
22821 int val2 ;
22822 int ecode2 = 0 ;
22823 PyObject * obj0 = 0 ;
22824 PyObject * obj1 = 0 ;
22825 char * kwnames[] = {
22826 (char *) "self",(char *) "x", NULL
22827 };
22828
22829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22831 if (!SWIG_IsOK(res1)) {
22832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22833 }
22834 arg1 = reinterpret_cast< wxDC * >(argp1);
22835 ecode2 = SWIG_AsVal_int(obj1, &val2);
22836 if (!SWIG_IsOK(ecode2)) {
22837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22838 }
22839 arg2 = static_cast< int >(val2);
22840 {
22841 PyThreadState* __tstate = wxPyBeginAllowThreads();
22842 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22843 wxPyEndAllowThreads(__tstate);
22844 if (PyErr_Occurred()) SWIG_fail;
22845 }
22846 resultobj = SWIG_From_int(static_cast< int >(result));
22847 return resultobj;
22848 fail:
22849 return NULL;
22850 }
22851
22852
22853 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22854 PyObject *resultobj = 0;
22855 wxDC *arg1 = (wxDC *) 0 ;
22856 int arg2 ;
22857 int result;
22858 void *argp1 = 0 ;
22859 int res1 = 0 ;
22860 int val2 ;
22861 int ecode2 = 0 ;
22862 PyObject * obj0 = 0 ;
22863 PyObject * obj1 = 0 ;
22864 char * kwnames[] = {
22865 (char *) "self",(char *) "y", NULL
22866 };
22867
22868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22870 if (!SWIG_IsOK(res1)) {
22871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22872 }
22873 arg1 = reinterpret_cast< wxDC * >(argp1);
22874 ecode2 = SWIG_AsVal_int(obj1, &val2);
22875 if (!SWIG_IsOK(ecode2)) {
22876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22877 }
22878 arg2 = static_cast< int >(val2);
22879 {
22880 PyThreadState* __tstate = wxPyBeginAllowThreads();
22881 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22882 wxPyEndAllowThreads(__tstate);
22883 if (PyErr_Occurred()) SWIG_fail;
22884 }
22885 resultobj = SWIG_From_int(static_cast< int >(result));
22886 return resultobj;
22887 fail:
22888 return NULL;
22889 }
22890
22891
22892 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22893 PyObject *resultobj = 0;
22894 wxDC *arg1 = (wxDC *) 0 ;
22895 bool result;
22896 void *argp1 = 0 ;
22897 int res1 = 0 ;
22898 PyObject *swig_obj[1] ;
22899
22900 if (!args) SWIG_fail;
22901 swig_obj[0] = args;
22902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22903 if (!SWIG_IsOK(res1)) {
22904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22905 }
22906 arg1 = reinterpret_cast< wxDC * >(argp1);
22907 {
22908 PyThreadState* __tstate = wxPyBeginAllowThreads();
22909 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22910 wxPyEndAllowThreads(__tstate);
22911 if (PyErr_Occurred()) SWIG_fail;
22912 }
22913 {
22914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22915 }
22916 return resultobj;
22917 fail:
22918 return NULL;
22919 }
22920
22921
22922 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22923 PyObject *resultobj = 0;
22924 wxDC *arg1 = (wxDC *) 0 ;
22925 bool result;
22926 void *argp1 = 0 ;
22927 int res1 = 0 ;
22928 PyObject *swig_obj[1] ;
22929
22930 if (!args) SWIG_fail;
22931 swig_obj[0] = args;
22932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22933 if (!SWIG_IsOK(res1)) {
22934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22935 }
22936 arg1 = reinterpret_cast< wxDC * >(argp1);
22937 {
22938 PyThreadState* __tstate = wxPyBeginAllowThreads();
22939 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22940 wxPyEndAllowThreads(__tstate);
22941 if (PyErr_Occurred()) SWIG_fail;
22942 }
22943 {
22944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22945 }
22946 return resultobj;
22947 fail:
22948 return NULL;
22949 }
22950
22951
22952 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22953 PyObject *resultobj = 0;
22954 wxDC *arg1 = (wxDC *) 0 ;
22955 int result;
22956 void *argp1 = 0 ;
22957 int res1 = 0 ;
22958 PyObject *swig_obj[1] ;
22959
22960 if (!args) SWIG_fail;
22961 swig_obj[0] = args;
22962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22963 if (!SWIG_IsOK(res1)) {
22964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22965 }
22966 arg1 = reinterpret_cast< wxDC * >(argp1);
22967 {
22968 PyThreadState* __tstate = wxPyBeginAllowThreads();
22969 result = (int)((wxDC const *)arg1)->GetDepth();
22970 wxPyEndAllowThreads(__tstate);
22971 if (PyErr_Occurred()) SWIG_fail;
22972 }
22973 resultobj = SWIG_From_int(static_cast< int >(result));
22974 return resultobj;
22975 fail:
22976 return NULL;
22977 }
22978
22979
22980 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22981 PyObject *resultobj = 0;
22982 wxDC *arg1 = (wxDC *) 0 ;
22983 wxSize result;
22984 void *argp1 = 0 ;
22985 int res1 = 0 ;
22986 PyObject *swig_obj[1] ;
22987
22988 if (!args) SWIG_fail;
22989 swig_obj[0] = args;
22990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22991 if (!SWIG_IsOK(res1)) {
22992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22993 }
22994 arg1 = reinterpret_cast< wxDC * >(argp1);
22995 {
22996 PyThreadState* __tstate = wxPyBeginAllowThreads();
22997 result = ((wxDC const *)arg1)->GetPPI();
22998 wxPyEndAllowThreads(__tstate);
22999 if (PyErr_Occurred()) SWIG_fail;
23000 }
23001 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
23002 return resultobj;
23003 fail:
23004 return NULL;
23005 }
23006
23007
23008 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23009 PyObject *resultobj = 0;
23010 wxDC *arg1 = (wxDC *) 0 ;
23011 bool result;
23012 void *argp1 = 0 ;
23013 int res1 = 0 ;
23014 PyObject *swig_obj[1] ;
23015
23016 if (!args) SWIG_fail;
23017 swig_obj[0] = args;
23018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23019 if (!SWIG_IsOK(res1)) {
23020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
23021 }
23022 arg1 = reinterpret_cast< wxDC * >(argp1);
23023 {
23024 PyThreadState* __tstate = wxPyBeginAllowThreads();
23025 result = (bool)((wxDC const *)arg1)->IsOk();
23026 wxPyEndAllowThreads(__tstate);
23027 if (PyErr_Occurred()) SWIG_fail;
23028 }
23029 {
23030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23031 }
23032 return resultobj;
23033 fail:
23034 return NULL;
23035 }
23036
23037
23038 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23039 PyObject *resultobj = 0;
23040 wxDC *arg1 = (wxDC *) 0 ;
23041 int result;
23042 void *argp1 = 0 ;
23043 int res1 = 0 ;
23044 PyObject *swig_obj[1] ;
23045
23046 if (!args) SWIG_fail;
23047 swig_obj[0] = args;
23048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23049 if (!SWIG_IsOK(res1)) {
23050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
23051 }
23052 arg1 = reinterpret_cast< wxDC * >(argp1);
23053 {
23054 PyThreadState* __tstate = wxPyBeginAllowThreads();
23055 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
23056 wxPyEndAllowThreads(__tstate);
23057 if (PyErr_Occurred()) SWIG_fail;
23058 }
23059 resultobj = SWIG_From_int(static_cast< int >(result));
23060 return resultobj;
23061 fail:
23062 return NULL;
23063 }
23064
23065
23066 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23067 PyObject *resultobj = 0;
23068 wxDC *arg1 = (wxDC *) 0 ;
23069 wxBrush *result = 0 ;
23070 void *argp1 = 0 ;
23071 int res1 = 0 ;
23072 PyObject *swig_obj[1] ;
23073
23074 if (!args) SWIG_fail;
23075 swig_obj[0] = args;
23076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23077 if (!SWIG_IsOK(res1)) {
23078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
23079 }
23080 arg1 = reinterpret_cast< wxDC * >(argp1);
23081 {
23082 PyThreadState* __tstate = wxPyBeginAllowThreads();
23083 {
23084 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
23085 result = (wxBrush *) &_result_ref;
23086 }
23087 wxPyEndAllowThreads(__tstate);
23088 if (PyErr_Occurred()) SWIG_fail;
23089 }
23090 {
23091 wxBrush* resultptr = new wxBrush(*result);
23092 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
23093 }
23094 return resultobj;
23095 fail:
23096 return NULL;
23097 }
23098
23099
23100 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23101 PyObject *resultobj = 0;
23102 wxDC *arg1 = (wxDC *) 0 ;
23103 wxBrush *result = 0 ;
23104 void *argp1 = 0 ;
23105 int res1 = 0 ;
23106 PyObject *swig_obj[1] ;
23107
23108 if (!args) SWIG_fail;
23109 swig_obj[0] = args;
23110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23111 if (!SWIG_IsOK(res1)) {
23112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
23113 }
23114 arg1 = reinterpret_cast< wxDC * >(argp1);
23115 {
23116 PyThreadState* __tstate = wxPyBeginAllowThreads();
23117 {
23118 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
23119 result = (wxBrush *) &_result_ref;
23120 }
23121 wxPyEndAllowThreads(__tstate);
23122 if (PyErr_Occurred()) SWIG_fail;
23123 }
23124 {
23125 wxBrush* resultptr = new wxBrush(*result);
23126 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
23127 }
23128 return resultobj;
23129 fail:
23130 return NULL;
23131 }
23132
23133
23134 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23135 PyObject *resultobj = 0;
23136 wxDC *arg1 = (wxDC *) 0 ;
23137 wxFont *result = 0 ;
23138 void *argp1 = 0 ;
23139 int res1 = 0 ;
23140 PyObject *swig_obj[1] ;
23141
23142 if (!args) SWIG_fail;
23143 swig_obj[0] = args;
23144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23145 if (!SWIG_IsOK(res1)) {
23146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
23147 }
23148 arg1 = reinterpret_cast< wxDC * >(argp1);
23149 {
23150 PyThreadState* __tstate = wxPyBeginAllowThreads();
23151 {
23152 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
23153 result = (wxFont *) &_result_ref;
23154 }
23155 wxPyEndAllowThreads(__tstate);
23156 if (PyErr_Occurred()) SWIG_fail;
23157 }
23158 {
23159 wxFont* resultptr = new wxFont(*result);
23160 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
23161 }
23162 return resultobj;
23163 fail:
23164 return NULL;
23165 }
23166
23167
23168 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23169 PyObject *resultobj = 0;
23170 wxDC *arg1 = (wxDC *) 0 ;
23171 wxPen *result = 0 ;
23172 void *argp1 = 0 ;
23173 int res1 = 0 ;
23174 PyObject *swig_obj[1] ;
23175
23176 if (!args) SWIG_fail;
23177 swig_obj[0] = args;
23178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23179 if (!SWIG_IsOK(res1)) {
23180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
23181 }
23182 arg1 = reinterpret_cast< wxDC * >(argp1);
23183 {
23184 PyThreadState* __tstate = wxPyBeginAllowThreads();
23185 {
23186 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
23187 result = (wxPen *) &_result_ref;
23188 }
23189 wxPyEndAllowThreads(__tstate);
23190 if (PyErr_Occurred()) SWIG_fail;
23191 }
23192 {
23193 wxPen* resultptr = new wxPen(*result);
23194 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
23195 }
23196 return resultobj;
23197 fail:
23198 return NULL;
23199 }
23200
23201
23202 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23203 PyObject *resultobj = 0;
23204 wxDC *arg1 = (wxDC *) 0 ;
23205 wxColour *result = 0 ;
23206 void *argp1 = 0 ;
23207 int res1 = 0 ;
23208 PyObject *swig_obj[1] ;
23209
23210 if (!args) SWIG_fail;
23211 swig_obj[0] = args;
23212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23213 if (!SWIG_IsOK(res1)) {
23214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
23215 }
23216 arg1 = reinterpret_cast< wxDC * >(argp1);
23217 {
23218 PyThreadState* __tstate = wxPyBeginAllowThreads();
23219 {
23220 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
23221 result = (wxColour *) &_result_ref;
23222 }
23223 wxPyEndAllowThreads(__tstate);
23224 if (PyErr_Occurred()) SWIG_fail;
23225 }
23226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
23227 return resultobj;
23228 fail:
23229 return NULL;
23230 }
23231
23232
23233 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23234 PyObject *resultobj = 0;
23235 wxDC *arg1 = (wxDC *) 0 ;
23236 wxColour *result = 0 ;
23237 void *argp1 = 0 ;
23238 int res1 = 0 ;
23239 PyObject *swig_obj[1] ;
23240
23241 if (!args) SWIG_fail;
23242 swig_obj[0] = args;
23243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23244 if (!SWIG_IsOK(res1)) {
23245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
23246 }
23247 arg1 = reinterpret_cast< wxDC * >(argp1);
23248 {
23249 PyThreadState* __tstate = wxPyBeginAllowThreads();
23250 {
23251 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
23252 result = (wxColour *) &_result_ref;
23253 }
23254 wxPyEndAllowThreads(__tstate);
23255 if (PyErr_Occurred()) SWIG_fail;
23256 }
23257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
23258 return resultobj;
23259 fail:
23260 return NULL;
23261 }
23262
23263
23264 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23265 PyObject *resultobj = 0;
23266 wxDC *arg1 = (wxDC *) 0 ;
23267 wxColour *arg2 = 0 ;
23268 void *argp1 = 0 ;
23269 int res1 = 0 ;
23270 wxColour temp2 ;
23271 PyObject * obj0 = 0 ;
23272 PyObject * obj1 = 0 ;
23273 char * kwnames[] = {
23274 (char *) "self",(char *) "colour", NULL
23275 };
23276
23277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
23278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23279 if (!SWIG_IsOK(res1)) {
23280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
23281 }
23282 arg1 = reinterpret_cast< wxDC * >(argp1);
23283 {
23284 arg2 = &temp2;
23285 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23286 }
23287 {
23288 PyThreadState* __tstate = wxPyBeginAllowThreads();
23289 (arg1)->SetTextForeground((wxColour const &)*arg2);
23290 wxPyEndAllowThreads(__tstate);
23291 if (PyErr_Occurred()) SWIG_fail;
23292 }
23293 resultobj = SWIG_Py_Void();
23294 return resultobj;
23295 fail:
23296 return NULL;
23297 }
23298
23299
23300 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23301 PyObject *resultobj = 0;
23302 wxDC *arg1 = (wxDC *) 0 ;
23303 wxColour *arg2 = 0 ;
23304 void *argp1 = 0 ;
23305 int res1 = 0 ;
23306 wxColour temp2 ;
23307 PyObject * obj0 = 0 ;
23308 PyObject * obj1 = 0 ;
23309 char * kwnames[] = {
23310 (char *) "self",(char *) "colour", NULL
23311 };
23312
23313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
23314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23315 if (!SWIG_IsOK(res1)) {
23316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
23317 }
23318 arg1 = reinterpret_cast< wxDC * >(argp1);
23319 {
23320 arg2 = &temp2;
23321 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23322 }
23323 {
23324 PyThreadState* __tstate = wxPyBeginAllowThreads();
23325 (arg1)->SetTextBackground((wxColour const &)*arg2);
23326 wxPyEndAllowThreads(__tstate);
23327 if (PyErr_Occurred()) SWIG_fail;
23328 }
23329 resultobj = SWIG_Py_Void();
23330 return resultobj;
23331 fail:
23332 return NULL;
23333 }
23334
23335
23336 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23337 PyObject *resultobj = 0;
23338 wxDC *arg1 = (wxDC *) 0 ;
23339 int result;
23340 void *argp1 = 0 ;
23341 int res1 = 0 ;
23342 PyObject *swig_obj[1] ;
23343
23344 if (!args) SWIG_fail;
23345 swig_obj[0] = args;
23346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23347 if (!SWIG_IsOK(res1)) {
23348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
23349 }
23350 arg1 = reinterpret_cast< wxDC * >(argp1);
23351 {
23352 PyThreadState* __tstate = wxPyBeginAllowThreads();
23353 result = (int)((wxDC const *)arg1)->GetMapMode();
23354 wxPyEndAllowThreads(__tstate);
23355 if (PyErr_Occurred()) SWIG_fail;
23356 }
23357 resultobj = SWIG_From_int(static_cast< int >(result));
23358 return resultobj;
23359 fail:
23360 return NULL;
23361 }
23362
23363
23364 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23365 PyObject *resultobj = 0;
23366 wxDC *arg1 = (wxDC *) 0 ;
23367 int arg2 ;
23368 void *argp1 = 0 ;
23369 int res1 = 0 ;
23370 int val2 ;
23371 int ecode2 = 0 ;
23372 PyObject * obj0 = 0 ;
23373 PyObject * obj1 = 0 ;
23374 char * kwnames[] = {
23375 (char *) "self",(char *) "mode", NULL
23376 };
23377
23378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
23379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23380 if (!SWIG_IsOK(res1)) {
23381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
23382 }
23383 arg1 = reinterpret_cast< wxDC * >(argp1);
23384 ecode2 = SWIG_AsVal_int(obj1, &val2);
23385 if (!SWIG_IsOK(ecode2)) {
23386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
23387 }
23388 arg2 = static_cast< int >(val2);
23389 {
23390 PyThreadState* __tstate = wxPyBeginAllowThreads();
23391 (arg1)->SetMapMode(arg2);
23392 wxPyEndAllowThreads(__tstate);
23393 if (PyErr_Occurred()) SWIG_fail;
23394 }
23395 resultobj = SWIG_Py_Void();
23396 return resultobj;
23397 fail:
23398 return NULL;
23399 }
23400
23401
23402 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23403 PyObject *resultobj = 0;
23404 wxDC *arg1 = (wxDC *) 0 ;
23405 double *arg2 = (double *) 0 ;
23406 double *arg3 = (double *) 0 ;
23407 void *argp1 = 0 ;
23408 int res1 = 0 ;
23409 double temp2 ;
23410 int res2 = SWIG_TMPOBJ ;
23411 double temp3 ;
23412 int res3 = SWIG_TMPOBJ ;
23413 PyObject *swig_obj[1] ;
23414
23415 arg2 = &temp2;
23416 arg3 = &temp3;
23417 if (!args) SWIG_fail;
23418 swig_obj[0] = args;
23419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23420 if (!SWIG_IsOK(res1)) {
23421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
23422 }
23423 arg1 = reinterpret_cast< wxDC * >(argp1);
23424 {
23425 PyThreadState* __tstate = wxPyBeginAllowThreads();
23426 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
23427 wxPyEndAllowThreads(__tstate);
23428 if (PyErr_Occurred()) SWIG_fail;
23429 }
23430 resultobj = SWIG_Py_Void();
23431 if (SWIG_IsTmpObj(res2)) {
23432 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
23433 } else {
23434 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23435 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
23436 }
23437 if (SWIG_IsTmpObj(res3)) {
23438 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
23439 } else {
23440 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23441 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
23442 }
23443 return resultobj;
23444 fail:
23445 return NULL;
23446 }
23447
23448
23449 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23450 PyObject *resultobj = 0;
23451 wxDC *arg1 = (wxDC *) 0 ;
23452 double arg2 ;
23453 double arg3 ;
23454 void *argp1 = 0 ;
23455 int res1 = 0 ;
23456 double val2 ;
23457 int ecode2 = 0 ;
23458 double val3 ;
23459 int ecode3 = 0 ;
23460 PyObject * obj0 = 0 ;
23461 PyObject * obj1 = 0 ;
23462 PyObject * obj2 = 0 ;
23463 char * kwnames[] = {
23464 (char *) "self",(char *) "x",(char *) "y", NULL
23465 };
23466
23467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23469 if (!SWIG_IsOK(res1)) {
23470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
23471 }
23472 arg1 = reinterpret_cast< wxDC * >(argp1);
23473 ecode2 = SWIG_AsVal_double(obj1, &val2);
23474 if (!SWIG_IsOK(ecode2)) {
23475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
23476 }
23477 arg2 = static_cast< double >(val2);
23478 ecode3 = SWIG_AsVal_double(obj2, &val3);
23479 if (!SWIG_IsOK(ecode3)) {
23480 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
23481 }
23482 arg3 = static_cast< double >(val3);
23483 {
23484 PyThreadState* __tstate = wxPyBeginAllowThreads();
23485 (arg1)->SetUserScale(arg2,arg3);
23486 wxPyEndAllowThreads(__tstate);
23487 if (PyErr_Occurred()) SWIG_fail;
23488 }
23489 resultobj = SWIG_Py_Void();
23490 return resultobj;
23491 fail:
23492 return NULL;
23493 }
23494
23495
23496 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23497 PyObject *resultobj = 0;
23498 wxDC *arg1 = (wxDC *) 0 ;
23499 double *arg2 = (double *) 0 ;
23500 double *arg3 = (double *) 0 ;
23501 void *argp1 = 0 ;
23502 int res1 = 0 ;
23503 double temp2 ;
23504 int res2 = SWIG_TMPOBJ ;
23505 double temp3 ;
23506 int res3 = SWIG_TMPOBJ ;
23507 PyObject *swig_obj[1] ;
23508
23509 arg2 = &temp2;
23510 arg3 = &temp3;
23511 if (!args) SWIG_fail;
23512 swig_obj[0] = args;
23513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23514 if (!SWIG_IsOK(res1)) {
23515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23516 }
23517 arg1 = reinterpret_cast< wxDC * >(argp1);
23518 {
23519 PyThreadState* __tstate = wxPyBeginAllowThreads();
23520 (arg1)->GetLogicalScale(arg2,arg3);
23521 wxPyEndAllowThreads(__tstate);
23522 if (PyErr_Occurred()) SWIG_fail;
23523 }
23524 resultobj = SWIG_Py_Void();
23525 if (SWIG_IsTmpObj(res2)) {
23526 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
23527 } else {
23528 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23529 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
23530 }
23531 if (SWIG_IsTmpObj(res3)) {
23532 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
23533 } else {
23534 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23535 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
23536 }
23537 return resultobj;
23538 fail:
23539 return NULL;
23540 }
23541
23542
23543 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23544 PyObject *resultobj = 0;
23545 wxDC *arg1 = (wxDC *) 0 ;
23546 double arg2 ;
23547 double arg3 ;
23548 void *argp1 = 0 ;
23549 int res1 = 0 ;
23550 double val2 ;
23551 int ecode2 = 0 ;
23552 double val3 ;
23553 int ecode3 = 0 ;
23554 PyObject * obj0 = 0 ;
23555 PyObject * obj1 = 0 ;
23556 PyObject * obj2 = 0 ;
23557 char * kwnames[] = {
23558 (char *) "self",(char *) "x",(char *) "y", NULL
23559 };
23560
23561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23563 if (!SWIG_IsOK(res1)) {
23564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23565 }
23566 arg1 = reinterpret_cast< wxDC * >(argp1);
23567 ecode2 = SWIG_AsVal_double(obj1, &val2);
23568 if (!SWIG_IsOK(ecode2)) {
23569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
23570 }
23571 arg2 = static_cast< double >(val2);
23572 ecode3 = SWIG_AsVal_double(obj2, &val3);
23573 if (!SWIG_IsOK(ecode3)) {
23574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
23575 }
23576 arg3 = static_cast< double >(val3);
23577 {
23578 PyThreadState* __tstate = wxPyBeginAllowThreads();
23579 (arg1)->SetLogicalScale(arg2,arg3);
23580 wxPyEndAllowThreads(__tstate);
23581 if (PyErr_Occurred()) SWIG_fail;
23582 }
23583 resultobj = SWIG_Py_Void();
23584 return resultobj;
23585 fail:
23586 return NULL;
23587 }
23588
23589
23590 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23591 PyObject *resultobj = 0;
23592 wxDC *arg1 = (wxDC *) 0 ;
23593 wxPoint result;
23594 void *argp1 = 0 ;
23595 int res1 = 0 ;
23596 PyObject *swig_obj[1] ;
23597
23598 if (!args) SWIG_fail;
23599 swig_obj[0] = args;
23600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23601 if (!SWIG_IsOK(res1)) {
23602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23603 }
23604 arg1 = reinterpret_cast< wxDC * >(argp1);
23605 {
23606 PyThreadState* __tstate = wxPyBeginAllowThreads();
23607 result = ((wxDC const *)arg1)->GetLogicalOrigin();
23608 wxPyEndAllowThreads(__tstate);
23609 if (PyErr_Occurred()) SWIG_fail;
23610 }
23611 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23612 return resultobj;
23613 fail:
23614 return NULL;
23615 }
23616
23617
23618 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23619 PyObject *resultobj = 0;
23620 wxDC *arg1 = (wxDC *) 0 ;
23621 int *arg2 = (int *) 0 ;
23622 int *arg3 = (int *) 0 ;
23623 void *argp1 = 0 ;
23624 int res1 = 0 ;
23625 int temp2 ;
23626 int res2 = SWIG_TMPOBJ ;
23627 int temp3 ;
23628 int res3 = SWIG_TMPOBJ ;
23629 PyObject *swig_obj[1] ;
23630
23631 arg2 = &temp2;
23632 arg3 = &temp3;
23633 if (!args) SWIG_fail;
23634 swig_obj[0] = args;
23635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23636 if (!SWIG_IsOK(res1)) {
23637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23638 }
23639 arg1 = reinterpret_cast< wxDC * >(argp1);
23640 {
23641 PyThreadState* __tstate = wxPyBeginAllowThreads();
23642 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
23643 wxPyEndAllowThreads(__tstate);
23644 if (PyErr_Occurred()) SWIG_fail;
23645 }
23646 resultobj = SWIG_Py_Void();
23647 if (SWIG_IsTmpObj(res2)) {
23648 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23649 } else {
23650 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23651 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23652 }
23653 if (SWIG_IsTmpObj(res3)) {
23654 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23655 } else {
23656 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23657 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23658 }
23659 return resultobj;
23660 fail:
23661 return NULL;
23662 }
23663
23664
23665 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23666 PyObject *resultobj = 0;
23667 wxDC *arg1 = (wxDC *) 0 ;
23668 int arg2 ;
23669 int arg3 ;
23670 void *argp1 = 0 ;
23671 int res1 = 0 ;
23672 int val2 ;
23673 int ecode2 = 0 ;
23674 int val3 ;
23675 int ecode3 = 0 ;
23676 PyObject * obj0 = 0 ;
23677 PyObject * obj1 = 0 ;
23678 PyObject * obj2 = 0 ;
23679 char * kwnames[] = {
23680 (char *) "self",(char *) "x",(char *) "y", NULL
23681 };
23682
23683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23685 if (!SWIG_IsOK(res1)) {
23686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23687 }
23688 arg1 = reinterpret_cast< wxDC * >(argp1);
23689 ecode2 = SWIG_AsVal_int(obj1, &val2);
23690 if (!SWIG_IsOK(ecode2)) {
23691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23692 }
23693 arg2 = static_cast< int >(val2);
23694 ecode3 = SWIG_AsVal_int(obj2, &val3);
23695 if (!SWIG_IsOK(ecode3)) {
23696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23697 }
23698 arg3 = static_cast< int >(val3);
23699 {
23700 PyThreadState* __tstate = wxPyBeginAllowThreads();
23701 (arg1)->SetLogicalOrigin(arg2,arg3);
23702 wxPyEndAllowThreads(__tstate);
23703 if (PyErr_Occurred()) SWIG_fail;
23704 }
23705 resultobj = SWIG_Py_Void();
23706 return resultobj;
23707 fail:
23708 return NULL;
23709 }
23710
23711
23712 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23713 PyObject *resultobj = 0;
23714 wxDC *arg1 = (wxDC *) 0 ;
23715 wxPoint *arg2 = 0 ;
23716 void *argp1 = 0 ;
23717 int res1 = 0 ;
23718 wxPoint temp2 ;
23719 PyObject * obj0 = 0 ;
23720 PyObject * obj1 = 0 ;
23721 char * kwnames[] = {
23722 (char *) "self",(char *) "point", NULL
23723 };
23724
23725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23727 if (!SWIG_IsOK(res1)) {
23728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23729 }
23730 arg1 = reinterpret_cast< wxDC * >(argp1);
23731 {
23732 arg2 = &temp2;
23733 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23734 }
23735 {
23736 PyThreadState* __tstate = wxPyBeginAllowThreads();
23737 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23738 wxPyEndAllowThreads(__tstate);
23739 if (PyErr_Occurred()) SWIG_fail;
23740 }
23741 resultobj = SWIG_Py_Void();
23742 return resultobj;
23743 fail:
23744 return NULL;
23745 }
23746
23747
23748 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23749 PyObject *resultobj = 0;
23750 wxDC *arg1 = (wxDC *) 0 ;
23751 wxPoint result;
23752 void *argp1 = 0 ;
23753 int res1 = 0 ;
23754 PyObject *swig_obj[1] ;
23755
23756 if (!args) SWIG_fail;
23757 swig_obj[0] = args;
23758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23759 if (!SWIG_IsOK(res1)) {
23760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23761 }
23762 arg1 = reinterpret_cast< wxDC * >(argp1);
23763 {
23764 PyThreadState* __tstate = wxPyBeginAllowThreads();
23765 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23766 wxPyEndAllowThreads(__tstate);
23767 if (PyErr_Occurred()) SWIG_fail;
23768 }
23769 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23770 return resultobj;
23771 fail:
23772 return NULL;
23773 }
23774
23775
23776 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23777 PyObject *resultobj = 0;
23778 wxDC *arg1 = (wxDC *) 0 ;
23779 int *arg2 = (int *) 0 ;
23780 int *arg3 = (int *) 0 ;
23781 void *argp1 = 0 ;
23782 int res1 = 0 ;
23783 int temp2 ;
23784 int res2 = SWIG_TMPOBJ ;
23785 int temp3 ;
23786 int res3 = SWIG_TMPOBJ ;
23787 PyObject *swig_obj[1] ;
23788
23789 arg2 = &temp2;
23790 arg3 = &temp3;
23791 if (!args) SWIG_fail;
23792 swig_obj[0] = args;
23793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23794 if (!SWIG_IsOK(res1)) {
23795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23796 }
23797 arg1 = reinterpret_cast< wxDC * >(argp1);
23798 {
23799 PyThreadState* __tstate = wxPyBeginAllowThreads();
23800 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23801 wxPyEndAllowThreads(__tstate);
23802 if (PyErr_Occurred()) SWIG_fail;
23803 }
23804 resultobj = SWIG_Py_Void();
23805 if (SWIG_IsTmpObj(res2)) {
23806 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23807 } else {
23808 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23809 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23810 }
23811 if (SWIG_IsTmpObj(res3)) {
23812 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23813 } else {
23814 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23815 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23816 }
23817 return resultobj;
23818 fail:
23819 return NULL;
23820 }
23821
23822
23823 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23824 PyObject *resultobj = 0;
23825 wxDC *arg1 = (wxDC *) 0 ;
23826 int arg2 ;
23827 int arg3 ;
23828 void *argp1 = 0 ;
23829 int res1 = 0 ;
23830 int val2 ;
23831 int ecode2 = 0 ;
23832 int val3 ;
23833 int ecode3 = 0 ;
23834 PyObject * obj0 = 0 ;
23835 PyObject * obj1 = 0 ;
23836 PyObject * obj2 = 0 ;
23837 char * kwnames[] = {
23838 (char *) "self",(char *) "x",(char *) "y", NULL
23839 };
23840
23841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23843 if (!SWIG_IsOK(res1)) {
23844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23845 }
23846 arg1 = reinterpret_cast< wxDC * >(argp1);
23847 ecode2 = SWIG_AsVal_int(obj1, &val2);
23848 if (!SWIG_IsOK(ecode2)) {
23849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23850 }
23851 arg2 = static_cast< int >(val2);
23852 ecode3 = SWIG_AsVal_int(obj2, &val3);
23853 if (!SWIG_IsOK(ecode3)) {
23854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23855 }
23856 arg3 = static_cast< int >(val3);
23857 {
23858 PyThreadState* __tstate = wxPyBeginAllowThreads();
23859 (arg1)->SetDeviceOrigin(arg2,arg3);
23860 wxPyEndAllowThreads(__tstate);
23861 if (PyErr_Occurred()) SWIG_fail;
23862 }
23863 resultobj = SWIG_Py_Void();
23864 return resultobj;
23865 fail:
23866 return NULL;
23867 }
23868
23869
23870 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23871 PyObject *resultobj = 0;
23872 wxDC *arg1 = (wxDC *) 0 ;
23873 wxPoint *arg2 = 0 ;
23874 void *argp1 = 0 ;
23875 int res1 = 0 ;
23876 wxPoint temp2 ;
23877 PyObject * obj0 = 0 ;
23878 PyObject * obj1 = 0 ;
23879 char * kwnames[] = {
23880 (char *) "self",(char *) "point", NULL
23881 };
23882
23883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23885 if (!SWIG_IsOK(res1)) {
23886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23887 }
23888 arg1 = reinterpret_cast< wxDC * >(argp1);
23889 {
23890 arg2 = &temp2;
23891 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23892 }
23893 {
23894 PyThreadState* __tstate = wxPyBeginAllowThreads();
23895 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23896 wxPyEndAllowThreads(__tstate);
23897 if (PyErr_Occurred()) SWIG_fail;
23898 }
23899 resultobj = SWIG_Py_Void();
23900 return resultobj;
23901 fail:
23902 return NULL;
23903 }
23904
23905
23906 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23907 PyObject *resultobj = 0;
23908 wxDC *arg1 = (wxDC *) 0 ;
23909 bool arg2 ;
23910 bool arg3 ;
23911 void *argp1 = 0 ;
23912 int res1 = 0 ;
23913 bool val2 ;
23914 int ecode2 = 0 ;
23915 bool val3 ;
23916 int ecode3 = 0 ;
23917 PyObject * obj0 = 0 ;
23918 PyObject * obj1 = 0 ;
23919 PyObject * obj2 = 0 ;
23920 char * kwnames[] = {
23921 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23922 };
23923
23924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23926 if (!SWIG_IsOK(res1)) {
23927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23928 }
23929 arg1 = reinterpret_cast< wxDC * >(argp1);
23930 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23931 if (!SWIG_IsOK(ecode2)) {
23932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23933 }
23934 arg2 = static_cast< bool >(val2);
23935 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23936 if (!SWIG_IsOK(ecode3)) {
23937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23938 }
23939 arg3 = static_cast< bool >(val3);
23940 {
23941 PyThreadState* __tstate = wxPyBeginAllowThreads();
23942 (arg1)->SetAxisOrientation(arg2,arg3);
23943 wxPyEndAllowThreads(__tstate);
23944 if (PyErr_Occurred()) SWIG_fail;
23945 }
23946 resultobj = SWIG_Py_Void();
23947 return resultobj;
23948 fail:
23949 return NULL;
23950 }
23951
23952
23953 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23954 PyObject *resultobj = 0;
23955 wxDC *arg1 = (wxDC *) 0 ;
23956 int result;
23957 void *argp1 = 0 ;
23958 int res1 = 0 ;
23959 PyObject *swig_obj[1] ;
23960
23961 if (!args) SWIG_fail;
23962 swig_obj[0] = args;
23963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23964 if (!SWIG_IsOK(res1)) {
23965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23966 }
23967 arg1 = reinterpret_cast< wxDC * >(argp1);
23968 {
23969 PyThreadState* __tstate = wxPyBeginAllowThreads();
23970 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23971 wxPyEndAllowThreads(__tstate);
23972 if (PyErr_Occurred()) SWIG_fail;
23973 }
23974 resultobj = SWIG_From_int(static_cast< int >(result));
23975 return resultobj;
23976 fail:
23977 return NULL;
23978 }
23979
23980
23981 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23982 PyObject *resultobj = 0;
23983 wxDC *arg1 = (wxDC *) 0 ;
23984 int arg2 ;
23985 void *argp1 = 0 ;
23986 int res1 = 0 ;
23987 int val2 ;
23988 int ecode2 = 0 ;
23989 PyObject * obj0 = 0 ;
23990 PyObject * obj1 = 0 ;
23991 char * kwnames[] = {
23992 (char *) "self",(char *) "function", NULL
23993 };
23994
23995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23997 if (!SWIG_IsOK(res1)) {
23998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23999 }
24000 arg1 = reinterpret_cast< wxDC * >(argp1);
24001 ecode2 = SWIG_AsVal_int(obj1, &val2);
24002 if (!SWIG_IsOK(ecode2)) {
24003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
24004 }
24005 arg2 = static_cast< int >(val2);
24006 {
24007 PyThreadState* __tstate = wxPyBeginAllowThreads();
24008 (arg1)->SetLogicalFunction(arg2);
24009 wxPyEndAllowThreads(__tstate);
24010 if (PyErr_Occurred()) SWIG_fail;
24011 }
24012 resultobj = SWIG_Py_Void();
24013 return resultobj;
24014 fail:
24015 return NULL;
24016 }
24017
24018
24019 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24020 PyObject *resultobj = 0;
24021 wxDC *arg1 = (wxDC *) 0 ;
24022 void *argp1 = 0 ;
24023 int res1 = 0 ;
24024 PyObject *swig_obj[1] ;
24025
24026 if (!args) SWIG_fail;
24027 swig_obj[0] = args;
24028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24029 if (!SWIG_IsOK(res1)) {
24030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
24031 }
24032 arg1 = reinterpret_cast< wxDC * >(argp1);
24033 {
24034 PyThreadState* __tstate = wxPyBeginAllowThreads();
24035 (arg1)->ComputeScaleAndOrigin();
24036 wxPyEndAllowThreads(__tstate);
24037 if (PyErr_Occurred()) SWIG_fail;
24038 }
24039 resultobj = SWIG_Py_Void();
24040 return resultobj;
24041 fail:
24042 return NULL;
24043 }
24044
24045
24046 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24047 PyObject *resultobj = 0;
24048 wxDC *arg1 = (wxDC *) 0 ;
24049 int arg2 ;
24050 int arg3 ;
24051 void *argp1 = 0 ;
24052 int res1 = 0 ;
24053 int val2 ;
24054 int ecode2 = 0 ;
24055 int val3 ;
24056 int ecode3 = 0 ;
24057 PyObject * obj0 = 0 ;
24058 PyObject * obj1 = 0 ;
24059 PyObject * obj2 = 0 ;
24060 char * kwnames[] = {
24061 (char *) "self",(char *) "x",(char *) "y", NULL
24062 };
24063
24064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24066 if (!SWIG_IsOK(res1)) {
24067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
24068 }
24069 arg1 = reinterpret_cast< wxDC * >(argp1);
24070 ecode2 = SWIG_AsVal_int(obj1, &val2);
24071 if (!SWIG_IsOK(ecode2)) {
24072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
24073 }
24074 arg2 = static_cast< int >(val2);
24075 ecode3 = SWIG_AsVal_int(obj2, &val3);
24076 if (!SWIG_IsOK(ecode3)) {
24077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
24078 }
24079 arg3 = static_cast< int >(val3);
24080 {
24081 PyThreadState* __tstate = wxPyBeginAllowThreads();
24082 (arg1)->CalcBoundingBox(arg2,arg3);
24083 wxPyEndAllowThreads(__tstate);
24084 if (PyErr_Occurred()) SWIG_fail;
24085 }
24086 resultobj = SWIG_Py_Void();
24087 return resultobj;
24088 fail:
24089 return NULL;
24090 }
24091
24092
24093 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24094 PyObject *resultobj = 0;
24095 wxDC *arg1 = (wxDC *) 0 ;
24096 wxPoint *arg2 = 0 ;
24097 void *argp1 = 0 ;
24098 int res1 = 0 ;
24099 wxPoint temp2 ;
24100 PyObject * obj0 = 0 ;
24101 PyObject * obj1 = 0 ;
24102 char * kwnames[] = {
24103 (char *) "self",(char *) "point", NULL
24104 };
24105
24106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
24107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24108 if (!SWIG_IsOK(res1)) {
24109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
24110 }
24111 arg1 = reinterpret_cast< wxDC * >(argp1);
24112 {
24113 arg2 = &temp2;
24114 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24115 }
24116 {
24117 PyThreadState* __tstate = wxPyBeginAllowThreads();
24118 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
24119 wxPyEndAllowThreads(__tstate);
24120 if (PyErr_Occurred()) SWIG_fail;
24121 }
24122 resultobj = SWIG_Py_Void();
24123 return resultobj;
24124 fail:
24125 return NULL;
24126 }
24127
24128
24129 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24130 PyObject *resultobj = 0;
24131 wxDC *arg1 = (wxDC *) 0 ;
24132 void *argp1 = 0 ;
24133 int res1 = 0 ;
24134 PyObject *swig_obj[1] ;
24135
24136 if (!args) SWIG_fail;
24137 swig_obj[0] = args;
24138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24139 if (!SWIG_IsOK(res1)) {
24140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
24141 }
24142 arg1 = reinterpret_cast< wxDC * >(argp1);
24143 {
24144 PyThreadState* __tstate = wxPyBeginAllowThreads();
24145 (arg1)->ResetBoundingBox();
24146 wxPyEndAllowThreads(__tstate);
24147 if (PyErr_Occurred()) SWIG_fail;
24148 }
24149 resultobj = SWIG_Py_Void();
24150 return resultobj;
24151 fail:
24152 return NULL;
24153 }
24154
24155
24156 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24157 PyObject *resultobj = 0;
24158 wxDC *arg1 = (wxDC *) 0 ;
24159 int result;
24160 void *argp1 = 0 ;
24161 int res1 = 0 ;
24162 PyObject *swig_obj[1] ;
24163
24164 if (!args) SWIG_fail;
24165 swig_obj[0] = args;
24166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24167 if (!SWIG_IsOK(res1)) {
24168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
24169 }
24170 arg1 = reinterpret_cast< wxDC * >(argp1);
24171 {
24172 PyThreadState* __tstate = wxPyBeginAllowThreads();
24173 result = (int)((wxDC const *)arg1)->MinX();
24174 wxPyEndAllowThreads(__tstate);
24175 if (PyErr_Occurred()) SWIG_fail;
24176 }
24177 resultobj = SWIG_From_int(static_cast< int >(result));
24178 return resultobj;
24179 fail:
24180 return NULL;
24181 }
24182
24183
24184 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24185 PyObject *resultobj = 0;
24186 wxDC *arg1 = (wxDC *) 0 ;
24187 int result;
24188 void *argp1 = 0 ;
24189 int res1 = 0 ;
24190 PyObject *swig_obj[1] ;
24191
24192 if (!args) SWIG_fail;
24193 swig_obj[0] = args;
24194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24195 if (!SWIG_IsOK(res1)) {
24196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
24197 }
24198 arg1 = reinterpret_cast< wxDC * >(argp1);
24199 {
24200 PyThreadState* __tstate = wxPyBeginAllowThreads();
24201 result = (int)((wxDC const *)arg1)->MaxX();
24202 wxPyEndAllowThreads(__tstate);
24203 if (PyErr_Occurred()) SWIG_fail;
24204 }
24205 resultobj = SWIG_From_int(static_cast< int >(result));
24206 return resultobj;
24207 fail:
24208 return NULL;
24209 }
24210
24211
24212 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24213 PyObject *resultobj = 0;
24214 wxDC *arg1 = (wxDC *) 0 ;
24215 int result;
24216 void *argp1 = 0 ;
24217 int res1 = 0 ;
24218 PyObject *swig_obj[1] ;
24219
24220 if (!args) SWIG_fail;
24221 swig_obj[0] = args;
24222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24223 if (!SWIG_IsOK(res1)) {
24224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
24225 }
24226 arg1 = reinterpret_cast< wxDC * >(argp1);
24227 {
24228 PyThreadState* __tstate = wxPyBeginAllowThreads();
24229 result = (int)((wxDC const *)arg1)->MinY();
24230 wxPyEndAllowThreads(__tstate);
24231 if (PyErr_Occurred()) SWIG_fail;
24232 }
24233 resultobj = SWIG_From_int(static_cast< int >(result));
24234 return resultobj;
24235 fail:
24236 return NULL;
24237 }
24238
24239
24240 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24241 PyObject *resultobj = 0;
24242 wxDC *arg1 = (wxDC *) 0 ;
24243 int result;
24244 void *argp1 = 0 ;
24245 int res1 = 0 ;
24246 PyObject *swig_obj[1] ;
24247
24248 if (!args) SWIG_fail;
24249 swig_obj[0] = args;
24250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24251 if (!SWIG_IsOK(res1)) {
24252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
24253 }
24254 arg1 = reinterpret_cast< wxDC * >(argp1);
24255 {
24256 PyThreadState* __tstate = wxPyBeginAllowThreads();
24257 result = (int)((wxDC const *)arg1)->MaxY();
24258 wxPyEndAllowThreads(__tstate);
24259 if (PyErr_Occurred()) SWIG_fail;
24260 }
24261 resultobj = SWIG_From_int(static_cast< int >(result));
24262 return resultobj;
24263 fail:
24264 return NULL;
24265 }
24266
24267
24268 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24269 PyObject *resultobj = 0;
24270 wxDC *arg1 = (wxDC *) 0 ;
24271 int *arg2 = (int *) 0 ;
24272 int *arg3 = (int *) 0 ;
24273 int *arg4 = (int *) 0 ;
24274 int *arg5 = (int *) 0 ;
24275 void *argp1 = 0 ;
24276 int res1 = 0 ;
24277 int temp2 ;
24278 int res2 = SWIG_TMPOBJ ;
24279 int temp3 ;
24280 int res3 = SWIG_TMPOBJ ;
24281 int temp4 ;
24282 int res4 = SWIG_TMPOBJ ;
24283 int temp5 ;
24284 int res5 = SWIG_TMPOBJ ;
24285 PyObject *swig_obj[1] ;
24286
24287 arg2 = &temp2;
24288 arg3 = &temp3;
24289 arg4 = &temp4;
24290 arg5 = &temp5;
24291 if (!args) SWIG_fail;
24292 swig_obj[0] = args;
24293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24294 if (!SWIG_IsOK(res1)) {
24295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
24296 }
24297 arg1 = reinterpret_cast< wxDC * >(argp1);
24298 {
24299 PyThreadState* __tstate = wxPyBeginAllowThreads();
24300 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
24301 wxPyEndAllowThreads(__tstate);
24302 if (PyErr_Occurred()) SWIG_fail;
24303 }
24304 resultobj = SWIG_Py_Void();
24305 if (SWIG_IsTmpObj(res2)) {
24306 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
24307 } else {
24308 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24309 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
24310 }
24311 if (SWIG_IsTmpObj(res3)) {
24312 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
24313 } else {
24314 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24315 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
24316 }
24317 if (SWIG_IsTmpObj(res4)) {
24318 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
24319 } else {
24320 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24321 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
24322 }
24323 if (SWIG_IsTmpObj(res5)) {
24324 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
24325 } else {
24326 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24327 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
24328 }
24329 return resultobj;
24330 fail:
24331 return NULL;
24332 }
24333
24334
24335 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24336 PyObject *resultobj = 0;
24337 wxDC *arg1 = (wxDC *) 0 ;
24338 wxLayoutDirection result;
24339 void *argp1 = 0 ;
24340 int res1 = 0 ;
24341 PyObject *swig_obj[1] ;
24342
24343 if (!args) SWIG_fail;
24344 swig_obj[0] = args;
24345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24346 if (!SWIG_IsOK(res1)) {
24347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
24348 }
24349 arg1 = reinterpret_cast< wxDC * >(argp1);
24350 {
24351 PyThreadState* __tstate = wxPyBeginAllowThreads();
24352 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
24353 wxPyEndAllowThreads(__tstate);
24354 if (PyErr_Occurred()) SWIG_fail;
24355 }
24356 resultobj = SWIG_From_int(static_cast< int >(result));
24357 return resultobj;
24358 fail:
24359 return NULL;
24360 }
24361
24362
24363 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24364 PyObject *resultobj = 0;
24365 wxDC *arg1 = (wxDC *) 0 ;
24366 wxLayoutDirection arg2 ;
24367 void *argp1 = 0 ;
24368 int res1 = 0 ;
24369 int val2 ;
24370 int ecode2 = 0 ;
24371 PyObject * obj0 = 0 ;
24372 PyObject * obj1 = 0 ;
24373 char * kwnames[] = {
24374 (char *) "self",(char *) "dir", NULL
24375 };
24376
24377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
24378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24379 if (!SWIG_IsOK(res1)) {
24380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
24381 }
24382 arg1 = reinterpret_cast< wxDC * >(argp1);
24383 ecode2 = SWIG_AsVal_int(obj1, &val2);
24384 if (!SWIG_IsOK(ecode2)) {
24385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
24386 }
24387 arg2 = static_cast< wxLayoutDirection >(val2);
24388 {
24389 PyThreadState* __tstate = wxPyBeginAllowThreads();
24390 (arg1)->SetLayoutDirection(arg2);
24391 wxPyEndAllowThreads(__tstate);
24392 if (PyErr_Occurred()) SWIG_fail;
24393 }
24394 resultobj = SWIG_Py_Void();
24395 return resultobj;
24396 fail:
24397 return NULL;
24398 }
24399
24400
24401 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24402 PyObject *resultobj = 0;
24403 wxDC *arg1 = (wxDC *) 0 ;
24404 long result;
24405 void *argp1 = 0 ;
24406 int res1 = 0 ;
24407 PyObject *swig_obj[1] ;
24408
24409 if (!args) SWIG_fail;
24410 swig_obj[0] = args;
24411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24412 if (!SWIG_IsOK(res1)) {
24413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
24414 }
24415 arg1 = reinterpret_cast< wxDC * >(argp1);
24416 {
24417 PyThreadState* __tstate = wxPyBeginAllowThreads();
24418 result = (long)(arg1)->GetHDC();
24419 wxPyEndAllowThreads(__tstate);
24420 if (PyErr_Occurred()) SWIG_fail;
24421 }
24422 resultobj = SWIG_From_long(static_cast< long >(result));
24423 return resultobj;
24424 fail:
24425 return NULL;
24426 }
24427
24428
24429 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24430 PyObject *resultobj = 0;
24431 wxDC *arg1 = (wxDC *) 0 ;
24432 PyObject *arg2 = (PyObject *) 0 ;
24433 PyObject *arg3 = (PyObject *) 0 ;
24434 PyObject *arg4 = (PyObject *) 0 ;
24435 PyObject *result = 0 ;
24436 void *argp1 = 0 ;
24437 int res1 = 0 ;
24438 PyObject * obj0 = 0 ;
24439 PyObject * obj1 = 0 ;
24440 PyObject * obj2 = 0 ;
24441 PyObject * obj3 = 0 ;
24442 char * kwnames[] = {
24443 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24444 };
24445
24446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24448 if (!SWIG_IsOK(res1)) {
24449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
24450 }
24451 arg1 = reinterpret_cast< wxDC * >(argp1);
24452 arg2 = obj1;
24453 arg3 = obj2;
24454 arg4 = obj3;
24455 {
24456 PyThreadState* __tstate = wxPyBeginAllowThreads();
24457 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
24458 wxPyEndAllowThreads(__tstate);
24459 if (PyErr_Occurred()) SWIG_fail;
24460 }
24461 resultobj = result;
24462 return resultobj;
24463 fail:
24464 return NULL;
24465 }
24466
24467
24468 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24469 PyObject *resultobj = 0;
24470 wxDC *arg1 = (wxDC *) 0 ;
24471 PyObject *arg2 = (PyObject *) 0 ;
24472 PyObject *arg3 = (PyObject *) 0 ;
24473 PyObject *arg4 = (PyObject *) 0 ;
24474 PyObject *result = 0 ;
24475 void *argp1 = 0 ;
24476 int res1 = 0 ;
24477 PyObject * obj0 = 0 ;
24478 PyObject * obj1 = 0 ;
24479 PyObject * obj2 = 0 ;
24480 PyObject * obj3 = 0 ;
24481 char * kwnames[] = {
24482 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24483 };
24484
24485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24487 if (!SWIG_IsOK(res1)) {
24488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
24489 }
24490 arg1 = reinterpret_cast< wxDC * >(argp1);
24491 arg2 = obj1;
24492 arg3 = obj2;
24493 arg4 = obj3;
24494 {
24495 PyThreadState* __tstate = wxPyBeginAllowThreads();
24496 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
24497 wxPyEndAllowThreads(__tstate);
24498 if (PyErr_Occurred()) SWIG_fail;
24499 }
24500 resultobj = result;
24501 return resultobj;
24502 fail:
24503 return NULL;
24504 }
24505
24506
24507 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24508 PyObject *resultobj = 0;
24509 wxDC *arg1 = (wxDC *) 0 ;
24510 PyObject *arg2 = (PyObject *) 0 ;
24511 PyObject *arg3 = (PyObject *) 0 ;
24512 PyObject *arg4 = (PyObject *) 0 ;
24513 PyObject *result = 0 ;
24514 void *argp1 = 0 ;
24515 int res1 = 0 ;
24516 PyObject * obj0 = 0 ;
24517 PyObject * obj1 = 0 ;
24518 PyObject * obj2 = 0 ;
24519 PyObject * obj3 = 0 ;
24520 char * kwnames[] = {
24521 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24522 };
24523
24524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24526 if (!SWIG_IsOK(res1)) {
24527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
24528 }
24529 arg1 = reinterpret_cast< wxDC * >(argp1);
24530 arg2 = obj1;
24531 arg3 = obj2;
24532 arg4 = obj3;
24533 {
24534 PyThreadState* __tstate = wxPyBeginAllowThreads();
24535 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
24536 wxPyEndAllowThreads(__tstate);
24537 if (PyErr_Occurred()) SWIG_fail;
24538 }
24539 resultobj = result;
24540 return resultobj;
24541 fail:
24542 return NULL;
24543 }
24544
24545
24546 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24547 PyObject *resultobj = 0;
24548 wxDC *arg1 = (wxDC *) 0 ;
24549 PyObject *arg2 = (PyObject *) 0 ;
24550 PyObject *arg3 = (PyObject *) 0 ;
24551 PyObject *arg4 = (PyObject *) 0 ;
24552 PyObject *result = 0 ;
24553 void *argp1 = 0 ;
24554 int res1 = 0 ;
24555 PyObject * obj0 = 0 ;
24556 PyObject * obj1 = 0 ;
24557 PyObject * obj2 = 0 ;
24558 PyObject * obj3 = 0 ;
24559 char * kwnames[] = {
24560 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24561 };
24562
24563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24565 if (!SWIG_IsOK(res1)) {
24566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
24567 }
24568 arg1 = reinterpret_cast< wxDC * >(argp1);
24569 arg2 = obj1;
24570 arg3 = obj2;
24571 arg4 = obj3;
24572 {
24573 PyThreadState* __tstate = wxPyBeginAllowThreads();
24574 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
24575 wxPyEndAllowThreads(__tstate);
24576 if (PyErr_Occurred()) SWIG_fail;
24577 }
24578 resultobj = result;
24579 return resultobj;
24580 fail:
24581 return NULL;
24582 }
24583
24584
24585 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24586 PyObject *resultobj = 0;
24587 wxDC *arg1 = (wxDC *) 0 ;
24588 PyObject *arg2 = (PyObject *) 0 ;
24589 PyObject *arg3 = (PyObject *) 0 ;
24590 PyObject *arg4 = (PyObject *) 0 ;
24591 PyObject *result = 0 ;
24592 void *argp1 = 0 ;
24593 int res1 = 0 ;
24594 PyObject * obj0 = 0 ;
24595 PyObject * obj1 = 0 ;
24596 PyObject * obj2 = 0 ;
24597 PyObject * obj3 = 0 ;
24598 char * kwnames[] = {
24599 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24600 };
24601
24602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24604 if (!SWIG_IsOK(res1)) {
24605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
24606 }
24607 arg1 = reinterpret_cast< wxDC * >(argp1);
24608 arg2 = obj1;
24609 arg3 = obj2;
24610 arg4 = obj3;
24611 {
24612 PyThreadState* __tstate = wxPyBeginAllowThreads();
24613 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
24614 wxPyEndAllowThreads(__tstate);
24615 if (PyErr_Occurred()) SWIG_fail;
24616 }
24617 resultobj = result;
24618 return resultobj;
24619 fail:
24620 return NULL;
24621 }
24622
24623
24624 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24625 PyObject *resultobj = 0;
24626 wxDC *arg1 = (wxDC *) 0 ;
24627 PyObject *arg2 = (PyObject *) 0 ;
24628 PyObject *arg3 = (PyObject *) 0 ;
24629 PyObject *arg4 = (PyObject *) 0 ;
24630 PyObject *arg5 = (PyObject *) 0 ;
24631 PyObject *result = 0 ;
24632 void *argp1 = 0 ;
24633 int res1 = 0 ;
24634 PyObject * obj0 = 0 ;
24635 PyObject * obj1 = 0 ;
24636 PyObject * obj2 = 0 ;
24637 PyObject * obj3 = 0 ;
24638 PyObject * obj4 = 0 ;
24639 char * kwnames[] = {
24640 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
24641 };
24642
24643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24645 if (!SWIG_IsOK(res1)) {
24646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
24647 }
24648 arg1 = reinterpret_cast< wxDC * >(argp1);
24649 arg2 = obj1;
24650 arg3 = obj2;
24651 arg4 = obj3;
24652 arg5 = obj4;
24653 {
24654 PyThreadState* __tstate = wxPyBeginAllowThreads();
24655 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
24656 wxPyEndAllowThreads(__tstate);
24657 if (PyErr_Occurred()) SWIG_fail;
24658 }
24659 resultobj = result;
24660 return resultobj;
24661 fail:
24662 return NULL;
24663 }
24664
24665
24666 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24667 PyObject *obj;
24668 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24669 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
24670 return SWIG_Py_Void();
24671 }
24672
24673 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24674 PyObject *resultobj = 0;
24675 wxDC *arg1 = 0 ;
24676 wxColour *arg2 = 0 ;
24677 wxDCTextColourChanger *result = 0 ;
24678 void *argp1 = 0 ;
24679 int res1 = 0 ;
24680 wxColour temp2 ;
24681 PyObject * obj0 = 0 ;
24682 PyObject * obj1 = 0 ;
24683 char * kwnames[] = {
24684 (char *) "dc",(char *) "col", NULL
24685 };
24686
24687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24688 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24689 if (!SWIG_IsOK(res1)) {
24690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24691 }
24692 if (!argp1) {
24693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24694 }
24695 arg1 = reinterpret_cast< wxDC * >(argp1);
24696 {
24697 arg2 = &temp2;
24698 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24699 }
24700 {
24701 PyThreadState* __tstate = wxPyBeginAllowThreads();
24702 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24703 wxPyEndAllowThreads(__tstate);
24704 if (PyErr_Occurred()) SWIG_fail;
24705 }
24706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24707 return resultobj;
24708 fail:
24709 return NULL;
24710 }
24711
24712
24713 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24714 PyObject *resultobj = 0;
24715 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24716 void *argp1 = 0 ;
24717 int res1 = 0 ;
24718 PyObject *swig_obj[1] ;
24719
24720 if (!args) SWIG_fail;
24721 swig_obj[0] = args;
24722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24723 if (!SWIG_IsOK(res1)) {
24724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24725 }
24726 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24727 {
24728 PyThreadState* __tstate = wxPyBeginAllowThreads();
24729 delete arg1;
24730
24731 wxPyEndAllowThreads(__tstate);
24732 if (PyErr_Occurred()) SWIG_fail;
24733 }
24734 resultobj = SWIG_Py_Void();
24735 return resultobj;
24736 fail:
24737 return NULL;
24738 }
24739
24740
24741 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24742 PyObject *obj;
24743 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24744 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24745 return SWIG_Py_Void();
24746 }
24747
24748 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24749 return SWIG_Python_InitShadowInstance(args);
24750 }
24751
24752 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24753 PyObject *resultobj = 0;
24754 wxDC *arg1 = 0 ;
24755 wxPen *arg2 = 0 ;
24756 wxDCPenChanger *result = 0 ;
24757 void *argp1 = 0 ;
24758 int res1 = 0 ;
24759 void *argp2 = 0 ;
24760 int res2 = 0 ;
24761 PyObject * obj0 = 0 ;
24762 PyObject * obj1 = 0 ;
24763 char * kwnames[] = {
24764 (char *) "dc",(char *) "pen", NULL
24765 };
24766
24767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24768 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24769 if (!SWIG_IsOK(res1)) {
24770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24771 }
24772 if (!argp1) {
24773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24774 }
24775 arg1 = reinterpret_cast< wxDC * >(argp1);
24776 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24777 if (!SWIG_IsOK(res2)) {
24778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24779 }
24780 if (!argp2) {
24781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24782 }
24783 arg2 = reinterpret_cast< wxPen * >(argp2);
24784 {
24785 PyThreadState* __tstate = wxPyBeginAllowThreads();
24786 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24787 wxPyEndAllowThreads(__tstate);
24788 if (PyErr_Occurred()) SWIG_fail;
24789 }
24790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24791 return resultobj;
24792 fail:
24793 return NULL;
24794 }
24795
24796
24797 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24798 PyObject *resultobj = 0;
24799 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24800 void *argp1 = 0 ;
24801 int res1 = 0 ;
24802 PyObject *swig_obj[1] ;
24803
24804 if (!args) SWIG_fail;
24805 swig_obj[0] = args;
24806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24807 if (!SWIG_IsOK(res1)) {
24808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24809 }
24810 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24811 {
24812 PyThreadState* __tstate = wxPyBeginAllowThreads();
24813 delete arg1;
24814
24815 wxPyEndAllowThreads(__tstate);
24816 if (PyErr_Occurred()) SWIG_fail;
24817 }
24818 resultobj = SWIG_Py_Void();
24819 return resultobj;
24820 fail:
24821 return NULL;
24822 }
24823
24824
24825 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24826 PyObject *obj;
24827 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24828 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24829 return SWIG_Py_Void();
24830 }
24831
24832 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24833 return SWIG_Python_InitShadowInstance(args);
24834 }
24835
24836 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24837 PyObject *resultobj = 0;
24838 wxDC *arg1 = 0 ;
24839 wxBrush *arg2 = 0 ;
24840 wxDCBrushChanger *result = 0 ;
24841 void *argp1 = 0 ;
24842 int res1 = 0 ;
24843 void *argp2 = 0 ;
24844 int res2 = 0 ;
24845 PyObject * obj0 = 0 ;
24846 PyObject * obj1 = 0 ;
24847 char * kwnames[] = {
24848 (char *) "dc",(char *) "brush", NULL
24849 };
24850
24851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24852 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24853 if (!SWIG_IsOK(res1)) {
24854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24855 }
24856 if (!argp1) {
24857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24858 }
24859 arg1 = reinterpret_cast< wxDC * >(argp1);
24860 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24861 if (!SWIG_IsOK(res2)) {
24862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24863 }
24864 if (!argp2) {
24865 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24866 }
24867 arg2 = reinterpret_cast< wxBrush * >(argp2);
24868 {
24869 PyThreadState* __tstate = wxPyBeginAllowThreads();
24870 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24871 wxPyEndAllowThreads(__tstate);
24872 if (PyErr_Occurred()) SWIG_fail;
24873 }
24874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24875 return resultobj;
24876 fail:
24877 return NULL;
24878 }
24879
24880
24881 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24882 PyObject *resultobj = 0;
24883 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24884 void *argp1 = 0 ;
24885 int res1 = 0 ;
24886 PyObject *swig_obj[1] ;
24887
24888 if (!args) SWIG_fail;
24889 swig_obj[0] = args;
24890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24891 if (!SWIG_IsOK(res1)) {
24892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24893 }
24894 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24895 {
24896 PyThreadState* __tstate = wxPyBeginAllowThreads();
24897 delete arg1;
24898
24899 wxPyEndAllowThreads(__tstate);
24900 if (PyErr_Occurred()) SWIG_fail;
24901 }
24902 resultobj = SWIG_Py_Void();
24903 return resultobj;
24904 fail:
24905 return NULL;
24906 }
24907
24908
24909 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24910 PyObject *obj;
24911 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24912 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24913 return SWIG_Py_Void();
24914 }
24915
24916 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24917 return SWIG_Python_InitShadowInstance(args);
24918 }
24919
24920 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24921 PyObject *resultobj = 0;
24922 wxDC *arg1 = 0 ;
24923 wxRegion *arg2 = 0 ;
24924 wxDCClipper *result = 0 ;
24925 void *argp1 = 0 ;
24926 int res1 = 0 ;
24927 void *argp2 = 0 ;
24928 int res2 = 0 ;
24929
24930 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24932 if (!SWIG_IsOK(res1)) {
24933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24934 }
24935 if (!argp1) {
24936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24937 }
24938 arg1 = reinterpret_cast< wxDC * >(argp1);
24939 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24940 if (!SWIG_IsOK(res2)) {
24941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24942 }
24943 if (!argp2) {
24944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24945 }
24946 arg2 = reinterpret_cast< wxRegion * >(argp2);
24947 {
24948 PyThreadState* __tstate = wxPyBeginAllowThreads();
24949 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24950 wxPyEndAllowThreads(__tstate);
24951 if (PyErr_Occurred()) SWIG_fail;
24952 }
24953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24954 return resultobj;
24955 fail:
24956 return NULL;
24957 }
24958
24959
24960 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24961 PyObject *resultobj = 0;
24962 wxDC *arg1 = 0 ;
24963 wxRect *arg2 = 0 ;
24964 wxDCClipper *result = 0 ;
24965 void *argp1 = 0 ;
24966 int res1 = 0 ;
24967 wxRect temp2 ;
24968
24969 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24971 if (!SWIG_IsOK(res1)) {
24972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24973 }
24974 if (!argp1) {
24975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24976 }
24977 arg1 = reinterpret_cast< wxDC * >(argp1);
24978 {
24979 arg2 = &temp2;
24980 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24981 }
24982 {
24983 PyThreadState* __tstate = wxPyBeginAllowThreads();
24984 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24985 wxPyEndAllowThreads(__tstate);
24986 if (PyErr_Occurred()) SWIG_fail;
24987 }
24988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24989 return resultobj;
24990 fail:
24991 return NULL;
24992 }
24993
24994
24995 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24996 PyObject *resultobj = 0;
24997 wxDC *arg1 = 0 ;
24998 int arg2 ;
24999 int arg3 ;
25000 int arg4 ;
25001 int arg5 ;
25002 wxDCClipper *result = 0 ;
25003 void *argp1 = 0 ;
25004 int res1 = 0 ;
25005 int val2 ;
25006 int ecode2 = 0 ;
25007 int val3 ;
25008 int ecode3 = 0 ;
25009 int val4 ;
25010 int ecode4 = 0 ;
25011 int val5 ;
25012 int ecode5 = 0 ;
25013
25014 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
25015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
25016 if (!SWIG_IsOK(res1)) {
25017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
25018 }
25019 if (!argp1) {
25020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
25021 }
25022 arg1 = reinterpret_cast< wxDC * >(argp1);
25023 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
25024 if (!SWIG_IsOK(ecode2)) {
25025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
25026 }
25027 arg2 = static_cast< int >(val2);
25028 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25029 if (!SWIG_IsOK(ecode3)) {
25030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
25031 }
25032 arg3 = static_cast< int >(val3);
25033 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
25034 if (!SWIG_IsOK(ecode4)) {
25035 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
25036 }
25037 arg4 = static_cast< int >(val4);
25038 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
25039 if (!SWIG_IsOK(ecode5)) {
25040 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
25041 }
25042 arg5 = static_cast< int >(val5);
25043 {
25044 PyThreadState* __tstate = wxPyBeginAllowThreads();
25045 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
25046 wxPyEndAllowThreads(__tstate);
25047 if (PyErr_Occurred()) SWIG_fail;
25048 }
25049 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
25050 return resultobj;
25051 fail:
25052 return NULL;
25053 }
25054
25055
25056 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
25057 int argc;
25058 PyObject *argv[6];
25059
25060 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
25061 --argc;
25062 if (argc == 2) {
25063 int _v = 0;
25064 {
25065 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
25066 _v = SWIG_CheckState(res);
25067 }
25068 if (!_v) goto check_1;
25069 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
25070 }
25071 check_1:
25072
25073 if (argc == 2) {
25074 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
25075 }
25076 if (argc == 5) {
25077 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
25078 }
25079
25080 fail:
25081 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
25082 return NULL;
25083 }
25084
25085
25086 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25087 PyObject *resultobj = 0;
25088 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
25089 void *argp1 = 0 ;
25090 int res1 = 0 ;
25091 PyObject *swig_obj[1] ;
25092
25093 if (!args) SWIG_fail;
25094 swig_obj[0] = args;
25095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
25096 if (!SWIG_IsOK(res1)) {
25097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
25098 }
25099 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
25100 {
25101 PyThreadState* __tstate = wxPyBeginAllowThreads();
25102 delete arg1;
25103
25104 wxPyEndAllowThreads(__tstate);
25105 if (PyErr_Occurred()) SWIG_fail;
25106 }
25107 resultobj = SWIG_Py_Void();
25108 return resultobj;
25109 fail:
25110 return NULL;
25111 }
25112
25113
25114 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25115 PyObject *obj;
25116 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25117 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
25118 return SWIG_Py_Void();
25119 }
25120
25121 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25122 return SWIG_Python_InitShadowInstance(args);
25123 }
25124
25125 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25126 PyObject *resultobj = 0;
25127 wxScreenDC *result = 0 ;
25128
25129 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
25130 {
25131 if (!wxPyCheckForApp()) SWIG_fail;
25132 PyThreadState* __tstate = wxPyBeginAllowThreads();
25133 result = (wxScreenDC *)new wxScreenDC();
25134 wxPyEndAllowThreads(__tstate);
25135 if (PyErr_Occurred()) SWIG_fail;
25136 }
25137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
25138 return resultobj;
25139 fail:
25140 return NULL;
25141 }
25142
25143
25144 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25145 PyObject *resultobj = 0;
25146 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
25147 wxWindow *arg2 = (wxWindow *) 0 ;
25148 bool result;
25149 void *argp1 = 0 ;
25150 int res1 = 0 ;
25151 void *argp2 = 0 ;
25152 int res2 = 0 ;
25153 PyObject * obj0 = 0 ;
25154 PyObject * obj1 = 0 ;
25155 char * kwnames[] = {
25156 (char *) "self",(char *) "window", NULL
25157 };
25158
25159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
25160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
25161 if (!SWIG_IsOK(res1)) {
25162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
25163 }
25164 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
25165 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25166 if (!SWIG_IsOK(res2)) {
25167 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
25168 }
25169 arg2 = reinterpret_cast< wxWindow * >(argp2);
25170 {
25171 PyThreadState* __tstate = wxPyBeginAllowThreads();
25172 result = (bool)(arg1)->StartDrawingOnTop(arg2);
25173 wxPyEndAllowThreads(__tstate);
25174 if (PyErr_Occurred()) SWIG_fail;
25175 }
25176 {
25177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25178 }
25179 return resultobj;
25180 fail:
25181 return NULL;
25182 }
25183
25184
25185 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25186 PyObject *resultobj = 0;
25187 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
25188 wxRect *arg2 = (wxRect *) NULL ;
25189 bool result;
25190 void *argp1 = 0 ;
25191 int res1 = 0 ;
25192 void *argp2 = 0 ;
25193 int res2 = 0 ;
25194 PyObject * obj0 = 0 ;
25195 PyObject * obj1 = 0 ;
25196 char * kwnames[] = {
25197 (char *) "self",(char *) "rect", NULL
25198 };
25199
25200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
25201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
25202 if (!SWIG_IsOK(res1)) {
25203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
25204 }
25205 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
25206 if (obj1) {
25207 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
25208 if (!SWIG_IsOK(res2)) {
25209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
25210 }
25211 arg2 = reinterpret_cast< wxRect * >(argp2);
25212 }
25213 {
25214 PyThreadState* __tstate = wxPyBeginAllowThreads();
25215 result = (bool)(arg1)->StartDrawingOnTop(arg2);
25216 wxPyEndAllowThreads(__tstate);
25217 if (PyErr_Occurred()) SWIG_fail;
25218 }
25219 {
25220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25221 }
25222 return resultobj;
25223 fail:
25224 return NULL;
25225 }
25226
25227
25228 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25229 PyObject *resultobj = 0;
25230 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
25231 bool result;
25232 void *argp1 = 0 ;
25233 int res1 = 0 ;
25234 PyObject *swig_obj[1] ;
25235
25236 if (!args) SWIG_fail;
25237 swig_obj[0] = args;
25238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
25239 if (!SWIG_IsOK(res1)) {
25240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
25241 }
25242 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
25243 {
25244 PyThreadState* __tstate = wxPyBeginAllowThreads();
25245 result = (bool)(arg1)->EndDrawingOnTop();
25246 wxPyEndAllowThreads(__tstate);
25247 if (PyErr_Occurred()) SWIG_fail;
25248 }
25249 {
25250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25251 }
25252 return resultobj;
25253 fail:
25254 return NULL;
25255 }
25256
25257
25258 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25259 PyObject *obj;
25260 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25261 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
25262 return SWIG_Py_Void();
25263 }
25264
25265 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25266 return SWIG_Python_InitShadowInstance(args);
25267 }
25268
25269 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25270 PyObject *resultobj = 0;
25271 wxWindow *arg1 = (wxWindow *) 0 ;
25272 wxWindowDC *result = 0 ;
25273 void *argp1 = 0 ;
25274 int res1 = 0 ;
25275 PyObject * obj0 = 0 ;
25276 char * kwnames[] = {
25277 (char *) "win", NULL
25278 };
25279
25280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
25281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25282 if (!SWIG_IsOK(res1)) {
25283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25284 }
25285 arg1 = reinterpret_cast< wxWindow * >(argp1);
25286 {
25287 if (!wxPyCheckForApp()) SWIG_fail;
25288 PyThreadState* __tstate = wxPyBeginAllowThreads();
25289 result = (wxWindowDC *)new wxWindowDC(arg1);
25290 wxPyEndAllowThreads(__tstate);
25291 if (PyErr_Occurred()) SWIG_fail;
25292 }
25293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
25294 return resultobj;
25295 fail:
25296 return NULL;
25297 }
25298
25299
25300 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25301 PyObject *obj;
25302 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25303 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
25304 return SWIG_Py_Void();
25305 }
25306
25307 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25308 return SWIG_Python_InitShadowInstance(args);
25309 }
25310
25311 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25312 PyObject *resultobj = 0;
25313 wxWindow *arg1 = (wxWindow *) 0 ;
25314 wxClientDC *result = 0 ;
25315 void *argp1 = 0 ;
25316 int res1 = 0 ;
25317 PyObject * obj0 = 0 ;
25318 char * kwnames[] = {
25319 (char *) "win", NULL
25320 };
25321
25322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
25323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25324 if (!SWIG_IsOK(res1)) {
25325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25326 }
25327 arg1 = reinterpret_cast< wxWindow * >(argp1);
25328 {
25329 if (!wxPyCheckForApp()) SWIG_fail;
25330 PyThreadState* __tstate = wxPyBeginAllowThreads();
25331 result = (wxClientDC *)new wxClientDC(arg1);
25332 wxPyEndAllowThreads(__tstate);
25333 if (PyErr_Occurred()) SWIG_fail;
25334 }
25335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
25336 return resultobj;
25337 fail:
25338 return NULL;
25339 }
25340
25341
25342 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25343 PyObject *obj;
25344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25345 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
25346 return SWIG_Py_Void();
25347 }
25348
25349 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25350 return SWIG_Python_InitShadowInstance(args);
25351 }
25352
25353 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25354 PyObject *resultobj = 0;
25355 wxWindow *arg1 = (wxWindow *) 0 ;
25356 wxPaintDC *result = 0 ;
25357 void *argp1 = 0 ;
25358 int res1 = 0 ;
25359 PyObject * obj0 = 0 ;
25360 char * kwnames[] = {
25361 (char *) "win", NULL
25362 };
25363
25364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
25365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25366 if (!SWIG_IsOK(res1)) {
25367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25368 }
25369 arg1 = reinterpret_cast< wxWindow * >(argp1);
25370 {
25371 if (!wxPyCheckForApp()) SWIG_fail;
25372 PyThreadState* __tstate = wxPyBeginAllowThreads();
25373 result = (wxPaintDC *)new wxPaintDC(arg1);
25374 wxPyEndAllowThreads(__tstate);
25375 if (PyErr_Occurred()) SWIG_fail;
25376 }
25377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
25378 return resultobj;
25379 fail:
25380 return NULL;
25381 }
25382
25383
25384 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25385 PyObject *obj;
25386 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25387 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
25388 return SWIG_Py_Void();
25389 }
25390
25391 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25392 return SWIG_Python_InitShadowInstance(args);
25393 }
25394
25395 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25396 PyObject *resultobj = 0;
25397 wxBitmap &arg1_defvalue = wxNullBitmap ;
25398 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25399 wxMemoryDC *result = 0 ;
25400 void *argp1 = 0 ;
25401 int res1 = 0 ;
25402 PyObject * obj0 = 0 ;
25403 char * kwnames[] = {
25404 (char *) "bitmap", NULL
25405 };
25406
25407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
25408 if (obj0) {
25409 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
25410 if (!SWIG_IsOK(res1)) {
25411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
25412 }
25413 if (!argp1) {
25414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
25415 }
25416 arg1 = reinterpret_cast< wxBitmap * >(argp1);
25417 }
25418 {
25419 if (!wxPyCheckForApp()) SWIG_fail;
25420 PyThreadState* __tstate = wxPyBeginAllowThreads();
25421 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
25422 wxPyEndAllowThreads(__tstate);
25423 if (PyErr_Occurred()) SWIG_fail;
25424 }
25425 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
25426 return resultobj;
25427 fail:
25428 return NULL;
25429 }
25430
25431
25432 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25433 PyObject *resultobj = 0;
25434 wxDC *arg1 = (wxDC *) 0 ;
25435 wxMemoryDC *result = 0 ;
25436 void *argp1 = 0 ;
25437 int res1 = 0 ;
25438 PyObject * obj0 = 0 ;
25439 char * kwnames[] = {
25440 (char *) "oldDC", NULL
25441 };
25442
25443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
25444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25445 if (!SWIG_IsOK(res1)) {
25446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
25447 }
25448 arg1 = reinterpret_cast< wxDC * >(argp1);
25449 {
25450 if (!wxPyCheckForApp()) SWIG_fail;
25451 PyThreadState* __tstate = wxPyBeginAllowThreads();
25452 result = (wxMemoryDC *)new wxMemoryDC(arg1);
25453 wxPyEndAllowThreads(__tstate);
25454 if (PyErr_Occurred()) SWIG_fail;
25455 }
25456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
25457 return resultobj;
25458 fail:
25459 return NULL;
25460 }
25461
25462
25463 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25464 PyObject *resultobj = 0;
25465 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
25466 wxBitmap *arg2 = 0 ;
25467 void *argp1 = 0 ;
25468 int res1 = 0 ;
25469 void *argp2 = 0 ;
25470 int res2 = 0 ;
25471 PyObject * obj0 = 0 ;
25472 PyObject * obj1 = 0 ;
25473 char * kwnames[] = {
25474 (char *) "self",(char *) "bitmap", NULL
25475 };
25476
25477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
25478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
25479 if (!SWIG_IsOK(res1)) {
25480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
25481 }
25482 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25483 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25484 if (!SWIG_IsOK(res2)) {
25485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
25486 }
25487 if (!argp2) {
25488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
25489 }
25490 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25491 {
25492 PyThreadState* __tstate = wxPyBeginAllowThreads();
25493 (arg1)->SelectObject(*arg2);
25494 wxPyEndAllowThreads(__tstate);
25495 if (PyErr_Occurred()) SWIG_fail;
25496 }
25497 resultobj = SWIG_Py_Void();
25498 return resultobj;
25499 fail:
25500 return NULL;
25501 }
25502
25503
25504 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25505 PyObject *resultobj = 0;
25506 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
25507 wxBitmap *arg2 = 0 ;
25508 void *argp1 = 0 ;
25509 int res1 = 0 ;
25510 void *argp2 = 0 ;
25511 int res2 = 0 ;
25512 PyObject * obj0 = 0 ;
25513 PyObject * obj1 = 0 ;
25514 char * kwnames[] = {
25515 (char *) "self",(char *) "bmp", NULL
25516 };
25517
25518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
25519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
25520 if (!SWIG_IsOK(res1)) {
25521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
25522 }
25523 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25524 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25525 if (!SWIG_IsOK(res2)) {
25526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25527 }
25528 if (!argp2) {
25529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25530 }
25531 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25532 {
25533 PyThreadState* __tstate = wxPyBeginAllowThreads();
25534 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
25535 wxPyEndAllowThreads(__tstate);
25536 if (PyErr_Occurred()) SWIG_fail;
25537 }
25538 resultobj = SWIG_Py_Void();
25539 return resultobj;
25540 fail:
25541 return NULL;
25542 }
25543
25544
25545 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25546 PyObject *obj;
25547 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25548 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
25549 return SWIG_Py_Void();
25550 }
25551
25552 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25553 return SWIG_Python_InitShadowInstance(args);
25554 }
25555
25556 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25557 PyObject *resultobj = 0;
25558 wxDC *arg1 = (wxDC *) 0 ;
25559 wxBitmap &arg2_defvalue = wxNullBitmap ;
25560 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25561 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25562 wxBufferedDC *result = 0 ;
25563 void *argp1 = 0 ;
25564 int res1 = 0 ;
25565 void *argp2 = 0 ;
25566 int res2 = 0 ;
25567 int val3 ;
25568 int ecode3 = 0 ;
25569
25570 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
25571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25572 if (!SWIG_IsOK(res1)) {
25573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25574 }
25575 arg1 = reinterpret_cast< wxDC * >(argp1);
25576 if (swig_obj[1]) {
25577 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
25578 if (!SWIG_IsOK(res2)) {
25579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25580 }
25581 if (!argp2) {
25582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25583 }
25584 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25585 }
25586 if (swig_obj[2]) {
25587 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25588 if (!SWIG_IsOK(ecode3)) {
25589 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25590 }
25591 arg3 = static_cast< int >(val3);
25592 }
25593 {
25594 if (!wxPyCheckForApp()) SWIG_fail;
25595 PyThreadState* __tstate = wxPyBeginAllowThreads();
25596 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
25597 wxPyEndAllowThreads(__tstate);
25598 if (PyErr_Occurred()) SWIG_fail;
25599 }
25600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25601 return resultobj;
25602 fail:
25603 return NULL;
25604 }
25605
25606
25607 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25608 PyObject *resultobj = 0;
25609 wxDC *arg1 = (wxDC *) 0 ;
25610 wxSize *arg2 = 0 ;
25611 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25612 wxBufferedDC *result = 0 ;
25613 void *argp1 = 0 ;
25614 int res1 = 0 ;
25615 wxSize temp2 ;
25616 int val3 ;
25617 int ecode3 = 0 ;
25618
25619 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
25620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25621 if (!SWIG_IsOK(res1)) {
25622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25623 }
25624 arg1 = reinterpret_cast< wxDC * >(argp1);
25625 {
25626 arg2 = &temp2;
25627 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
25628 }
25629 if (swig_obj[2]) {
25630 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25631 if (!SWIG_IsOK(ecode3)) {
25632 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25633 }
25634 arg3 = static_cast< int >(val3);
25635 }
25636 {
25637 if (!wxPyCheckForApp()) SWIG_fail;
25638 PyThreadState* __tstate = wxPyBeginAllowThreads();
25639 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
25640 wxPyEndAllowThreads(__tstate);
25641 if (PyErr_Occurred()) SWIG_fail;
25642 }
25643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25644 return resultobj;
25645 fail:
25646 return NULL;
25647 }
25648
25649
25650 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
25651 int argc;
25652 PyObject *argv[4];
25653
25654 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
25655 --argc;
25656 if ((argc >= 1) && (argc <= 3)) {
25657 int _v = 0;
25658 if (argc > 1) {
25659 {
25660 void *vptr = 0;
25661 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
25662 _v = SWIG_CheckState(res);
25663 }
25664 if (!_v) goto check_1;
25665 }
25666 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
25667 }
25668 check_1:
25669
25670 if ((argc >= 2) && (argc <= 3)) {
25671 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
25672 }
25673
25674 fail:
25675 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
25676 return NULL;
25677 }
25678
25679
25680 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25681 PyObject *resultobj = 0;
25682 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25683 void *argp1 = 0 ;
25684 int res1 = 0 ;
25685 PyObject *swig_obj[1] ;
25686
25687 if (!args) SWIG_fail;
25688 swig_obj[0] = args;
25689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
25690 if (!SWIG_IsOK(res1)) {
25691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25692 }
25693 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25694 {
25695 PyThreadState* __tstate = wxPyBeginAllowThreads();
25696 delete arg1;
25697
25698 wxPyEndAllowThreads(__tstate);
25699 if (PyErr_Occurred()) SWIG_fail;
25700 }
25701 resultobj = SWIG_Py_Void();
25702 return resultobj;
25703 fail:
25704 return NULL;
25705 }
25706
25707
25708 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25709 PyObject *resultobj = 0;
25710 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25711 void *argp1 = 0 ;
25712 int res1 = 0 ;
25713 PyObject *swig_obj[1] ;
25714
25715 if (!args) SWIG_fail;
25716 swig_obj[0] = args;
25717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25718 if (!SWIG_IsOK(res1)) {
25719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25720 }
25721 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25722 {
25723 PyThreadState* __tstate = wxPyBeginAllowThreads();
25724 (arg1)->UnMask();
25725 wxPyEndAllowThreads(__tstate);
25726 if (PyErr_Occurred()) SWIG_fail;
25727 }
25728 resultobj = SWIG_Py_Void();
25729 return resultobj;
25730 fail:
25731 return NULL;
25732 }
25733
25734
25735 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25736 PyObject *resultobj = 0;
25737 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25738 int arg2 ;
25739 void *argp1 = 0 ;
25740 int res1 = 0 ;
25741 int val2 ;
25742 int ecode2 = 0 ;
25743 PyObject * obj0 = 0 ;
25744 PyObject * obj1 = 0 ;
25745 char * kwnames[] = {
25746 (char *) "self",(char *) "style", NULL
25747 };
25748
25749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
25750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25751 if (!SWIG_IsOK(res1)) {
25752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25753 }
25754 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25755 ecode2 = SWIG_AsVal_int(obj1, &val2);
25756 if (!SWIG_IsOK(ecode2)) {
25757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
25758 }
25759 arg2 = static_cast< int >(val2);
25760 {
25761 PyThreadState* __tstate = wxPyBeginAllowThreads();
25762 (arg1)->SetStyle(arg2);
25763 wxPyEndAllowThreads(__tstate);
25764 if (PyErr_Occurred()) SWIG_fail;
25765 }
25766 resultobj = SWIG_Py_Void();
25767 return resultobj;
25768 fail:
25769 return NULL;
25770 }
25771
25772
25773 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25774 PyObject *resultobj = 0;
25775 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25776 int result;
25777 void *argp1 = 0 ;
25778 int res1 = 0 ;
25779 PyObject *swig_obj[1] ;
25780
25781 if (!args) SWIG_fail;
25782 swig_obj[0] = args;
25783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25784 if (!SWIG_IsOK(res1)) {
25785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
25786 }
25787 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25788 {
25789 PyThreadState* __tstate = wxPyBeginAllowThreads();
25790 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
25791 wxPyEndAllowThreads(__tstate);
25792 if (PyErr_Occurred()) SWIG_fail;
25793 }
25794 resultobj = SWIG_From_int(static_cast< int >(result));
25795 return resultobj;
25796 fail:
25797 return NULL;
25798 }
25799
25800
25801 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25802 PyObject *obj;
25803 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25804 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25805 return SWIG_Py_Void();
25806 }
25807
25808 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25809 return SWIG_Python_InitShadowInstance(args);
25810 }
25811
25812 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25813 PyObject *resultobj = 0;
25814 wxWindow *arg1 = (wxWindow *) 0 ;
25815 wxBitmap &arg2_defvalue = wxNullBitmap ;
25816 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25817 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25818 wxBufferedPaintDC *result = 0 ;
25819 void *argp1 = 0 ;
25820 int res1 = 0 ;
25821 void *argp2 = 0 ;
25822 int res2 = 0 ;
25823 int val3 ;
25824 int ecode3 = 0 ;
25825 PyObject * obj0 = 0 ;
25826 PyObject * obj1 = 0 ;
25827 PyObject * obj2 = 0 ;
25828 char * kwnames[] = {
25829 (char *) "window",(char *) "buffer",(char *) "style", NULL
25830 };
25831
25832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25834 if (!SWIG_IsOK(res1)) {
25835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25836 }
25837 arg1 = reinterpret_cast< wxWindow * >(argp1);
25838 if (obj1) {
25839 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25840 if (!SWIG_IsOK(res2)) {
25841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25842 }
25843 if (!argp2) {
25844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25845 }
25846 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25847 }
25848 if (obj2) {
25849 ecode3 = SWIG_AsVal_int(obj2, &val3);
25850 if (!SWIG_IsOK(ecode3)) {
25851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25852 }
25853 arg3 = static_cast< int >(val3);
25854 }
25855 {
25856 if (!wxPyCheckForApp()) SWIG_fail;
25857 PyThreadState* __tstate = wxPyBeginAllowThreads();
25858 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
25859 wxPyEndAllowThreads(__tstate);
25860 if (PyErr_Occurred()) SWIG_fail;
25861 }
25862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25863 return resultobj;
25864 fail:
25865 return NULL;
25866 }
25867
25868
25869 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25870 PyObject *obj;
25871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25872 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25873 return SWIG_Py_Void();
25874 }
25875
25876 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25877 return SWIG_Python_InitShadowInstance(args);
25878 }
25879
25880 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25881 PyObject *resultobj = 0;
25882 wxWindow *arg1 = (wxWindow *) 0 ;
25883 wxAutoBufferedPaintDC *result = 0 ;
25884 void *argp1 = 0 ;
25885 int res1 = 0 ;
25886 PyObject * obj0 = 0 ;
25887 char * kwnames[] = {
25888 (char *) "win", NULL
25889 };
25890
25891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
25892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25893 if (!SWIG_IsOK(res1)) {
25894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25895 }
25896 arg1 = reinterpret_cast< wxWindow * >(argp1);
25897 {
25898 PyThreadState* __tstate = wxPyBeginAllowThreads();
25899 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
25900 wxPyEndAllowThreads(__tstate);
25901 if (PyErr_Occurred()) SWIG_fail;
25902 }
25903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25904 return resultobj;
25905 fail:
25906 return NULL;
25907 }
25908
25909
25910 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25911 PyObject *obj;
25912 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25913 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
25914 return SWIG_Py_Void();
25915 }
25916
25917 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25918 return SWIG_Python_InitShadowInstance(args);
25919 }
25920
25921 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25922 PyObject *resultobj = 0;
25923 wxWindow *arg1 = (wxWindow *) 0 ;
25924 wxDC *result = 0 ;
25925 void *argp1 = 0 ;
25926 int res1 = 0 ;
25927 PyObject * obj0 = 0 ;
25928 char * kwnames[] = {
25929 (char *) "window", NULL
25930 };
25931
25932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25934 if (!SWIG_IsOK(res1)) {
25935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25936 }
25937 arg1 = reinterpret_cast< wxWindow * >(argp1);
25938 {
25939 PyThreadState* __tstate = wxPyBeginAllowThreads();
25940 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25941 wxPyEndAllowThreads(__tstate);
25942 if (PyErr_Occurred()) SWIG_fail;
25943 }
25944 {
25945 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25946 }
25947 return resultobj;
25948 fail:
25949 return NULL;
25950 }
25951
25952
25953 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25954 PyObject *resultobj = 0;
25955 wxDC *arg1 = 0 ;
25956 bool arg2 ;
25957 wxMirrorDC *result = 0 ;
25958 void *argp1 = 0 ;
25959 int res1 = 0 ;
25960 bool val2 ;
25961 int ecode2 = 0 ;
25962 PyObject * obj0 = 0 ;
25963 PyObject * obj1 = 0 ;
25964 char * kwnames[] = {
25965 (char *) "dc",(char *) "mirror", NULL
25966 };
25967
25968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25969 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25970 if (!SWIG_IsOK(res1)) {
25971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25972 }
25973 if (!argp1) {
25974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25975 }
25976 arg1 = reinterpret_cast< wxDC * >(argp1);
25977 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25978 if (!SWIG_IsOK(ecode2)) {
25979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25980 }
25981 arg2 = static_cast< bool >(val2);
25982 {
25983 if (!wxPyCheckForApp()) SWIG_fail;
25984 PyThreadState* __tstate = wxPyBeginAllowThreads();
25985 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25986 wxPyEndAllowThreads(__tstate);
25987 if (PyErr_Occurred()) SWIG_fail;
25988 }
25989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25990 return resultobj;
25991 fail:
25992 return NULL;
25993 }
25994
25995
25996 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25997 PyObject *obj;
25998 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25999 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
26000 return SWIG_Py_Void();
26001 }
26002
26003 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26004 return SWIG_Python_InitShadowInstance(args);
26005 }
26006
26007 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26008 PyObject *resultobj = 0;
26009 wxPrintData *arg1 = 0 ;
26010 wxPostScriptDC *result = 0 ;
26011 void *argp1 = 0 ;
26012 int res1 = 0 ;
26013 PyObject * obj0 = 0 ;
26014 char * kwnames[] = {
26015 (char *) "printData", NULL
26016 };
26017
26018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
26019 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
26020 if (!SWIG_IsOK(res1)) {
26021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26022 }
26023 if (!argp1) {
26024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26025 }
26026 arg1 = reinterpret_cast< wxPrintData * >(argp1);
26027 {
26028 if (!wxPyCheckForApp()) SWIG_fail;
26029 PyThreadState* __tstate = wxPyBeginAllowThreads();
26030 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
26031 wxPyEndAllowThreads(__tstate);
26032 if (PyErr_Occurred()) SWIG_fail;
26033 }
26034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
26035 return resultobj;
26036 fail:
26037 return NULL;
26038 }
26039
26040
26041 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26042 PyObject *resultobj = 0;
26043 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
26044 wxPrintData *result = 0 ;
26045 void *argp1 = 0 ;
26046 int res1 = 0 ;
26047 PyObject *swig_obj[1] ;
26048
26049 if (!args) SWIG_fail;
26050 swig_obj[0] = args;
26051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
26052 if (!SWIG_IsOK(res1)) {
26053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
26054 }
26055 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
26056 {
26057 PyThreadState* __tstate = wxPyBeginAllowThreads();
26058 {
26059 wxPrintData &_result_ref = (arg1)->GetPrintData();
26060 result = (wxPrintData *) &_result_ref;
26061 }
26062 wxPyEndAllowThreads(__tstate);
26063 if (PyErr_Occurred()) SWIG_fail;
26064 }
26065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
26066 return resultobj;
26067 fail:
26068 return NULL;
26069 }
26070
26071
26072 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26073 PyObject *resultobj = 0;
26074 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
26075 wxPrintData *arg2 = 0 ;
26076 void *argp1 = 0 ;
26077 int res1 = 0 ;
26078 void *argp2 = 0 ;
26079 int res2 = 0 ;
26080 PyObject * obj0 = 0 ;
26081 PyObject * obj1 = 0 ;
26082 char * kwnames[] = {
26083 (char *) "self",(char *) "data", NULL
26084 };
26085
26086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
26087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
26088 if (!SWIG_IsOK(res1)) {
26089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
26090 }
26091 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
26092 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
26093 if (!SWIG_IsOK(res2)) {
26094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
26095 }
26096 if (!argp2) {
26097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
26098 }
26099 arg2 = reinterpret_cast< wxPrintData * >(argp2);
26100 {
26101 PyThreadState* __tstate = wxPyBeginAllowThreads();
26102 (arg1)->SetPrintData((wxPrintData const &)*arg2);
26103 wxPyEndAllowThreads(__tstate);
26104 if (PyErr_Occurred()) SWIG_fail;
26105 }
26106 resultobj = SWIG_Py_Void();
26107 return resultobj;
26108 fail:
26109 return NULL;
26110 }
26111
26112
26113 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26114 PyObject *resultobj = 0;
26115 int arg1 ;
26116 int val1 ;
26117 int ecode1 = 0 ;
26118 PyObject * obj0 = 0 ;
26119 char * kwnames[] = {
26120 (char *) "ppi", NULL
26121 };
26122
26123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
26124 ecode1 = SWIG_AsVal_int(obj0, &val1);
26125 if (!SWIG_IsOK(ecode1)) {
26126 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
26127 }
26128 arg1 = static_cast< int >(val1);
26129 {
26130 PyThreadState* __tstate = wxPyBeginAllowThreads();
26131 wxPostScriptDC::SetResolution(arg1);
26132 wxPyEndAllowThreads(__tstate);
26133 if (PyErr_Occurred()) SWIG_fail;
26134 }
26135 resultobj = SWIG_Py_Void();
26136 return resultobj;
26137 fail:
26138 return NULL;
26139 }
26140
26141
26142 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26143 PyObject *resultobj = 0;
26144 int result;
26145
26146 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
26147 {
26148 PyThreadState* __tstate = wxPyBeginAllowThreads();
26149 result = (int)wxPostScriptDC::GetResolution();
26150 wxPyEndAllowThreads(__tstate);
26151 if (PyErr_Occurred()) SWIG_fail;
26152 }
26153 resultobj = SWIG_From_int(static_cast< int >(result));
26154 return resultobj;
26155 fail:
26156 return NULL;
26157 }
26158
26159
26160 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26161 PyObject *obj;
26162 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26163 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
26164 return SWIG_Py_Void();
26165 }
26166
26167 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26168 return SWIG_Python_InitShadowInstance(args);
26169 }
26170
26171 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26172 PyObject *resultobj = 0;
26173 wxString const &arg1_defvalue = wxPyEmptyString ;
26174 wxString *arg1 = (wxString *) &arg1_defvalue ;
26175 wxMetaFile *result = 0 ;
26176 bool temp1 = false ;
26177 PyObject * obj0 = 0 ;
26178 char * kwnames[] = {
26179 (char *) "filename", NULL
26180 };
26181
26182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
26183 if (obj0) {
26184 {
26185 arg1 = wxString_in_helper(obj0);
26186 if (arg1 == NULL) SWIG_fail;
26187 temp1 = true;
26188 }
26189 }
26190 {
26191 if (!wxPyCheckForApp()) SWIG_fail;
26192 PyThreadState* __tstate = wxPyBeginAllowThreads();
26193 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
26194 wxPyEndAllowThreads(__tstate);
26195 if (PyErr_Occurred()) SWIG_fail;
26196 }
26197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
26198 {
26199 if (temp1)
26200 delete arg1;
26201 }
26202 return resultobj;
26203 fail:
26204 {
26205 if (temp1)
26206 delete arg1;
26207 }
26208 return NULL;
26209 }
26210
26211
26212 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26213 PyObject *resultobj = 0;
26214 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26215 void *argp1 = 0 ;
26216 int res1 = 0 ;
26217 PyObject *swig_obj[1] ;
26218
26219 if (!args) SWIG_fail;
26220 swig_obj[0] = args;
26221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
26222 if (!SWIG_IsOK(res1)) {
26223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26224 }
26225 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26226 {
26227 PyThreadState* __tstate = wxPyBeginAllowThreads();
26228 delete arg1;
26229
26230 wxPyEndAllowThreads(__tstate);
26231 if (PyErr_Occurred()) SWIG_fail;
26232 }
26233 resultobj = SWIG_Py_Void();
26234 return resultobj;
26235 fail:
26236 return NULL;
26237 }
26238
26239
26240 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26241 PyObject *resultobj = 0;
26242 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26243 bool result;
26244 void *argp1 = 0 ;
26245 int res1 = 0 ;
26246 PyObject *swig_obj[1] ;
26247
26248 if (!args) SWIG_fail;
26249 swig_obj[0] = args;
26250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26251 if (!SWIG_IsOK(res1)) {
26252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26253 }
26254 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26255 {
26256 PyThreadState* __tstate = wxPyBeginAllowThreads();
26257 result = (bool)(arg1)->IsOk();
26258 wxPyEndAllowThreads(__tstate);
26259 if (PyErr_Occurred()) SWIG_fail;
26260 }
26261 {
26262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26263 }
26264 return resultobj;
26265 fail:
26266 return NULL;
26267 }
26268
26269
26270 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26271 PyObject *resultobj = 0;
26272 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26273 int arg2 = (int) 0 ;
26274 int arg3 = (int) 0 ;
26275 bool result;
26276 void *argp1 = 0 ;
26277 int res1 = 0 ;
26278 int val2 ;
26279 int ecode2 = 0 ;
26280 int val3 ;
26281 int ecode3 = 0 ;
26282 PyObject * obj0 = 0 ;
26283 PyObject * obj1 = 0 ;
26284 PyObject * obj2 = 0 ;
26285 char * kwnames[] = {
26286 (char *) "self",(char *) "width",(char *) "height", NULL
26287 };
26288
26289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26291 if (!SWIG_IsOK(res1)) {
26292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26293 }
26294 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26295 if (obj1) {
26296 ecode2 = SWIG_AsVal_int(obj1, &val2);
26297 if (!SWIG_IsOK(ecode2)) {
26298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
26299 }
26300 arg2 = static_cast< int >(val2);
26301 }
26302 if (obj2) {
26303 ecode3 = SWIG_AsVal_int(obj2, &val3);
26304 if (!SWIG_IsOK(ecode3)) {
26305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
26306 }
26307 arg3 = static_cast< int >(val3);
26308 }
26309 {
26310 PyThreadState* __tstate = wxPyBeginAllowThreads();
26311 result = (bool)(arg1)->SetClipboard(arg2,arg3);
26312 wxPyEndAllowThreads(__tstate);
26313 if (PyErr_Occurred()) SWIG_fail;
26314 }
26315 {
26316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26317 }
26318 return resultobj;
26319 fail:
26320 return NULL;
26321 }
26322
26323
26324 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26325 PyObject *resultobj = 0;
26326 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26327 wxSize result;
26328 void *argp1 = 0 ;
26329 int res1 = 0 ;
26330 PyObject *swig_obj[1] ;
26331
26332 if (!args) SWIG_fail;
26333 swig_obj[0] = args;
26334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26335 if (!SWIG_IsOK(res1)) {
26336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26337 }
26338 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26339 {
26340 PyThreadState* __tstate = wxPyBeginAllowThreads();
26341 result = (arg1)->GetSize();
26342 wxPyEndAllowThreads(__tstate);
26343 if (PyErr_Occurred()) SWIG_fail;
26344 }
26345 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
26346 return resultobj;
26347 fail:
26348 return NULL;
26349 }
26350
26351
26352 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26353 PyObject *resultobj = 0;
26354 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26355 int result;
26356 void *argp1 = 0 ;
26357 int res1 = 0 ;
26358 PyObject *swig_obj[1] ;
26359
26360 if (!args) SWIG_fail;
26361 swig_obj[0] = args;
26362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26363 if (!SWIG_IsOK(res1)) {
26364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26365 }
26366 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26367 {
26368 PyThreadState* __tstate = wxPyBeginAllowThreads();
26369 result = (int)(arg1)->GetWidth();
26370 wxPyEndAllowThreads(__tstate);
26371 if (PyErr_Occurred()) SWIG_fail;
26372 }
26373 resultobj = SWIG_From_int(static_cast< int >(result));
26374 return resultobj;
26375 fail:
26376 return NULL;
26377 }
26378
26379
26380 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26381 PyObject *resultobj = 0;
26382 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26383 int result;
26384 void *argp1 = 0 ;
26385 int res1 = 0 ;
26386 PyObject *swig_obj[1] ;
26387
26388 if (!args) SWIG_fail;
26389 swig_obj[0] = args;
26390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26391 if (!SWIG_IsOK(res1)) {
26392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26393 }
26394 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26395 {
26396 PyThreadState* __tstate = wxPyBeginAllowThreads();
26397 result = (int)(arg1)->GetHeight();
26398 wxPyEndAllowThreads(__tstate);
26399 if (PyErr_Occurred()) SWIG_fail;
26400 }
26401 resultobj = SWIG_From_int(static_cast< int >(result));
26402 return resultobj;
26403 fail:
26404 return NULL;
26405 }
26406
26407
26408 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26409 PyObject *resultobj = 0;
26410 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26411 wxString *result = 0 ;
26412 void *argp1 = 0 ;
26413 int res1 = 0 ;
26414 PyObject *swig_obj[1] ;
26415
26416 if (!args) SWIG_fail;
26417 swig_obj[0] = args;
26418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26419 if (!SWIG_IsOK(res1)) {
26420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
26421 }
26422 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26423 {
26424 PyThreadState* __tstate = wxPyBeginAllowThreads();
26425 {
26426 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
26427 result = (wxString *) &_result_ref;
26428 }
26429 wxPyEndAllowThreads(__tstate);
26430 if (PyErr_Occurred()) SWIG_fail;
26431 }
26432 {
26433 #if wxUSE_UNICODE
26434 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26435 #else
26436 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26437 #endif
26438 }
26439 return resultobj;
26440 fail:
26441 return NULL;
26442 }
26443
26444
26445 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26446 PyObject *obj;
26447 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26448 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
26449 return SWIG_Py_Void();
26450 }
26451
26452 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26453 return SWIG_Python_InitShadowInstance(args);
26454 }
26455
26456 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26457 PyObject *resultobj = 0;
26458 wxString const &arg1_defvalue = wxPyEmptyString ;
26459 wxString *arg1 = (wxString *) &arg1_defvalue ;
26460 int arg2 = (int) 0 ;
26461 int arg3 = (int) 0 ;
26462 wxString const &arg4_defvalue = wxPyEmptyString ;
26463 wxString *arg4 = (wxString *) &arg4_defvalue ;
26464 wxMetaFileDC *result = 0 ;
26465 bool temp1 = false ;
26466 int val2 ;
26467 int ecode2 = 0 ;
26468 int val3 ;
26469 int ecode3 = 0 ;
26470 bool temp4 = false ;
26471 PyObject * obj0 = 0 ;
26472 PyObject * obj1 = 0 ;
26473 PyObject * obj2 = 0 ;
26474 PyObject * obj3 = 0 ;
26475 char * kwnames[] = {
26476 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
26477 };
26478
26479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26480 if (obj0) {
26481 {
26482 arg1 = wxString_in_helper(obj0);
26483 if (arg1 == NULL) SWIG_fail;
26484 temp1 = true;
26485 }
26486 }
26487 if (obj1) {
26488 ecode2 = SWIG_AsVal_int(obj1, &val2);
26489 if (!SWIG_IsOK(ecode2)) {
26490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
26491 }
26492 arg2 = static_cast< int >(val2);
26493 }
26494 if (obj2) {
26495 ecode3 = SWIG_AsVal_int(obj2, &val3);
26496 if (!SWIG_IsOK(ecode3)) {
26497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
26498 }
26499 arg3 = static_cast< int >(val3);
26500 }
26501 if (obj3) {
26502 {
26503 arg4 = wxString_in_helper(obj3);
26504 if (arg4 == NULL) SWIG_fail;
26505 temp4 = true;
26506 }
26507 }
26508 {
26509 if (!wxPyCheckForApp()) SWIG_fail;
26510 PyThreadState* __tstate = wxPyBeginAllowThreads();
26511 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
26512 wxPyEndAllowThreads(__tstate);
26513 if (PyErr_Occurred()) SWIG_fail;
26514 }
26515 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
26516 {
26517 if (temp1)
26518 delete arg1;
26519 }
26520 {
26521 if (temp4)
26522 delete arg4;
26523 }
26524 return resultobj;
26525 fail:
26526 {
26527 if (temp1)
26528 delete arg1;
26529 }
26530 {
26531 if (temp4)
26532 delete arg4;
26533 }
26534 return NULL;
26535 }
26536
26537
26538 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26539 PyObject *resultobj = 0;
26540 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
26541 wxMetaFile *result = 0 ;
26542 void *argp1 = 0 ;
26543 int res1 = 0 ;
26544 PyObject *swig_obj[1] ;
26545
26546 if (!args) SWIG_fail;
26547 swig_obj[0] = args;
26548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
26549 if (!SWIG_IsOK(res1)) {
26550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
26551 }
26552 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
26553 {
26554 PyThreadState* __tstate = wxPyBeginAllowThreads();
26555 result = (wxMetaFile *)(arg1)->Close();
26556 wxPyEndAllowThreads(__tstate);
26557 if (PyErr_Occurred()) SWIG_fail;
26558 }
26559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
26560 return resultobj;
26561 fail:
26562 return NULL;
26563 }
26564
26565
26566 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26567 PyObject *obj;
26568 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26569 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
26570 return SWIG_Py_Void();
26571 }
26572
26573 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26574 return SWIG_Python_InitShadowInstance(args);
26575 }
26576
26577 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26578 PyObject *resultobj = 0;
26579 wxPrintData *arg1 = 0 ;
26580 wxPrinterDC *result = 0 ;
26581 void *argp1 = 0 ;
26582 int res1 = 0 ;
26583 PyObject * obj0 = 0 ;
26584 char * kwnames[] = {
26585 (char *) "printData", NULL
26586 };
26587
26588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
26589 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
26590 if (!SWIG_IsOK(res1)) {
26591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26592 }
26593 if (!argp1) {
26594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26595 }
26596 arg1 = reinterpret_cast< wxPrintData * >(argp1);
26597 {
26598 if (!wxPyCheckForApp()) SWIG_fail;
26599 PyThreadState* __tstate = wxPyBeginAllowThreads();
26600 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
26601 wxPyEndAllowThreads(__tstate);
26602 if (PyErr_Occurred()) SWIG_fail;
26603 }
26604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
26605 return resultobj;
26606 fail:
26607 return NULL;
26608 }
26609
26610
26611 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26612 PyObject *obj;
26613 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26614 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
26615 return SWIG_Py_Void();
26616 }
26617
26618 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26619 return SWIG_Python_InitShadowInstance(args);
26620 }
26621
26622 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26623 PyObject *resultobj = 0;
26624 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
26625 wxGraphicsObject *result = 0 ;
26626 void *argp1 = 0 ;
26627 int res1 = 0 ;
26628 PyObject * obj0 = 0 ;
26629 char * kwnames[] = {
26630 (char *) "renderer", NULL
26631 };
26632
26633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
26634 if (obj0) {
26635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26636 if (!SWIG_IsOK(res1)) {
26637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
26638 }
26639 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
26640 }
26641 {
26642 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
26643 if (PyErr_Occurred()) SWIG_fail;
26644 }
26645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
26646 return resultobj;
26647 fail:
26648 return NULL;
26649 }
26650
26651
26652 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26653 PyObject *resultobj = 0;
26654 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26655 void *argp1 = 0 ;
26656 int res1 = 0 ;
26657 PyObject *swig_obj[1] ;
26658
26659 if (!args) SWIG_fail;
26660 swig_obj[0] = args;
26661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
26662 if (!SWIG_IsOK(res1)) {
26663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
26664 }
26665 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26666 {
26667 delete arg1;
26668
26669 if (PyErr_Occurred()) SWIG_fail;
26670 }
26671 resultobj = SWIG_Py_Void();
26672 return resultobj;
26673 fail:
26674 return NULL;
26675 }
26676
26677
26678 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26679 PyObject *resultobj = 0;
26680 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26681 bool result;
26682 void *argp1 = 0 ;
26683 int res1 = 0 ;
26684 PyObject *swig_obj[1] ;
26685
26686 if (!args) SWIG_fail;
26687 swig_obj[0] = args;
26688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26689 if (!SWIG_IsOK(res1)) {
26690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26691 }
26692 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26693 {
26694 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
26695 if (PyErr_Occurred()) SWIG_fail;
26696 }
26697 {
26698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26699 }
26700 return resultobj;
26701 fail:
26702 return NULL;
26703 }
26704
26705
26706 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26707 PyObject *resultobj = 0;
26708 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26709 wxGraphicsRenderer *result = 0 ;
26710 void *argp1 = 0 ;
26711 int res1 = 0 ;
26712 PyObject *swig_obj[1] ;
26713
26714 if (!args) SWIG_fail;
26715 swig_obj[0] = args;
26716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26717 if (!SWIG_IsOK(res1)) {
26718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26719 }
26720 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26721 {
26722 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
26723 if (PyErr_Occurred()) SWIG_fail;
26724 }
26725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26726 return resultobj;
26727 fail:
26728 return NULL;
26729 }
26730
26731
26732 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26733 PyObject *obj;
26734 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26735 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
26736 return SWIG_Py_Void();
26737 }
26738
26739 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26740 return SWIG_Python_InitShadowInstance(args);
26741 }
26742
26743 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26744 PyObject *resultobj = 0;
26745 wxGraphicsPen *result = 0 ;
26746
26747 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
26748 {
26749 result = (wxGraphicsPen *)new wxGraphicsPen();
26750 if (PyErr_Occurred()) SWIG_fail;
26751 }
26752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
26753 return resultobj;
26754 fail:
26755 return NULL;
26756 }
26757
26758
26759 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26760 PyObject *resultobj = 0;
26761 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
26762 void *argp1 = 0 ;
26763 int res1 = 0 ;
26764 PyObject *swig_obj[1] ;
26765
26766 if (!args) SWIG_fail;
26767 swig_obj[0] = args;
26768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
26769 if (!SWIG_IsOK(res1)) {
26770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
26771 }
26772 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
26773 {
26774 delete arg1;
26775
26776 if (PyErr_Occurred()) SWIG_fail;
26777 }
26778 resultobj = SWIG_Py_Void();
26779 return resultobj;
26780 fail:
26781 return NULL;
26782 }
26783
26784
26785 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26786 PyObject *obj;
26787 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26788 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
26789 return SWIG_Py_Void();
26790 }
26791
26792 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26793 return SWIG_Python_InitShadowInstance(args);
26794 }
26795
26796 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26797 PyObject *resultobj = 0;
26798 wxGraphicsBrush *result = 0 ;
26799
26800 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26801 {
26802 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26803 if (PyErr_Occurred()) SWIG_fail;
26804 }
26805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26806 return resultobj;
26807 fail:
26808 return NULL;
26809 }
26810
26811
26812 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26813 PyObject *resultobj = 0;
26814 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26815 void *argp1 = 0 ;
26816 int res1 = 0 ;
26817 PyObject *swig_obj[1] ;
26818
26819 if (!args) SWIG_fail;
26820 swig_obj[0] = args;
26821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26822 if (!SWIG_IsOK(res1)) {
26823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26824 }
26825 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26826 {
26827 delete arg1;
26828
26829 if (PyErr_Occurred()) SWIG_fail;
26830 }
26831 resultobj = SWIG_Py_Void();
26832 return resultobj;
26833 fail:
26834 return NULL;
26835 }
26836
26837
26838 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26839 PyObject *obj;
26840 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26841 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26842 return SWIG_Py_Void();
26843 }
26844
26845 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26846 return SWIG_Python_InitShadowInstance(args);
26847 }
26848
26849 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26850 PyObject *resultobj = 0;
26851 wxGraphicsFont *result = 0 ;
26852
26853 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26854 {
26855 result = (wxGraphicsFont *)new wxGraphicsFont();
26856 if (PyErr_Occurred()) SWIG_fail;
26857 }
26858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26859 return resultobj;
26860 fail:
26861 return NULL;
26862 }
26863
26864
26865 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26866 PyObject *resultobj = 0;
26867 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26868 void *argp1 = 0 ;
26869 int res1 = 0 ;
26870 PyObject *swig_obj[1] ;
26871
26872 if (!args) SWIG_fail;
26873 swig_obj[0] = args;
26874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26875 if (!SWIG_IsOK(res1)) {
26876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26877 }
26878 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26879 {
26880 delete arg1;
26881
26882 if (PyErr_Occurred()) SWIG_fail;
26883 }
26884 resultobj = SWIG_Py_Void();
26885 return resultobj;
26886 fail:
26887 return NULL;
26888 }
26889
26890
26891 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26892 PyObject *obj;
26893 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26894 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26895 return SWIG_Py_Void();
26896 }
26897
26898 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26899 return SWIG_Python_InitShadowInstance(args);
26900 }
26901
26902 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26903 PyObject *resultobj = 0;
26904 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26905 void *argp1 = 0 ;
26906 int res1 = 0 ;
26907 PyObject *swig_obj[1] ;
26908
26909 if (!args) SWIG_fail;
26910 swig_obj[0] = args;
26911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
26912 if (!SWIG_IsOK(res1)) {
26913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26914 }
26915 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26916 {
26917 delete arg1;
26918
26919 if (PyErr_Occurred()) SWIG_fail;
26920 }
26921 resultobj = SWIG_Py_Void();
26922 return resultobj;
26923 fail:
26924 return NULL;
26925 }
26926
26927
26928 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26929 PyObject *resultobj = 0;
26930 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26931 wxGraphicsMatrix *arg2 = 0 ;
26932 void *argp1 = 0 ;
26933 int res1 = 0 ;
26934 void *argp2 = 0 ;
26935 int res2 = 0 ;
26936 PyObject * obj0 = 0 ;
26937 PyObject * obj1 = 0 ;
26938 char * kwnames[] = {
26939 (char *) "self",(char *) "t", NULL
26940 };
26941
26942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26944 if (!SWIG_IsOK(res1)) {
26945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26946 }
26947 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26948 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26949 if (!SWIG_IsOK(res2)) {
26950 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26951 }
26952 if (!argp2) {
26953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26954 }
26955 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26956 {
26957 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
26958 if (PyErr_Occurred()) SWIG_fail;
26959 }
26960 resultobj = SWIG_Py_Void();
26961 return resultobj;
26962 fail:
26963 return NULL;
26964 }
26965
26966
26967 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26968 PyObject *resultobj = 0;
26969 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26970 wxDouble arg2 = (wxDouble) 1.0 ;
26971 wxDouble arg3 = (wxDouble) 0.0 ;
26972 wxDouble arg4 = (wxDouble) 0.0 ;
26973 wxDouble arg5 = (wxDouble) 1.0 ;
26974 wxDouble arg6 = (wxDouble) 0.0 ;
26975 wxDouble arg7 = (wxDouble) 0.0 ;
26976 void *argp1 = 0 ;
26977 int res1 = 0 ;
26978 double val2 ;
26979 int ecode2 = 0 ;
26980 double val3 ;
26981 int ecode3 = 0 ;
26982 double val4 ;
26983 int ecode4 = 0 ;
26984 double val5 ;
26985 int ecode5 = 0 ;
26986 double val6 ;
26987 int ecode6 = 0 ;
26988 double val7 ;
26989 int ecode7 = 0 ;
26990 PyObject * obj0 = 0 ;
26991 PyObject * obj1 = 0 ;
26992 PyObject * obj2 = 0 ;
26993 PyObject * obj3 = 0 ;
26994 PyObject * obj4 = 0 ;
26995 PyObject * obj5 = 0 ;
26996 PyObject * obj6 = 0 ;
26997 char * kwnames[] = {
26998 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26999 };
27000
27001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27003 if (!SWIG_IsOK(res1)) {
27004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27005 }
27006 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27007 if (obj1) {
27008 ecode2 = SWIG_AsVal_double(obj1, &val2);
27009 if (!SWIG_IsOK(ecode2)) {
27010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
27011 }
27012 arg2 = static_cast< wxDouble >(val2);
27013 }
27014 if (obj2) {
27015 ecode3 = SWIG_AsVal_double(obj2, &val3);
27016 if (!SWIG_IsOK(ecode3)) {
27017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
27018 }
27019 arg3 = static_cast< wxDouble >(val3);
27020 }
27021 if (obj3) {
27022 ecode4 = SWIG_AsVal_double(obj3, &val4);
27023 if (!SWIG_IsOK(ecode4)) {
27024 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
27025 }
27026 arg4 = static_cast< wxDouble >(val4);
27027 }
27028 if (obj4) {
27029 ecode5 = SWIG_AsVal_double(obj4, &val5);
27030 if (!SWIG_IsOK(ecode5)) {
27031 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
27032 }
27033 arg5 = static_cast< wxDouble >(val5);
27034 }
27035 if (obj5) {
27036 ecode6 = SWIG_AsVal_double(obj5, &val6);
27037 if (!SWIG_IsOK(ecode6)) {
27038 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
27039 }
27040 arg6 = static_cast< wxDouble >(val6);
27041 }
27042 if (obj6) {
27043 ecode7 = SWIG_AsVal_double(obj6, &val7);
27044 if (!SWIG_IsOK(ecode7)) {
27045 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
27046 }
27047 arg7 = static_cast< wxDouble >(val7);
27048 }
27049 {
27050 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
27051 if (PyErr_Occurred()) SWIG_fail;
27052 }
27053 resultobj = SWIG_Py_Void();
27054 return resultobj;
27055 fail:
27056 return NULL;
27057 }
27058
27059
27060 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27061 PyObject *resultobj = 0;
27062 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27063 wxDouble *arg2 = (wxDouble *) 0 ;
27064 wxDouble *arg3 = (wxDouble *) 0 ;
27065 wxDouble *arg4 = (wxDouble *) 0 ;
27066 wxDouble *arg5 = (wxDouble *) 0 ;
27067 wxDouble *arg6 = (wxDouble *) 0 ;
27068 wxDouble *arg7 = (wxDouble *) 0 ;
27069 void *argp1 = 0 ;
27070 int res1 = 0 ;
27071 wxDouble temp2 ;
27072 int res2 = SWIG_TMPOBJ ;
27073 wxDouble temp3 ;
27074 int res3 = SWIG_TMPOBJ ;
27075 wxDouble temp4 ;
27076 int res4 = SWIG_TMPOBJ ;
27077 wxDouble temp5 ;
27078 int res5 = SWIG_TMPOBJ ;
27079 wxDouble temp6 ;
27080 int res6 = SWIG_TMPOBJ ;
27081 wxDouble temp7 ;
27082 int res7 = SWIG_TMPOBJ ;
27083 PyObject *swig_obj[1] ;
27084
27085 arg2 = &temp2;
27086 arg3 = &temp3;
27087 arg4 = &temp4;
27088 arg5 = &temp5;
27089 arg6 = &temp6;
27090 arg7 = &temp7;
27091 if (!args) SWIG_fail;
27092 swig_obj[0] = args;
27093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27094 if (!SWIG_IsOK(res1)) {
27095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27096 }
27097 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27098 {
27099 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
27100 if (PyErr_Occurred()) SWIG_fail;
27101 }
27102 resultobj = SWIG_Py_Void();
27103 if (SWIG_IsTmpObj(res2)) {
27104 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27105 } else {
27106 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27107 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27108 }
27109 if (SWIG_IsTmpObj(res3)) {
27110 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27111 } else {
27112 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27114 }
27115 if (SWIG_IsTmpObj(res4)) {
27116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
27117 } else {
27118 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
27120 }
27121 if (SWIG_IsTmpObj(res5)) {
27122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
27123 } else {
27124 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
27126 }
27127 if (SWIG_IsTmpObj(res6)) {
27128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
27129 } else {
27130 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
27132 }
27133 if (SWIG_IsTmpObj(res7)) {
27134 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
27135 } else {
27136 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27137 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
27138 }
27139 return resultobj;
27140 fail:
27141 return NULL;
27142 }
27143
27144
27145 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27146 PyObject *resultobj = 0;
27147 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27148 void *argp1 = 0 ;
27149 int res1 = 0 ;
27150 PyObject *swig_obj[1] ;
27151
27152 if (!args) SWIG_fail;
27153 swig_obj[0] = args;
27154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27155 if (!SWIG_IsOK(res1)) {
27156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27157 }
27158 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27159 {
27160 (arg1)->Invert();
27161 if (PyErr_Occurred()) SWIG_fail;
27162 }
27163 resultobj = SWIG_Py_Void();
27164 return resultobj;
27165 fail:
27166 return NULL;
27167 }
27168
27169
27170 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27171 PyObject *resultobj = 0;
27172 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27173 wxGraphicsMatrix *arg2 = 0 ;
27174 bool result;
27175 void *argp1 = 0 ;
27176 int res1 = 0 ;
27177 void *argp2 = 0 ;
27178 int res2 = 0 ;
27179 PyObject * obj0 = 0 ;
27180 PyObject * obj1 = 0 ;
27181 char * kwnames[] = {
27182 (char *) "self",(char *) "t", NULL
27183 };
27184
27185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
27186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27187 if (!SWIG_IsOK(res1)) {
27188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27189 }
27190 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27191 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27192 if (!SWIG_IsOK(res2)) {
27193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27194 }
27195 if (!argp2) {
27196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27197 }
27198 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27199 {
27200 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
27201 if (PyErr_Occurred()) SWIG_fail;
27202 }
27203 {
27204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27205 }
27206 return resultobj;
27207 fail:
27208 return NULL;
27209 }
27210
27211
27212 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27213 PyObject *resultobj = 0;
27214 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27215 bool result;
27216 void *argp1 = 0 ;
27217 int res1 = 0 ;
27218 PyObject *swig_obj[1] ;
27219
27220 if (!args) SWIG_fail;
27221 swig_obj[0] = args;
27222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27223 if (!SWIG_IsOK(res1)) {
27224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27225 }
27226 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27227 {
27228 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
27229 if (PyErr_Occurred()) SWIG_fail;
27230 }
27231 {
27232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27233 }
27234 return resultobj;
27235 fail:
27236 return NULL;
27237 }
27238
27239
27240 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27241 PyObject *resultobj = 0;
27242 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27243 wxDouble arg2 ;
27244 wxDouble arg3 ;
27245 void *argp1 = 0 ;
27246 int res1 = 0 ;
27247 double val2 ;
27248 int ecode2 = 0 ;
27249 double val3 ;
27250 int ecode3 = 0 ;
27251 PyObject * obj0 = 0 ;
27252 PyObject * obj1 = 0 ;
27253 PyObject * obj2 = 0 ;
27254 char * kwnames[] = {
27255 (char *) "self",(char *) "dx",(char *) "dy", NULL
27256 };
27257
27258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27260 if (!SWIG_IsOK(res1)) {
27261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27262 }
27263 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27264 ecode2 = SWIG_AsVal_double(obj1, &val2);
27265 if (!SWIG_IsOK(ecode2)) {
27266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
27267 }
27268 arg2 = static_cast< wxDouble >(val2);
27269 ecode3 = SWIG_AsVal_double(obj2, &val3);
27270 if (!SWIG_IsOK(ecode3)) {
27271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
27272 }
27273 arg3 = static_cast< wxDouble >(val3);
27274 {
27275 (arg1)->Translate(arg2,arg3);
27276 if (PyErr_Occurred()) SWIG_fail;
27277 }
27278 resultobj = SWIG_Py_Void();
27279 return resultobj;
27280 fail:
27281 return NULL;
27282 }
27283
27284
27285 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27286 PyObject *resultobj = 0;
27287 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27288 wxDouble arg2 ;
27289 wxDouble arg3 ;
27290 void *argp1 = 0 ;
27291 int res1 = 0 ;
27292 double val2 ;
27293 int ecode2 = 0 ;
27294 double val3 ;
27295 int ecode3 = 0 ;
27296 PyObject * obj0 = 0 ;
27297 PyObject * obj1 = 0 ;
27298 PyObject * obj2 = 0 ;
27299 char * kwnames[] = {
27300 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
27301 };
27302
27303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27305 if (!SWIG_IsOK(res1)) {
27306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27307 }
27308 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27309 ecode2 = SWIG_AsVal_double(obj1, &val2);
27310 if (!SWIG_IsOK(ecode2)) {
27311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
27312 }
27313 arg2 = static_cast< wxDouble >(val2);
27314 ecode3 = SWIG_AsVal_double(obj2, &val3);
27315 if (!SWIG_IsOK(ecode3)) {
27316 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
27317 }
27318 arg3 = static_cast< wxDouble >(val3);
27319 {
27320 (arg1)->Scale(arg2,arg3);
27321 if (PyErr_Occurred()) SWIG_fail;
27322 }
27323 resultobj = SWIG_Py_Void();
27324 return resultobj;
27325 fail:
27326 return NULL;
27327 }
27328
27329
27330 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27331 PyObject *resultobj = 0;
27332 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27333 wxDouble arg2 ;
27334 void *argp1 = 0 ;
27335 int res1 = 0 ;
27336 double val2 ;
27337 int ecode2 = 0 ;
27338 PyObject * obj0 = 0 ;
27339 PyObject * obj1 = 0 ;
27340 char * kwnames[] = {
27341 (char *) "self",(char *) "angle", NULL
27342 };
27343
27344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
27345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27346 if (!SWIG_IsOK(res1)) {
27347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27348 }
27349 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27350 ecode2 = SWIG_AsVal_double(obj1, &val2);
27351 if (!SWIG_IsOK(ecode2)) {
27352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
27353 }
27354 arg2 = static_cast< wxDouble >(val2);
27355 {
27356 (arg1)->Rotate(arg2);
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_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27367 PyObject *resultobj = 0;
27368 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27369 wxDouble *arg2 = (wxDouble *) 0 ;
27370 wxDouble *arg3 = (wxDouble *) 0 ;
27371 void *argp1 = 0 ;
27372 int res1 = 0 ;
27373 wxDouble temp2 ;
27374 int res2 = 0 ;
27375 wxDouble temp3 ;
27376 int res3 = 0 ;
27377 PyObject * obj0 = 0 ;
27378 PyObject * obj1 = 0 ;
27379 PyObject * obj2 = 0 ;
27380 char * kwnames[] = {
27381 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
27382 };
27383
27384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27386 if (!SWIG_IsOK(res1)) {
27387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27388 }
27389 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27390 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
27391 double val;
27392 int ecode = SWIG_AsVal_double(obj1, &val);
27393 if (!SWIG_IsOK(ecode)) {
27394 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27395 }
27396 temp2 = static_cast< wxDouble >(val);
27397 arg2 = &temp2;
27398 res2 = SWIG_AddTmpMask(ecode);
27399 }
27400 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
27401 double val;
27402 int ecode = SWIG_AsVal_double(obj2, &val);
27403 if (!SWIG_IsOK(ecode)) {
27404 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27405 }
27406 temp3 = static_cast< wxDouble >(val);
27407 arg3 = &temp3;
27408 res3 = SWIG_AddTmpMask(ecode);
27409 }
27410 {
27411 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
27412 if (PyErr_Occurred()) SWIG_fail;
27413 }
27414 resultobj = SWIG_Py_Void();
27415 if (SWIG_IsTmpObj(res2)) {
27416 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27417 } else {
27418 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27419 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27420 }
27421 if (SWIG_IsTmpObj(res3)) {
27422 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27423 } else {
27424 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27425 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27426 }
27427 return resultobj;
27428 fail:
27429 return NULL;
27430 }
27431
27432
27433 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27434 PyObject *resultobj = 0;
27435 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27436 wxDouble *arg2 = (wxDouble *) 0 ;
27437 wxDouble *arg3 = (wxDouble *) 0 ;
27438 void *argp1 = 0 ;
27439 int res1 = 0 ;
27440 wxDouble temp2 ;
27441 int res2 = 0 ;
27442 wxDouble temp3 ;
27443 int res3 = 0 ;
27444 PyObject * obj0 = 0 ;
27445 PyObject * obj1 = 0 ;
27446 PyObject * obj2 = 0 ;
27447 char * kwnames[] = {
27448 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
27449 };
27450
27451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27453 if (!SWIG_IsOK(res1)) {
27454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27455 }
27456 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27457 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
27458 double val;
27459 int ecode = SWIG_AsVal_double(obj1, &val);
27460 if (!SWIG_IsOK(ecode)) {
27461 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
27462 }
27463 temp2 = static_cast< wxDouble >(val);
27464 arg2 = &temp2;
27465 res2 = SWIG_AddTmpMask(ecode);
27466 }
27467 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
27468 double val;
27469 int ecode = SWIG_AsVal_double(obj2, &val);
27470 if (!SWIG_IsOK(ecode)) {
27471 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
27472 }
27473 temp3 = static_cast< wxDouble >(val);
27474 arg3 = &temp3;
27475 res3 = SWIG_AddTmpMask(ecode);
27476 }
27477 {
27478 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
27479 if (PyErr_Occurred()) SWIG_fail;
27480 }
27481 resultobj = SWIG_Py_Void();
27482 if (SWIG_IsTmpObj(res2)) {
27483 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27484 } else {
27485 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27486 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27487 }
27488 if (SWIG_IsTmpObj(res3)) {
27489 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27490 } else {
27491 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27492 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27493 }
27494 return resultobj;
27495 fail:
27496 return NULL;
27497 }
27498
27499
27500 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27501 PyObject *resultobj = 0;
27502 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27503 void *result = 0 ;
27504 void *argp1 = 0 ;
27505 int res1 = 0 ;
27506 PyObject *swig_obj[1] ;
27507
27508 if (!args) SWIG_fail;
27509 swig_obj[0] = args;
27510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27511 if (!SWIG_IsOK(res1)) {
27512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27513 }
27514 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27515 {
27516 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
27517 if (PyErr_Occurred()) SWIG_fail;
27518 }
27519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27520 return resultobj;
27521 fail:
27522 return NULL;
27523 }
27524
27525
27526 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27527 PyObject *obj;
27528 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27529 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
27530 return SWIG_Py_Void();
27531 }
27532
27533 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27534 PyObject *resultobj = 0;
27535 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27536 void *argp1 = 0 ;
27537 int res1 = 0 ;
27538 PyObject *swig_obj[1] ;
27539
27540 if (!args) SWIG_fail;
27541 swig_obj[0] = args;
27542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
27543 if (!SWIG_IsOK(res1)) {
27544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27545 }
27546 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27547 {
27548 delete arg1;
27549
27550 if (PyErr_Occurred()) SWIG_fail;
27551 }
27552 resultobj = SWIG_Py_Void();
27553 return resultobj;
27554 fail:
27555 return NULL;
27556 }
27557
27558
27559 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27560 PyObject *resultobj = 0;
27561 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27562 wxDouble arg2 ;
27563 wxDouble arg3 ;
27564 void *argp1 = 0 ;
27565 int res1 = 0 ;
27566 double val2 ;
27567 int ecode2 = 0 ;
27568 double val3 ;
27569 int ecode3 = 0 ;
27570
27571 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27573 if (!SWIG_IsOK(res1)) {
27574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27575 }
27576 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27577 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27578 if (!SWIG_IsOK(ecode2)) {
27579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27580 }
27581 arg2 = static_cast< wxDouble >(val2);
27582 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27583 if (!SWIG_IsOK(ecode3)) {
27584 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27585 }
27586 arg3 = static_cast< wxDouble >(val3);
27587 {
27588 (arg1)->MoveToPoint(arg2,arg3);
27589 if (PyErr_Occurred()) SWIG_fail;
27590 }
27591 resultobj = SWIG_Py_Void();
27592 return resultobj;
27593 fail:
27594 return NULL;
27595 }
27596
27597
27598 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27599 PyObject *resultobj = 0;
27600 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27601 wxPoint2D *arg2 = 0 ;
27602 void *argp1 = 0 ;
27603 int res1 = 0 ;
27604 wxPoint2D temp2 ;
27605
27606 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27608 if (!SWIG_IsOK(res1)) {
27609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27610 }
27611 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27612 {
27613 arg2 = &temp2;
27614 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27615 }
27616 {
27617 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
27618 if (PyErr_Occurred()) SWIG_fail;
27619 }
27620 resultobj = SWIG_Py_Void();
27621 return resultobj;
27622 fail:
27623 return NULL;
27624 }
27625
27626
27627 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
27628 int argc;
27629 PyObject *argv[4];
27630
27631 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
27632 --argc;
27633 if (argc == 2) {
27634 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
27635 }
27636 if (argc == 3) {
27637 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
27638 }
27639
27640 fail:
27641 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
27642 return NULL;
27643 }
27644
27645
27646 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27647 PyObject *resultobj = 0;
27648 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27649 wxDouble arg2 ;
27650 wxDouble arg3 ;
27651 void *argp1 = 0 ;
27652 int res1 = 0 ;
27653 double val2 ;
27654 int ecode2 = 0 ;
27655 double val3 ;
27656 int ecode3 = 0 ;
27657
27658 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27660 if (!SWIG_IsOK(res1)) {
27661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27662 }
27663 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27664 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27665 if (!SWIG_IsOK(ecode2)) {
27666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27667 }
27668 arg2 = static_cast< wxDouble >(val2);
27669 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27670 if (!SWIG_IsOK(ecode3)) {
27671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27672 }
27673 arg3 = static_cast< wxDouble >(val3);
27674 {
27675 (arg1)->AddLineToPoint(arg2,arg3);
27676 if (PyErr_Occurred()) SWIG_fail;
27677 }
27678 resultobj = SWIG_Py_Void();
27679 return resultobj;
27680 fail:
27681 return NULL;
27682 }
27683
27684
27685 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27686 PyObject *resultobj = 0;
27687 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27688 wxPoint2D *arg2 = 0 ;
27689 void *argp1 = 0 ;
27690 int res1 = 0 ;
27691 wxPoint2D temp2 ;
27692
27693 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27695 if (!SWIG_IsOK(res1)) {
27696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27697 }
27698 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27699 {
27700 arg2 = &temp2;
27701 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27702 }
27703 {
27704 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
27705 if (PyErr_Occurred()) SWIG_fail;
27706 }
27707 resultobj = SWIG_Py_Void();
27708 return resultobj;
27709 fail:
27710 return NULL;
27711 }
27712
27713
27714 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
27715 int argc;
27716 PyObject *argv[4];
27717
27718 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
27719 --argc;
27720 if (argc == 2) {
27721 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
27722 }
27723 if (argc == 3) {
27724 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
27725 }
27726
27727 fail:
27728 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
27729 return NULL;
27730 }
27731
27732
27733 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27734 PyObject *resultobj = 0;
27735 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27736 wxDouble arg2 ;
27737 wxDouble arg3 ;
27738 wxDouble arg4 ;
27739 wxDouble arg5 ;
27740 wxDouble arg6 ;
27741 wxDouble arg7 ;
27742 void *argp1 = 0 ;
27743 int res1 = 0 ;
27744 double val2 ;
27745 int ecode2 = 0 ;
27746 double val3 ;
27747 int ecode3 = 0 ;
27748 double val4 ;
27749 int ecode4 = 0 ;
27750 double val5 ;
27751 int ecode5 = 0 ;
27752 double val6 ;
27753 int ecode6 = 0 ;
27754 double val7 ;
27755 int ecode7 = 0 ;
27756
27757 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27759 if (!SWIG_IsOK(res1)) {
27760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27761 }
27762 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27763 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27764 if (!SWIG_IsOK(ecode2)) {
27765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27766 }
27767 arg2 = static_cast< wxDouble >(val2);
27768 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27769 if (!SWIG_IsOK(ecode3)) {
27770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27771 }
27772 arg3 = static_cast< wxDouble >(val3);
27773 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27774 if (!SWIG_IsOK(ecode4)) {
27775 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27776 }
27777 arg4 = static_cast< wxDouble >(val4);
27778 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27779 if (!SWIG_IsOK(ecode5)) {
27780 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27781 }
27782 arg5 = static_cast< wxDouble >(val5);
27783 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27784 if (!SWIG_IsOK(ecode6)) {
27785 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27786 }
27787 arg6 = static_cast< wxDouble >(val6);
27788 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
27789 if (!SWIG_IsOK(ecode7)) {
27790 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
27791 }
27792 arg7 = static_cast< wxDouble >(val7);
27793 {
27794 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
27795 if (PyErr_Occurred()) SWIG_fail;
27796 }
27797 resultobj = SWIG_Py_Void();
27798 return resultobj;
27799 fail:
27800 return NULL;
27801 }
27802
27803
27804 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27805 PyObject *resultobj = 0;
27806 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27807 wxPoint2D *arg2 = 0 ;
27808 wxPoint2D *arg3 = 0 ;
27809 wxPoint2D *arg4 = 0 ;
27810 void *argp1 = 0 ;
27811 int res1 = 0 ;
27812 wxPoint2D temp2 ;
27813 wxPoint2D temp3 ;
27814 wxPoint2D temp4 ;
27815
27816 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
27817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27818 if (!SWIG_IsOK(res1)) {
27819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27820 }
27821 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27822 {
27823 arg2 = &temp2;
27824 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27825 }
27826 {
27827 arg3 = &temp3;
27828 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
27829 }
27830 {
27831 arg4 = &temp4;
27832 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
27833 }
27834 {
27835 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
27836 if (PyErr_Occurred()) SWIG_fail;
27837 }
27838 resultobj = SWIG_Py_Void();
27839 return resultobj;
27840 fail:
27841 return NULL;
27842 }
27843
27844
27845 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
27846 int argc;
27847 PyObject *argv[8];
27848
27849 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
27850 --argc;
27851 if (argc == 4) {
27852 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
27853 }
27854 if (argc == 7) {
27855 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
27856 }
27857
27858 fail:
27859 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
27860 return NULL;
27861 }
27862
27863
27864 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27865 PyObject *resultobj = 0;
27866 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27867 wxGraphicsPath *arg2 = 0 ;
27868 void *argp1 = 0 ;
27869 int res1 = 0 ;
27870 void *argp2 = 0 ;
27871 int res2 = 0 ;
27872 PyObject * obj0 = 0 ;
27873 PyObject * obj1 = 0 ;
27874 char * kwnames[] = {
27875 (char *) "self",(char *) "path", NULL
27876 };
27877
27878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
27879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27880 if (!SWIG_IsOK(res1)) {
27881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27882 }
27883 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
27885 if (!SWIG_IsOK(res2)) {
27886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27887 }
27888 if (!argp2) {
27889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27890 }
27891 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
27892 {
27893 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
27894 if (PyErr_Occurred()) SWIG_fail;
27895 }
27896 resultobj = SWIG_Py_Void();
27897 return resultobj;
27898 fail:
27899 return NULL;
27900 }
27901
27902
27903 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27904 PyObject *resultobj = 0;
27905 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27906 void *argp1 = 0 ;
27907 int res1 = 0 ;
27908 PyObject *swig_obj[1] ;
27909
27910 if (!args) SWIG_fail;
27911 swig_obj[0] = args;
27912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27913 if (!SWIG_IsOK(res1)) {
27914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27915 }
27916 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27917 {
27918 (arg1)->CloseSubpath();
27919 if (PyErr_Occurred()) SWIG_fail;
27920 }
27921 resultobj = SWIG_Py_Void();
27922 return resultobj;
27923 fail:
27924 return NULL;
27925 }
27926
27927
27928 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27929 PyObject *resultobj = 0;
27930 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27931 wxPoint2D result;
27932 void *argp1 = 0 ;
27933 int res1 = 0 ;
27934 PyObject *swig_obj[1] ;
27935
27936 if (!args) SWIG_fail;
27937 swig_obj[0] = args;
27938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27939 if (!SWIG_IsOK(res1)) {
27940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27941 }
27942 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27943 {
27944 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
27945 if (PyErr_Occurred()) SWIG_fail;
27946 }
27947 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
27948 return resultobj;
27949 fail:
27950 return NULL;
27951 }
27952
27953
27954 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27955 PyObject *resultobj = 0;
27956 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27957 wxDouble arg2 ;
27958 wxDouble arg3 ;
27959 wxDouble arg4 ;
27960 wxDouble arg5 ;
27961 wxDouble arg6 ;
27962 bool arg7 = (bool) true ;
27963 void *argp1 = 0 ;
27964 int res1 = 0 ;
27965 double val2 ;
27966 int ecode2 = 0 ;
27967 double val3 ;
27968 int ecode3 = 0 ;
27969 double val4 ;
27970 int ecode4 = 0 ;
27971 double val5 ;
27972 int ecode5 = 0 ;
27973 double val6 ;
27974 int ecode6 = 0 ;
27975 bool val7 ;
27976 int ecode7 = 0 ;
27977
27978 if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
27979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27980 if (!SWIG_IsOK(res1)) {
27981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27982 }
27983 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27984 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27985 if (!SWIG_IsOK(ecode2)) {
27986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
27987 }
27988 arg2 = static_cast< wxDouble >(val2);
27989 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27990 if (!SWIG_IsOK(ecode3)) {
27991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27992 }
27993 arg3 = static_cast< wxDouble >(val3);
27994 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27995 if (!SWIG_IsOK(ecode4)) {
27996 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27997 }
27998 arg4 = static_cast< wxDouble >(val4);
27999 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
28000 if (!SWIG_IsOK(ecode5)) {
28001 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
28002 }
28003 arg5 = static_cast< wxDouble >(val5);
28004 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
28005 if (!SWIG_IsOK(ecode6)) {
28006 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
28007 }
28008 arg6 = static_cast< wxDouble >(val6);
28009 if (swig_obj[6]) {
28010 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
28011 if (!SWIG_IsOK(ecode7)) {
28012 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
28013 }
28014 arg7 = static_cast< bool >(val7);
28015 }
28016 {
28017 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
28018 if (PyErr_Occurred()) SWIG_fail;
28019 }
28020 resultobj = SWIG_Py_Void();
28021 return resultobj;
28022 fail:
28023 return NULL;
28024 }
28025
28026
28027 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28028 PyObject *resultobj = 0;
28029 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28030 wxPoint2D *arg2 = 0 ;
28031 wxDouble arg3 ;
28032 wxDouble arg4 ;
28033 wxDouble arg5 ;
28034 bool arg6 = (bool) true ;
28035 void *argp1 = 0 ;
28036 int res1 = 0 ;
28037 wxPoint2D temp2 ;
28038 double val3 ;
28039 int ecode3 = 0 ;
28040 double val4 ;
28041 int ecode4 = 0 ;
28042 double val5 ;
28043 int ecode5 = 0 ;
28044 bool val6 ;
28045 int ecode6 = 0 ;
28046
28047 if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
28048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28049 if (!SWIG_IsOK(res1)) {
28050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28051 }
28052 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28053 {
28054 arg2 = &temp2;
28055 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
28056 }
28057 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28058 if (!SWIG_IsOK(ecode3)) {
28059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
28060 }
28061 arg3 = static_cast< wxDouble >(val3);
28062 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
28063 if (!SWIG_IsOK(ecode4)) {
28064 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
28065 }
28066 arg4 = static_cast< wxDouble >(val4);
28067 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
28068 if (!SWIG_IsOK(ecode5)) {
28069 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
28070 }
28071 arg5 = static_cast< wxDouble >(val5);
28072 if (swig_obj[5]) {
28073 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
28074 if (!SWIG_IsOK(ecode6)) {
28075 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
28076 }
28077 arg6 = static_cast< bool >(val6);
28078 }
28079 {
28080 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
28081 if (PyErr_Occurred()) SWIG_fail;
28082 }
28083 resultobj = SWIG_Py_Void();
28084 return resultobj;
28085 fail:
28086 return NULL;
28087 }
28088
28089
28090 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
28091 int argc;
28092 PyObject *argv[8];
28093
28094 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
28095 --argc;
28096 if ((argc >= 5) && (argc <= 6)) {
28097 int _v = 0;
28098 {
28099 {
28100 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
28101 }
28102 }
28103 if (!_v) goto check_1;
28104 if (argc > 5) {
28105 {
28106 {
28107 int res = SWIG_AsVal_bool(argv[5], NULL);
28108 _v = SWIG_CheckState(res);
28109 }
28110 }
28111 if (!_v) goto check_1;
28112 }
28113 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
28114 }
28115 check_1:
28116
28117 if ((argc >= 6) && (argc <= 7)) {
28118 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
28119 }
28120
28121 fail:
28122 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
28123 return NULL;
28124 }
28125
28126
28127 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28128 PyObject *resultobj = 0;
28129 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28130 wxDouble arg2 ;
28131 wxDouble arg3 ;
28132 wxDouble arg4 ;
28133 wxDouble arg5 ;
28134 void *argp1 = 0 ;
28135 int res1 = 0 ;
28136 double val2 ;
28137 int ecode2 = 0 ;
28138 double val3 ;
28139 int ecode3 = 0 ;
28140 double val4 ;
28141 int ecode4 = 0 ;
28142 double val5 ;
28143 int ecode5 = 0 ;
28144 PyObject * obj0 = 0 ;
28145 PyObject * obj1 = 0 ;
28146 PyObject * obj2 = 0 ;
28147 PyObject * obj3 = 0 ;
28148 PyObject * obj4 = 0 ;
28149 char * kwnames[] = {
28150 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
28151 };
28152
28153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28155 if (!SWIG_IsOK(res1)) {
28156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28157 }
28158 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28159 ecode2 = SWIG_AsVal_double(obj1, &val2);
28160 if (!SWIG_IsOK(ecode2)) {
28161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
28162 }
28163 arg2 = static_cast< wxDouble >(val2);
28164 ecode3 = SWIG_AsVal_double(obj2, &val3);
28165 if (!SWIG_IsOK(ecode3)) {
28166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
28167 }
28168 arg3 = static_cast< wxDouble >(val3);
28169 ecode4 = SWIG_AsVal_double(obj3, &val4);
28170 if (!SWIG_IsOK(ecode4)) {
28171 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
28172 }
28173 arg4 = static_cast< wxDouble >(val4);
28174 ecode5 = SWIG_AsVal_double(obj4, &val5);
28175 if (!SWIG_IsOK(ecode5)) {
28176 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
28177 }
28178 arg5 = static_cast< wxDouble >(val5);
28179 {
28180 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
28181 if (PyErr_Occurred()) SWIG_fail;
28182 }
28183 resultobj = SWIG_Py_Void();
28184 return resultobj;
28185 fail:
28186 return NULL;
28187 }
28188
28189
28190 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28191 PyObject *resultobj = 0;
28192 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28193 wxDouble arg2 ;
28194 wxDouble arg3 ;
28195 wxDouble arg4 ;
28196 wxDouble arg5 ;
28197 void *argp1 = 0 ;
28198 int res1 = 0 ;
28199 double val2 ;
28200 int ecode2 = 0 ;
28201 double val3 ;
28202 int ecode3 = 0 ;
28203 double val4 ;
28204 int ecode4 = 0 ;
28205 double val5 ;
28206 int ecode5 = 0 ;
28207 PyObject * obj0 = 0 ;
28208 PyObject * obj1 = 0 ;
28209 PyObject * obj2 = 0 ;
28210 PyObject * obj3 = 0 ;
28211 PyObject * obj4 = 0 ;
28212 char * kwnames[] = {
28213 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28214 };
28215
28216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28218 if (!SWIG_IsOK(res1)) {
28219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28220 }
28221 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28222 ecode2 = SWIG_AsVal_double(obj1, &val2);
28223 if (!SWIG_IsOK(ecode2)) {
28224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
28225 }
28226 arg2 = static_cast< wxDouble >(val2);
28227 ecode3 = SWIG_AsVal_double(obj2, &val3);
28228 if (!SWIG_IsOK(ecode3)) {
28229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
28230 }
28231 arg3 = static_cast< wxDouble >(val3);
28232 ecode4 = SWIG_AsVal_double(obj3, &val4);
28233 if (!SWIG_IsOK(ecode4)) {
28234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
28235 }
28236 arg4 = static_cast< wxDouble >(val4);
28237 ecode5 = SWIG_AsVal_double(obj4, &val5);
28238 if (!SWIG_IsOK(ecode5)) {
28239 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
28240 }
28241 arg5 = static_cast< wxDouble >(val5);
28242 {
28243 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
28244 if (PyErr_Occurred()) SWIG_fail;
28245 }
28246 resultobj = SWIG_Py_Void();
28247 return resultobj;
28248 fail:
28249 return NULL;
28250 }
28251
28252
28253 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28254 PyObject *resultobj = 0;
28255 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28256 wxDouble arg2 ;
28257 wxDouble arg3 ;
28258 wxDouble arg4 ;
28259 void *argp1 = 0 ;
28260 int res1 = 0 ;
28261 double val2 ;
28262 int ecode2 = 0 ;
28263 double val3 ;
28264 int ecode3 = 0 ;
28265 double val4 ;
28266 int ecode4 = 0 ;
28267 PyObject * obj0 = 0 ;
28268 PyObject * obj1 = 0 ;
28269 PyObject * obj2 = 0 ;
28270 PyObject * obj3 = 0 ;
28271 char * kwnames[] = {
28272 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
28273 };
28274
28275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28277 if (!SWIG_IsOK(res1)) {
28278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28279 }
28280 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28281 ecode2 = SWIG_AsVal_double(obj1, &val2);
28282 if (!SWIG_IsOK(ecode2)) {
28283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
28284 }
28285 arg2 = static_cast< wxDouble >(val2);
28286 ecode3 = SWIG_AsVal_double(obj2, &val3);
28287 if (!SWIG_IsOK(ecode3)) {
28288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
28289 }
28290 arg3 = static_cast< wxDouble >(val3);
28291 ecode4 = SWIG_AsVal_double(obj3, &val4);
28292 if (!SWIG_IsOK(ecode4)) {
28293 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
28294 }
28295 arg4 = static_cast< wxDouble >(val4);
28296 {
28297 (arg1)->AddCircle(arg2,arg3,arg4);
28298 if (PyErr_Occurred()) SWIG_fail;
28299 }
28300 resultobj = SWIG_Py_Void();
28301 return resultobj;
28302 fail:
28303 return NULL;
28304 }
28305
28306
28307 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28308 PyObject *resultobj = 0;
28309 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28310 wxDouble arg2 ;
28311 wxDouble arg3 ;
28312 wxDouble arg4 ;
28313 wxDouble arg5 ;
28314 wxDouble arg6 ;
28315 void *argp1 = 0 ;
28316 int res1 = 0 ;
28317 double val2 ;
28318 int ecode2 = 0 ;
28319 double val3 ;
28320 int ecode3 = 0 ;
28321 double val4 ;
28322 int ecode4 = 0 ;
28323 double val5 ;
28324 int ecode5 = 0 ;
28325 double val6 ;
28326 int ecode6 = 0 ;
28327 PyObject * obj0 = 0 ;
28328 PyObject * obj1 = 0 ;
28329 PyObject * obj2 = 0 ;
28330 PyObject * obj3 = 0 ;
28331 PyObject * obj4 = 0 ;
28332 PyObject * obj5 = 0 ;
28333 char * kwnames[] = {
28334 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
28335 };
28336
28337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28339 if (!SWIG_IsOK(res1)) {
28340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28341 }
28342 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28343 ecode2 = SWIG_AsVal_double(obj1, &val2);
28344 if (!SWIG_IsOK(ecode2)) {
28345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
28346 }
28347 arg2 = static_cast< wxDouble >(val2);
28348 ecode3 = SWIG_AsVal_double(obj2, &val3);
28349 if (!SWIG_IsOK(ecode3)) {
28350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
28351 }
28352 arg3 = static_cast< wxDouble >(val3);
28353 ecode4 = SWIG_AsVal_double(obj3, &val4);
28354 if (!SWIG_IsOK(ecode4)) {
28355 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
28356 }
28357 arg4 = static_cast< wxDouble >(val4);
28358 ecode5 = SWIG_AsVal_double(obj4, &val5);
28359 if (!SWIG_IsOK(ecode5)) {
28360 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
28361 }
28362 arg5 = static_cast< wxDouble >(val5);
28363 ecode6 = SWIG_AsVal_double(obj5, &val6);
28364 if (!SWIG_IsOK(ecode6)) {
28365 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
28366 }
28367 arg6 = static_cast< wxDouble >(val6);
28368 {
28369 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
28370 if (PyErr_Occurred()) SWIG_fail;
28371 }
28372 resultobj = SWIG_Py_Void();
28373 return resultobj;
28374 fail:
28375 return NULL;
28376 }
28377
28378
28379 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28380 PyObject *resultobj = 0;
28381 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28382 wxDouble arg2 ;
28383 wxDouble arg3 ;
28384 wxDouble arg4 ;
28385 wxDouble arg5 ;
28386 void *argp1 = 0 ;
28387 int res1 = 0 ;
28388 double val2 ;
28389 int ecode2 = 0 ;
28390 double val3 ;
28391 int ecode3 = 0 ;
28392 double val4 ;
28393 int ecode4 = 0 ;
28394 double val5 ;
28395 int ecode5 = 0 ;
28396 PyObject * obj0 = 0 ;
28397 PyObject * obj1 = 0 ;
28398 PyObject * obj2 = 0 ;
28399 PyObject * obj3 = 0 ;
28400 PyObject * obj4 = 0 ;
28401 char * kwnames[] = {
28402 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28403 };
28404
28405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28407 if (!SWIG_IsOK(res1)) {
28408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28409 }
28410 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28411 ecode2 = SWIG_AsVal_double(obj1, &val2);
28412 if (!SWIG_IsOK(ecode2)) {
28413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
28414 }
28415 arg2 = static_cast< wxDouble >(val2);
28416 ecode3 = SWIG_AsVal_double(obj2, &val3);
28417 if (!SWIG_IsOK(ecode3)) {
28418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
28419 }
28420 arg3 = static_cast< wxDouble >(val3);
28421 ecode4 = SWIG_AsVal_double(obj3, &val4);
28422 if (!SWIG_IsOK(ecode4)) {
28423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
28424 }
28425 arg4 = static_cast< wxDouble >(val4);
28426 ecode5 = SWIG_AsVal_double(obj4, &val5);
28427 if (!SWIG_IsOK(ecode5)) {
28428 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
28429 }
28430 arg5 = static_cast< wxDouble >(val5);
28431 {
28432 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
28433 if (PyErr_Occurred()) SWIG_fail;
28434 }
28435 resultobj = SWIG_Py_Void();
28436 return resultobj;
28437 fail:
28438 return NULL;
28439 }
28440
28441
28442 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28443 PyObject *resultobj = 0;
28444 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28445 wxDouble arg2 ;
28446 wxDouble arg3 ;
28447 wxDouble arg4 ;
28448 wxDouble arg5 ;
28449 wxDouble arg6 ;
28450 void *argp1 = 0 ;
28451 int res1 = 0 ;
28452 double val2 ;
28453 int ecode2 = 0 ;
28454 double val3 ;
28455 int ecode3 = 0 ;
28456 double val4 ;
28457 int ecode4 = 0 ;
28458 double val5 ;
28459 int ecode5 = 0 ;
28460 double val6 ;
28461 int ecode6 = 0 ;
28462 PyObject * obj0 = 0 ;
28463 PyObject * obj1 = 0 ;
28464 PyObject * obj2 = 0 ;
28465 PyObject * obj3 = 0 ;
28466 PyObject * obj4 = 0 ;
28467 PyObject * obj5 = 0 ;
28468 char * kwnames[] = {
28469 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
28470 };
28471
28472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28474 if (!SWIG_IsOK(res1)) {
28475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28476 }
28477 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28478 ecode2 = SWIG_AsVal_double(obj1, &val2);
28479 if (!SWIG_IsOK(ecode2)) {
28480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
28481 }
28482 arg2 = static_cast< wxDouble >(val2);
28483 ecode3 = SWIG_AsVal_double(obj2, &val3);
28484 if (!SWIG_IsOK(ecode3)) {
28485 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
28486 }
28487 arg3 = static_cast< wxDouble >(val3);
28488 ecode4 = SWIG_AsVal_double(obj3, &val4);
28489 if (!SWIG_IsOK(ecode4)) {
28490 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
28491 }
28492 arg4 = static_cast< wxDouble >(val4);
28493 ecode5 = SWIG_AsVal_double(obj4, &val5);
28494 if (!SWIG_IsOK(ecode5)) {
28495 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
28496 }
28497 arg5 = static_cast< wxDouble >(val5);
28498 ecode6 = SWIG_AsVal_double(obj5, &val6);
28499 if (!SWIG_IsOK(ecode6)) {
28500 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
28501 }
28502 arg6 = static_cast< wxDouble >(val6);
28503 {
28504 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
28505 if (PyErr_Occurred()) SWIG_fail;
28506 }
28507 resultobj = SWIG_Py_Void();
28508 return resultobj;
28509 fail:
28510 return NULL;
28511 }
28512
28513
28514 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28515 PyObject *resultobj = 0;
28516 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28517 void *result = 0 ;
28518 void *argp1 = 0 ;
28519 int res1 = 0 ;
28520 PyObject *swig_obj[1] ;
28521
28522 if (!args) SWIG_fail;
28523 swig_obj[0] = args;
28524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28525 if (!SWIG_IsOK(res1)) {
28526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28527 }
28528 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28529 {
28530 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
28531 if (PyErr_Occurred()) SWIG_fail;
28532 }
28533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28534 return resultobj;
28535 fail:
28536 return NULL;
28537 }
28538
28539
28540 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28541 PyObject *resultobj = 0;
28542 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28543 void *arg2 = (void *) 0 ;
28544 void *argp1 = 0 ;
28545 int res1 = 0 ;
28546 int res2 ;
28547 PyObject * obj0 = 0 ;
28548 PyObject * obj1 = 0 ;
28549 char * kwnames[] = {
28550 (char *) "self",(char *) "p", NULL
28551 };
28552
28553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
28554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28555 if (!SWIG_IsOK(res1)) {
28556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28557 }
28558 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28559 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
28560 if (!SWIG_IsOK(res2)) {
28561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
28562 }
28563 {
28564 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
28565 if (PyErr_Occurred()) SWIG_fail;
28566 }
28567 resultobj = SWIG_Py_Void();
28568 return resultobj;
28569 fail:
28570 return NULL;
28571 }
28572
28573
28574 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28575 PyObject *resultobj = 0;
28576 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28577 wxGraphicsMatrix *arg2 = 0 ;
28578 void *argp1 = 0 ;
28579 int res1 = 0 ;
28580 void *argp2 = 0 ;
28581 int res2 = 0 ;
28582 PyObject * obj0 = 0 ;
28583 PyObject * obj1 = 0 ;
28584 char * kwnames[] = {
28585 (char *) "self",(char *) "matrix", NULL
28586 };
28587
28588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
28589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28590 if (!SWIG_IsOK(res1)) {
28591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28592 }
28593 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28594 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28595 if (!SWIG_IsOK(res2)) {
28596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28597 }
28598 if (!argp2) {
28599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28600 }
28601 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28602 {
28603 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
28604 if (PyErr_Occurred()) SWIG_fail;
28605 }
28606 resultobj = SWIG_Py_Void();
28607 return resultobj;
28608 fail:
28609 return NULL;
28610 }
28611
28612
28613 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28614 PyObject *resultobj = 0;
28615 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28616 wxRect2D result;
28617 void *argp1 = 0 ;
28618 int res1 = 0 ;
28619 PyObject *swig_obj[1] ;
28620
28621 if (!args) SWIG_fail;
28622 swig_obj[0] = args;
28623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28624 if (!SWIG_IsOK(res1)) {
28625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28626 }
28627 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28628 {
28629 result = ((wxGraphicsPath const *)arg1)->GetBox();
28630 if (PyErr_Occurred()) SWIG_fail;
28631 }
28632 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
28633 return resultobj;
28634 fail:
28635 return NULL;
28636 }
28637
28638
28639 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28640 PyObject *resultobj = 0;
28641 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28642 wxDouble arg2 ;
28643 wxDouble arg3 ;
28644 int arg4 = (int) wxODDEVEN_RULE ;
28645 bool result;
28646 void *argp1 = 0 ;
28647 int res1 = 0 ;
28648 double val2 ;
28649 int ecode2 = 0 ;
28650 double val3 ;
28651 int ecode3 = 0 ;
28652 int val4 ;
28653 int ecode4 = 0 ;
28654
28655 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
28656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28657 if (!SWIG_IsOK(res1)) {
28658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28659 }
28660 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28661 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28662 if (!SWIG_IsOK(ecode2)) {
28663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
28664 }
28665 arg2 = static_cast< wxDouble >(val2);
28666 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28667 if (!SWIG_IsOK(ecode3)) {
28668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
28669 }
28670 arg3 = static_cast< wxDouble >(val3);
28671 if (swig_obj[3]) {
28672 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
28673 if (!SWIG_IsOK(ecode4)) {
28674 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
28675 }
28676 arg4 = static_cast< int >(val4);
28677 }
28678 {
28679 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
28680 if (PyErr_Occurred()) SWIG_fail;
28681 }
28682 {
28683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28684 }
28685 return resultobj;
28686 fail:
28687 return NULL;
28688 }
28689
28690
28691 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28692 PyObject *resultobj = 0;
28693 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28694 wxPoint2D *arg2 = 0 ;
28695 int arg3 = (int) wxODDEVEN_RULE ;
28696 bool result;
28697 void *argp1 = 0 ;
28698 int res1 = 0 ;
28699 wxPoint2D temp2 ;
28700 int val3 ;
28701 int ecode3 = 0 ;
28702
28703 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28705 if (!SWIG_IsOK(res1)) {
28706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28707 }
28708 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28709 {
28710 arg2 = &temp2;
28711 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
28712 }
28713 if (swig_obj[2]) {
28714 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
28715 if (!SWIG_IsOK(ecode3)) {
28716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
28717 }
28718 arg3 = static_cast< int >(val3);
28719 }
28720 {
28721 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3);
28722 if (PyErr_Occurred()) SWIG_fail;
28723 }
28724 {
28725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28726 }
28727 return resultobj;
28728 fail:
28729 return NULL;
28730 }
28731
28732
28733 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
28734 int argc;
28735 PyObject *argv[5];
28736
28737 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
28738 --argc;
28739 if ((argc >= 2) && (argc <= 3)) {
28740 int _v = 0;
28741 {
28742 {
28743 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
28744 }
28745 }
28746 if (!_v) goto check_1;
28747 if (argc > 2) {
28748 {
28749 {
28750 int res = SWIG_AsVal_int(argv[2], NULL);
28751 _v = SWIG_CheckState(res);
28752 }
28753 }
28754 if (!_v) goto check_1;
28755 }
28756 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
28757 }
28758 check_1:
28759
28760 if ((argc >= 3) && (argc <= 4)) {
28761 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
28762 }
28763
28764 fail:
28765 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
28766 return NULL;
28767 }
28768
28769
28770 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28771 PyObject *obj;
28772 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28773 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
28774 return SWIG_Py_Void();
28775 }
28776
28777 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
28778 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
28779 return 1;
28780 }
28781
28782
28783 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
28784 PyObject *pyobj = 0;
28785
28786 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
28787 return pyobj;
28788 }
28789
28790
28791 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
28792 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
28793 return 1;
28794 }
28795
28796
28797 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
28798 PyObject *pyobj = 0;
28799
28800 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
28801 return pyobj;
28802 }
28803
28804
28805 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
28806 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
28807 return 1;
28808 }
28809
28810
28811 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
28812 PyObject *pyobj = 0;
28813
28814 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
28815 return pyobj;
28816 }
28817
28818
28819 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
28820 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
28821 return 1;
28822 }
28823
28824
28825 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
28826 PyObject *pyobj = 0;
28827
28828 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
28829 return pyobj;
28830 }
28831
28832
28833 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
28834 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
28835 return 1;
28836 }
28837
28838
28839 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
28840 PyObject *pyobj = 0;
28841
28842 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
28843 return pyobj;
28844 }
28845
28846
28847 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28848 PyObject *resultobj = 0;
28849 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28850 void *argp1 = 0 ;
28851 int res1 = 0 ;
28852 PyObject *swig_obj[1] ;
28853
28854 if (!args) SWIG_fail;
28855 swig_obj[0] = args;
28856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
28857 if (!SWIG_IsOK(res1)) {
28858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28859 }
28860 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28861 {
28862 delete arg1;
28863
28864 if (PyErr_Occurred()) SWIG_fail;
28865 }
28866 resultobj = SWIG_Py_Void();
28867 return resultobj;
28868 fail:
28869 return NULL;
28870 }
28871
28872
28873 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28874 PyObject *resultobj = 0;
28875 wxWindowDC *arg1 = 0 ;
28876 wxGraphicsContext *result = 0 ;
28877 void *argp1 = 0 ;
28878 int res1 = 0 ;
28879
28880 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28882 if (!SWIG_IsOK(res1)) {
28883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28884 }
28885 if (!argp1) {
28886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28887 }
28888 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28889 {
28890 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28891 if (PyErr_Occurred()) SWIG_fail;
28892 }
28893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28894 return resultobj;
28895 fail:
28896 return NULL;
28897 }
28898
28899
28900 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28901 PyObject *resultobj = 0;
28902 wxWindow *arg1 = (wxWindow *) 0 ;
28903 wxGraphicsContext *result = 0 ;
28904 void *argp1 = 0 ;
28905 int res1 = 0 ;
28906
28907 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28909 if (!SWIG_IsOK(res1)) {
28910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28911 }
28912 arg1 = reinterpret_cast< wxWindow * >(argp1);
28913 {
28914 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28915 if (PyErr_Occurred()) SWIG_fail;
28916 }
28917 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28918 return resultobj;
28919 fail:
28920 return NULL;
28921 }
28922
28923
28924 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28925 int argc;
28926 PyObject *argv[2];
28927
28928 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28929 --argc;
28930 if (argc == 1) {
28931 int _v = 0;
28932 {
28933 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28934 _v = SWIG_CheckState(res);
28935 }
28936 if (!_v) goto check_1;
28937 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28938 }
28939 check_1:
28940
28941 if (argc == 1) {
28942 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28943 }
28944
28945 fail:
28946 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28947 return NULL;
28948 }
28949
28950
28951 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28952 PyObject *resultobj = 0;
28953 wxGraphicsContext *result = 0 ;
28954
28955 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
28956 {
28957 result = (wxGraphicsContext *)wxGraphicsContext::Create();
28958 if (PyErr_Occurred()) SWIG_fail;
28959 }
28960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28961 return resultobj;
28962 fail:
28963 return NULL;
28964 }
28965
28966
28967 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28968 PyObject *resultobj = 0;
28969 void *arg1 = (void *) 0 ;
28970 wxGraphicsContext *result = 0 ;
28971 int res1 ;
28972 PyObject * obj0 = 0 ;
28973 char * kwnames[] = {
28974 (char *) "context", NULL
28975 };
28976
28977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28978 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28979 if (!SWIG_IsOK(res1)) {
28980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28981 }
28982 {
28983 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28984 if (PyErr_Occurred()) SWIG_fail;
28985 }
28986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28987 return resultobj;
28988 fail:
28989 return NULL;
28990 }
28991
28992
28993 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28994 PyObject *resultobj = 0;
28995 void *arg1 = (void *) 0 ;
28996 wxGraphicsContext *result = 0 ;
28997 int res1 ;
28998 PyObject * obj0 = 0 ;
28999 char * kwnames[] = {
29000 (char *) "window", NULL
29001 };
29002
29003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
29004 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
29005 if (!SWIG_IsOK(res1)) {
29006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
29007 }
29008 {
29009 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
29010 if (PyErr_Occurred()) SWIG_fail;
29011 }
29012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29013 return resultobj;
29014 fail:
29015 return NULL;
29016 }
29017
29018
29019 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29020 PyObject *resultobj = 0;
29021 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29022 wxGraphicsPath result;
29023 void *argp1 = 0 ;
29024 int res1 = 0 ;
29025 PyObject *swig_obj[1] ;
29026
29027 if (!args) SWIG_fail;
29028 swig_obj[0] = args;
29029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29030 if (!SWIG_IsOK(res1)) {
29031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29032 }
29033 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29034 {
29035 result = (arg1)->CreatePath();
29036 if (PyErr_Occurred()) SWIG_fail;
29037 }
29038 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
29039 return resultobj;
29040 fail:
29041 return NULL;
29042 }
29043
29044
29045 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29046 PyObject *resultobj = 0;
29047 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29048 wxPen *arg2 = 0 ;
29049 wxGraphicsPen result;
29050 void *argp1 = 0 ;
29051 int res1 = 0 ;
29052 void *argp2 = 0 ;
29053 int res2 = 0 ;
29054 PyObject * obj0 = 0 ;
29055 PyObject * obj1 = 0 ;
29056 char * kwnames[] = {
29057 (char *) "self",(char *) "pen", NULL
29058 };
29059
29060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
29061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29062 if (!SWIG_IsOK(res1)) {
29063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29064 }
29065 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29067 if (!SWIG_IsOK(res2)) {
29068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
29069 }
29070 if (!argp2) {
29071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
29072 }
29073 arg2 = reinterpret_cast< wxPen * >(argp2);
29074 {
29075 result = (arg1)->CreatePen((wxPen const &)*arg2);
29076 if (PyErr_Occurred()) SWIG_fail;
29077 }
29078 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
29079 return resultobj;
29080 fail:
29081 return NULL;
29082 }
29083
29084
29085 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29086 PyObject *resultobj = 0;
29087 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29088 wxBrush *arg2 = 0 ;
29089 wxGraphicsBrush result;
29090 void *argp1 = 0 ;
29091 int res1 = 0 ;
29092 void *argp2 = 0 ;
29093 int res2 = 0 ;
29094 PyObject * obj0 = 0 ;
29095 PyObject * obj1 = 0 ;
29096 char * kwnames[] = {
29097 (char *) "self",(char *) "brush", NULL
29098 };
29099
29100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
29101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29102 if (!SWIG_IsOK(res1)) {
29103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29104 }
29105 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29106 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
29107 if (!SWIG_IsOK(res2)) {
29108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29109 }
29110 if (!argp2) {
29111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29112 }
29113 arg2 = reinterpret_cast< wxBrush * >(argp2);
29114 {
29115 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
29116 if (PyErr_Occurred()) SWIG_fail;
29117 }
29118 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
29119 return resultobj;
29120 fail:
29121 return NULL;
29122 }
29123
29124
29125 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29126 PyObject *resultobj = 0;
29127 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29128 wxDouble arg2 ;
29129 wxDouble arg3 ;
29130 wxDouble arg4 ;
29131 wxDouble arg5 ;
29132 wxColour *arg6 = 0 ;
29133 wxColour *arg7 = 0 ;
29134 wxGraphicsBrush result;
29135 void *argp1 = 0 ;
29136 int res1 = 0 ;
29137 double val2 ;
29138 int ecode2 = 0 ;
29139 double val3 ;
29140 int ecode3 = 0 ;
29141 double val4 ;
29142 int ecode4 = 0 ;
29143 double val5 ;
29144 int ecode5 = 0 ;
29145 wxColour temp6 ;
29146 wxColour temp7 ;
29147 PyObject * obj0 = 0 ;
29148 PyObject * obj1 = 0 ;
29149 PyObject * obj2 = 0 ;
29150 PyObject * obj3 = 0 ;
29151 PyObject * obj4 = 0 ;
29152 PyObject * obj5 = 0 ;
29153 PyObject * obj6 = 0 ;
29154 char * kwnames[] = {
29155 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
29156 };
29157
29158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29160 if (!SWIG_IsOK(res1)) {
29161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29162 }
29163 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29164 ecode2 = SWIG_AsVal_double(obj1, &val2);
29165 if (!SWIG_IsOK(ecode2)) {
29166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
29167 }
29168 arg2 = static_cast< wxDouble >(val2);
29169 ecode3 = SWIG_AsVal_double(obj2, &val3);
29170 if (!SWIG_IsOK(ecode3)) {
29171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
29172 }
29173 arg3 = static_cast< wxDouble >(val3);
29174 ecode4 = SWIG_AsVal_double(obj3, &val4);
29175 if (!SWIG_IsOK(ecode4)) {
29176 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
29177 }
29178 arg4 = static_cast< wxDouble >(val4);
29179 ecode5 = SWIG_AsVal_double(obj4, &val5);
29180 if (!SWIG_IsOK(ecode5)) {
29181 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
29182 }
29183 arg5 = static_cast< wxDouble >(val5);
29184 {
29185 arg6 = &temp6;
29186 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29187 }
29188 {
29189 arg7 = &temp7;
29190 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
29191 }
29192 {
29193 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
29194 if (PyErr_Occurred()) SWIG_fail;
29195 }
29196 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
29197 return resultobj;
29198 fail:
29199 return NULL;
29200 }
29201
29202
29203 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29204 PyObject *resultobj = 0;
29205 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29206 wxDouble arg2 ;
29207 wxDouble arg3 ;
29208 wxDouble arg4 ;
29209 wxDouble arg5 ;
29210 wxDouble arg6 ;
29211 wxColour *arg7 = 0 ;
29212 wxColour *arg8 = 0 ;
29213 wxGraphicsBrush result;
29214 void *argp1 = 0 ;
29215 int res1 = 0 ;
29216 double val2 ;
29217 int ecode2 = 0 ;
29218 double val3 ;
29219 int ecode3 = 0 ;
29220 double val4 ;
29221 int ecode4 = 0 ;
29222 double val5 ;
29223 int ecode5 = 0 ;
29224 double val6 ;
29225 int ecode6 = 0 ;
29226 wxColour temp7 ;
29227 wxColour temp8 ;
29228 PyObject * obj0 = 0 ;
29229 PyObject * obj1 = 0 ;
29230 PyObject * obj2 = 0 ;
29231 PyObject * obj3 = 0 ;
29232 PyObject * obj4 = 0 ;
29233 PyObject * obj5 = 0 ;
29234 PyObject * obj6 = 0 ;
29235 PyObject * obj7 = 0 ;
29236 char * kwnames[] = {
29237 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
29238 };
29239
29240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29242 if (!SWIG_IsOK(res1)) {
29243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29244 }
29245 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29246 ecode2 = SWIG_AsVal_double(obj1, &val2);
29247 if (!SWIG_IsOK(ecode2)) {
29248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
29249 }
29250 arg2 = static_cast< wxDouble >(val2);
29251 ecode3 = SWIG_AsVal_double(obj2, &val3);
29252 if (!SWIG_IsOK(ecode3)) {
29253 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
29254 }
29255 arg3 = static_cast< wxDouble >(val3);
29256 ecode4 = SWIG_AsVal_double(obj3, &val4);
29257 if (!SWIG_IsOK(ecode4)) {
29258 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
29259 }
29260 arg4 = static_cast< wxDouble >(val4);
29261 ecode5 = SWIG_AsVal_double(obj4, &val5);
29262 if (!SWIG_IsOK(ecode5)) {
29263 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
29264 }
29265 arg5 = static_cast< wxDouble >(val5);
29266 ecode6 = SWIG_AsVal_double(obj5, &val6);
29267 if (!SWIG_IsOK(ecode6)) {
29268 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
29269 }
29270 arg6 = static_cast< wxDouble >(val6);
29271 {
29272 arg7 = &temp7;
29273 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
29274 }
29275 {
29276 arg8 = &temp8;
29277 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
29278 }
29279 {
29280 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
29281 if (PyErr_Occurred()) SWIG_fail;
29282 }
29283 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
29284 return resultobj;
29285 fail:
29286 return NULL;
29287 }
29288
29289
29290 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29291 PyObject *resultobj = 0;
29292 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29293 wxFont *arg2 = 0 ;
29294 wxColour const &arg3_defvalue = *wxBLACK ;
29295 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
29296 wxGraphicsFont result;
29297 void *argp1 = 0 ;
29298 int res1 = 0 ;
29299 void *argp2 = 0 ;
29300 int res2 = 0 ;
29301 wxColour temp3 ;
29302 PyObject * obj0 = 0 ;
29303 PyObject * obj1 = 0 ;
29304 PyObject * obj2 = 0 ;
29305 char * kwnames[] = {
29306 (char *) "self",(char *) "font",(char *) "col", NULL
29307 };
29308
29309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29311 if (!SWIG_IsOK(res1)) {
29312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29313 }
29314 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29315 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
29316 if (!SWIG_IsOK(res2)) {
29317 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29318 }
29319 if (!argp2) {
29320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29321 }
29322 arg2 = reinterpret_cast< wxFont * >(argp2);
29323 if (obj2) {
29324 {
29325 arg3 = &temp3;
29326 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29327 }
29328 }
29329 {
29330 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
29331 if (PyErr_Occurred()) SWIG_fail;
29332 }
29333 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
29334 return resultobj;
29335 fail:
29336 return NULL;
29337 }
29338
29339
29340 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29341 PyObject *resultobj = 0;
29342 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29343 wxDouble arg2 = (wxDouble) 1.0 ;
29344 wxDouble arg3 = (wxDouble) 0.0 ;
29345 wxDouble arg4 = (wxDouble) 0.0 ;
29346 wxDouble arg5 = (wxDouble) 1.0 ;
29347 wxDouble arg6 = (wxDouble) 0.0 ;
29348 wxDouble arg7 = (wxDouble) 0.0 ;
29349 wxGraphicsMatrix result;
29350 void *argp1 = 0 ;
29351 int res1 = 0 ;
29352 double val2 ;
29353 int ecode2 = 0 ;
29354 double val3 ;
29355 int ecode3 = 0 ;
29356 double val4 ;
29357 int ecode4 = 0 ;
29358 double val5 ;
29359 int ecode5 = 0 ;
29360 double val6 ;
29361 int ecode6 = 0 ;
29362 double val7 ;
29363 int ecode7 = 0 ;
29364 PyObject * obj0 = 0 ;
29365 PyObject * obj1 = 0 ;
29366 PyObject * obj2 = 0 ;
29367 PyObject * obj3 = 0 ;
29368 PyObject * obj4 = 0 ;
29369 PyObject * obj5 = 0 ;
29370 PyObject * obj6 = 0 ;
29371 char * kwnames[] = {
29372 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
29373 };
29374
29375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29377 if (!SWIG_IsOK(res1)) {
29378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29379 }
29380 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29381 if (obj1) {
29382 ecode2 = SWIG_AsVal_double(obj1, &val2);
29383 if (!SWIG_IsOK(ecode2)) {
29384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
29385 }
29386 arg2 = static_cast< wxDouble >(val2);
29387 }
29388 if (obj2) {
29389 ecode3 = SWIG_AsVal_double(obj2, &val3);
29390 if (!SWIG_IsOK(ecode3)) {
29391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
29392 }
29393 arg3 = static_cast< wxDouble >(val3);
29394 }
29395 if (obj3) {
29396 ecode4 = SWIG_AsVal_double(obj3, &val4);
29397 if (!SWIG_IsOK(ecode4)) {
29398 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
29399 }
29400 arg4 = static_cast< wxDouble >(val4);
29401 }
29402 if (obj4) {
29403 ecode5 = SWIG_AsVal_double(obj4, &val5);
29404 if (!SWIG_IsOK(ecode5)) {
29405 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
29406 }
29407 arg5 = static_cast< wxDouble >(val5);
29408 }
29409 if (obj5) {
29410 ecode6 = SWIG_AsVal_double(obj5, &val6);
29411 if (!SWIG_IsOK(ecode6)) {
29412 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
29413 }
29414 arg6 = static_cast< wxDouble >(val6);
29415 }
29416 if (obj6) {
29417 ecode7 = SWIG_AsVal_double(obj6, &val7);
29418 if (!SWIG_IsOK(ecode7)) {
29419 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
29420 }
29421 arg7 = static_cast< wxDouble >(val7);
29422 }
29423 {
29424 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
29425 if (PyErr_Occurred()) SWIG_fail;
29426 }
29427 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29428 return resultobj;
29429 fail:
29430 return NULL;
29431 }
29432
29433
29434 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29435 PyObject *resultobj = 0;
29436 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29437 void *argp1 = 0 ;
29438 int res1 = 0 ;
29439 PyObject *swig_obj[1] ;
29440
29441 if (!args) SWIG_fail;
29442 swig_obj[0] = args;
29443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29444 if (!SWIG_IsOK(res1)) {
29445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29446 }
29447 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29448 {
29449 (arg1)->PushState();
29450 if (PyErr_Occurred()) SWIG_fail;
29451 }
29452 resultobj = SWIG_Py_Void();
29453 return resultobj;
29454 fail:
29455 return NULL;
29456 }
29457
29458
29459 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29460 PyObject *resultobj = 0;
29461 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29462 void *argp1 = 0 ;
29463 int res1 = 0 ;
29464 PyObject *swig_obj[1] ;
29465
29466 if (!args) SWIG_fail;
29467 swig_obj[0] = args;
29468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29469 if (!SWIG_IsOK(res1)) {
29470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29471 }
29472 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29473 {
29474 (arg1)->PopState();
29475 if (PyErr_Occurred()) SWIG_fail;
29476 }
29477 resultobj = SWIG_Py_Void();
29478 return resultobj;
29479 fail:
29480 return NULL;
29481 }
29482
29483
29484 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29485 PyObject *resultobj = 0;
29486 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29487 wxRegion *arg2 = 0 ;
29488 void *argp1 = 0 ;
29489 int res1 = 0 ;
29490 void *argp2 = 0 ;
29491 int res2 = 0 ;
29492 PyObject * obj0 = 0 ;
29493 PyObject * obj1 = 0 ;
29494 char * kwnames[] = {
29495 (char *) "self",(char *) "region", NULL
29496 };
29497
29498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
29499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29500 if (!SWIG_IsOK(res1)) {
29501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29502 }
29503 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29504 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
29505 if (!SWIG_IsOK(res2)) {
29506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
29507 }
29508 if (!argp2) {
29509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
29510 }
29511 arg2 = reinterpret_cast< wxRegion * >(argp2);
29512 {
29513 (arg1)->Clip((wxRegion const &)*arg2);
29514 if (PyErr_Occurred()) SWIG_fail;
29515 }
29516 resultobj = SWIG_Py_Void();
29517 return resultobj;
29518 fail:
29519 return NULL;
29520 }
29521
29522
29523 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29524 PyObject *resultobj = 0;
29525 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29526 wxDouble arg2 ;
29527 wxDouble arg3 ;
29528 wxDouble arg4 ;
29529 wxDouble arg5 ;
29530 void *argp1 = 0 ;
29531 int res1 = 0 ;
29532 double val2 ;
29533 int ecode2 = 0 ;
29534 double val3 ;
29535 int ecode3 = 0 ;
29536 double val4 ;
29537 int ecode4 = 0 ;
29538 double val5 ;
29539 int ecode5 = 0 ;
29540 PyObject * obj0 = 0 ;
29541 PyObject * obj1 = 0 ;
29542 PyObject * obj2 = 0 ;
29543 PyObject * obj3 = 0 ;
29544 PyObject * obj4 = 0 ;
29545 char * kwnames[] = {
29546 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29547 };
29548
29549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29551 if (!SWIG_IsOK(res1)) {
29552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29553 }
29554 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29555 ecode2 = SWIG_AsVal_double(obj1, &val2);
29556 if (!SWIG_IsOK(ecode2)) {
29557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
29558 }
29559 arg2 = static_cast< wxDouble >(val2);
29560 ecode3 = SWIG_AsVal_double(obj2, &val3);
29561 if (!SWIG_IsOK(ecode3)) {
29562 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
29563 }
29564 arg3 = static_cast< wxDouble >(val3);
29565 ecode4 = SWIG_AsVal_double(obj3, &val4);
29566 if (!SWIG_IsOK(ecode4)) {
29567 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
29568 }
29569 arg4 = static_cast< wxDouble >(val4);
29570 ecode5 = SWIG_AsVal_double(obj4, &val5);
29571 if (!SWIG_IsOK(ecode5)) {
29572 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
29573 }
29574 arg5 = static_cast< wxDouble >(val5);
29575 {
29576 (arg1)->Clip(arg2,arg3,arg4,arg5);
29577 if (PyErr_Occurred()) SWIG_fail;
29578 }
29579 resultobj = SWIG_Py_Void();
29580 return resultobj;
29581 fail:
29582 return NULL;
29583 }
29584
29585
29586 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29587 PyObject *resultobj = 0;
29588 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29589 void *argp1 = 0 ;
29590 int res1 = 0 ;
29591 PyObject *swig_obj[1] ;
29592
29593 if (!args) SWIG_fail;
29594 swig_obj[0] = args;
29595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29596 if (!SWIG_IsOK(res1)) {
29597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29598 }
29599 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29600 {
29601 (arg1)->ResetClip();
29602 if (PyErr_Occurred()) SWIG_fail;
29603 }
29604 resultobj = SWIG_Py_Void();
29605 return resultobj;
29606 fail:
29607 return NULL;
29608 }
29609
29610
29611 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29612 PyObject *resultobj = 0;
29613 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29614 void *result = 0 ;
29615 void *argp1 = 0 ;
29616 int res1 = 0 ;
29617 PyObject *swig_obj[1] ;
29618
29619 if (!args) SWIG_fail;
29620 swig_obj[0] = args;
29621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29622 if (!SWIG_IsOK(res1)) {
29623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29624 }
29625 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29626 {
29627 result = (void *)(arg1)->GetNativeContext();
29628 if (PyErr_Occurred()) SWIG_fail;
29629 }
29630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
29631 return resultobj;
29632 fail:
29633 return NULL;
29634 }
29635
29636
29637 SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29638 PyObject *resultobj = 0;
29639 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29640 int result;
29641 void *argp1 = 0 ;
29642 int res1 = 0 ;
29643 PyObject *swig_obj[1] ;
29644
29645 if (!args) SWIG_fail;
29646 swig_obj[0] = args;
29647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29648 if (!SWIG_IsOK(res1)) {
29649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29650 }
29651 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29652 {
29653 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
29654 if (PyErr_Occurred()) SWIG_fail;
29655 }
29656 resultobj = SWIG_From_int(static_cast< int >(result));
29657 return resultobj;
29658 fail:
29659 return NULL;
29660 }
29661
29662
29663 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29664 PyObject *resultobj = 0;
29665 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29666 int arg2 ;
29667 bool result;
29668 void *argp1 = 0 ;
29669 int res1 = 0 ;
29670 int val2 ;
29671 int ecode2 = 0 ;
29672 PyObject * obj0 = 0 ;
29673 PyObject * obj1 = 0 ;
29674 char * kwnames[] = {
29675 (char *) "self",(char *) "function", NULL
29676 };
29677
29678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
29679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29680 if (!SWIG_IsOK(res1)) {
29681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29682 }
29683 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29684 ecode2 = SWIG_AsVal_int(obj1, &val2);
29685 if (!SWIG_IsOK(ecode2)) {
29686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
29687 }
29688 arg2 = static_cast< int >(val2);
29689 {
29690 result = (bool)(arg1)->SetLogicalFunction(arg2);
29691 if (PyErr_Occurred()) SWIG_fail;
29692 }
29693 {
29694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29695 }
29696 return resultobj;
29697 fail:
29698 return NULL;
29699 }
29700
29701
29702 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29703 PyObject *resultobj = 0;
29704 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29705 wxDouble arg2 ;
29706 wxDouble arg3 ;
29707 void *argp1 = 0 ;
29708 int res1 = 0 ;
29709 double val2 ;
29710 int ecode2 = 0 ;
29711 double val3 ;
29712 int ecode3 = 0 ;
29713 PyObject * obj0 = 0 ;
29714 PyObject * obj1 = 0 ;
29715 PyObject * obj2 = 0 ;
29716 char * kwnames[] = {
29717 (char *) "self",(char *) "dx",(char *) "dy", NULL
29718 };
29719
29720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29722 if (!SWIG_IsOK(res1)) {
29723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29724 }
29725 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29726 ecode2 = SWIG_AsVal_double(obj1, &val2);
29727 if (!SWIG_IsOK(ecode2)) {
29728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
29729 }
29730 arg2 = static_cast< wxDouble >(val2);
29731 ecode3 = SWIG_AsVal_double(obj2, &val3);
29732 if (!SWIG_IsOK(ecode3)) {
29733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
29734 }
29735 arg3 = static_cast< wxDouble >(val3);
29736 {
29737 (arg1)->Translate(arg2,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_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29748 PyObject *resultobj = 0;
29749 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29750 wxDouble arg2 ;
29751 wxDouble arg3 ;
29752 void *argp1 = 0 ;
29753 int res1 = 0 ;
29754 double val2 ;
29755 int ecode2 = 0 ;
29756 double val3 ;
29757 int ecode3 = 0 ;
29758 PyObject * obj0 = 0 ;
29759 PyObject * obj1 = 0 ;
29760 PyObject * obj2 = 0 ;
29761 char * kwnames[] = {
29762 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
29763 };
29764
29765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29767 if (!SWIG_IsOK(res1)) {
29768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29769 }
29770 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29771 ecode2 = SWIG_AsVal_double(obj1, &val2);
29772 if (!SWIG_IsOK(ecode2)) {
29773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
29774 }
29775 arg2 = static_cast< wxDouble >(val2);
29776 ecode3 = SWIG_AsVal_double(obj2, &val3);
29777 if (!SWIG_IsOK(ecode3)) {
29778 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
29779 }
29780 arg3 = static_cast< wxDouble >(val3);
29781 {
29782 (arg1)->Scale(arg2,arg3);
29783 if (PyErr_Occurred()) SWIG_fail;
29784 }
29785 resultobj = SWIG_Py_Void();
29786 return resultobj;
29787 fail:
29788 return NULL;
29789 }
29790
29791
29792 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29793 PyObject *resultobj = 0;
29794 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29795 wxDouble arg2 ;
29796 void *argp1 = 0 ;
29797 int res1 = 0 ;
29798 double val2 ;
29799 int ecode2 = 0 ;
29800 PyObject * obj0 = 0 ;
29801 PyObject * obj1 = 0 ;
29802 char * kwnames[] = {
29803 (char *) "self",(char *) "angle", NULL
29804 };
29805
29806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
29807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29808 if (!SWIG_IsOK(res1)) {
29809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29810 }
29811 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29812 ecode2 = SWIG_AsVal_double(obj1, &val2);
29813 if (!SWIG_IsOK(ecode2)) {
29814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
29815 }
29816 arg2 = static_cast< wxDouble >(val2);
29817 {
29818 (arg1)->Rotate(arg2);
29819 if (PyErr_Occurred()) SWIG_fail;
29820 }
29821 resultobj = SWIG_Py_Void();
29822 return resultobj;
29823 fail:
29824 return NULL;
29825 }
29826
29827
29828 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29829 PyObject *resultobj = 0;
29830 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29831 wxGraphicsMatrix *arg2 = 0 ;
29832 void *argp1 = 0 ;
29833 int res1 = 0 ;
29834 void *argp2 = 0 ;
29835 int res2 = 0 ;
29836 PyObject * obj0 = 0 ;
29837 PyObject * obj1 = 0 ;
29838 char * kwnames[] = {
29839 (char *) "self",(char *) "matrix", NULL
29840 };
29841
29842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29844 if (!SWIG_IsOK(res1)) {
29845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29846 }
29847 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29848 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29849 if (!SWIG_IsOK(res2)) {
29850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29851 }
29852 if (!argp2) {
29853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29854 }
29855 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29856 {
29857 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
29858 if (PyErr_Occurred()) SWIG_fail;
29859 }
29860 resultobj = SWIG_Py_Void();
29861 return resultobj;
29862 fail:
29863 return NULL;
29864 }
29865
29866
29867 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29868 PyObject *resultobj = 0;
29869 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29870 wxGraphicsMatrix *arg2 = 0 ;
29871 void *argp1 = 0 ;
29872 int res1 = 0 ;
29873 void *argp2 = 0 ;
29874 int res2 = 0 ;
29875 PyObject * obj0 = 0 ;
29876 PyObject * obj1 = 0 ;
29877 char * kwnames[] = {
29878 (char *) "self",(char *) "matrix", NULL
29879 };
29880
29881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) 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_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29885 }
29886 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29887 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29888 if (!SWIG_IsOK(res2)) {
29889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29890 }
29891 if (!argp2) {
29892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29893 }
29894 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29895 {
29896 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
29897 if (PyErr_Occurred()) SWIG_fail;
29898 }
29899 resultobj = SWIG_Py_Void();
29900 return resultobj;
29901 fail:
29902 return NULL;
29903 }
29904
29905
29906 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29907 PyObject *resultobj = 0;
29908 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29909 wxGraphicsMatrix result;
29910 void *argp1 = 0 ;
29911 int res1 = 0 ;
29912 PyObject *swig_obj[1] ;
29913
29914 if (!args) SWIG_fail;
29915 swig_obj[0] = args;
29916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29917 if (!SWIG_IsOK(res1)) {
29918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29919 }
29920 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29921 {
29922 result = ((wxGraphicsContext const *)arg1)->GetTransform();
29923 if (PyErr_Occurred()) SWIG_fail;
29924 }
29925 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29926 return resultobj;
29927 fail:
29928 return NULL;
29929 }
29930
29931
29932 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29933 PyObject *resultobj = 0;
29934 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29935 wxGraphicsPen *arg2 = 0 ;
29936 void *argp1 = 0 ;
29937 int res1 = 0 ;
29938 void *argp2 = 0 ;
29939 int res2 = 0 ;
29940
29941 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29943 if (!SWIG_IsOK(res1)) {
29944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29945 }
29946 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29947 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29948 if (!SWIG_IsOK(res2)) {
29949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29950 }
29951 if (!argp2) {
29952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29953 }
29954 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29955 {
29956 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29957 if (PyErr_Occurred()) SWIG_fail;
29958 }
29959 resultobj = SWIG_Py_Void();
29960 return resultobj;
29961 fail:
29962 return NULL;
29963 }
29964
29965
29966 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29967 PyObject *resultobj = 0;
29968 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29969 wxPen *arg2 = 0 ;
29970 void *argp1 = 0 ;
29971 int res1 = 0 ;
29972 void *argp2 = 0 ;
29973 int res2 = 0 ;
29974
29975 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29977 if (!SWIG_IsOK(res1)) {
29978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29979 }
29980 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29981 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29982 if (!SWIG_IsOK(res2)) {
29983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29984 }
29985 if (!argp2) {
29986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29987 }
29988 arg2 = reinterpret_cast< wxPen * >(argp2);
29989 {
29990 (arg1)->SetPen((wxPen const &)*arg2);
29991 if (PyErr_Occurred()) SWIG_fail;
29992 }
29993 resultobj = SWIG_Py_Void();
29994 return resultobj;
29995 fail:
29996 return NULL;
29997 }
29998
29999
30000 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
30001 int argc;
30002 PyObject *argv[3];
30003
30004 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
30005 --argc;
30006 if (argc == 2) {
30007 int _v = 0;
30008 {
30009 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
30010 _v = SWIG_CheckState(res);
30011 }
30012 if (!_v) goto check_1;
30013 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
30014 }
30015 check_1:
30016
30017 if (argc == 2) {
30018 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
30019 }
30020
30021 fail:
30022 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
30023 return NULL;
30024 }
30025
30026
30027 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30028 PyObject *resultobj = 0;
30029 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30030 wxGraphicsBrush *arg2 = 0 ;
30031 void *argp1 = 0 ;
30032 int res1 = 0 ;
30033 void *argp2 = 0 ;
30034 int res2 = 0 ;
30035
30036 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30038 if (!SWIG_IsOK(res1)) {
30039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30040 }
30041 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30042 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
30043 if (!SWIG_IsOK(res2)) {
30044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
30045 }
30046 if (!argp2) {
30047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
30048 }
30049 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
30050 {
30051 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
30052 if (PyErr_Occurred()) SWIG_fail;
30053 }
30054 resultobj = SWIG_Py_Void();
30055 return resultobj;
30056 fail:
30057 return NULL;
30058 }
30059
30060
30061 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30062 PyObject *resultobj = 0;
30063 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30064 wxBrush *arg2 = 0 ;
30065 void *argp1 = 0 ;
30066 int res1 = 0 ;
30067 void *argp2 = 0 ;
30068 int res2 = 0 ;
30069
30070 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30072 if (!SWIG_IsOK(res1)) {
30073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30074 }
30075 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30076 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30077 if (!SWIG_IsOK(res2)) {
30078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30079 }
30080 if (!argp2) {
30081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30082 }
30083 arg2 = reinterpret_cast< wxBrush * >(argp2);
30084 {
30085 (arg1)->SetBrush((wxBrush const &)*arg2);
30086 if (PyErr_Occurred()) SWIG_fail;
30087 }
30088 resultobj = SWIG_Py_Void();
30089 return resultobj;
30090 fail:
30091 return NULL;
30092 }
30093
30094
30095 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
30096 int argc;
30097 PyObject *argv[3];
30098
30099 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
30100 --argc;
30101 if (argc == 2) {
30102 int _v = 0;
30103 {
30104 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
30105 _v = SWIG_CheckState(res);
30106 }
30107 if (!_v) goto check_1;
30108 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
30109 }
30110 check_1:
30111
30112 if (argc == 2) {
30113 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
30114 }
30115
30116 fail:
30117 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
30118 return NULL;
30119 }
30120
30121
30122 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30123 PyObject *resultobj = 0;
30124 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30125 wxGraphicsFont *arg2 = 0 ;
30126 void *argp1 = 0 ;
30127 int res1 = 0 ;
30128 void *argp2 = 0 ;
30129 int res2 = 0 ;
30130
30131 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30133 if (!SWIG_IsOK(res1)) {
30134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30135 }
30136 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30137 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
30138 if (!SWIG_IsOK(res2)) {
30139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
30140 }
30141 if (!argp2) {
30142 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
30143 }
30144 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
30145 {
30146 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
30147 if (PyErr_Occurred()) SWIG_fail;
30148 }
30149 resultobj = SWIG_Py_Void();
30150 return resultobj;
30151 fail:
30152 return NULL;
30153 }
30154
30155
30156 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30157 PyObject *resultobj = 0;
30158 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30159 wxFont *arg2 = 0 ;
30160 wxColour const &arg3_defvalue = *wxBLACK ;
30161 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30162 void *argp1 = 0 ;
30163 int res1 = 0 ;
30164 void *argp2 = 0 ;
30165 int res2 = 0 ;
30166 wxColour temp3 ;
30167
30168 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
30169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30170 if (!SWIG_IsOK(res1)) {
30171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30172 }
30173 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30174 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30175 if (!SWIG_IsOK(res2)) {
30176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30177 }
30178 if (!argp2) {
30179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30180 }
30181 arg2 = reinterpret_cast< wxFont * >(argp2);
30182 if (swig_obj[2]) {
30183 {
30184 arg3 = &temp3;
30185 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
30186 }
30187 }
30188 {
30189 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30190 if (PyErr_Occurred()) SWIG_fail;
30191 }
30192 resultobj = SWIG_Py_Void();
30193 return resultobj;
30194 fail:
30195 return NULL;
30196 }
30197
30198
30199 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
30200 int argc;
30201 PyObject *argv[4];
30202
30203 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
30204 --argc;
30205 if (argc == 2) {
30206 int _v = 0;
30207 {
30208 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
30209 _v = SWIG_CheckState(res);
30210 }
30211 if (!_v) goto check_1;
30212 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
30213 }
30214 check_1:
30215
30216 if ((argc >= 2) && (argc <= 3)) {
30217 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
30218 }
30219
30220 fail:
30221 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
30222 return NULL;
30223 }
30224
30225
30226 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30227 PyObject *resultobj = 0;
30228 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30229 wxGraphicsPath *arg2 = 0 ;
30230 void *argp1 = 0 ;
30231 int res1 = 0 ;
30232 void *argp2 = 0 ;
30233 int res2 = 0 ;
30234 PyObject * obj0 = 0 ;
30235 PyObject * obj1 = 0 ;
30236 char * kwnames[] = {
30237 (char *) "self",(char *) "path", NULL
30238 };
30239
30240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
30241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30242 if (!SWIG_IsOK(res1)) {
30243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30244 }
30245 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30246 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
30247 if (!SWIG_IsOK(res2)) {
30248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
30249 }
30250 if (!argp2) {
30251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
30252 }
30253 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
30254 {
30255 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
30256 if (PyErr_Occurred()) SWIG_fail;
30257 }
30258 resultobj = SWIG_Py_Void();
30259 return resultobj;
30260 fail:
30261 return NULL;
30262 }
30263
30264
30265 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30266 PyObject *resultobj = 0;
30267 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30268 wxGraphicsPath *arg2 = 0 ;
30269 int arg3 = (int) wxODDEVEN_RULE ;
30270 void *argp1 = 0 ;
30271 int res1 = 0 ;
30272 void *argp2 = 0 ;
30273 int res2 = 0 ;
30274 int val3 ;
30275 int ecode3 = 0 ;
30276 PyObject * obj0 = 0 ;
30277 PyObject * obj1 = 0 ;
30278 PyObject * obj2 = 0 ;
30279 char * kwnames[] = {
30280 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
30281 };
30282
30283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30285 if (!SWIG_IsOK(res1)) {
30286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30287 }
30288 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
30290 if (!SWIG_IsOK(res2)) {
30291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
30292 }
30293 if (!argp2) {
30294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
30295 }
30296 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
30297 if (obj2) {
30298 ecode3 = SWIG_AsVal_int(obj2, &val3);
30299 if (!SWIG_IsOK(ecode3)) {
30300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
30301 }
30302 arg3 = static_cast< int >(val3);
30303 }
30304 {
30305 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
30306 if (PyErr_Occurred()) SWIG_fail;
30307 }
30308 resultobj = SWIG_Py_Void();
30309 return resultobj;
30310 fail:
30311 return NULL;
30312 }
30313
30314
30315 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30316 PyObject *resultobj = 0;
30317 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30318 wxGraphicsPath *arg2 = 0 ;
30319 int arg3 = (int) wxODDEVEN_RULE ;
30320 void *argp1 = 0 ;
30321 int res1 = 0 ;
30322 void *argp2 = 0 ;
30323 int res2 = 0 ;
30324 int val3 ;
30325 int ecode3 = 0 ;
30326 PyObject * obj0 = 0 ;
30327 PyObject * obj1 = 0 ;
30328 PyObject * obj2 = 0 ;
30329 char * kwnames[] = {
30330 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
30331 };
30332
30333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30335 if (!SWIG_IsOK(res1)) {
30336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30337 }
30338 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
30340 if (!SWIG_IsOK(res2)) {
30341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
30342 }
30343 if (!argp2) {
30344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
30345 }
30346 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
30347 if (obj2) {
30348 ecode3 = SWIG_AsVal_int(obj2, &val3);
30349 if (!SWIG_IsOK(ecode3)) {
30350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
30351 }
30352 arg3 = static_cast< int >(val3);
30353 }
30354 {
30355 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
30356 if (PyErr_Occurred()) SWIG_fail;
30357 }
30358 resultobj = SWIG_Py_Void();
30359 return resultobj;
30360 fail:
30361 return NULL;
30362 }
30363
30364
30365 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30366 PyObject *resultobj = 0;
30367 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30368 wxString *arg2 = 0 ;
30369 wxDouble arg3 ;
30370 wxDouble arg4 ;
30371 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
30372 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
30373 void *argp1 = 0 ;
30374 int res1 = 0 ;
30375 bool temp2 = false ;
30376 double val3 ;
30377 int ecode3 = 0 ;
30378 double val4 ;
30379 int ecode4 = 0 ;
30380 void *argp5 = 0 ;
30381 int res5 = 0 ;
30382 PyObject * obj0 = 0 ;
30383 PyObject * obj1 = 0 ;
30384 PyObject * obj2 = 0 ;
30385 PyObject * obj3 = 0 ;
30386 PyObject * obj4 = 0 ;
30387 char * kwnames[] = {
30388 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
30389 };
30390
30391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30393 if (!SWIG_IsOK(res1)) {
30394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30395 }
30396 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30397 {
30398 arg2 = wxString_in_helper(obj1);
30399 if (arg2 == NULL) SWIG_fail;
30400 temp2 = true;
30401 }
30402 ecode3 = SWIG_AsVal_double(obj2, &val3);
30403 if (!SWIG_IsOK(ecode3)) {
30404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
30405 }
30406 arg3 = static_cast< wxDouble >(val3);
30407 ecode4 = SWIG_AsVal_double(obj3, &val4);
30408 if (!SWIG_IsOK(ecode4)) {
30409 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
30410 }
30411 arg4 = static_cast< wxDouble >(val4);
30412 if (obj4) {
30413 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
30414 if (!SWIG_IsOK(res5)) {
30415 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
30416 }
30417 if (!argp5) {
30418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
30419 }
30420 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
30421 }
30422 {
30423 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
30424 if (PyErr_Occurred()) SWIG_fail;
30425 }
30426 resultobj = SWIG_Py_Void();
30427 {
30428 if (temp2)
30429 delete arg2;
30430 }
30431 return resultobj;
30432 fail:
30433 {
30434 if (temp2)
30435 delete arg2;
30436 }
30437 return NULL;
30438 }
30439
30440
30441 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30442 PyObject *resultobj = 0;
30443 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30444 wxString *arg2 = 0 ;
30445 wxDouble arg3 ;
30446 wxDouble arg4 ;
30447 wxDouble arg5 ;
30448 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
30449 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
30450 void *argp1 = 0 ;
30451 int res1 = 0 ;
30452 bool temp2 = false ;
30453 double val3 ;
30454 int ecode3 = 0 ;
30455 double val4 ;
30456 int ecode4 = 0 ;
30457 double val5 ;
30458 int ecode5 = 0 ;
30459 void *argp6 = 0 ;
30460 int res6 = 0 ;
30461 PyObject * obj0 = 0 ;
30462 PyObject * obj1 = 0 ;
30463 PyObject * obj2 = 0 ;
30464 PyObject * obj3 = 0 ;
30465 PyObject * obj4 = 0 ;
30466 PyObject * obj5 = 0 ;
30467 char * kwnames[] = {
30468 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
30469 };
30470
30471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30473 if (!SWIG_IsOK(res1)) {
30474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30475 }
30476 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30477 {
30478 arg2 = wxString_in_helper(obj1);
30479 if (arg2 == NULL) SWIG_fail;
30480 temp2 = true;
30481 }
30482 ecode3 = SWIG_AsVal_double(obj2, &val3);
30483 if (!SWIG_IsOK(ecode3)) {
30484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
30485 }
30486 arg3 = static_cast< wxDouble >(val3);
30487 ecode4 = SWIG_AsVal_double(obj3, &val4);
30488 if (!SWIG_IsOK(ecode4)) {
30489 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
30490 }
30491 arg4 = static_cast< wxDouble >(val4);
30492 ecode5 = SWIG_AsVal_double(obj4, &val5);
30493 if (!SWIG_IsOK(ecode5)) {
30494 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
30495 }
30496 arg5 = static_cast< wxDouble >(val5);
30497 if (obj5) {
30498 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
30499 if (!SWIG_IsOK(res6)) {
30500 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
30501 }
30502 if (!argp6) {
30503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
30504 }
30505 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
30506 }
30507 {
30508 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
30509 if (PyErr_Occurred()) SWIG_fail;
30510 }
30511 resultobj = SWIG_Py_Void();
30512 {
30513 if (temp2)
30514 delete arg2;
30515 }
30516 return resultobj;
30517 fail:
30518 {
30519 if (temp2)
30520 delete arg2;
30521 }
30522 return NULL;
30523 }
30524
30525
30526 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30527 PyObject *resultobj = 0;
30528 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30529 wxString *arg2 = 0 ;
30530 wxDouble *arg3 = (wxDouble *) 0 ;
30531 wxDouble *arg4 = (wxDouble *) 0 ;
30532 wxDouble *arg5 = (wxDouble *) 0 ;
30533 wxDouble *arg6 = (wxDouble *) 0 ;
30534 void *argp1 = 0 ;
30535 int res1 = 0 ;
30536 bool temp2 = false ;
30537 wxDouble temp3 ;
30538 int res3 = SWIG_TMPOBJ ;
30539 wxDouble temp4 ;
30540 int res4 = SWIG_TMPOBJ ;
30541 wxDouble temp5 ;
30542 int res5 = SWIG_TMPOBJ ;
30543 wxDouble temp6 ;
30544 int res6 = SWIG_TMPOBJ ;
30545 PyObject * obj0 = 0 ;
30546 PyObject * obj1 = 0 ;
30547 char * kwnames[] = {
30548 (char *) "self",(char *) "text", NULL
30549 };
30550
30551 arg3 = &temp3;
30552 arg4 = &temp4;
30553 arg5 = &temp5;
30554 arg6 = &temp6;
30555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
30556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30557 if (!SWIG_IsOK(res1)) {
30558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
30559 }
30560 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30561 {
30562 arg2 = wxString_in_helper(obj1);
30563 if (arg2 == NULL) SWIG_fail;
30564 temp2 = true;
30565 }
30566 {
30567 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
30568 if (PyErr_Occurred()) SWIG_fail;
30569 }
30570 resultobj = SWIG_Py_Void();
30571 if (SWIG_IsTmpObj(res3)) {
30572 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
30573 } else {
30574 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30575 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
30576 }
30577 if (SWIG_IsTmpObj(res4)) {
30578 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
30579 } else {
30580 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30581 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
30582 }
30583 if (SWIG_IsTmpObj(res5)) {
30584 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
30585 } else {
30586 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30587 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
30588 }
30589 if (SWIG_IsTmpObj(res6)) {
30590 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
30591 } else {
30592 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30593 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
30594 }
30595 {
30596 if (temp2)
30597 delete arg2;
30598 }
30599 return resultobj;
30600 fail:
30601 {
30602 if (temp2)
30603 delete arg2;
30604 }
30605 return NULL;
30606 }
30607
30608
30609 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30610 PyObject *resultobj = 0;
30611 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30612 wxString *arg2 = 0 ;
30613 PyObject *result = 0 ;
30614 void *argp1 = 0 ;
30615 int res1 = 0 ;
30616 bool temp2 = false ;
30617 PyObject * obj0 = 0 ;
30618 PyObject * obj1 = 0 ;
30619 char * kwnames[] = {
30620 (char *) "self",(char *) "text", NULL
30621 };
30622
30623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
30624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30625 if (!SWIG_IsOK(res1)) {
30626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30627 }
30628 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30629 {
30630 arg2 = wxString_in_helper(obj1);
30631 if (arg2 == NULL) SWIG_fail;
30632 temp2 = true;
30633 }
30634 {
30635 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
30636 if (PyErr_Occurred()) SWIG_fail;
30637 }
30638 resultobj = result;
30639 {
30640 if (temp2)
30641 delete arg2;
30642 }
30643 return resultobj;
30644 fail:
30645 {
30646 if (temp2)
30647 delete arg2;
30648 }
30649 return NULL;
30650 }
30651
30652
30653 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30654 PyObject *resultobj = 0;
30655 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30656 wxString *arg2 = 0 ;
30657 wxArrayDouble result;
30658 void *argp1 = 0 ;
30659 int res1 = 0 ;
30660 bool temp2 = false ;
30661 PyObject * obj0 = 0 ;
30662 PyObject * obj1 = 0 ;
30663 char * kwnames[] = {
30664 (char *) "self",(char *) "text", NULL
30665 };
30666
30667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
30668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30669 if (!SWIG_IsOK(res1)) {
30670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30671 }
30672 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30673 {
30674 arg2 = wxString_in_helper(obj1);
30675 if (arg2 == NULL) SWIG_fail;
30676 temp2 = true;
30677 }
30678 {
30679 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
30680 if (PyErr_Occurred()) SWIG_fail;
30681 }
30682 {
30683 resultobj = wxArrayDouble2PyList_helper(result);
30684 }
30685 {
30686 if (temp2)
30687 delete arg2;
30688 }
30689 return resultobj;
30690 fail:
30691 {
30692 if (temp2)
30693 delete arg2;
30694 }
30695 return NULL;
30696 }
30697
30698
30699 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30700 PyObject *resultobj = 0;
30701 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30702 wxBitmap *arg2 = 0 ;
30703 wxDouble arg3 ;
30704 wxDouble arg4 ;
30705 wxDouble arg5 ;
30706 wxDouble arg6 ;
30707 void *argp1 = 0 ;
30708 int res1 = 0 ;
30709 void *argp2 = 0 ;
30710 int res2 = 0 ;
30711 double val3 ;
30712 int ecode3 = 0 ;
30713 double val4 ;
30714 int ecode4 = 0 ;
30715 double val5 ;
30716 int ecode5 = 0 ;
30717 double val6 ;
30718 int ecode6 = 0 ;
30719 PyObject * obj0 = 0 ;
30720 PyObject * obj1 = 0 ;
30721 PyObject * obj2 = 0 ;
30722 PyObject * obj3 = 0 ;
30723 PyObject * obj4 = 0 ;
30724 PyObject * obj5 = 0 ;
30725 char * kwnames[] = {
30726 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30727 };
30728
30729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30731 if (!SWIG_IsOK(res1)) {
30732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30733 }
30734 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30736 if (!SWIG_IsOK(res2)) {
30737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30738 }
30739 if (!argp2) {
30740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30741 }
30742 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30743 ecode3 = SWIG_AsVal_double(obj2, &val3);
30744 if (!SWIG_IsOK(ecode3)) {
30745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
30746 }
30747 arg3 = static_cast< wxDouble >(val3);
30748 ecode4 = SWIG_AsVal_double(obj3, &val4);
30749 if (!SWIG_IsOK(ecode4)) {
30750 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
30751 }
30752 arg4 = static_cast< wxDouble >(val4);
30753 ecode5 = SWIG_AsVal_double(obj4, &val5);
30754 if (!SWIG_IsOK(ecode5)) {
30755 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
30756 }
30757 arg5 = static_cast< wxDouble >(val5);
30758 ecode6 = SWIG_AsVal_double(obj5, &val6);
30759 if (!SWIG_IsOK(ecode6)) {
30760 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
30761 }
30762 arg6 = static_cast< wxDouble >(val6);
30763 {
30764 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
30765 if (PyErr_Occurred()) SWIG_fail;
30766 }
30767 resultobj = SWIG_Py_Void();
30768 return resultobj;
30769 fail:
30770 return NULL;
30771 }
30772
30773
30774 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30775 PyObject *resultobj = 0;
30776 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30777 wxIcon *arg2 = 0 ;
30778 wxDouble arg3 ;
30779 wxDouble arg4 ;
30780 wxDouble arg5 ;
30781 wxDouble arg6 ;
30782 void *argp1 = 0 ;
30783 int res1 = 0 ;
30784 void *argp2 = 0 ;
30785 int res2 = 0 ;
30786 double val3 ;
30787 int ecode3 = 0 ;
30788 double val4 ;
30789 int ecode4 = 0 ;
30790 double val5 ;
30791 int ecode5 = 0 ;
30792 double val6 ;
30793 int ecode6 = 0 ;
30794 PyObject * obj0 = 0 ;
30795 PyObject * obj1 = 0 ;
30796 PyObject * obj2 = 0 ;
30797 PyObject * obj3 = 0 ;
30798 PyObject * obj4 = 0 ;
30799 PyObject * obj5 = 0 ;
30800 char * kwnames[] = {
30801 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30802 };
30803
30804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30806 if (!SWIG_IsOK(res1)) {
30807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30808 }
30809 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30810 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30811 if (!SWIG_IsOK(res2)) {
30812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30813 }
30814 if (!argp2) {
30815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30816 }
30817 arg2 = reinterpret_cast< wxIcon * >(argp2);
30818 ecode3 = SWIG_AsVal_double(obj2, &val3);
30819 if (!SWIG_IsOK(ecode3)) {
30820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
30821 }
30822 arg3 = static_cast< wxDouble >(val3);
30823 ecode4 = SWIG_AsVal_double(obj3, &val4);
30824 if (!SWIG_IsOK(ecode4)) {
30825 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
30826 }
30827 arg4 = static_cast< wxDouble >(val4);
30828 ecode5 = SWIG_AsVal_double(obj4, &val5);
30829 if (!SWIG_IsOK(ecode5)) {
30830 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
30831 }
30832 arg5 = static_cast< wxDouble >(val5);
30833 ecode6 = SWIG_AsVal_double(obj5, &val6);
30834 if (!SWIG_IsOK(ecode6)) {
30835 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
30836 }
30837 arg6 = static_cast< wxDouble >(val6);
30838 {
30839 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
30840 if (PyErr_Occurred()) SWIG_fail;
30841 }
30842 resultobj = SWIG_Py_Void();
30843 return resultobj;
30844 fail:
30845 return NULL;
30846 }
30847
30848
30849 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30850 PyObject *resultobj = 0;
30851 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30852 wxDouble arg2 ;
30853 wxDouble arg3 ;
30854 wxDouble arg4 ;
30855 wxDouble arg5 ;
30856 void *argp1 = 0 ;
30857 int res1 = 0 ;
30858 double val2 ;
30859 int ecode2 = 0 ;
30860 double val3 ;
30861 int ecode3 = 0 ;
30862 double val4 ;
30863 int ecode4 = 0 ;
30864 double val5 ;
30865 int ecode5 = 0 ;
30866 PyObject * obj0 = 0 ;
30867 PyObject * obj1 = 0 ;
30868 PyObject * obj2 = 0 ;
30869 PyObject * obj3 = 0 ;
30870 PyObject * obj4 = 0 ;
30871 char * kwnames[] = {
30872 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
30873 };
30874
30875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30877 if (!SWIG_IsOK(res1)) {
30878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30879 }
30880 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30881 ecode2 = SWIG_AsVal_double(obj1, &val2);
30882 if (!SWIG_IsOK(ecode2)) {
30883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
30884 }
30885 arg2 = static_cast< wxDouble >(val2);
30886 ecode3 = SWIG_AsVal_double(obj2, &val3);
30887 if (!SWIG_IsOK(ecode3)) {
30888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
30889 }
30890 arg3 = static_cast< wxDouble >(val3);
30891 ecode4 = SWIG_AsVal_double(obj3, &val4);
30892 if (!SWIG_IsOK(ecode4)) {
30893 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
30894 }
30895 arg4 = static_cast< wxDouble >(val4);
30896 ecode5 = SWIG_AsVal_double(obj4, &val5);
30897 if (!SWIG_IsOK(ecode5)) {
30898 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
30899 }
30900 arg5 = static_cast< wxDouble >(val5);
30901 {
30902 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
30903 if (PyErr_Occurred()) SWIG_fail;
30904 }
30905 resultobj = SWIG_Py_Void();
30906 return resultobj;
30907 fail:
30908 return NULL;
30909 }
30910
30911
30912 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30913 PyObject *resultobj = 0;
30914 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30915 size_t arg2 ;
30916 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30917 void *argp1 = 0 ;
30918 int res1 = 0 ;
30919 PyObject * obj0 = 0 ;
30920 PyObject * obj1 = 0 ;
30921 char * kwnames[] = {
30922 (char *) "self",(char *) "points", NULL
30923 };
30924
30925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
30926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30927 if (!SWIG_IsOK(res1)) {
30928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30929 }
30930 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30931 {
30932 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30933 if (arg3 == NULL) SWIG_fail;
30934 }
30935 {
30936 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
30937 if (PyErr_Occurred()) SWIG_fail;
30938 }
30939 resultobj = SWIG_Py_Void();
30940 {
30941 if (arg3) delete [] arg3;
30942 }
30943 return resultobj;
30944 fail:
30945 {
30946 if (arg3) delete [] arg3;
30947 }
30948 return NULL;
30949 }
30950
30951
30952 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30953 PyObject *resultobj = 0;
30954 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30955 PyObject *arg2 = (PyObject *) 0 ;
30956 PyObject *arg3 = (PyObject *) 0 ;
30957 void *argp1 = 0 ;
30958 int res1 = 0 ;
30959 PyObject * obj0 = 0 ;
30960 PyObject * obj1 = 0 ;
30961 PyObject * obj2 = 0 ;
30962 char * kwnames[] = {
30963 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30964 };
30965
30966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30968 if (!SWIG_IsOK(res1)) {
30969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30970 }
30971 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30972 arg2 = obj1;
30973 arg3 = obj2;
30974 {
30975 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30976 if (PyErr_Occurred()) SWIG_fail;
30977 }
30978 resultobj = SWIG_Py_Void();
30979 return resultobj;
30980 fail:
30981 return NULL;
30982 }
30983
30984
30985 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30986 PyObject *resultobj = 0;
30987 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30988 size_t arg2 ;
30989 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30990 int arg4 = (int) wxODDEVEN_RULE ;
30991 void *argp1 = 0 ;
30992 int res1 = 0 ;
30993 int val4 ;
30994 int ecode4 = 0 ;
30995 PyObject * obj0 = 0 ;
30996 PyObject * obj1 = 0 ;
30997 PyObject * obj2 = 0 ;
30998 char * kwnames[] = {
30999 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
31000 };
31001
31002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31004 if (!SWIG_IsOK(res1)) {
31005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
31006 }
31007 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
31008 {
31009 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
31010 if (arg3 == NULL) SWIG_fail;
31011 }
31012 if (obj2) {
31013 ecode4 = SWIG_AsVal_int(obj2, &val4);
31014 if (!SWIG_IsOK(ecode4)) {
31015 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
31016 }
31017 arg4 = static_cast< int >(val4);
31018 }
31019 {
31020 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
31021 if (PyErr_Occurred()) SWIG_fail;
31022 }
31023 resultobj = SWIG_Py_Void();
31024 {
31025 if (arg3) delete [] arg3;
31026 }
31027 return resultobj;
31028 fail:
31029 {
31030 if (arg3) delete [] arg3;
31031 }
31032 return NULL;
31033 }
31034
31035
31036 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31037 PyObject *resultobj = 0;
31038 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
31039 wxDouble arg2 ;
31040 wxDouble arg3 ;
31041 wxDouble arg4 ;
31042 wxDouble arg5 ;
31043 void *argp1 = 0 ;
31044 int res1 = 0 ;
31045 double val2 ;
31046 int ecode2 = 0 ;
31047 double val3 ;
31048 int ecode3 = 0 ;
31049 double val4 ;
31050 int ecode4 = 0 ;
31051 double val5 ;
31052 int ecode5 = 0 ;
31053 PyObject * obj0 = 0 ;
31054 PyObject * obj1 = 0 ;
31055 PyObject * obj2 = 0 ;
31056 PyObject * obj3 = 0 ;
31057 PyObject * obj4 = 0 ;
31058 char * kwnames[] = {
31059 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
31060 };
31061
31062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31064 if (!SWIG_IsOK(res1)) {
31065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
31066 }
31067 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
31068 ecode2 = SWIG_AsVal_double(obj1, &val2);
31069 if (!SWIG_IsOK(ecode2)) {
31070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
31071 }
31072 arg2 = static_cast< wxDouble >(val2);
31073 ecode3 = SWIG_AsVal_double(obj2, &val3);
31074 if (!SWIG_IsOK(ecode3)) {
31075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
31076 }
31077 arg3 = static_cast< wxDouble >(val3);
31078 ecode4 = SWIG_AsVal_double(obj3, &val4);
31079 if (!SWIG_IsOK(ecode4)) {
31080 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
31081 }
31082 arg4 = static_cast< wxDouble >(val4);
31083 ecode5 = SWIG_AsVal_double(obj4, &val5);
31084 if (!SWIG_IsOK(ecode5)) {
31085 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
31086 }
31087 arg5 = static_cast< wxDouble >(val5);
31088 {
31089 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
31090 if (PyErr_Occurred()) SWIG_fail;
31091 }
31092 resultobj = SWIG_Py_Void();
31093 return resultobj;
31094 fail:
31095 return NULL;
31096 }
31097
31098
31099 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31100 PyObject *resultobj = 0;
31101 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
31102 wxDouble arg2 ;
31103 wxDouble arg3 ;
31104 wxDouble arg4 ;
31105 wxDouble arg5 ;
31106 void *argp1 = 0 ;
31107 int res1 = 0 ;
31108 double val2 ;
31109 int ecode2 = 0 ;
31110 double val3 ;
31111 int ecode3 = 0 ;
31112 double val4 ;
31113 int ecode4 = 0 ;
31114 double val5 ;
31115 int ecode5 = 0 ;
31116 PyObject * obj0 = 0 ;
31117 PyObject * obj1 = 0 ;
31118 PyObject * obj2 = 0 ;
31119 PyObject * obj3 = 0 ;
31120 PyObject * obj4 = 0 ;
31121 char * kwnames[] = {
31122 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
31123 };
31124
31125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31127 if (!SWIG_IsOK(res1)) {
31128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
31129 }
31130 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
31131 ecode2 = SWIG_AsVal_double(obj1, &val2);
31132 if (!SWIG_IsOK(ecode2)) {
31133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
31134 }
31135 arg2 = static_cast< wxDouble >(val2);
31136 ecode3 = SWIG_AsVal_double(obj2, &val3);
31137 if (!SWIG_IsOK(ecode3)) {
31138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
31139 }
31140 arg3 = static_cast< wxDouble >(val3);
31141 ecode4 = SWIG_AsVal_double(obj3, &val4);
31142 if (!SWIG_IsOK(ecode4)) {
31143 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
31144 }
31145 arg4 = static_cast< wxDouble >(val4);
31146 ecode5 = SWIG_AsVal_double(obj4, &val5);
31147 if (!SWIG_IsOK(ecode5)) {
31148 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
31149 }
31150 arg5 = static_cast< wxDouble >(val5);
31151 {
31152 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
31153 if (PyErr_Occurred()) SWIG_fail;
31154 }
31155 resultobj = SWIG_Py_Void();
31156 return resultobj;
31157 fail:
31158 return NULL;
31159 }
31160
31161
31162 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31163 PyObject *resultobj = 0;
31164 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
31165 wxDouble arg2 ;
31166 wxDouble arg3 ;
31167 wxDouble arg4 ;
31168 wxDouble arg5 ;
31169 wxDouble arg6 ;
31170 void *argp1 = 0 ;
31171 int res1 = 0 ;
31172 double val2 ;
31173 int ecode2 = 0 ;
31174 double val3 ;
31175 int ecode3 = 0 ;
31176 double val4 ;
31177 int ecode4 = 0 ;
31178 double val5 ;
31179 int ecode5 = 0 ;
31180 double val6 ;
31181 int ecode6 = 0 ;
31182 PyObject * obj0 = 0 ;
31183 PyObject * obj1 = 0 ;
31184 PyObject * obj2 = 0 ;
31185 PyObject * obj3 = 0 ;
31186 PyObject * obj4 = 0 ;
31187 PyObject * obj5 = 0 ;
31188 char * kwnames[] = {
31189 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
31190 };
31191
31192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
31193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31194 if (!SWIG_IsOK(res1)) {
31195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
31196 }
31197 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
31198 ecode2 = SWIG_AsVal_double(obj1, &val2);
31199 if (!SWIG_IsOK(ecode2)) {
31200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
31201 }
31202 arg2 = static_cast< wxDouble >(val2);
31203 ecode3 = SWIG_AsVal_double(obj2, &val3);
31204 if (!SWIG_IsOK(ecode3)) {
31205 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
31206 }
31207 arg3 = static_cast< wxDouble >(val3);
31208 ecode4 = SWIG_AsVal_double(obj3, &val4);
31209 if (!SWIG_IsOK(ecode4)) {
31210 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
31211 }
31212 arg4 = static_cast< wxDouble >(val4);
31213 ecode5 = SWIG_AsVal_double(obj4, &val5);
31214 if (!SWIG_IsOK(ecode5)) {
31215 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
31216 }
31217 arg5 = static_cast< wxDouble >(val5);
31218 ecode6 = SWIG_AsVal_double(obj5, &val6);
31219 if (!SWIG_IsOK(ecode6)) {
31220 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
31221 }
31222 arg6 = static_cast< wxDouble >(val6);
31223 {
31224 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
31225 if (PyErr_Occurred()) SWIG_fail;
31226 }
31227 resultobj = SWIG_Py_Void();
31228 return resultobj;
31229 fail:
31230 return NULL;
31231 }
31232
31233
31234 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31235 PyObject *resultobj = 0;
31236 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
31237 bool result;
31238 void *argp1 = 0 ;
31239 int res1 = 0 ;
31240 PyObject *swig_obj[1] ;
31241
31242 if (!args) SWIG_fail;
31243 swig_obj[0] = args;
31244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31245 if (!SWIG_IsOK(res1)) {
31246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
31247 }
31248 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
31249 {
31250 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
31251 if (PyErr_Occurred()) SWIG_fail;
31252 }
31253 {
31254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31255 }
31256 return resultobj;
31257 fail:
31258 return NULL;
31259 }
31260
31261
31262 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31263 PyObject *obj;
31264 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31265 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
31266 return SWIG_Py_Void();
31267 }
31268
31269 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31270 PyObject *resultobj = 0;
31271 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31272 void *argp1 = 0 ;
31273 int res1 = 0 ;
31274 PyObject *swig_obj[1] ;
31275
31276 if (!args) SWIG_fail;
31277 swig_obj[0] = args;
31278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
31279 if (!SWIG_IsOK(res1)) {
31280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31281 }
31282 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31283 {
31284 delete arg1;
31285
31286 if (PyErr_Occurred()) SWIG_fail;
31287 }
31288 resultobj = SWIG_Py_Void();
31289 return resultobj;
31290 fail:
31291 return NULL;
31292 }
31293
31294
31295 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31296 PyObject *resultobj = 0;
31297 wxGraphicsRenderer *result = 0 ;
31298
31299 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
31300 {
31301 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
31302 if (PyErr_Occurred()) SWIG_fail;
31303 }
31304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31305 return resultobj;
31306 fail:
31307 return NULL;
31308 }
31309
31310
31311 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31312 PyObject *resultobj = 0;
31313 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31314 wxWindowDC *arg2 = 0 ;
31315 wxGraphicsContext *result = 0 ;
31316 void *argp1 = 0 ;
31317 int res1 = 0 ;
31318 void *argp2 = 0 ;
31319 int res2 = 0 ;
31320
31321 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31323 if (!SWIG_IsOK(res1)) {
31324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31325 }
31326 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31327 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
31328 if (!SWIG_IsOK(res2)) {
31329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
31330 }
31331 if (!argp2) {
31332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
31333 }
31334 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31335 {
31336 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
31337 if (PyErr_Occurred()) SWIG_fail;
31338 }
31339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
31340 return resultobj;
31341 fail:
31342 return NULL;
31343 }
31344
31345
31346 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31347 PyObject *resultobj = 0;
31348 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31349 wxWindow *arg2 = (wxWindow *) 0 ;
31350 wxGraphicsContext *result = 0 ;
31351 void *argp1 = 0 ;
31352 int res1 = 0 ;
31353 void *argp2 = 0 ;
31354 int res2 = 0 ;
31355
31356 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31358 if (!SWIG_IsOK(res1)) {
31359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31360 }
31361 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31362 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31363 if (!SWIG_IsOK(res2)) {
31364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
31365 }
31366 arg2 = reinterpret_cast< wxWindow * >(argp2);
31367 {
31368 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
31369 if (PyErr_Occurred()) SWIG_fail;
31370 }
31371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
31372 return resultobj;
31373 fail:
31374 return NULL;
31375 }
31376
31377
31378 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
31379 int argc;
31380 PyObject *argv[3];
31381
31382 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
31383 --argc;
31384 if (argc == 2) {
31385 int _v = 0;
31386 {
31387 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
31388 _v = SWIG_CheckState(res);
31389 }
31390 if (!_v) goto check_1;
31391 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
31392 }
31393 check_1:
31394
31395 if (argc == 2) {
31396 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
31397 }
31398
31399 fail:
31400 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
31401 return NULL;
31402 }
31403
31404
31405 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31406 PyObject *resultobj = 0;
31407 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31408 wxGraphicsContext *result = 0 ;
31409 void *argp1 = 0 ;
31410 int res1 = 0 ;
31411 PyObject *swig_obj[1] ;
31412
31413 if (!args) SWIG_fail;
31414 swig_obj[0] = args;
31415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31416 if (!SWIG_IsOK(res1)) {
31417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31418 }
31419 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31420 {
31421 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
31422 if (PyErr_Occurred()) SWIG_fail;
31423 }
31424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31425 return resultobj;
31426 fail:
31427 return NULL;
31428 }
31429
31430
31431 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31432 PyObject *resultobj = 0;
31433 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31434 void *arg2 = (void *) 0 ;
31435 wxGraphicsContext *result = 0 ;
31436 void *argp1 = 0 ;
31437 int res1 = 0 ;
31438 int res2 ;
31439 PyObject * obj0 = 0 ;
31440 PyObject * obj1 = 0 ;
31441 char * kwnames[] = {
31442 (char *) "self",(char *) "context", NULL
31443 };
31444
31445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
31446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31447 if (!SWIG_IsOK(res1)) {
31448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31449 }
31450 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31451 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
31452 if (!SWIG_IsOK(res2)) {
31453 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
31454 }
31455 {
31456 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
31457 if (PyErr_Occurred()) SWIG_fail;
31458 }
31459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
31460 return resultobj;
31461 fail:
31462 return NULL;
31463 }
31464
31465
31466 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31467 PyObject *resultobj = 0;
31468 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31469 void *arg2 = (void *) 0 ;
31470 wxGraphicsContext *result = 0 ;
31471 void *argp1 = 0 ;
31472 int res1 = 0 ;
31473 int res2 ;
31474 PyObject * obj0 = 0 ;
31475 PyObject * obj1 = 0 ;
31476 char * kwnames[] = {
31477 (char *) "self",(char *) "window", NULL
31478 };
31479
31480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
31481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31482 if (!SWIG_IsOK(res1)) {
31483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31484 }
31485 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31486 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
31487 if (!SWIG_IsOK(res2)) {
31488 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
31489 }
31490 {
31491 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
31492 if (PyErr_Occurred()) SWIG_fail;
31493 }
31494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
31495 return resultobj;
31496 fail:
31497 return NULL;
31498 }
31499
31500
31501 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31502 PyObject *resultobj = 0;
31503 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31504 wxGraphicsPath result;
31505 void *argp1 = 0 ;
31506 int res1 = 0 ;
31507 PyObject *swig_obj[1] ;
31508
31509 if (!args) SWIG_fail;
31510 swig_obj[0] = args;
31511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31512 if (!SWIG_IsOK(res1)) {
31513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31514 }
31515 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31516 {
31517 result = (arg1)->CreatePath();
31518 if (PyErr_Occurred()) SWIG_fail;
31519 }
31520 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
31521 return resultobj;
31522 fail:
31523 return NULL;
31524 }
31525
31526
31527 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31528 PyObject *resultobj = 0;
31529 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31530 wxDouble arg2 = (wxDouble) 1.0 ;
31531 wxDouble arg3 = (wxDouble) 0.0 ;
31532 wxDouble arg4 = (wxDouble) 0.0 ;
31533 wxDouble arg5 = (wxDouble) 1.0 ;
31534 wxDouble arg6 = (wxDouble) 0.0 ;
31535 wxDouble arg7 = (wxDouble) 0.0 ;
31536 wxGraphicsMatrix result;
31537 void *argp1 = 0 ;
31538 int res1 = 0 ;
31539 double val2 ;
31540 int ecode2 = 0 ;
31541 double val3 ;
31542 int ecode3 = 0 ;
31543 double val4 ;
31544 int ecode4 = 0 ;
31545 double val5 ;
31546 int ecode5 = 0 ;
31547 double val6 ;
31548 int ecode6 = 0 ;
31549 double val7 ;
31550 int ecode7 = 0 ;
31551 PyObject * obj0 = 0 ;
31552 PyObject * obj1 = 0 ;
31553 PyObject * obj2 = 0 ;
31554 PyObject * obj3 = 0 ;
31555 PyObject * obj4 = 0 ;
31556 PyObject * obj5 = 0 ;
31557 PyObject * obj6 = 0 ;
31558 char * kwnames[] = {
31559 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
31560 };
31561
31562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31564 if (!SWIG_IsOK(res1)) {
31565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31566 }
31567 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31568 if (obj1) {
31569 ecode2 = SWIG_AsVal_double(obj1, &val2);
31570 if (!SWIG_IsOK(ecode2)) {
31571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
31572 }
31573 arg2 = static_cast< wxDouble >(val2);
31574 }
31575 if (obj2) {
31576 ecode3 = SWIG_AsVal_double(obj2, &val3);
31577 if (!SWIG_IsOK(ecode3)) {
31578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
31579 }
31580 arg3 = static_cast< wxDouble >(val3);
31581 }
31582 if (obj3) {
31583 ecode4 = SWIG_AsVal_double(obj3, &val4);
31584 if (!SWIG_IsOK(ecode4)) {
31585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
31586 }
31587 arg4 = static_cast< wxDouble >(val4);
31588 }
31589 if (obj4) {
31590 ecode5 = SWIG_AsVal_double(obj4, &val5);
31591 if (!SWIG_IsOK(ecode5)) {
31592 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
31593 }
31594 arg5 = static_cast< wxDouble >(val5);
31595 }
31596 if (obj5) {
31597 ecode6 = SWIG_AsVal_double(obj5, &val6);
31598 if (!SWIG_IsOK(ecode6)) {
31599 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
31600 }
31601 arg6 = static_cast< wxDouble >(val6);
31602 }
31603 if (obj6) {
31604 ecode7 = SWIG_AsVal_double(obj6, &val7);
31605 if (!SWIG_IsOK(ecode7)) {
31606 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
31607 }
31608 arg7 = static_cast< wxDouble >(val7);
31609 }
31610 {
31611 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
31612 if (PyErr_Occurred()) SWIG_fail;
31613 }
31614 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
31615 return resultobj;
31616 fail:
31617 return NULL;
31618 }
31619
31620
31621 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31622 PyObject *resultobj = 0;
31623 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31624 wxPen *arg2 = 0 ;
31625 wxGraphicsPen result;
31626 void *argp1 = 0 ;
31627 int res1 = 0 ;
31628 void *argp2 = 0 ;
31629 int res2 = 0 ;
31630 PyObject * obj0 = 0 ;
31631 PyObject * obj1 = 0 ;
31632 char * kwnames[] = {
31633 (char *) "self",(char *) "pen", NULL
31634 };
31635
31636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
31637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31638 if (!SWIG_IsOK(res1)) {
31639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31640 }
31641 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31642 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
31643 if (!SWIG_IsOK(res2)) {
31644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31645 }
31646 if (!argp2) {
31647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31648 }
31649 arg2 = reinterpret_cast< wxPen * >(argp2);
31650 {
31651 result = (arg1)->CreatePen((wxPen const &)*arg2);
31652 if (PyErr_Occurred()) SWIG_fail;
31653 }
31654 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
31655 return resultobj;
31656 fail:
31657 return NULL;
31658 }
31659
31660
31661 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31662 PyObject *resultobj = 0;
31663 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31664 wxBrush *arg2 = 0 ;
31665 wxGraphicsBrush result;
31666 void *argp1 = 0 ;
31667 int res1 = 0 ;
31668 void *argp2 = 0 ;
31669 int res2 = 0 ;
31670 PyObject * obj0 = 0 ;
31671 PyObject * obj1 = 0 ;
31672 char * kwnames[] = {
31673 (char *) "self",(char *) "brush", NULL
31674 };
31675
31676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31678 if (!SWIG_IsOK(res1)) {
31679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31680 }
31681 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31682 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31683 if (!SWIG_IsOK(res2)) {
31684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31685 }
31686 if (!argp2) {
31687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31688 }
31689 arg2 = reinterpret_cast< wxBrush * >(argp2);
31690 {
31691 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
31692 if (PyErr_Occurred()) SWIG_fail;
31693 }
31694 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31695 return resultobj;
31696 fail:
31697 return NULL;
31698 }
31699
31700
31701 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31702 PyObject *resultobj = 0;
31703 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31704 wxDouble arg2 ;
31705 wxDouble arg3 ;
31706 wxDouble arg4 ;
31707 wxDouble arg5 ;
31708 wxColour *arg6 = 0 ;
31709 wxColour *arg7 = 0 ;
31710 wxGraphicsBrush result;
31711 void *argp1 = 0 ;
31712 int res1 = 0 ;
31713 double val2 ;
31714 int ecode2 = 0 ;
31715 double val3 ;
31716 int ecode3 = 0 ;
31717 double val4 ;
31718 int ecode4 = 0 ;
31719 double val5 ;
31720 int ecode5 = 0 ;
31721 wxColour temp6 ;
31722 wxColour temp7 ;
31723 PyObject * obj0 = 0 ;
31724 PyObject * obj1 = 0 ;
31725 PyObject * obj2 = 0 ;
31726 PyObject * obj3 = 0 ;
31727 PyObject * obj4 = 0 ;
31728 PyObject * obj5 = 0 ;
31729 PyObject * obj6 = 0 ;
31730 char * kwnames[] = {
31731 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
31732 };
31733
31734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31736 if (!SWIG_IsOK(res1)) {
31737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31738 }
31739 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31740 ecode2 = SWIG_AsVal_double(obj1, &val2);
31741 if (!SWIG_IsOK(ecode2)) {
31742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31743 }
31744 arg2 = static_cast< wxDouble >(val2);
31745 ecode3 = SWIG_AsVal_double(obj2, &val3);
31746 if (!SWIG_IsOK(ecode3)) {
31747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31748 }
31749 arg3 = static_cast< wxDouble >(val3);
31750 ecode4 = SWIG_AsVal_double(obj3, &val4);
31751 if (!SWIG_IsOK(ecode4)) {
31752 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31753 }
31754 arg4 = static_cast< wxDouble >(val4);
31755 ecode5 = SWIG_AsVal_double(obj4, &val5);
31756 if (!SWIG_IsOK(ecode5)) {
31757 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31758 }
31759 arg5 = static_cast< wxDouble >(val5);
31760 {
31761 arg6 = &temp6;
31762 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
31763 }
31764 {
31765 arg7 = &temp7;
31766 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31767 }
31768 {
31769 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
31770 if (PyErr_Occurred()) SWIG_fail;
31771 }
31772 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31773 return resultobj;
31774 fail:
31775 return NULL;
31776 }
31777
31778
31779 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31780 PyObject *resultobj = 0;
31781 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31782 wxDouble arg2 ;
31783 wxDouble arg3 ;
31784 wxDouble arg4 ;
31785 wxDouble arg5 ;
31786 wxDouble arg6 ;
31787 wxColour *arg7 = 0 ;
31788 wxColour *arg8 = 0 ;
31789 wxGraphicsBrush result;
31790 void *argp1 = 0 ;
31791 int res1 = 0 ;
31792 double val2 ;
31793 int ecode2 = 0 ;
31794 double val3 ;
31795 int ecode3 = 0 ;
31796 double val4 ;
31797 int ecode4 = 0 ;
31798 double val5 ;
31799 int ecode5 = 0 ;
31800 double val6 ;
31801 int ecode6 = 0 ;
31802 wxColour temp7 ;
31803 wxColour temp8 ;
31804 PyObject * obj0 = 0 ;
31805 PyObject * obj1 = 0 ;
31806 PyObject * obj2 = 0 ;
31807 PyObject * obj3 = 0 ;
31808 PyObject * obj4 = 0 ;
31809 PyObject * obj5 = 0 ;
31810 PyObject * obj6 = 0 ;
31811 PyObject * obj7 = 0 ;
31812 char * kwnames[] = {
31813 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
31814 };
31815
31816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31818 if (!SWIG_IsOK(res1)) {
31819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31820 }
31821 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31822 ecode2 = SWIG_AsVal_double(obj1, &val2);
31823 if (!SWIG_IsOK(ecode2)) {
31824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31825 }
31826 arg2 = static_cast< wxDouble >(val2);
31827 ecode3 = SWIG_AsVal_double(obj2, &val3);
31828 if (!SWIG_IsOK(ecode3)) {
31829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31830 }
31831 arg3 = static_cast< wxDouble >(val3);
31832 ecode4 = SWIG_AsVal_double(obj3, &val4);
31833 if (!SWIG_IsOK(ecode4)) {
31834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31835 }
31836 arg4 = static_cast< wxDouble >(val4);
31837 ecode5 = SWIG_AsVal_double(obj4, &val5);
31838 if (!SWIG_IsOK(ecode5)) {
31839 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31840 }
31841 arg5 = static_cast< wxDouble >(val5);
31842 ecode6 = SWIG_AsVal_double(obj5, &val6);
31843 if (!SWIG_IsOK(ecode6)) {
31844 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
31845 }
31846 arg6 = static_cast< wxDouble >(val6);
31847 {
31848 arg7 = &temp7;
31849 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31850 }
31851 {
31852 arg8 = &temp8;
31853 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
31854 }
31855 {
31856 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
31857 if (PyErr_Occurred()) SWIG_fail;
31858 }
31859 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31860 return resultobj;
31861 fail:
31862 return NULL;
31863 }
31864
31865
31866 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31867 PyObject *resultobj = 0;
31868 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31869 wxFont *arg2 = 0 ;
31870 wxColour const &arg3_defvalue = *wxBLACK ;
31871 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
31872 wxGraphicsFont result;
31873 void *argp1 = 0 ;
31874 int res1 = 0 ;
31875 void *argp2 = 0 ;
31876 int res2 = 0 ;
31877 wxColour temp3 ;
31878 PyObject * obj0 = 0 ;
31879 PyObject * obj1 = 0 ;
31880 PyObject * obj2 = 0 ;
31881 char * kwnames[] = {
31882 (char *) "self",(char *) "font",(char *) "col", NULL
31883 };
31884
31885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31887 if (!SWIG_IsOK(res1)) {
31888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31889 }
31890 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31891 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31892 if (!SWIG_IsOK(res2)) {
31893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31894 }
31895 if (!argp2) {
31896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31897 }
31898 arg2 = reinterpret_cast< wxFont * >(argp2);
31899 if (obj2) {
31900 {
31901 arg3 = &temp3;
31902 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31903 }
31904 }
31905 {
31906 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
31907 if (PyErr_Occurred()) SWIG_fail;
31908 }
31909 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
31910 return resultobj;
31911 fail:
31912 return NULL;
31913 }
31914
31915
31916 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31917 PyObject *obj;
31918 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31919 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
31920 return SWIG_Py_Void();
31921 }
31922
31923 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31924 PyObject *resultobj = 0;
31925 wxWindowDC *arg1 = 0 ;
31926 wxGCDC *result = 0 ;
31927 void *argp1 = 0 ;
31928 int res1 = 0 ;
31929
31930 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
31932 if (!SWIG_IsOK(res1)) {
31933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31934 }
31935 if (!argp1) {
31936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31937 }
31938 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
31939 {
31940 if (!wxPyCheckForApp()) SWIG_fail;
31941 PyThreadState* __tstate = wxPyBeginAllowThreads();
31942 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
31943 wxPyEndAllowThreads(__tstate);
31944 if (PyErr_Occurred()) SWIG_fail;
31945 }
31946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31947 return resultobj;
31948 fail:
31949 return NULL;
31950 }
31951
31952
31953 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31954 PyObject *resultobj = 0;
31955 wxWindow *arg1 = (wxWindow *) 0 ;
31956 wxGCDC *result = 0 ;
31957 void *argp1 = 0 ;
31958 int res1 = 0 ;
31959
31960 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31962 if (!SWIG_IsOK(res1)) {
31963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
31964 }
31965 arg1 = reinterpret_cast< wxWindow * >(argp1);
31966 {
31967 if (!wxPyCheckForApp()) SWIG_fail;
31968 PyThreadState* __tstate = wxPyBeginAllowThreads();
31969 result = (wxGCDC *)new wxGCDC(arg1);
31970 wxPyEndAllowThreads(__tstate);
31971 if (PyErr_Occurred()) SWIG_fail;
31972 }
31973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31974 return resultobj;
31975 fail:
31976 return NULL;
31977 }
31978
31979
31980 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
31981 int argc;
31982 PyObject *argv[2];
31983
31984 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
31985 --argc;
31986 if (argc == 1) {
31987 int _v = 0;
31988 {
31989 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
31990 _v = SWIG_CheckState(res);
31991 }
31992 if (!_v) goto check_1;
31993 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
31994 }
31995 check_1:
31996
31997 if (argc == 1) {
31998 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
31999 }
32000
32001 fail:
32002 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
32003 return NULL;
32004 }
32005
32006
32007 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32008 PyObject *resultobj = 0;
32009 wxGCDC *arg1 = (wxGCDC *) 0 ;
32010 void *argp1 = 0 ;
32011 int res1 = 0 ;
32012 PyObject *swig_obj[1] ;
32013
32014 if (!args) SWIG_fail;
32015 swig_obj[0] = args;
32016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
32017 if (!SWIG_IsOK(res1)) {
32018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
32019 }
32020 arg1 = reinterpret_cast< wxGCDC * >(argp1);
32021 {
32022 delete arg1;
32023
32024 if (PyErr_Occurred()) SWIG_fail;
32025 }
32026 resultobj = SWIG_Py_Void();
32027 return resultobj;
32028 fail:
32029 return NULL;
32030 }
32031
32032
32033 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32034 PyObject *resultobj = 0;
32035 wxGCDC *arg1 = (wxGCDC *) 0 ;
32036 wxGraphicsContext *result = 0 ;
32037 void *argp1 = 0 ;
32038 int res1 = 0 ;
32039 PyObject *swig_obj[1] ;
32040
32041 if (!args) SWIG_fail;
32042 swig_obj[0] = args;
32043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
32044 if (!SWIG_IsOK(res1)) {
32045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
32046 }
32047 arg1 = reinterpret_cast< wxGCDC * >(argp1);
32048 {
32049 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
32050 if (PyErr_Occurred()) SWIG_fail;
32051 }
32052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
32053 return resultobj;
32054 fail:
32055 return NULL;
32056 }
32057
32058
32059 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32060 PyObject *resultobj = 0;
32061 wxGCDC *arg1 = (wxGCDC *) 0 ;
32062 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
32063 void *argp1 = 0 ;
32064 int res1 = 0 ;
32065 void *argp2 = 0 ;
32066 int res2 = 0 ;
32067 PyObject * obj0 = 0 ;
32068 PyObject * obj1 = 0 ;
32069 char * kwnames[] = {
32070 (char *) "self",(char *) "ctx", NULL
32071 };
32072
32073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
32074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
32075 if (!SWIG_IsOK(res1)) {
32076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
32077 }
32078 arg1 = reinterpret_cast< wxGCDC * >(argp1);
32079 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
32080 if (!SWIG_IsOK(res2)) {
32081 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
32082 }
32083 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
32084 {
32085 (arg1)->SetGraphicsContext(arg2);
32086 if (PyErr_Occurred()) SWIG_fail;
32087 }
32088 resultobj = SWIG_Py_Void();
32089 return resultobj;
32090 fail:
32091 return NULL;
32092 }
32093
32094
32095 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32096 PyObject *obj;
32097 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32098 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
32099 return SWIG_Py_Void();
32100 }
32101
32102 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32103 return SWIG_Python_InitShadowInstance(args);
32104 }
32105
32106 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32107 PyObject *resultobj = 0;
32108 wxOverlay *result = 0 ;
32109
32110 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
32111 {
32112 PyThreadState* __tstate = wxPyBeginAllowThreads();
32113 result = (wxOverlay *)new wxOverlay();
32114 wxPyEndAllowThreads(__tstate);
32115 if (PyErr_Occurred()) SWIG_fail;
32116 }
32117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
32118 return resultobj;
32119 fail:
32120 return NULL;
32121 }
32122
32123
32124 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32125 PyObject *resultobj = 0;
32126 wxOverlay *arg1 = (wxOverlay *) 0 ;
32127 void *argp1 = 0 ;
32128 int res1 = 0 ;
32129 PyObject *swig_obj[1] ;
32130
32131 if (!args) SWIG_fail;
32132 swig_obj[0] = args;
32133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
32134 if (!SWIG_IsOK(res1)) {
32135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
32136 }
32137 arg1 = reinterpret_cast< wxOverlay * >(argp1);
32138 {
32139 PyThreadState* __tstate = wxPyBeginAllowThreads();
32140 delete arg1;
32141
32142 wxPyEndAllowThreads(__tstate);
32143 if (PyErr_Occurred()) SWIG_fail;
32144 }
32145 resultobj = SWIG_Py_Void();
32146 return resultobj;
32147 fail:
32148 return NULL;
32149 }
32150
32151
32152 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32153 PyObject *resultobj = 0;
32154 wxOverlay *arg1 = (wxOverlay *) 0 ;
32155 void *argp1 = 0 ;
32156 int res1 = 0 ;
32157 PyObject *swig_obj[1] ;
32158
32159 if (!args) SWIG_fail;
32160 swig_obj[0] = args;
32161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
32162 if (!SWIG_IsOK(res1)) {
32163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
32164 }
32165 arg1 = reinterpret_cast< wxOverlay * >(argp1);
32166 {
32167 PyThreadState* __tstate = wxPyBeginAllowThreads();
32168 (arg1)->Reset();
32169 wxPyEndAllowThreads(__tstate);
32170 if (PyErr_Occurred()) SWIG_fail;
32171 }
32172 resultobj = SWIG_Py_Void();
32173 return resultobj;
32174 fail:
32175 return NULL;
32176 }
32177
32178
32179 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32180 PyObject *obj;
32181 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32182 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
32183 return SWIG_Py_Void();
32184 }
32185
32186 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32187 return SWIG_Python_InitShadowInstance(args);
32188 }
32189
32190 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32191 PyObject *resultobj = 0;
32192 wxOverlay *arg1 = 0 ;
32193 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
32194 int arg3 ;
32195 int arg4 ;
32196 int arg5 ;
32197 int arg6 ;
32198 wxDCOverlay *result = 0 ;
32199 void *argp1 = 0 ;
32200 int res1 = 0 ;
32201 void *argp2 = 0 ;
32202 int res2 = 0 ;
32203 int val3 ;
32204 int ecode3 = 0 ;
32205 int val4 ;
32206 int ecode4 = 0 ;
32207 int val5 ;
32208 int ecode5 = 0 ;
32209 int val6 ;
32210 int ecode6 = 0 ;
32211
32212 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
32213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
32214 if (!SWIG_IsOK(res1)) {
32215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
32216 }
32217 if (!argp1) {
32218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
32219 }
32220 arg1 = reinterpret_cast< wxOverlay * >(argp1);
32221 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
32222 if (!SWIG_IsOK(res2)) {
32223 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
32224 }
32225 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
32226 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32227 if (!SWIG_IsOK(ecode3)) {
32228 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
32229 }
32230 arg3 = static_cast< int >(val3);
32231 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
32232 if (!SWIG_IsOK(ecode4)) {
32233 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
32234 }
32235 arg4 = static_cast< int >(val4);
32236 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
32237 if (!SWIG_IsOK(ecode5)) {
32238 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
32239 }
32240 arg5 = static_cast< int >(val5);
32241 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
32242 if (!SWIG_IsOK(ecode6)) {
32243 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
32244 }
32245 arg6 = static_cast< int >(val6);
32246 {
32247 PyThreadState* __tstate = wxPyBeginAllowThreads();
32248 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
32249 wxPyEndAllowThreads(__tstate);
32250 if (PyErr_Occurred()) SWIG_fail;
32251 }
32252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
32253 return resultobj;
32254 fail:
32255 return NULL;
32256 }
32257
32258
32259 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32260 PyObject *resultobj = 0;
32261 wxOverlay *arg1 = 0 ;
32262 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
32263 wxDCOverlay *result = 0 ;
32264 void *argp1 = 0 ;
32265 int res1 = 0 ;
32266 void *argp2 = 0 ;
32267 int res2 = 0 ;
32268
32269 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
32270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
32271 if (!SWIG_IsOK(res1)) {
32272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
32273 }
32274 if (!argp1) {
32275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
32276 }
32277 arg1 = reinterpret_cast< wxOverlay * >(argp1);
32278 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
32279 if (!SWIG_IsOK(res2)) {
32280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
32281 }
32282 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
32283 {
32284 PyThreadState* __tstate = wxPyBeginAllowThreads();
32285 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
32286 wxPyEndAllowThreads(__tstate);
32287 if (PyErr_Occurred()) SWIG_fail;
32288 }
32289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
32290 return resultobj;
32291 fail:
32292 return NULL;
32293 }
32294
32295
32296 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
32297 int argc;
32298 PyObject *argv[7];
32299
32300 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
32301 --argc;
32302 if (argc == 2) {
32303 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
32304 }
32305 if (argc == 6) {
32306 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
32307 }
32308
32309 fail:
32310 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
32311 return NULL;
32312 }
32313
32314
32315 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32316 PyObject *resultobj = 0;
32317 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
32318 void *argp1 = 0 ;
32319 int res1 = 0 ;
32320 PyObject *swig_obj[1] ;
32321
32322 if (!args) SWIG_fail;
32323 swig_obj[0] = args;
32324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
32325 if (!SWIG_IsOK(res1)) {
32326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
32327 }
32328 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
32329 {
32330 PyThreadState* __tstate = wxPyBeginAllowThreads();
32331 delete arg1;
32332
32333 wxPyEndAllowThreads(__tstate);
32334 if (PyErr_Occurred()) SWIG_fail;
32335 }
32336 resultobj = SWIG_Py_Void();
32337 return resultobj;
32338 fail:
32339 return NULL;
32340 }
32341
32342
32343 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32344 PyObject *resultobj = 0;
32345 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
32346 void *argp1 = 0 ;
32347 int res1 = 0 ;
32348 PyObject *swig_obj[1] ;
32349
32350 if (!args) SWIG_fail;
32351 swig_obj[0] = args;
32352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
32353 if (!SWIG_IsOK(res1)) {
32354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
32355 }
32356 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
32357 {
32358 PyThreadState* __tstate = wxPyBeginAllowThreads();
32359 (arg1)->Clear();
32360 wxPyEndAllowThreads(__tstate);
32361 if (PyErr_Occurred()) SWIG_fail;
32362 }
32363 resultobj = SWIG_Py_Void();
32364 return resultobj;
32365 fail:
32366 return NULL;
32367 }
32368
32369
32370 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32371 PyObject *obj;
32372 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32373 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
32374 return SWIG_Py_Void();
32375 }
32376
32377 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32378 return SWIG_Python_InitShadowInstance(args);
32379 }
32380
32381 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32382 PyObject *resultobj = 0;
32383 int arg1 ;
32384 int arg2 ;
32385 int arg3 = (int) true ;
32386 int arg4 = (int) 1 ;
32387 wxImageList *result = 0 ;
32388 int val1 ;
32389 int ecode1 = 0 ;
32390 int val2 ;
32391 int ecode2 = 0 ;
32392 int val3 ;
32393 int ecode3 = 0 ;
32394 int val4 ;
32395 int ecode4 = 0 ;
32396 PyObject * obj0 = 0 ;
32397 PyObject * obj1 = 0 ;
32398 PyObject * obj2 = 0 ;
32399 PyObject * obj3 = 0 ;
32400 char * kwnames[] = {
32401 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
32402 };
32403
32404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32405 ecode1 = SWIG_AsVal_int(obj0, &val1);
32406 if (!SWIG_IsOK(ecode1)) {
32407 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
32408 }
32409 arg1 = static_cast< int >(val1);
32410 ecode2 = SWIG_AsVal_int(obj1, &val2);
32411 if (!SWIG_IsOK(ecode2)) {
32412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
32413 }
32414 arg2 = static_cast< int >(val2);
32415 if (obj2) {
32416 ecode3 = SWIG_AsVal_int(obj2, &val3);
32417 if (!SWIG_IsOK(ecode3)) {
32418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
32419 }
32420 arg3 = static_cast< int >(val3);
32421 }
32422 if (obj3) {
32423 ecode4 = SWIG_AsVal_int(obj3, &val4);
32424 if (!SWIG_IsOK(ecode4)) {
32425 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
32426 }
32427 arg4 = static_cast< int >(val4);
32428 }
32429 {
32430 if (!wxPyCheckForApp()) SWIG_fail;
32431 PyThreadState* __tstate = wxPyBeginAllowThreads();
32432 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
32433 wxPyEndAllowThreads(__tstate);
32434 if (PyErr_Occurred()) SWIG_fail;
32435 }
32436 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
32437 return resultobj;
32438 fail:
32439 return NULL;
32440 }
32441
32442
32443 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32444 PyObject *resultobj = 0;
32445 wxImageList *arg1 = (wxImageList *) 0 ;
32446 void *argp1 = 0 ;
32447 int res1 = 0 ;
32448 PyObject *swig_obj[1] ;
32449
32450 if (!args) SWIG_fail;
32451 swig_obj[0] = args;
32452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
32453 if (!SWIG_IsOK(res1)) {
32454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
32455 }
32456 arg1 = reinterpret_cast< wxImageList * >(argp1);
32457 {
32458 PyThreadState* __tstate = wxPyBeginAllowThreads();
32459 delete arg1;
32460
32461 wxPyEndAllowThreads(__tstate);
32462 if (PyErr_Occurred()) SWIG_fail;
32463 }
32464 resultobj = SWIG_Py_Void();
32465 return resultobj;
32466 fail:
32467 return NULL;
32468 }
32469
32470
32471 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32472 PyObject *resultobj = 0;
32473 wxImageList *arg1 = (wxImageList *) 0 ;
32474 wxBitmap *arg2 = 0 ;
32475 wxBitmap const &arg3_defvalue = wxNullBitmap ;
32476 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
32477 int result;
32478 void *argp1 = 0 ;
32479 int res1 = 0 ;
32480 void *argp2 = 0 ;
32481 int res2 = 0 ;
32482 void *argp3 = 0 ;
32483 int res3 = 0 ;
32484 PyObject * obj0 = 0 ;
32485 PyObject * obj1 = 0 ;
32486 PyObject * obj2 = 0 ;
32487 char * kwnames[] = {
32488 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
32489 };
32490
32491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32493 if (!SWIG_IsOK(res1)) {
32494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
32495 }
32496 arg1 = reinterpret_cast< wxImageList * >(argp1);
32497 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
32498 if (!SWIG_IsOK(res2)) {
32499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32500 }
32501 if (!argp2) {
32502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32503 }
32504 arg2 = reinterpret_cast< wxBitmap * >(argp2);
32505 if (obj2) {
32506 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32507 if (!SWIG_IsOK(res3)) {
32508 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32509 }
32510 if (!argp3) {
32511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32512 }
32513 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32514 }
32515 {
32516 PyThreadState* __tstate = wxPyBeginAllowThreads();
32517 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
32518 wxPyEndAllowThreads(__tstate);
32519 if (PyErr_Occurred()) SWIG_fail;
32520 }
32521 resultobj = SWIG_From_int(static_cast< int >(result));
32522 return resultobj;
32523 fail:
32524 return NULL;
32525 }
32526
32527
32528 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32529 PyObject *resultobj = 0;
32530 wxImageList *arg1 = (wxImageList *) 0 ;
32531 wxBitmap *arg2 = 0 ;
32532 wxColour *arg3 = 0 ;
32533 int result;
32534 void *argp1 = 0 ;
32535 int res1 = 0 ;
32536 void *argp2 = 0 ;
32537 int res2 = 0 ;
32538 wxColour temp3 ;
32539 PyObject * obj0 = 0 ;
32540 PyObject * obj1 = 0 ;
32541 PyObject * obj2 = 0 ;
32542 char * kwnames[] = {
32543 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
32544 };
32545
32546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32548 if (!SWIG_IsOK(res1)) {
32549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
32550 }
32551 arg1 = reinterpret_cast< wxImageList * >(argp1);
32552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
32553 if (!SWIG_IsOK(res2)) {
32554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32555 }
32556 if (!argp2) {
32557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32558 }
32559 arg2 = reinterpret_cast< wxBitmap * >(argp2);
32560 {
32561 arg3 = &temp3;
32562 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32563 }
32564 {
32565 PyThreadState* __tstate = wxPyBeginAllowThreads();
32566 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
32567 wxPyEndAllowThreads(__tstate);
32568 if (PyErr_Occurred()) SWIG_fail;
32569 }
32570 resultobj = SWIG_From_int(static_cast< int >(result));
32571 return resultobj;
32572 fail:
32573 return NULL;
32574 }
32575
32576
32577 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32578 PyObject *resultobj = 0;
32579 wxImageList *arg1 = (wxImageList *) 0 ;
32580 wxIcon *arg2 = 0 ;
32581 int result;
32582 void *argp1 = 0 ;
32583 int res1 = 0 ;
32584 void *argp2 = 0 ;
32585 int res2 = 0 ;
32586 PyObject * obj0 = 0 ;
32587 PyObject * obj1 = 0 ;
32588 char * kwnames[] = {
32589 (char *) "self",(char *) "icon", NULL
32590 };
32591
32592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
32593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32594 if (!SWIG_IsOK(res1)) {
32595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
32596 }
32597 arg1 = reinterpret_cast< wxImageList * >(argp1);
32598 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
32599 if (!SWIG_IsOK(res2)) {
32600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32601 }
32602 if (!argp2) {
32603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32604 }
32605 arg2 = reinterpret_cast< wxIcon * >(argp2);
32606 {
32607 PyThreadState* __tstate = wxPyBeginAllowThreads();
32608 result = (int)(arg1)->Add((wxIcon const &)*arg2);
32609 wxPyEndAllowThreads(__tstate);
32610 if (PyErr_Occurred()) SWIG_fail;
32611 }
32612 resultobj = SWIG_From_int(static_cast< int >(result));
32613 return resultobj;
32614 fail:
32615 return NULL;
32616 }
32617
32618
32619 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32620 PyObject *resultobj = 0;
32621 wxImageList *arg1 = (wxImageList *) 0 ;
32622 int arg2 ;
32623 SwigValueWrapper<wxBitmap > result;
32624 void *argp1 = 0 ;
32625 int res1 = 0 ;
32626 int val2 ;
32627 int ecode2 = 0 ;
32628 PyObject * obj0 = 0 ;
32629 PyObject * obj1 = 0 ;
32630 char * kwnames[] = {
32631 (char *) "self",(char *) "index", NULL
32632 };
32633
32634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
32635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32636 if (!SWIG_IsOK(res1)) {
32637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
32638 }
32639 arg1 = reinterpret_cast< wxImageList * >(argp1);
32640 ecode2 = SWIG_AsVal_int(obj1, &val2);
32641 if (!SWIG_IsOK(ecode2)) {
32642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
32643 }
32644 arg2 = static_cast< int >(val2);
32645 {
32646 PyThreadState* __tstate = wxPyBeginAllowThreads();
32647 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
32648 wxPyEndAllowThreads(__tstate);
32649 if (PyErr_Occurred()) SWIG_fail;
32650 }
32651 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
32652 return resultobj;
32653 fail:
32654 return NULL;
32655 }
32656
32657
32658 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32659 PyObject *resultobj = 0;
32660 wxImageList *arg1 = (wxImageList *) 0 ;
32661 int arg2 ;
32662 wxIcon result;
32663 void *argp1 = 0 ;
32664 int res1 = 0 ;
32665 int val2 ;
32666 int ecode2 = 0 ;
32667 PyObject * obj0 = 0 ;
32668 PyObject * obj1 = 0 ;
32669 char * kwnames[] = {
32670 (char *) "self",(char *) "index", NULL
32671 };
32672
32673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
32674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32675 if (!SWIG_IsOK(res1)) {
32676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
32677 }
32678 arg1 = reinterpret_cast< wxImageList * >(argp1);
32679 ecode2 = SWIG_AsVal_int(obj1, &val2);
32680 if (!SWIG_IsOK(ecode2)) {
32681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
32682 }
32683 arg2 = static_cast< int >(val2);
32684 {
32685 PyThreadState* __tstate = wxPyBeginAllowThreads();
32686 result = ((wxImageList const *)arg1)->GetIcon(arg2);
32687 wxPyEndAllowThreads(__tstate);
32688 if (PyErr_Occurred()) SWIG_fail;
32689 }
32690 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
32691 return resultobj;
32692 fail:
32693 return NULL;
32694 }
32695
32696
32697 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32698 PyObject *resultobj = 0;
32699 wxImageList *arg1 = (wxImageList *) 0 ;
32700 int arg2 ;
32701 wxBitmap *arg3 = 0 ;
32702 wxBitmap const &arg4_defvalue = wxNullBitmap ;
32703 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
32704 bool result;
32705 void *argp1 = 0 ;
32706 int res1 = 0 ;
32707 int val2 ;
32708 int ecode2 = 0 ;
32709 void *argp3 = 0 ;
32710 int res3 = 0 ;
32711 void *argp4 = 0 ;
32712 int res4 = 0 ;
32713 PyObject * obj0 = 0 ;
32714 PyObject * obj1 = 0 ;
32715 PyObject * obj2 = 0 ;
32716 PyObject * obj3 = 0 ;
32717 char * kwnames[] = {
32718 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
32719 };
32720
32721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32723 if (!SWIG_IsOK(res1)) {
32724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
32725 }
32726 arg1 = reinterpret_cast< wxImageList * >(argp1);
32727 ecode2 = SWIG_AsVal_int(obj1, &val2);
32728 if (!SWIG_IsOK(ecode2)) {
32729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
32730 }
32731 arg2 = static_cast< int >(val2);
32732 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32733 if (!SWIG_IsOK(res3)) {
32734 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32735 }
32736 if (!argp3) {
32737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32738 }
32739 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32740 if (obj3) {
32741 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
32742 if (!SWIG_IsOK(res4)) {
32743 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32744 }
32745 if (!argp4) {
32746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32747 }
32748 arg4 = reinterpret_cast< wxBitmap * >(argp4);
32749 }
32750 {
32751 PyThreadState* __tstate = wxPyBeginAllowThreads();
32752 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
32753 wxPyEndAllowThreads(__tstate);
32754 if (PyErr_Occurred()) SWIG_fail;
32755 }
32756 {
32757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32758 }
32759 return resultobj;
32760 fail:
32761 return NULL;
32762 }
32763
32764
32765 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32766 PyObject *resultobj = 0;
32767 wxImageList *arg1 = (wxImageList *) 0 ;
32768 int arg2 ;
32769 wxDC *arg3 = 0 ;
32770 int arg4 ;
32771 int arg5 ;
32772 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
32773 bool arg7 = (bool) (bool)false ;
32774 bool result;
32775 void *argp1 = 0 ;
32776 int res1 = 0 ;
32777 int val2 ;
32778 int ecode2 = 0 ;
32779 void *argp3 = 0 ;
32780 int res3 = 0 ;
32781 int val4 ;
32782 int ecode4 = 0 ;
32783 int val5 ;
32784 int ecode5 = 0 ;
32785 int val6 ;
32786 int ecode6 = 0 ;
32787 bool val7 ;
32788 int ecode7 = 0 ;
32789 PyObject * obj0 = 0 ;
32790 PyObject * obj1 = 0 ;
32791 PyObject * obj2 = 0 ;
32792 PyObject * obj3 = 0 ;
32793 PyObject * obj4 = 0 ;
32794 PyObject * obj5 = 0 ;
32795 PyObject * obj6 = 0 ;
32796 char * kwnames[] = {
32797 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
32798 };
32799
32800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32802 if (!SWIG_IsOK(res1)) {
32803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
32804 }
32805 arg1 = reinterpret_cast< wxImageList * >(argp1);
32806 ecode2 = SWIG_AsVal_int(obj1, &val2);
32807 if (!SWIG_IsOK(ecode2)) {
32808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
32809 }
32810 arg2 = static_cast< int >(val2);
32811 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32812 if (!SWIG_IsOK(res3)) {
32813 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32814 }
32815 if (!argp3) {
32816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32817 }
32818 arg3 = reinterpret_cast< wxDC * >(argp3);
32819 ecode4 = SWIG_AsVal_int(obj3, &val4);
32820 if (!SWIG_IsOK(ecode4)) {
32821 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
32822 }
32823 arg4 = static_cast< int >(val4);
32824 ecode5 = SWIG_AsVal_int(obj4, &val5);
32825 if (!SWIG_IsOK(ecode5)) {
32826 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
32827 }
32828 arg5 = static_cast< int >(val5);
32829 if (obj5) {
32830 ecode6 = SWIG_AsVal_int(obj5, &val6);
32831 if (!SWIG_IsOK(ecode6)) {
32832 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
32833 }
32834 arg6 = static_cast< int >(val6);
32835 }
32836 if (obj6) {
32837 ecode7 = SWIG_AsVal_bool(obj6, &val7);
32838 if (!SWIG_IsOK(ecode7)) {
32839 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
32840 }
32841 arg7 = static_cast< bool >(val7);
32842 }
32843 {
32844 PyThreadState* __tstate = wxPyBeginAllowThreads();
32845 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
32846 wxPyEndAllowThreads(__tstate);
32847 if (PyErr_Occurred()) SWIG_fail;
32848 }
32849 {
32850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32851 }
32852 return resultobj;
32853 fail:
32854 return NULL;
32855 }
32856
32857
32858 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32859 PyObject *resultobj = 0;
32860 wxImageList *arg1 = (wxImageList *) 0 ;
32861 int result;
32862 void *argp1 = 0 ;
32863 int res1 = 0 ;
32864 PyObject *swig_obj[1] ;
32865
32866 if (!args) SWIG_fail;
32867 swig_obj[0] = args;
32868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32869 if (!SWIG_IsOK(res1)) {
32870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
32871 }
32872 arg1 = reinterpret_cast< wxImageList * >(argp1);
32873 {
32874 PyThreadState* __tstate = wxPyBeginAllowThreads();
32875 result = (int)(arg1)->GetImageCount();
32876 wxPyEndAllowThreads(__tstate);
32877 if (PyErr_Occurred()) SWIG_fail;
32878 }
32879 resultobj = SWIG_From_int(static_cast< int >(result));
32880 return resultobj;
32881 fail:
32882 return NULL;
32883 }
32884
32885
32886 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32887 PyObject *resultobj = 0;
32888 wxImageList *arg1 = (wxImageList *) 0 ;
32889 int arg2 ;
32890 bool result;
32891 void *argp1 = 0 ;
32892 int res1 = 0 ;
32893 int val2 ;
32894 int ecode2 = 0 ;
32895 PyObject * obj0 = 0 ;
32896 PyObject * obj1 = 0 ;
32897 char * kwnames[] = {
32898 (char *) "self",(char *) "index", NULL
32899 };
32900
32901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
32902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32903 if (!SWIG_IsOK(res1)) {
32904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
32905 }
32906 arg1 = reinterpret_cast< wxImageList * >(argp1);
32907 ecode2 = SWIG_AsVal_int(obj1, &val2);
32908 if (!SWIG_IsOK(ecode2)) {
32909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
32910 }
32911 arg2 = static_cast< int >(val2);
32912 {
32913 PyThreadState* __tstate = wxPyBeginAllowThreads();
32914 result = (bool)(arg1)->Remove(arg2);
32915 wxPyEndAllowThreads(__tstate);
32916 if (PyErr_Occurred()) SWIG_fail;
32917 }
32918 {
32919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32920 }
32921 return resultobj;
32922 fail:
32923 return NULL;
32924 }
32925
32926
32927 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32928 PyObject *resultobj = 0;
32929 wxImageList *arg1 = (wxImageList *) 0 ;
32930 bool result;
32931 void *argp1 = 0 ;
32932 int res1 = 0 ;
32933 PyObject *swig_obj[1] ;
32934
32935 if (!args) SWIG_fail;
32936 swig_obj[0] = args;
32937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32938 if (!SWIG_IsOK(res1)) {
32939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
32940 }
32941 arg1 = reinterpret_cast< wxImageList * >(argp1);
32942 {
32943 PyThreadState* __tstate = wxPyBeginAllowThreads();
32944 result = (bool)(arg1)->RemoveAll();
32945 wxPyEndAllowThreads(__tstate);
32946 if (PyErr_Occurred()) SWIG_fail;
32947 }
32948 {
32949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32950 }
32951 return resultobj;
32952 fail:
32953 return NULL;
32954 }
32955
32956
32957 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32958 PyObject *resultobj = 0;
32959 wxImageList *arg1 = (wxImageList *) 0 ;
32960 int arg2 ;
32961 int *arg3 = 0 ;
32962 int *arg4 = 0 ;
32963 void *argp1 = 0 ;
32964 int res1 = 0 ;
32965 int val2 ;
32966 int ecode2 = 0 ;
32967 int temp3 ;
32968 int res3 = SWIG_TMPOBJ ;
32969 int temp4 ;
32970 int res4 = SWIG_TMPOBJ ;
32971 PyObject * obj0 = 0 ;
32972 PyObject * obj1 = 0 ;
32973 char * kwnames[] = {
32974 (char *) "self",(char *) "index", NULL
32975 };
32976
32977 arg3 = &temp3;
32978 arg4 = &temp4;
32979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
32980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32981 if (!SWIG_IsOK(res1)) {
32982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
32983 }
32984 arg1 = reinterpret_cast< wxImageList * >(argp1);
32985 ecode2 = SWIG_AsVal_int(obj1, &val2);
32986 if (!SWIG_IsOK(ecode2)) {
32987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
32988 }
32989 arg2 = static_cast< int >(val2);
32990 {
32991 PyThreadState* __tstate = wxPyBeginAllowThreads();
32992 (arg1)->GetSize(arg2,*arg3,*arg4);
32993 wxPyEndAllowThreads(__tstate);
32994 if (PyErr_Occurred()) SWIG_fail;
32995 }
32996 resultobj = SWIG_Py_Void();
32997 if (SWIG_IsTmpObj(res3)) {
32998 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
32999 } else {
33000 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
33001 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
33002 }
33003 if (SWIG_IsTmpObj(res4)) {
33004 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
33005 } else {
33006 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
33007 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
33008 }
33009 return resultobj;
33010 fail:
33011 return NULL;
33012 }
33013
33014
33015 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33016 PyObject *obj;
33017 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33018 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
33019 return SWIG_Py_Void();
33020 }
33021
33022 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33023 return SWIG_Python_InitShadowInstance(args);
33024 }
33025
33026 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33027 PyObject *resultobj = 0;
33028 wxStockGDI *result = 0 ;
33029
33030 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
33031 {
33032 PyThreadState* __tstate = wxPyBeginAllowThreads();
33033 result = (wxStockGDI *)new wxStockGDI();
33034 wxPyEndAllowThreads(__tstate);
33035 if (PyErr_Occurred()) SWIG_fail;
33036 }
33037 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
33038 return resultobj;
33039 fail:
33040 return NULL;
33041 }
33042
33043
33044 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33045 PyObject *resultobj = 0;
33046 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
33047 void *argp1 = 0 ;
33048 int res1 = 0 ;
33049 PyObject *swig_obj[1] ;
33050
33051 if (!args) SWIG_fail;
33052 swig_obj[0] = args;
33053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
33054 if (!SWIG_IsOK(res1)) {
33055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
33056 }
33057 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
33058 {
33059 PyThreadState* __tstate = wxPyBeginAllowThreads();
33060 delete arg1;
33061
33062 wxPyEndAllowThreads(__tstate);
33063 if (PyErr_Occurred()) SWIG_fail;
33064 }
33065 resultobj = SWIG_Py_Void();
33066 return resultobj;
33067 fail:
33068 return NULL;
33069 }
33070
33071
33072 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33073 PyObject *resultobj = 0;
33074
33075 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
33076 {
33077 PyThreadState* __tstate = wxPyBeginAllowThreads();
33078 wxStockGDI::DeleteAll();
33079 wxPyEndAllowThreads(__tstate);
33080 if (PyErr_Occurred()) SWIG_fail;
33081 }
33082 resultobj = SWIG_Py_Void();
33083 return resultobj;
33084 fail:
33085 return NULL;
33086 }
33087
33088
33089 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33090 PyObject *resultobj = 0;
33091 wxStockGDI *result = 0 ;
33092
33093 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
33094 {
33095 PyThreadState* __tstate = wxPyBeginAllowThreads();
33096 {
33097 wxStockGDI &_result_ref = wxStockGDI::instance();
33098 result = (wxStockGDI *) &_result_ref;
33099 }
33100 wxPyEndAllowThreads(__tstate);
33101 if (PyErr_Occurred()) SWIG_fail;
33102 }
33103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
33104 return resultobj;
33105 fail:
33106 return NULL;
33107 }
33108
33109
33110 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33111 PyObject *resultobj = 0;
33112 wxStockGDI::Item arg1 ;
33113 wxBrush *result = 0 ;
33114 int val1 ;
33115 int ecode1 = 0 ;
33116 PyObject * obj0 = 0 ;
33117 char * kwnames[] = {
33118 (char *) "item", NULL
33119 };
33120
33121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
33122 ecode1 = SWIG_AsVal_int(obj0, &val1);
33123 if (!SWIG_IsOK(ecode1)) {
33124 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
33125 }
33126 arg1 = static_cast< wxStockGDI::Item >(val1);
33127 {
33128 PyThreadState* __tstate = wxPyBeginAllowThreads();
33129 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
33130 wxPyEndAllowThreads(__tstate);
33131 if (PyErr_Occurred()) SWIG_fail;
33132 }
33133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
33134 return resultobj;
33135 fail:
33136 return NULL;
33137 }
33138
33139
33140 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33141 PyObject *resultobj = 0;
33142 wxStockGDI::Item arg1 ;
33143 wxColour *result = 0 ;
33144 int val1 ;
33145 int ecode1 = 0 ;
33146 PyObject * obj0 = 0 ;
33147 char * kwnames[] = {
33148 (char *) "item", NULL
33149 };
33150
33151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
33152 ecode1 = SWIG_AsVal_int(obj0, &val1);
33153 if (!SWIG_IsOK(ecode1)) {
33154 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
33155 }
33156 arg1 = static_cast< wxStockGDI::Item >(val1);
33157 {
33158 PyThreadState* __tstate = wxPyBeginAllowThreads();
33159 result = (wxColour *)wxStockGDI::GetColour(arg1);
33160 wxPyEndAllowThreads(__tstate);
33161 if (PyErr_Occurred()) SWIG_fail;
33162 }
33163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33164 return resultobj;
33165 fail:
33166 return NULL;
33167 }
33168
33169
33170 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33171 PyObject *resultobj = 0;
33172 wxStockGDI::Item arg1 ;
33173 wxCursor *result = 0 ;
33174 int val1 ;
33175 int ecode1 = 0 ;
33176 PyObject * obj0 = 0 ;
33177 char * kwnames[] = {
33178 (char *) "item", NULL
33179 };
33180
33181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
33182 ecode1 = SWIG_AsVal_int(obj0, &val1);
33183 if (!SWIG_IsOK(ecode1)) {
33184 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
33185 }
33186 arg1 = static_cast< wxStockGDI::Item >(val1);
33187 {
33188 PyThreadState* __tstate = wxPyBeginAllowThreads();
33189 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
33190 wxPyEndAllowThreads(__tstate);
33191 if (PyErr_Occurred()) SWIG_fail;
33192 }
33193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
33194 return resultobj;
33195 fail:
33196 return NULL;
33197 }
33198
33199
33200 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33201 PyObject *resultobj = 0;
33202 wxStockGDI::Item arg1 ;
33203 wxPen *result = 0 ;
33204 int val1 ;
33205 int ecode1 = 0 ;
33206 PyObject * obj0 = 0 ;
33207 char * kwnames[] = {
33208 (char *) "item", NULL
33209 };
33210
33211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
33212 ecode1 = SWIG_AsVal_int(obj0, &val1);
33213 if (!SWIG_IsOK(ecode1)) {
33214 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
33215 }
33216 arg1 = static_cast< wxStockGDI::Item >(val1);
33217 {
33218 PyThreadState* __tstate = wxPyBeginAllowThreads();
33219 result = (wxPen *)wxStockGDI::GetPen(arg1);
33220 wxPyEndAllowThreads(__tstate);
33221 if (PyErr_Occurred()) SWIG_fail;
33222 }
33223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
33224 return resultobj;
33225 fail:
33226 return NULL;
33227 }
33228
33229
33230 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33231 PyObject *resultobj = 0;
33232 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
33233 wxStockGDI::Item arg2 ;
33234 wxFont *result = 0 ;
33235 void *argp1 = 0 ;
33236 int res1 = 0 ;
33237 int val2 ;
33238 int ecode2 = 0 ;
33239 PyObject * obj0 = 0 ;
33240 PyObject * obj1 = 0 ;
33241 char * kwnames[] = {
33242 (char *) "self",(char *) "item", NULL
33243 };
33244
33245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
33246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
33247 if (!SWIG_IsOK(res1)) {
33248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
33249 }
33250 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
33251 ecode2 = SWIG_AsVal_int(obj1, &val2);
33252 if (!SWIG_IsOK(ecode2)) {
33253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
33254 }
33255 arg2 = static_cast< wxStockGDI::Item >(val2);
33256 {
33257 PyThreadState* __tstate = wxPyBeginAllowThreads();
33258 result = (wxFont *)(arg1)->GetFont(arg2);
33259 wxPyEndAllowThreads(__tstate);
33260 if (PyErr_Occurred()) SWIG_fail;
33261 }
33262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33263 return resultobj;
33264 fail:
33265 return NULL;
33266 }
33267
33268
33269 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33270 PyObject *obj;
33271 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33272 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
33273 return SWIG_Py_Void();
33274 }
33275
33276 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33277 return SWIG_Python_InitShadowInstance(args);
33278 }
33279
33280 SWIGINTERN int NullBitmap_set(PyObject *) {
33281 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
33282 return 1;
33283 }
33284
33285
33286 SWIGINTERN PyObject *NullBitmap_get(void) {
33287 PyObject *pyobj = 0;
33288
33289 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
33290 return pyobj;
33291 }
33292
33293
33294 SWIGINTERN int NullIcon_set(PyObject *) {
33295 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
33296 return 1;
33297 }
33298
33299
33300 SWIGINTERN PyObject *NullIcon_get(void) {
33301 PyObject *pyobj = 0;
33302
33303 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
33304 return pyobj;
33305 }
33306
33307
33308 SWIGINTERN int NullCursor_set(PyObject *) {
33309 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
33310 return 1;
33311 }
33312
33313
33314 SWIGINTERN PyObject *NullCursor_get(void) {
33315 PyObject *pyobj = 0;
33316
33317 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
33318 return pyobj;
33319 }
33320
33321
33322 SWIGINTERN int NullPen_set(PyObject *) {
33323 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
33324 return 1;
33325 }
33326
33327
33328 SWIGINTERN PyObject *NullPen_get(void) {
33329 PyObject *pyobj = 0;
33330
33331 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
33332 return pyobj;
33333 }
33334
33335
33336 SWIGINTERN int NullBrush_set(PyObject *) {
33337 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
33338 return 1;
33339 }
33340
33341
33342 SWIGINTERN PyObject *NullBrush_get(void) {
33343 PyObject *pyobj = 0;
33344
33345 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
33346 return pyobj;
33347 }
33348
33349
33350 SWIGINTERN int NullPalette_set(PyObject *) {
33351 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
33352 return 1;
33353 }
33354
33355
33356 SWIGINTERN PyObject *NullPalette_get(void) {
33357 PyObject *pyobj = 0;
33358
33359 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
33360 return pyobj;
33361 }
33362
33363
33364 SWIGINTERN int NullFont_set(PyObject *) {
33365 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
33366 return 1;
33367 }
33368
33369
33370 SWIGINTERN PyObject *NullFont_get(void) {
33371 PyObject *pyobj = 0;
33372
33373 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
33374 return pyobj;
33375 }
33376
33377
33378 SWIGINTERN int NullColour_set(PyObject *) {
33379 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
33380 return 1;
33381 }
33382
33383
33384 SWIGINTERN PyObject *NullColour_get(void) {
33385 PyObject *pyobj = 0;
33386
33387 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
33388 return pyobj;
33389 }
33390
33391
33392 SWIGINTERN int NullIconBundle_set(PyObject *) {
33393 SWIG_Error(SWIG_AttributeError,"Variable NullIconBundle is read-only.");
33394 return 1;
33395 }
33396
33397
33398 SWIGINTERN PyObject *NullIconBundle_get(void) {
33399 PyObject *pyobj = 0;
33400
33401 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIconBundle), SWIGTYPE_p_wxIconBundle, 0 );
33402 return pyobj;
33403 }
33404
33405
33406 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33407 PyObject *resultobj = 0;
33408 wxGDIObjListBase *result = 0 ;
33409
33410 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
33411 {
33412 PyThreadState* __tstate = wxPyBeginAllowThreads();
33413 result = (wxGDIObjListBase *)new wxGDIObjListBase();
33414 wxPyEndAllowThreads(__tstate);
33415 if (PyErr_Occurred()) SWIG_fail;
33416 }
33417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
33418 return resultobj;
33419 fail:
33420 return NULL;
33421 }
33422
33423
33424 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33425 PyObject *resultobj = 0;
33426 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
33427 void *argp1 = 0 ;
33428 int res1 = 0 ;
33429 PyObject *swig_obj[1] ;
33430
33431 if (!args) SWIG_fail;
33432 swig_obj[0] = args;
33433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
33434 if (!SWIG_IsOK(res1)) {
33435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
33436 }
33437 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
33438 {
33439 PyThreadState* __tstate = wxPyBeginAllowThreads();
33440 delete arg1;
33441
33442 wxPyEndAllowThreads(__tstate);
33443 if (PyErr_Occurred()) SWIG_fail;
33444 }
33445 resultobj = SWIG_Py_Void();
33446 return resultobj;
33447 fail:
33448 return NULL;
33449 }
33450
33451
33452 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33453 PyObject *obj;
33454 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33455 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
33456 return SWIG_Py_Void();
33457 }
33458
33459 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33460 return SWIG_Python_InitShadowInstance(args);
33461 }
33462
33463 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33464 PyObject *resultobj = 0;
33465 wxPenList *arg1 = (wxPenList *) 0 ;
33466 wxColour *arg2 = 0 ;
33467 int arg3 ;
33468 int arg4 ;
33469 wxPen *result = 0 ;
33470 void *argp1 = 0 ;
33471 int res1 = 0 ;
33472 wxColour temp2 ;
33473 int val3 ;
33474 int ecode3 = 0 ;
33475 int val4 ;
33476 int ecode4 = 0 ;
33477 PyObject * obj0 = 0 ;
33478 PyObject * obj1 = 0 ;
33479 PyObject * obj2 = 0 ;
33480 PyObject * obj3 = 0 ;
33481 char * kwnames[] = {
33482 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
33483 };
33484
33485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
33487 if (!SWIG_IsOK(res1)) {
33488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
33489 }
33490 arg1 = reinterpret_cast< wxPenList * >(argp1);
33491 {
33492 arg2 = &temp2;
33493 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33494 }
33495 ecode3 = SWIG_AsVal_int(obj2, &val3);
33496 if (!SWIG_IsOK(ecode3)) {
33497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
33498 }
33499 arg3 = static_cast< int >(val3);
33500 ecode4 = SWIG_AsVal_int(obj3, &val4);
33501 if (!SWIG_IsOK(ecode4)) {
33502 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
33503 }
33504 arg4 = static_cast< int >(val4);
33505 {
33506 PyThreadState* __tstate = wxPyBeginAllowThreads();
33507 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
33508 wxPyEndAllowThreads(__tstate);
33509 if (PyErr_Occurred()) SWIG_fail;
33510 }
33511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
33512 return resultobj;
33513 fail:
33514 return NULL;
33515 }
33516
33517
33518 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33519 PyObject *obj;
33520 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33521 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
33522 return SWIG_Py_Void();
33523 }
33524
33525 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33526 PyObject *resultobj = 0;
33527 wxBrushList *arg1 = (wxBrushList *) 0 ;
33528 wxColour *arg2 = 0 ;
33529 int arg3 = (int) wxSOLID ;
33530 wxBrush *result = 0 ;
33531 void *argp1 = 0 ;
33532 int res1 = 0 ;
33533 wxColour temp2 ;
33534 int val3 ;
33535 int ecode3 = 0 ;
33536 PyObject * obj0 = 0 ;
33537 PyObject * obj1 = 0 ;
33538 PyObject * obj2 = 0 ;
33539 char * kwnames[] = {
33540 (char *) "self",(char *) "colour",(char *) "style", NULL
33541 };
33542
33543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33545 if (!SWIG_IsOK(res1)) {
33546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33547 }
33548 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33549 {
33550 arg2 = &temp2;
33551 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33552 }
33553 if (obj2) {
33554 ecode3 = SWIG_AsVal_int(obj2, &val3);
33555 if (!SWIG_IsOK(ecode3)) {
33556 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
33557 }
33558 arg3 = static_cast< int >(val3);
33559 }
33560 {
33561 PyThreadState* __tstate = wxPyBeginAllowThreads();
33562 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
33563 wxPyEndAllowThreads(__tstate);
33564 if (PyErr_Occurred()) SWIG_fail;
33565 }
33566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
33567 return resultobj;
33568 fail:
33569 return NULL;
33570 }
33571
33572
33573 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33574 PyObject *obj;
33575 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33576 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
33577 return SWIG_Py_Void();
33578 }
33579
33580 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33581 PyObject *resultobj = 0;
33582 wxFontList *arg1 = (wxFontList *) 0 ;
33583 int arg2 ;
33584 int arg3 ;
33585 int arg4 ;
33586 int arg5 ;
33587 bool arg6 = (bool) false ;
33588 wxString const &arg7_defvalue = wxPyEmptyString ;
33589 wxString *arg7 = (wxString *) &arg7_defvalue ;
33590 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
33591 wxFont *result = 0 ;
33592 void *argp1 = 0 ;
33593 int res1 = 0 ;
33594 int val2 ;
33595 int ecode2 = 0 ;
33596 int val3 ;
33597 int ecode3 = 0 ;
33598 int val4 ;
33599 int ecode4 = 0 ;
33600 int val5 ;
33601 int ecode5 = 0 ;
33602 bool val6 ;
33603 int ecode6 = 0 ;
33604 bool temp7 = false ;
33605 int val8 ;
33606 int ecode8 = 0 ;
33607 PyObject * obj0 = 0 ;
33608 PyObject * obj1 = 0 ;
33609 PyObject * obj2 = 0 ;
33610 PyObject * obj3 = 0 ;
33611 PyObject * obj4 = 0 ;
33612 PyObject * obj5 = 0 ;
33613 PyObject * obj6 = 0 ;
33614 PyObject * obj7 = 0 ;
33615 char * kwnames[] = {
33616 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
33617 };
33618
33619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33621 if (!SWIG_IsOK(res1)) {
33622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33623 }
33624 arg1 = reinterpret_cast< wxFontList * >(argp1);
33625 ecode2 = SWIG_AsVal_int(obj1, &val2);
33626 if (!SWIG_IsOK(ecode2)) {
33627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
33628 }
33629 arg2 = static_cast< int >(val2);
33630 ecode3 = SWIG_AsVal_int(obj2, &val3);
33631 if (!SWIG_IsOK(ecode3)) {
33632 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
33633 }
33634 arg3 = static_cast< int >(val3);
33635 ecode4 = SWIG_AsVal_int(obj3, &val4);
33636 if (!SWIG_IsOK(ecode4)) {
33637 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
33638 }
33639 arg4 = static_cast< int >(val4);
33640 ecode5 = SWIG_AsVal_int(obj4, &val5);
33641 if (!SWIG_IsOK(ecode5)) {
33642 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
33643 }
33644 arg5 = static_cast< int >(val5);
33645 if (obj5) {
33646 ecode6 = SWIG_AsVal_bool(obj5, &val6);
33647 if (!SWIG_IsOK(ecode6)) {
33648 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
33649 }
33650 arg6 = static_cast< bool >(val6);
33651 }
33652 if (obj6) {
33653 {
33654 arg7 = wxString_in_helper(obj6);
33655 if (arg7 == NULL) SWIG_fail;
33656 temp7 = true;
33657 }
33658 }
33659 if (obj7) {
33660 ecode8 = SWIG_AsVal_int(obj7, &val8);
33661 if (!SWIG_IsOK(ecode8)) {
33662 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
33663 }
33664 arg8 = static_cast< wxFontEncoding >(val8);
33665 }
33666 {
33667 PyThreadState* __tstate = wxPyBeginAllowThreads();
33668 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
33669 wxPyEndAllowThreads(__tstate);
33670 if (PyErr_Occurred()) SWIG_fail;
33671 }
33672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33673 {
33674 if (temp7)
33675 delete arg7;
33676 }
33677 return resultobj;
33678 fail:
33679 {
33680 if (temp7)
33681 delete arg7;
33682 }
33683 return NULL;
33684 }
33685
33686
33687 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33688 PyObject *obj;
33689 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33690 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
33691 return SWIG_Py_Void();
33692 }
33693
33694 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33695 PyObject *resultobj = 0;
33696 wxColourDatabase *result = 0 ;
33697
33698 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
33699 {
33700 if (!wxPyCheckForApp()) SWIG_fail;
33701 PyThreadState* __tstate = wxPyBeginAllowThreads();
33702 result = (wxColourDatabase *)new wxColourDatabase();
33703 wxPyEndAllowThreads(__tstate);
33704 if (PyErr_Occurred()) SWIG_fail;
33705 }
33706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
33707 return resultobj;
33708 fail:
33709 return NULL;
33710 }
33711
33712
33713 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33714 PyObject *resultobj = 0;
33715 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33716 void *argp1 = 0 ;
33717 int res1 = 0 ;
33718 PyObject *swig_obj[1] ;
33719
33720 if (!args) SWIG_fail;
33721 swig_obj[0] = args;
33722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
33723 if (!SWIG_IsOK(res1)) {
33724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33725 }
33726 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33727 {
33728 PyThreadState* __tstate = wxPyBeginAllowThreads();
33729 delete arg1;
33730
33731 wxPyEndAllowThreads(__tstate);
33732 if (PyErr_Occurred()) SWIG_fail;
33733 }
33734 resultobj = SWIG_Py_Void();
33735 return resultobj;
33736 fail:
33737 return NULL;
33738 }
33739
33740
33741 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33742 PyObject *resultobj = 0;
33743 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33744 wxString *arg2 = 0 ;
33745 wxColour result;
33746 void *argp1 = 0 ;
33747 int res1 = 0 ;
33748 bool temp2 = false ;
33749 PyObject * obj0 = 0 ;
33750 PyObject * obj1 = 0 ;
33751 char * kwnames[] = {
33752 (char *) "self",(char *) "name", NULL
33753 };
33754
33755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
33756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33757 if (!SWIG_IsOK(res1)) {
33758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33759 }
33760 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33761 {
33762 arg2 = wxString_in_helper(obj1);
33763 if (arg2 == NULL) SWIG_fail;
33764 temp2 = true;
33765 }
33766 {
33767 PyThreadState* __tstate = wxPyBeginAllowThreads();
33768 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
33769 wxPyEndAllowThreads(__tstate);
33770 if (PyErr_Occurred()) SWIG_fail;
33771 }
33772 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33773 {
33774 if (temp2)
33775 delete arg2;
33776 }
33777 return resultobj;
33778 fail:
33779 {
33780 if (temp2)
33781 delete arg2;
33782 }
33783 return NULL;
33784 }
33785
33786
33787 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33788 PyObject *resultobj = 0;
33789 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33790 wxColour *arg2 = 0 ;
33791 wxString result;
33792 void *argp1 = 0 ;
33793 int res1 = 0 ;
33794 wxColour temp2 ;
33795 PyObject * obj0 = 0 ;
33796 PyObject * obj1 = 0 ;
33797 char * kwnames[] = {
33798 (char *) "self",(char *) "colour", NULL
33799 };
33800
33801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
33802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33803 if (!SWIG_IsOK(res1)) {
33804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33805 }
33806 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33807 {
33808 arg2 = &temp2;
33809 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33810 }
33811 {
33812 PyThreadState* __tstate = wxPyBeginAllowThreads();
33813 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
33814 wxPyEndAllowThreads(__tstate);
33815 if (PyErr_Occurred()) SWIG_fail;
33816 }
33817 {
33818 #if wxUSE_UNICODE
33819 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33820 #else
33821 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33822 #endif
33823 }
33824 return resultobj;
33825 fail:
33826 return NULL;
33827 }
33828
33829
33830 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33831 PyObject *resultobj = 0;
33832 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33833 wxString *arg2 = 0 ;
33834 wxColour *arg3 = 0 ;
33835 void *argp1 = 0 ;
33836 int res1 = 0 ;
33837 bool temp2 = false ;
33838 wxColour temp3 ;
33839 PyObject * obj0 = 0 ;
33840 PyObject * obj1 = 0 ;
33841 PyObject * obj2 = 0 ;
33842 char * kwnames[] = {
33843 (char *) "self",(char *) "name",(char *) "colour", NULL
33844 };
33845
33846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33848 if (!SWIG_IsOK(res1)) {
33849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33850 }
33851 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33852 {
33853 arg2 = wxString_in_helper(obj1);
33854 if (arg2 == NULL) SWIG_fail;
33855 temp2 = true;
33856 }
33857 {
33858 arg3 = &temp3;
33859 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33860 }
33861 {
33862 PyThreadState* __tstate = wxPyBeginAllowThreads();
33863 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
33864 wxPyEndAllowThreads(__tstate);
33865 if (PyErr_Occurred()) SWIG_fail;
33866 }
33867 resultobj = SWIG_Py_Void();
33868 {
33869 if (temp2)
33870 delete arg2;
33871 }
33872 return resultobj;
33873 fail:
33874 {
33875 if (temp2)
33876 delete arg2;
33877 }
33878 return NULL;
33879 }
33880
33881
33882 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33883 PyObject *resultobj = 0;
33884 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33885 wxString *arg2 = 0 ;
33886 int arg3 ;
33887 int arg4 ;
33888 int arg5 ;
33889 void *argp1 = 0 ;
33890 int res1 = 0 ;
33891 bool temp2 = false ;
33892 int val3 ;
33893 int ecode3 = 0 ;
33894 int val4 ;
33895 int ecode4 = 0 ;
33896 int val5 ;
33897 int ecode5 = 0 ;
33898 PyObject * obj0 = 0 ;
33899 PyObject * obj1 = 0 ;
33900 PyObject * obj2 = 0 ;
33901 PyObject * obj3 = 0 ;
33902 PyObject * obj4 = 0 ;
33903 char * kwnames[] = {
33904 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
33905 };
33906
33907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33909 if (!SWIG_IsOK(res1)) {
33910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33911 }
33912 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33913 {
33914 arg2 = wxString_in_helper(obj1);
33915 if (arg2 == NULL) SWIG_fail;
33916 temp2 = true;
33917 }
33918 ecode3 = SWIG_AsVal_int(obj2, &val3);
33919 if (!SWIG_IsOK(ecode3)) {
33920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
33921 }
33922 arg3 = static_cast< int >(val3);
33923 ecode4 = SWIG_AsVal_int(obj3, &val4);
33924 if (!SWIG_IsOK(ecode4)) {
33925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
33926 }
33927 arg4 = static_cast< int >(val4);
33928 ecode5 = SWIG_AsVal_int(obj4, &val5);
33929 if (!SWIG_IsOK(ecode5)) {
33930 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
33931 }
33932 arg5 = static_cast< int >(val5);
33933 {
33934 PyThreadState* __tstate = wxPyBeginAllowThreads();
33935 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
33936 wxPyEndAllowThreads(__tstate);
33937 if (PyErr_Occurred()) SWIG_fail;
33938 }
33939 resultobj = SWIG_Py_Void();
33940 {
33941 if (temp2)
33942 delete arg2;
33943 }
33944 return resultobj;
33945 fail:
33946 {
33947 if (temp2)
33948 delete arg2;
33949 }
33950 return NULL;
33951 }
33952
33953
33954 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33955 PyObject *obj;
33956 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33957 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33958 return SWIG_Py_Void();
33959 }
33960
33961 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33962 return SWIG_Python_InitShadowInstance(args);
33963 }
33964
33965 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33966 PyObject *resultobj = 0;
33967 wxFontList *result = 0 ;
33968
33969 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
33970 {
33971 PyThreadState* __tstate = wxPyBeginAllowThreads();
33972 result = (wxFontList *)_wxPyInitTheFontList();
33973 wxPyEndAllowThreads(__tstate);
33974 if (PyErr_Occurred()) SWIG_fail;
33975 }
33976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
33977 return resultobj;
33978 fail:
33979 return NULL;
33980 }
33981
33982
33983 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33984 PyObject *resultobj = 0;
33985 wxPenList *result = 0 ;
33986
33987 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
33988 {
33989 PyThreadState* __tstate = wxPyBeginAllowThreads();
33990 result = (wxPenList *)_wxPyInitThePenList();
33991 wxPyEndAllowThreads(__tstate);
33992 if (PyErr_Occurred()) SWIG_fail;
33993 }
33994 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
33995 return resultobj;
33996 fail:
33997 return NULL;
33998 }
33999
34000
34001 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34002 PyObject *resultobj = 0;
34003 wxBrushList *result = 0 ;
34004
34005 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
34006 {
34007 PyThreadState* __tstate = wxPyBeginAllowThreads();
34008 result = (wxBrushList *)_wxPyInitTheBrushList();
34009 wxPyEndAllowThreads(__tstate);
34010 if (PyErr_Occurred()) SWIG_fail;
34011 }
34012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
34013 return resultobj;
34014 fail:
34015 return NULL;
34016 }
34017
34018
34019 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34020 PyObject *resultobj = 0;
34021 wxColourDatabase *result = 0 ;
34022
34023 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
34024 {
34025 PyThreadState* __tstate = wxPyBeginAllowThreads();
34026 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
34027 wxPyEndAllowThreads(__tstate);
34028 if (PyErr_Occurred()) SWIG_fail;
34029 }
34030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
34031 return resultobj;
34032 fail:
34033 return NULL;
34034 }
34035
34036
34037 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34038 PyObject *resultobj = 0;
34039 wxEffects *result = 0 ;
34040
34041 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
34042 {
34043 PyThreadState* __tstate = wxPyBeginAllowThreads();
34044 result = (wxEffects *)new wxEffects();
34045 wxPyEndAllowThreads(__tstate);
34046 if (PyErr_Occurred()) SWIG_fail;
34047 }
34048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
34049 return resultobj;
34050 fail:
34051 return NULL;
34052 }
34053
34054
34055 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34056 PyObject *resultobj = 0;
34057 wxEffects *arg1 = (wxEffects *) 0 ;
34058 wxColour result;
34059 void *argp1 = 0 ;
34060 int res1 = 0 ;
34061 PyObject *swig_obj[1] ;
34062
34063 if (!args) SWIG_fail;
34064 swig_obj[0] = args;
34065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34066 if (!SWIG_IsOK(res1)) {
34067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
34068 }
34069 arg1 = reinterpret_cast< wxEffects * >(argp1);
34070 {
34071 PyThreadState* __tstate = wxPyBeginAllowThreads();
34072 result = ((wxEffects const *)arg1)->GetHighlightColour();
34073 wxPyEndAllowThreads(__tstate);
34074 if (PyErr_Occurred()) SWIG_fail;
34075 }
34076 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34077 return resultobj;
34078 fail:
34079 return NULL;
34080 }
34081
34082
34083 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34084 PyObject *resultobj = 0;
34085 wxEffects *arg1 = (wxEffects *) 0 ;
34086 wxColour result;
34087 void *argp1 = 0 ;
34088 int res1 = 0 ;
34089 PyObject *swig_obj[1] ;
34090
34091 if (!args) SWIG_fail;
34092 swig_obj[0] = args;
34093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34094 if (!SWIG_IsOK(res1)) {
34095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
34096 }
34097 arg1 = reinterpret_cast< wxEffects * >(argp1);
34098 {
34099 PyThreadState* __tstate = wxPyBeginAllowThreads();
34100 result = ((wxEffects const *)arg1)->GetLightShadow();
34101 wxPyEndAllowThreads(__tstate);
34102 if (PyErr_Occurred()) SWIG_fail;
34103 }
34104 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34105 return resultobj;
34106 fail:
34107 return NULL;
34108 }
34109
34110
34111 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34112 PyObject *resultobj = 0;
34113 wxEffects *arg1 = (wxEffects *) 0 ;
34114 wxColour result;
34115 void *argp1 = 0 ;
34116 int res1 = 0 ;
34117 PyObject *swig_obj[1] ;
34118
34119 if (!args) SWIG_fail;
34120 swig_obj[0] = args;
34121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34122 if (!SWIG_IsOK(res1)) {
34123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
34124 }
34125 arg1 = reinterpret_cast< wxEffects * >(argp1);
34126 {
34127 PyThreadState* __tstate = wxPyBeginAllowThreads();
34128 result = ((wxEffects const *)arg1)->GetFaceColour();
34129 wxPyEndAllowThreads(__tstate);
34130 if (PyErr_Occurred()) SWIG_fail;
34131 }
34132 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34133 return resultobj;
34134 fail:
34135 return NULL;
34136 }
34137
34138
34139 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34140 PyObject *resultobj = 0;
34141 wxEffects *arg1 = (wxEffects *) 0 ;
34142 wxColour result;
34143 void *argp1 = 0 ;
34144 int res1 = 0 ;
34145 PyObject *swig_obj[1] ;
34146
34147 if (!args) SWIG_fail;
34148 swig_obj[0] = args;
34149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34150 if (!SWIG_IsOK(res1)) {
34151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
34152 }
34153 arg1 = reinterpret_cast< wxEffects * >(argp1);
34154 {
34155 PyThreadState* __tstate = wxPyBeginAllowThreads();
34156 result = ((wxEffects const *)arg1)->GetMediumShadow();
34157 wxPyEndAllowThreads(__tstate);
34158 if (PyErr_Occurred()) SWIG_fail;
34159 }
34160 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34161 return resultobj;
34162 fail:
34163 return NULL;
34164 }
34165
34166
34167 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34168 PyObject *resultobj = 0;
34169 wxEffects *arg1 = (wxEffects *) 0 ;
34170 wxColour result;
34171 void *argp1 = 0 ;
34172 int res1 = 0 ;
34173 PyObject *swig_obj[1] ;
34174
34175 if (!args) SWIG_fail;
34176 swig_obj[0] = args;
34177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34178 if (!SWIG_IsOK(res1)) {
34179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
34180 }
34181 arg1 = reinterpret_cast< wxEffects * >(argp1);
34182 {
34183 PyThreadState* __tstate = wxPyBeginAllowThreads();
34184 result = ((wxEffects const *)arg1)->GetDarkShadow();
34185 wxPyEndAllowThreads(__tstate);
34186 if (PyErr_Occurred()) SWIG_fail;
34187 }
34188 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34189 return resultobj;
34190 fail:
34191 return NULL;
34192 }
34193
34194
34195 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34196 PyObject *resultobj = 0;
34197 wxEffects *arg1 = (wxEffects *) 0 ;
34198 wxColour *arg2 = 0 ;
34199 void *argp1 = 0 ;
34200 int res1 = 0 ;
34201 wxColour temp2 ;
34202 PyObject * obj0 = 0 ;
34203 PyObject * obj1 = 0 ;
34204 char * kwnames[] = {
34205 (char *) "self",(char *) "c", NULL
34206 };
34207
34208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
34209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34210 if (!SWIG_IsOK(res1)) {
34211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
34212 }
34213 arg1 = reinterpret_cast< wxEffects * >(argp1);
34214 {
34215 arg2 = &temp2;
34216 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34217 }
34218 {
34219 PyThreadState* __tstate = wxPyBeginAllowThreads();
34220 (arg1)->SetHighlightColour((wxColour const &)*arg2);
34221 wxPyEndAllowThreads(__tstate);
34222 if (PyErr_Occurred()) SWIG_fail;
34223 }
34224 resultobj = SWIG_Py_Void();
34225 return resultobj;
34226 fail:
34227 return NULL;
34228 }
34229
34230
34231 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34232 PyObject *resultobj = 0;
34233 wxEffects *arg1 = (wxEffects *) 0 ;
34234 wxColour *arg2 = 0 ;
34235 void *argp1 = 0 ;
34236 int res1 = 0 ;
34237 wxColour temp2 ;
34238 PyObject * obj0 = 0 ;
34239 PyObject * obj1 = 0 ;
34240 char * kwnames[] = {
34241 (char *) "self",(char *) "c", NULL
34242 };
34243
34244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34246 if (!SWIG_IsOK(res1)) {
34247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34248 }
34249 arg1 = reinterpret_cast< wxEffects * >(argp1);
34250 {
34251 arg2 = &temp2;
34252 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34253 }
34254 {
34255 PyThreadState* __tstate = wxPyBeginAllowThreads();
34256 (arg1)->SetLightShadow((wxColour const &)*arg2);
34257 wxPyEndAllowThreads(__tstate);
34258 if (PyErr_Occurred()) SWIG_fail;
34259 }
34260 resultobj = SWIG_Py_Void();
34261 return resultobj;
34262 fail:
34263 return NULL;
34264 }
34265
34266
34267 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34268 PyObject *resultobj = 0;
34269 wxEffects *arg1 = (wxEffects *) 0 ;
34270 wxColour *arg2 = 0 ;
34271 void *argp1 = 0 ;
34272 int res1 = 0 ;
34273 wxColour temp2 ;
34274 PyObject * obj0 = 0 ;
34275 PyObject * obj1 = 0 ;
34276 char * kwnames[] = {
34277 (char *) "self",(char *) "c", NULL
34278 };
34279
34280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
34281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34282 if (!SWIG_IsOK(res1)) {
34283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
34284 }
34285 arg1 = reinterpret_cast< wxEffects * >(argp1);
34286 {
34287 arg2 = &temp2;
34288 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34289 }
34290 {
34291 PyThreadState* __tstate = wxPyBeginAllowThreads();
34292 (arg1)->SetFaceColour((wxColour const &)*arg2);
34293 wxPyEndAllowThreads(__tstate);
34294 if (PyErr_Occurred()) SWIG_fail;
34295 }
34296 resultobj = SWIG_Py_Void();
34297 return resultobj;
34298 fail:
34299 return NULL;
34300 }
34301
34302
34303 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34304 PyObject *resultobj = 0;
34305 wxEffects *arg1 = (wxEffects *) 0 ;
34306 wxColour *arg2 = 0 ;
34307 void *argp1 = 0 ;
34308 int res1 = 0 ;
34309 wxColour temp2 ;
34310 PyObject * obj0 = 0 ;
34311 PyObject * obj1 = 0 ;
34312 char * kwnames[] = {
34313 (char *) "self",(char *) "c", NULL
34314 };
34315
34316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34318 if (!SWIG_IsOK(res1)) {
34319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34320 }
34321 arg1 = reinterpret_cast< wxEffects * >(argp1);
34322 {
34323 arg2 = &temp2;
34324 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34325 }
34326 {
34327 PyThreadState* __tstate = wxPyBeginAllowThreads();
34328 (arg1)->SetMediumShadow((wxColour const &)*arg2);
34329 wxPyEndAllowThreads(__tstate);
34330 if (PyErr_Occurred()) SWIG_fail;
34331 }
34332 resultobj = SWIG_Py_Void();
34333 return resultobj;
34334 fail:
34335 return NULL;
34336 }
34337
34338
34339 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34340 PyObject *resultobj = 0;
34341 wxEffects *arg1 = (wxEffects *) 0 ;
34342 wxColour *arg2 = 0 ;
34343 void *argp1 = 0 ;
34344 int res1 = 0 ;
34345 wxColour temp2 ;
34346 PyObject * obj0 = 0 ;
34347 PyObject * obj1 = 0 ;
34348 char * kwnames[] = {
34349 (char *) "self",(char *) "c", NULL
34350 };
34351
34352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34354 if (!SWIG_IsOK(res1)) {
34355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34356 }
34357 arg1 = reinterpret_cast< wxEffects * >(argp1);
34358 {
34359 arg2 = &temp2;
34360 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34361 }
34362 {
34363 PyThreadState* __tstate = wxPyBeginAllowThreads();
34364 (arg1)->SetDarkShadow((wxColour const &)*arg2);
34365 wxPyEndAllowThreads(__tstate);
34366 if (PyErr_Occurred()) SWIG_fail;
34367 }
34368 resultobj = SWIG_Py_Void();
34369 return resultobj;
34370 fail:
34371 return NULL;
34372 }
34373
34374
34375 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34376 PyObject *resultobj = 0;
34377 wxEffects *arg1 = (wxEffects *) 0 ;
34378 wxColour *arg2 = 0 ;
34379 wxColour *arg3 = 0 ;
34380 wxColour *arg4 = 0 ;
34381 wxColour *arg5 = 0 ;
34382 wxColour *arg6 = 0 ;
34383 void *argp1 = 0 ;
34384 int res1 = 0 ;
34385 wxColour temp2 ;
34386 wxColour temp3 ;
34387 wxColour temp4 ;
34388 wxColour temp5 ;
34389 wxColour temp6 ;
34390 PyObject * obj0 = 0 ;
34391 PyObject * obj1 = 0 ;
34392 PyObject * obj2 = 0 ;
34393 PyObject * obj3 = 0 ;
34394 PyObject * obj4 = 0 ;
34395 PyObject * obj5 = 0 ;
34396 char * kwnames[] = {
34397 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
34398 };
34399
34400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34402 if (!SWIG_IsOK(res1)) {
34403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
34404 }
34405 arg1 = reinterpret_cast< wxEffects * >(argp1);
34406 {
34407 arg2 = &temp2;
34408 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34409 }
34410 {
34411 arg3 = &temp3;
34412 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34413 }
34414 {
34415 arg4 = &temp4;
34416 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
34417 }
34418 {
34419 arg5 = &temp5;
34420 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
34421 }
34422 {
34423 arg6 = &temp6;
34424 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
34425 }
34426 {
34427 PyThreadState* __tstate = wxPyBeginAllowThreads();
34428 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
34429 wxPyEndAllowThreads(__tstate);
34430 if (PyErr_Occurred()) SWIG_fail;
34431 }
34432 resultobj = SWIG_Py_Void();
34433 return resultobj;
34434 fail:
34435 return NULL;
34436 }
34437
34438
34439 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34440 PyObject *resultobj = 0;
34441 wxEffects *arg1 = (wxEffects *) 0 ;
34442 wxDC *arg2 = 0 ;
34443 wxRect *arg3 = 0 ;
34444 int arg4 = (int) 1 ;
34445 void *argp1 = 0 ;
34446 int res1 = 0 ;
34447 void *argp2 = 0 ;
34448 int res2 = 0 ;
34449 wxRect temp3 ;
34450 int val4 ;
34451 int ecode4 = 0 ;
34452 PyObject * obj0 = 0 ;
34453 PyObject * obj1 = 0 ;
34454 PyObject * obj2 = 0 ;
34455 PyObject * obj3 = 0 ;
34456 char * kwnames[] = {
34457 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
34458 };
34459
34460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34462 if (!SWIG_IsOK(res1)) {
34463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
34464 }
34465 arg1 = reinterpret_cast< wxEffects * >(argp1);
34466 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
34467 if (!SWIG_IsOK(res2)) {
34468 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34469 }
34470 if (!argp2) {
34471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34472 }
34473 arg2 = reinterpret_cast< wxDC * >(argp2);
34474 {
34475 arg3 = &temp3;
34476 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34477 }
34478 if (obj3) {
34479 ecode4 = SWIG_AsVal_int(obj3, &val4);
34480 if (!SWIG_IsOK(ecode4)) {
34481 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
34482 }
34483 arg4 = static_cast< int >(val4);
34484 }
34485 {
34486 PyThreadState* __tstate = wxPyBeginAllowThreads();
34487 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
34488 wxPyEndAllowThreads(__tstate);
34489 if (PyErr_Occurred()) SWIG_fail;
34490 }
34491 resultobj = SWIG_Py_Void();
34492 return resultobj;
34493 fail:
34494 return NULL;
34495 }
34496
34497
34498 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34499 PyObject *resultobj = 0;
34500 wxEffects *arg1 = (wxEffects *) 0 ;
34501 wxRect *arg2 = 0 ;
34502 wxDC *arg3 = 0 ;
34503 wxBitmap *arg4 = 0 ;
34504 bool result;
34505 void *argp1 = 0 ;
34506 int res1 = 0 ;
34507 wxRect temp2 ;
34508 void *argp3 = 0 ;
34509 int res3 = 0 ;
34510 void *argp4 = 0 ;
34511 int res4 = 0 ;
34512 PyObject * obj0 = 0 ;
34513 PyObject * obj1 = 0 ;
34514 PyObject * obj2 = 0 ;
34515 PyObject * obj3 = 0 ;
34516 char * kwnames[] = {
34517 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
34518 };
34519
34520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34522 if (!SWIG_IsOK(res1)) {
34523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
34524 }
34525 arg1 = reinterpret_cast< wxEffects * >(argp1);
34526 {
34527 arg2 = &temp2;
34528 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
34529 }
34530 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34531 if (!SWIG_IsOK(res3)) {
34532 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34533 }
34534 if (!argp3) {
34535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34536 }
34537 arg3 = reinterpret_cast< wxDC * >(argp3);
34538 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
34539 if (!SWIG_IsOK(res4)) {
34540 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34541 }
34542 if (!argp4) {
34543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34544 }
34545 arg4 = reinterpret_cast< wxBitmap * >(argp4);
34546 {
34547 PyThreadState* __tstate = wxPyBeginAllowThreads();
34548 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
34549 wxPyEndAllowThreads(__tstate);
34550 if (PyErr_Occurred()) SWIG_fail;
34551 }
34552 {
34553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34554 }
34555 return resultobj;
34556 fail:
34557 return NULL;
34558 }
34559
34560
34561 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34562 PyObject *obj;
34563 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34564 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
34565 return SWIG_Py_Void();
34566 }
34567
34568 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34569 return SWIG_Python_InitShadowInstance(args);
34570 }
34571
34572 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34573 PyObject *resultobj = 0;
34574 int arg1 ;
34575 int arg2 ;
34576 bool arg3 ;
34577 wxSplitterRenderParams *result = 0 ;
34578 int val1 ;
34579 int ecode1 = 0 ;
34580 int val2 ;
34581 int ecode2 = 0 ;
34582 bool val3 ;
34583 int ecode3 = 0 ;
34584 PyObject * obj0 = 0 ;
34585 PyObject * obj1 = 0 ;
34586 PyObject * obj2 = 0 ;
34587 char * kwnames[] = {
34588 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
34589 };
34590
34591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34592 ecode1 = SWIG_AsVal_int(obj0, &val1);
34593 if (!SWIG_IsOK(ecode1)) {
34594 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
34595 }
34596 arg1 = static_cast< int >(val1);
34597 ecode2 = SWIG_AsVal_int(obj1, &val2);
34598 if (!SWIG_IsOK(ecode2)) {
34599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
34600 }
34601 arg2 = static_cast< int >(val2);
34602 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34603 if (!SWIG_IsOK(ecode3)) {
34604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
34605 }
34606 arg3 = static_cast< bool >(val3);
34607 {
34608 PyThreadState* __tstate = wxPyBeginAllowThreads();
34609 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
34610 wxPyEndAllowThreads(__tstate);
34611 if (PyErr_Occurred()) SWIG_fail;
34612 }
34613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
34614 return resultobj;
34615 fail:
34616 return NULL;
34617 }
34618
34619
34620 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34621 PyObject *resultobj = 0;
34622 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34623 void *argp1 = 0 ;
34624 int res1 = 0 ;
34625 PyObject *swig_obj[1] ;
34626
34627 if (!args) SWIG_fail;
34628 swig_obj[0] = args;
34629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
34630 if (!SWIG_IsOK(res1)) {
34631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34632 }
34633 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34634 {
34635 PyThreadState* __tstate = wxPyBeginAllowThreads();
34636 delete arg1;
34637
34638 wxPyEndAllowThreads(__tstate);
34639 if (PyErr_Occurred()) SWIG_fail;
34640 }
34641 resultobj = SWIG_Py_Void();
34642 return resultobj;
34643 fail:
34644 return NULL;
34645 }
34646
34647
34648 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34649 PyObject *resultobj = 0;
34650 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34651 int result;
34652 void *argp1 = 0 ;
34653 int res1 = 0 ;
34654 PyObject *swig_obj[1] ;
34655
34656 if (!args) SWIG_fail;
34657 swig_obj[0] = args;
34658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34659 if (!SWIG_IsOK(res1)) {
34660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34661 }
34662 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34663 result = (int)(int) ((arg1)->widthSash);
34664 resultobj = SWIG_From_int(static_cast< int >(result));
34665 return resultobj;
34666 fail:
34667 return NULL;
34668 }
34669
34670
34671 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34672 PyObject *resultobj = 0;
34673 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34674 int result;
34675 void *argp1 = 0 ;
34676 int res1 = 0 ;
34677 PyObject *swig_obj[1] ;
34678
34679 if (!args) SWIG_fail;
34680 swig_obj[0] = args;
34681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34682 if (!SWIG_IsOK(res1)) {
34683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34684 }
34685 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34686 result = (int)(int) ((arg1)->border);
34687 resultobj = SWIG_From_int(static_cast< int >(result));
34688 return resultobj;
34689 fail:
34690 return NULL;
34691 }
34692
34693
34694 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34695 PyObject *resultobj = 0;
34696 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34697 bool result;
34698 void *argp1 = 0 ;
34699 int res1 = 0 ;
34700 PyObject *swig_obj[1] ;
34701
34702 if (!args) SWIG_fail;
34703 swig_obj[0] = args;
34704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34705 if (!SWIG_IsOK(res1)) {
34706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34707 }
34708 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34709 result = (bool)(bool) ((arg1)->isHotSensitive);
34710 resultobj = SWIG_From_bool(static_cast< bool >(result));
34711 return resultobj;
34712 fail:
34713 return NULL;
34714 }
34715
34716
34717 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34718 PyObject *obj;
34719 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34720 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
34721 return SWIG_Py_Void();
34722 }
34723
34724 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34725 return SWIG_Python_InitShadowInstance(args);
34726 }
34727
34728 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34729 PyObject *resultobj = 0;
34730 wxHeaderButtonParams *result = 0 ;
34731
34732 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
34733 {
34734 PyThreadState* __tstate = wxPyBeginAllowThreads();
34735 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
34736 wxPyEndAllowThreads(__tstate);
34737 if (PyErr_Occurred()) SWIG_fail;
34738 }
34739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
34740 return resultobj;
34741 fail:
34742 return NULL;
34743 }
34744
34745
34746 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34747 PyObject *resultobj = 0;
34748 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34749 void *argp1 = 0 ;
34750 int res1 = 0 ;
34751 PyObject *swig_obj[1] ;
34752
34753 if (!args) SWIG_fail;
34754 swig_obj[0] = args;
34755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
34756 if (!SWIG_IsOK(res1)) {
34757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34758 }
34759 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34760 {
34761 PyThreadState* __tstate = wxPyBeginAllowThreads();
34762 delete arg1;
34763
34764 wxPyEndAllowThreads(__tstate);
34765 if (PyErr_Occurred()) SWIG_fail;
34766 }
34767 resultobj = SWIG_Py_Void();
34768 return resultobj;
34769 fail:
34770 return NULL;
34771 }
34772
34773
34774 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34775 PyObject *resultobj = 0;
34776 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34777 wxColour *arg2 = (wxColour *) 0 ;
34778 void *argp1 = 0 ;
34779 int res1 = 0 ;
34780 wxColour temp2 ;
34781 PyObject *swig_obj[2] ;
34782
34783 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
34784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34785 if (!SWIG_IsOK(res1)) {
34786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34787 }
34788 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34789 {
34790 arg2 = &temp2;
34791 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34792 }
34793 if (arg1) (arg1)->m_arrowColour = *arg2;
34794
34795 resultobj = SWIG_Py_Void();
34796 return resultobj;
34797 fail:
34798 return NULL;
34799 }
34800
34801
34802 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34803 PyObject *resultobj = 0;
34804 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34805 wxColour *result = 0 ;
34806 void *argp1 = 0 ;
34807 int res1 = 0 ;
34808 PyObject *swig_obj[1] ;
34809
34810 if (!args) SWIG_fail;
34811 swig_obj[0] = args;
34812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34813 if (!SWIG_IsOK(res1)) {
34814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34815 }
34816 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34817 result = (wxColour *)& ((arg1)->m_arrowColour);
34818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34819 return resultobj;
34820 fail:
34821 return NULL;
34822 }
34823
34824
34825 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34826 PyObject *resultobj = 0;
34827 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34828 wxColour *arg2 = (wxColour *) 0 ;
34829 void *argp1 = 0 ;
34830 int res1 = 0 ;
34831 wxColour temp2 ;
34832 PyObject *swig_obj[2] ;
34833
34834 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
34835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34836 if (!SWIG_IsOK(res1)) {
34837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34838 }
34839 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34840 {
34841 arg2 = &temp2;
34842 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34843 }
34844 if (arg1) (arg1)->m_selectionColour = *arg2;
34845
34846 resultobj = SWIG_Py_Void();
34847 return resultobj;
34848 fail:
34849 return NULL;
34850 }
34851
34852
34853 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34854 PyObject *resultobj = 0;
34855 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34856 wxColour *result = 0 ;
34857 void *argp1 = 0 ;
34858 int res1 = 0 ;
34859 PyObject *swig_obj[1] ;
34860
34861 if (!args) SWIG_fail;
34862 swig_obj[0] = args;
34863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34864 if (!SWIG_IsOK(res1)) {
34865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34866 }
34867 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34868 result = (wxColour *)& ((arg1)->m_selectionColour);
34869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34870 return resultobj;
34871 fail:
34872 return NULL;
34873 }
34874
34875
34876 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34877 PyObject *resultobj = 0;
34878 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34879 wxString *arg2 = (wxString *) 0 ;
34880 void *argp1 = 0 ;
34881 int res1 = 0 ;
34882 bool temp2 = false ;
34883 PyObject *swig_obj[2] ;
34884
34885 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
34886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34887 if (!SWIG_IsOK(res1)) {
34888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34889 }
34890 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34891 {
34892 arg2 = wxString_in_helper(swig_obj[1]);
34893 if (arg2 == NULL) SWIG_fail;
34894 temp2 = true;
34895 }
34896 if (arg1) (arg1)->m_labelText = *arg2;
34897
34898 resultobj = SWIG_Py_Void();
34899 {
34900 if (temp2)
34901 delete arg2;
34902 }
34903 return resultobj;
34904 fail:
34905 {
34906 if (temp2)
34907 delete arg2;
34908 }
34909 return NULL;
34910 }
34911
34912
34913 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34914 PyObject *resultobj = 0;
34915 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34916 wxString *result = 0 ;
34917 void *argp1 = 0 ;
34918 int res1 = 0 ;
34919 PyObject *swig_obj[1] ;
34920
34921 if (!args) SWIG_fail;
34922 swig_obj[0] = args;
34923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34924 if (!SWIG_IsOK(res1)) {
34925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34926 }
34927 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34928 result = (wxString *)& ((arg1)->m_labelText);
34929 {
34930 #if wxUSE_UNICODE
34931 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34932 #else
34933 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34934 #endif
34935 }
34936 return resultobj;
34937 fail:
34938 return NULL;
34939 }
34940
34941
34942 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34943 PyObject *resultobj = 0;
34944 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34945 wxFont *arg2 = (wxFont *) 0 ;
34946 void *argp1 = 0 ;
34947 int res1 = 0 ;
34948 void *argp2 = 0 ;
34949 int res2 = 0 ;
34950 PyObject *swig_obj[2] ;
34951
34952 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34954 if (!SWIG_IsOK(res1)) {
34955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34956 }
34957 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34958 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34959 if (!SWIG_IsOK(res2)) {
34960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34961 }
34962 arg2 = reinterpret_cast< wxFont * >(argp2);
34963 if (arg1) (arg1)->m_labelFont = *arg2;
34964
34965 resultobj = SWIG_Py_Void();
34966 return resultobj;
34967 fail:
34968 return NULL;
34969 }
34970
34971
34972 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34973 PyObject *resultobj = 0;
34974 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34975 wxFont *result = 0 ;
34976 void *argp1 = 0 ;
34977 int res1 = 0 ;
34978 PyObject *swig_obj[1] ;
34979
34980 if (!args) SWIG_fail;
34981 swig_obj[0] = args;
34982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34983 if (!SWIG_IsOK(res1)) {
34984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34985 }
34986 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34987 result = (wxFont *)& ((arg1)->m_labelFont);
34988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34989 return resultobj;
34990 fail:
34991 return NULL;
34992 }
34993
34994
34995 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34996 PyObject *resultobj = 0;
34997 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34998 wxColour *arg2 = (wxColour *) 0 ;
34999 void *argp1 = 0 ;
35000 int res1 = 0 ;
35001 wxColour temp2 ;
35002 PyObject *swig_obj[2] ;
35003
35004 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
35005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35006 if (!SWIG_IsOK(res1)) {
35007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
35008 }
35009 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
35010 {
35011 arg2 = &temp2;
35012 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
35013 }
35014 if (arg1) (arg1)->m_labelColour = *arg2;
35015
35016 resultobj = SWIG_Py_Void();
35017 return resultobj;
35018 fail:
35019 return NULL;
35020 }
35021
35022
35023 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35024 PyObject *resultobj = 0;
35025 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
35026 wxColour *result = 0 ;
35027 void *argp1 = 0 ;
35028 int res1 = 0 ;
35029 PyObject *swig_obj[1] ;
35030
35031 if (!args) SWIG_fail;
35032 swig_obj[0] = args;
35033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35034 if (!SWIG_IsOK(res1)) {
35035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
35036 }
35037 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
35038 result = (wxColour *)& ((arg1)->m_labelColour);
35039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
35040 return resultobj;
35041 fail:
35042 return NULL;
35043 }
35044
35045
35046 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35047 PyObject *resultobj = 0;
35048 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
35049 wxBitmap *arg2 = (wxBitmap *) 0 ;
35050 void *argp1 = 0 ;
35051 int res1 = 0 ;
35052 void *argp2 = 0 ;
35053 int res2 = 0 ;
35054 PyObject *swig_obj[2] ;
35055
35056 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
35057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35058 if (!SWIG_IsOK(res1)) {
35059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
35060 }
35061 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
35062 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
35063 if (!SWIG_IsOK(res2)) {
35064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
35065 }
35066 arg2 = reinterpret_cast< wxBitmap * >(argp2);
35067 if (arg1) (arg1)->m_labelBitmap = *arg2;
35068
35069 resultobj = SWIG_Py_Void();
35070 return resultobj;
35071 fail:
35072 return NULL;
35073 }
35074
35075
35076 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35077 PyObject *resultobj = 0;
35078 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
35079 wxBitmap *result = 0 ;
35080 void *argp1 = 0 ;
35081 int res1 = 0 ;
35082 PyObject *swig_obj[1] ;
35083
35084 if (!args) SWIG_fail;
35085 swig_obj[0] = args;
35086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35087 if (!SWIG_IsOK(res1)) {
35088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
35089 }
35090 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
35091 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
35092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
35093 return resultobj;
35094 fail:
35095 return NULL;
35096 }
35097
35098
35099 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35100 PyObject *resultobj = 0;
35101 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
35102 int arg2 ;
35103 void *argp1 = 0 ;
35104 int res1 = 0 ;
35105 int val2 ;
35106 int ecode2 = 0 ;
35107 PyObject *swig_obj[2] ;
35108
35109 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
35110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35111 if (!SWIG_IsOK(res1)) {
35112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
35113 }
35114 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
35115 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
35116 if (!SWIG_IsOK(ecode2)) {
35117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
35118 }
35119 arg2 = static_cast< int >(val2);
35120 if (arg1) (arg1)->m_labelAlignment = arg2;
35121
35122 resultobj = SWIG_Py_Void();
35123 return resultobj;
35124 fail:
35125 return NULL;
35126 }
35127
35128
35129 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35130 PyObject *resultobj = 0;
35131 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
35132 int result;
35133 void *argp1 = 0 ;
35134 int res1 = 0 ;
35135 PyObject *swig_obj[1] ;
35136
35137 if (!args) SWIG_fail;
35138 swig_obj[0] = args;
35139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35140 if (!SWIG_IsOK(res1)) {
35141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
35142 }
35143 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
35144 result = (int) ((arg1)->m_labelAlignment);
35145 resultobj = SWIG_From_int(static_cast< int >(result));
35146 return resultobj;
35147 fail:
35148 return NULL;
35149 }
35150
35151
35152 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35153 PyObject *obj;
35154 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35155 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
35156 return SWIG_Py_Void();
35157 }
35158
35159 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35160 return SWIG_Python_InitShadowInstance(args);
35161 }
35162
35163 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35164 PyObject *resultobj = 0;
35165 int arg1 ;
35166 int arg2 ;
35167 wxRendererVersion *result = 0 ;
35168 int val1 ;
35169 int ecode1 = 0 ;
35170 int val2 ;
35171 int ecode2 = 0 ;
35172 PyObject * obj0 = 0 ;
35173 PyObject * obj1 = 0 ;
35174 char * kwnames[] = {
35175 (char *) "version_",(char *) "age_", NULL
35176 };
35177
35178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
35179 ecode1 = SWIG_AsVal_int(obj0, &val1);
35180 if (!SWIG_IsOK(ecode1)) {
35181 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
35182 }
35183 arg1 = static_cast< int >(val1);
35184 ecode2 = SWIG_AsVal_int(obj1, &val2);
35185 if (!SWIG_IsOK(ecode2)) {
35186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
35187 }
35188 arg2 = static_cast< int >(val2);
35189 {
35190 PyThreadState* __tstate = wxPyBeginAllowThreads();
35191 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
35192 wxPyEndAllowThreads(__tstate);
35193 if (PyErr_Occurred()) SWIG_fail;
35194 }
35195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
35196 return resultobj;
35197 fail:
35198 return NULL;
35199 }
35200
35201
35202 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35203 PyObject *resultobj = 0;
35204 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
35205 void *argp1 = 0 ;
35206 int res1 = 0 ;
35207 PyObject *swig_obj[1] ;
35208
35209 if (!args) SWIG_fail;
35210 swig_obj[0] = args;
35211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
35212 if (!SWIG_IsOK(res1)) {
35213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
35214 }
35215 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35216 {
35217 PyThreadState* __tstate = wxPyBeginAllowThreads();
35218 delete arg1;
35219
35220 wxPyEndAllowThreads(__tstate);
35221 if (PyErr_Occurred()) SWIG_fail;
35222 }
35223 resultobj = SWIG_Py_Void();
35224 return resultobj;
35225 fail:
35226 return NULL;
35227 }
35228
35229
35230 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35231 PyObject *resultobj = 0;
35232 wxRendererVersion *arg1 = 0 ;
35233 bool result;
35234 void *argp1 = 0 ;
35235 int res1 = 0 ;
35236 PyObject * obj0 = 0 ;
35237 char * kwnames[] = {
35238 (char *) "ver", NULL
35239 };
35240
35241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
35242 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
35243 if (!SWIG_IsOK(res1)) {
35244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
35245 }
35246 if (!argp1) {
35247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
35248 }
35249 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35250 {
35251 PyThreadState* __tstate = wxPyBeginAllowThreads();
35252 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
35253 wxPyEndAllowThreads(__tstate);
35254 if (PyErr_Occurred()) SWIG_fail;
35255 }
35256 {
35257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35258 }
35259 return resultobj;
35260 fail:
35261 return NULL;
35262 }
35263
35264
35265 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35266 PyObject *resultobj = 0;
35267 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
35268 int result;
35269 void *argp1 = 0 ;
35270 int res1 = 0 ;
35271 PyObject *swig_obj[1] ;
35272
35273 if (!args) SWIG_fail;
35274 swig_obj[0] = args;
35275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
35276 if (!SWIG_IsOK(res1)) {
35277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
35278 }
35279 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35280 result = (int)(int) ((arg1)->version);
35281 resultobj = SWIG_From_int(static_cast< int >(result));
35282 return resultobj;
35283 fail:
35284 return NULL;
35285 }
35286
35287
35288 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35289 PyObject *resultobj = 0;
35290 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
35291 int result;
35292 void *argp1 = 0 ;
35293 int res1 = 0 ;
35294 PyObject *swig_obj[1] ;
35295
35296 if (!args) SWIG_fail;
35297 swig_obj[0] = args;
35298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
35299 if (!SWIG_IsOK(res1)) {
35300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
35301 }
35302 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35303 result = (int)(int) ((arg1)->age);
35304 resultobj = SWIG_From_int(static_cast< int >(result));
35305 return resultobj;
35306 fail:
35307 return NULL;
35308 }
35309
35310
35311 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35312 PyObject *obj;
35313 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35314 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
35315 return SWIG_Py_Void();
35316 }
35317
35318 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35319 return SWIG_Python_InitShadowInstance(args);
35320 }
35321
35322 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35323 PyObject *resultobj = 0;
35324 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35325 wxWindow *arg2 = (wxWindow *) 0 ;
35326 wxDC *arg3 = 0 ;
35327 wxRect *arg4 = 0 ;
35328 int arg5 = (int) 0 ;
35329 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
35330 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
35331 int result;
35332 void *argp1 = 0 ;
35333 int res1 = 0 ;
35334 void *argp2 = 0 ;
35335 int res2 = 0 ;
35336 void *argp3 = 0 ;
35337 int res3 = 0 ;
35338 wxRect temp4 ;
35339 int val5 ;
35340 int ecode5 = 0 ;
35341 int val6 ;
35342 int ecode6 = 0 ;
35343 void *argp7 = 0 ;
35344 int res7 = 0 ;
35345 PyObject * obj0 = 0 ;
35346 PyObject * obj1 = 0 ;
35347 PyObject * obj2 = 0 ;
35348 PyObject * obj3 = 0 ;
35349 PyObject * obj4 = 0 ;
35350 PyObject * obj5 = 0 ;
35351 PyObject * obj6 = 0 ;
35352 char * kwnames[] = {
35353 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
35354 };
35355
35356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35358 if (!SWIG_IsOK(res1)) {
35359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35360 }
35361 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35362 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35363 if (!SWIG_IsOK(res2)) {
35364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35365 }
35366 arg2 = reinterpret_cast< wxWindow * >(argp2);
35367 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35368 if (!SWIG_IsOK(res3)) {
35369 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
35370 }
35371 if (!argp3) {
35372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
35373 }
35374 arg3 = reinterpret_cast< wxDC * >(argp3);
35375 {
35376 arg4 = &temp4;
35377 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35378 }
35379 if (obj4) {
35380 ecode5 = SWIG_AsVal_int(obj4, &val5);
35381 if (!SWIG_IsOK(ecode5)) {
35382 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
35383 }
35384 arg5 = static_cast< int >(val5);
35385 }
35386 if (obj5) {
35387 ecode6 = SWIG_AsVal_int(obj5, &val6);
35388 if (!SWIG_IsOK(ecode6)) {
35389 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
35390 }
35391 arg6 = static_cast< wxHeaderSortIconType >(val6);
35392 }
35393 if (obj6) {
35394 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35395 if (!SWIG_IsOK(res7)) {
35396 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
35397 }
35398 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
35399 }
35400 {
35401 PyThreadState* __tstate = wxPyBeginAllowThreads();
35402 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
35403 wxPyEndAllowThreads(__tstate);
35404 if (PyErr_Occurred()) SWIG_fail;
35405 }
35406 resultobj = SWIG_From_int(static_cast< int >(result));
35407 return resultobj;
35408 fail:
35409 return NULL;
35410 }
35411
35412
35413 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35414 PyObject *resultobj = 0;
35415 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35416 wxWindow *arg2 = (wxWindow *) 0 ;
35417 wxDC *arg3 = 0 ;
35418 wxRect *arg4 = 0 ;
35419 int arg5 = (int) 0 ;
35420 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
35421 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
35422 int result;
35423 void *argp1 = 0 ;
35424 int res1 = 0 ;
35425 void *argp2 = 0 ;
35426 int res2 = 0 ;
35427 void *argp3 = 0 ;
35428 int res3 = 0 ;
35429 wxRect temp4 ;
35430 int val5 ;
35431 int ecode5 = 0 ;
35432 int val6 ;
35433 int ecode6 = 0 ;
35434 void *argp7 = 0 ;
35435 int res7 = 0 ;
35436 PyObject * obj0 = 0 ;
35437 PyObject * obj1 = 0 ;
35438 PyObject * obj2 = 0 ;
35439 PyObject * obj3 = 0 ;
35440 PyObject * obj4 = 0 ;
35441 PyObject * obj5 = 0 ;
35442 PyObject * obj6 = 0 ;
35443 char * kwnames[] = {
35444 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
35445 };
35446
35447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35449 if (!SWIG_IsOK(res1)) {
35450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35451 }
35452 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35453 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35454 if (!SWIG_IsOK(res2)) {
35455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
35456 }
35457 arg2 = reinterpret_cast< wxWindow * >(argp2);
35458 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35459 if (!SWIG_IsOK(res3)) {
35460 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35461 }
35462 if (!argp3) {
35463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35464 }
35465 arg3 = reinterpret_cast< wxDC * >(argp3);
35466 {
35467 arg4 = &temp4;
35468 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35469 }
35470 if (obj4) {
35471 ecode5 = SWIG_AsVal_int(obj4, &val5);
35472 if (!SWIG_IsOK(ecode5)) {
35473 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
35474 }
35475 arg5 = static_cast< int >(val5);
35476 }
35477 if (obj5) {
35478 ecode6 = SWIG_AsVal_int(obj5, &val6);
35479 if (!SWIG_IsOK(ecode6)) {
35480 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
35481 }
35482 arg6 = static_cast< wxHeaderSortIconType >(val6);
35483 }
35484 if (obj6) {
35485 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35486 if (!SWIG_IsOK(res7)) {
35487 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
35488 }
35489 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
35490 }
35491 {
35492 PyThreadState* __tstate = wxPyBeginAllowThreads();
35493 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
35494 wxPyEndAllowThreads(__tstate);
35495 if (PyErr_Occurred()) SWIG_fail;
35496 }
35497 resultobj = SWIG_From_int(static_cast< int >(result));
35498 return resultobj;
35499 fail:
35500 return NULL;
35501 }
35502
35503
35504 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35505 PyObject *resultobj = 0;
35506 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35507 wxWindow *arg2 = (wxWindow *) 0 ;
35508 int result;
35509 void *argp1 = 0 ;
35510 int res1 = 0 ;
35511 void *argp2 = 0 ;
35512 int res2 = 0 ;
35513 PyObject * obj0 = 0 ;
35514 PyObject * obj1 = 0 ;
35515 char * kwnames[] = {
35516 (char *) "self",(char *) "win", NULL
35517 };
35518
35519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
35520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35521 if (!SWIG_IsOK(res1)) {
35522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35523 }
35524 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35525 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35526 if (!SWIG_IsOK(res2)) {
35527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
35528 }
35529 arg2 = reinterpret_cast< wxWindow * >(argp2);
35530 {
35531 PyThreadState* __tstate = wxPyBeginAllowThreads();
35532 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
35533 wxPyEndAllowThreads(__tstate);
35534 if (PyErr_Occurred()) SWIG_fail;
35535 }
35536 resultobj = SWIG_From_int(static_cast< int >(result));
35537 return resultobj;
35538 fail:
35539 return NULL;
35540 }
35541
35542
35543 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35544 PyObject *resultobj = 0;
35545 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35546 wxWindow *arg2 = (wxWindow *) 0 ;
35547 wxDC *arg3 = 0 ;
35548 wxRect *arg4 = 0 ;
35549 int arg5 = (int) 0 ;
35550 void *argp1 = 0 ;
35551 int res1 = 0 ;
35552 void *argp2 = 0 ;
35553 int res2 = 0 ;
35554 void *argp3 = 0 ;
35555 int res3 = 0 ;
35556 wxRect temp4 ;
35557 int val5 ;
35558 int ecode5 = 0 ;
35559 PyObject * obj0 = 0 ;
35560 PyObject * obj1 = 0 ;
35561 PyObject * obj2 = 0 ;
35562 PyObject * obj3 = 0 ;
35563 PyObject * obj4 = 0 ;
35564 char * kwnames[] = {
35565 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35566 };
35567
35568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35570 if (!SWIG_IsOK(res1)) {
35571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35572 }
35573 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35574 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35575 if (!SWIG_IsOK(res2)) {
35576 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35577 }
35578 arg2 = reinterpret_cast< wxWindow * >(argp2);
35579 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35580 if (!SWIG_IsOK(res3)) {
35581 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35582 }
35583 if (!argp3) {
35584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35585 }
35586 arg3 = reinterpret_cast< wxDC * >(argp3);
35587 {
35588 arg4 = &temp4;
35589 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35590 }
35591 if (obj4) {
35592 ecode5 = SWIG_AsVal_int(obj4, &val5);
35593 if (!SWIG_IsOK(ecode5)) {
35594 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
35595 }
35596 arg5 = static_cast< int >(val5);
35597 }
35598 {
35599 PyThreadState* __tstate = wxPyBeginAllowThreads();
35600 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35601 wxPyEndAllowThreads(__tstate);
35602 if (PyErr_Occurred()) SWIG_fail;
35603 }
35604 resultobj = SWIG_Py_Void();
35605 return resultobj;
35606 fail:
35607 return NULL;
35608 }
35609
35610
35611 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35612 PyObject *resultobj = 0;
35613 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35614 wxWindow *arg2 = (wxWindow *) 0 ;
35615 wxDC *arg3 = 0 ;
35616 wxRect *arg4 = 0 ;
35617 int arg5 = (int) 0 ;
35618 void *argp1 = 0 ;
35619 int res1 = 0 ;
35620 void *argp2 = 0 ;
35621 int res2 = 0 ;
35622 void *argp3 = 0 ;
35623 int res3 = 0 ;
35624 wxRect temp4 ;
35625 int val5 ;
35626 int ecode5 = 0 ;
35627 PyObject * obj0 = 0 ;
35628 PyObject * obj1 = 0 ;
35629 PyObject * obj2 = 0 ;
35630 PyObject * obj3 = 0 ;
35631 PyObject * obj4 = 0 ;
35632 char * kwnames[] = {
35633 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35634 };
35635
35636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35638 if (!SWIG_IsOK(res1)) {
35639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35640 }
35641 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35642 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35643 if (!SWIG_IsOK(res2)) {
35644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
35645 }
35646 arg2 = reinterpret_cast< wxWindow * >(argp2);
35647 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35648 if (!SWIG_IsOK(res3)) {
35649 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35650 }
35651 if (!argp3) {
35652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35653 }
35654 arg3 = reinterpret_cast< wxDC * >(argp3);
35655 {
35656 arg4 = &temp4;
35657 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35658 }
35659 if (obj4) {
35660 ecode5 = SWIG_AsVal_int(obj4, &val5);
35661 if (!SWIG_IsOK(ecode5)) {
35662 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
35663 }
35664 arg5 = static_cast< int >(val5);
35665 }
35666 {
35667 PyThreadState* __tstate = wxPyBeginAllowThreads();
35668 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
35669 wxPyEndAllowThreads(__tstate);
35670 if (PyErr_Occurred()) SWIG_fail;
35671 }
35672 resultobj = SWIG_Py_Void();
35673 return resultobj;
35674 fail:
35675 return NULL;
35676 }
35677
35678
35679 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35680 PyObject *resultobj = 0;
35681 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35682 wxWindow *arg2 = (wxWindow *) 0 ;
35683 wxDC *arg3 = 0 ;
35684 wxSize *arg4 = 0 ;
35685 int arg5 ;
35686 wxOrientation arg6 ;
35687 int arg7 = (int) 0 ;
35688 void *argp1 = 0 ;
35689 int res1 = 0 ;
35690 void *argp2 = 0 ;
35691 int res2 = 0 ;
35692 void *argp3 = 0 ;
35693 int res3 = 0 ;
35694 wxSize temp4 ;
35695 int val5 ;
35696 int ecode5 = 0 ;
35697 int val6 ;
35698 int ecode6 = 0 ;
35699 int val7 ;
35700 int ecode7 = 0 ;
35701 PyObject * obj0 = 0 ;
35702 PyObject * obj1 = 0 ;
35703 PyObject * obj2 = 0 ;
35704 PyObject * obj3 = 0 ;
35705 PyObject * obj4 = 0 ;
35706 PyObject * obj5 = 0 ;
35707 PyObject * obj6 = 0 ;
35708 char * kwnames[] = {
35709 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
35710 };
35711
35712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35714 if (!SWIG_IsOK(res1)) {
35715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35716 }
35717 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35718 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35719 if (!SWIG_IsOK(res2)) {
35720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
35721 }
35722 arg2 = reinterpret_cast< wxWindow * >(argp2);
35723 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35724 if (!SWIG_IsOK(res3)) {
35725 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35726 }
35727 if (!argp3) {
35728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35729 }
35730 arg3 = reinterpret_cast< wxDC * >(argp3);
35731 {
35732 arg4 = &temp4;
35733 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
35734 }
35735 ecode5 = SWIG_AsVal_int(obj4, &val5);
35736 if (!SWIG_IsOK(ecode5)) {
35737 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
35738 }
35739 arg5 = static_cast< int >(val5);
35740 ecode6 = SWIG_AsVal_int(obj5, &val6);
35741 if (!SWIG_IsOK(ecode6)) {
35742 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
35743 }
35744 arg6 = static_cast< wxOrientation >(val6);
35745 if (obj6) {
35746 ecode7 = SWIG_AsVal_int(obj6, &val7);
35747 if (!SWIG_IsOK(ecode7)) {
35748 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
35749 }
35750 arg7 = static_cast< int >(val7);
35751 }
35752 {
35753 PyThreadState* __tstate = wxPyBeginAllowThreads();
35754 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
35755 wxPyEndAllowThreads(__tstate);
35756 if (PyErr_Occurred()) SWIG_fail;
35757 }
35758 resultobj = SWIG_Py_Void();
35759 return resultobj;
35760 fail:
35761 return NULL;
35762 }
35763
35764
35765 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35766 PyObject *resultobj = 0;
35767 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35768 wxWindow *arg2 = (wxWindow *) 0 ;
35769 wxDC *arg3 = 0 ;
35770 wxRect *arg4 = 0 ;
35771 int arg5 = (int) 0 ;
35772 void *argp1 = 0 ;
35773 int res1 = 0 ;
35774 void *argp2 = 0 ;
35775 int res2 = 0 ;
35776 void *argp3 = 0 ;
35777 int res3 = 0 ;
35778 wxRect temp4 ;
35779 int val5 ;
35780 int ecode5 = 0 ;
35781 PyObject * obj0 = 0 ;
35782 PyObject * obj1 = 0 ;
35783 PyObject * obj2 = 0 ;
35784 PyObject * obj3 = 0 ;
35785 PyObject * obj4 = 0 ;
35786 char * kwnames[] = {
35787 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35788 };
35789
35790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35792 if (!SWIG_IsOK(res1)) {
35793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35794 }
35795 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35796 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35797 if (!SWIG_IsOK(res2)) {
35798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35799 }
35800 arg2 = reinterpret_cast< wxWindow * >(argp2);
35801 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35802 if (!SWIG_IsOK(res3)) {
35803 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35804 }
35805 if (!argp3) {
35806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35807 }
35808 arg3 = reinterpret_cast< wxDC * >(argp3);
35809 {
35810 arg4 = &temp4;
35811 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35812 }
35813 if (obj4) {
35814 ecode5 = SWIG_AsVal_int(obj4, &val5);
35815 if (!SWIG_IsOK(ecode5)) {
35816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
35817 }
35818 arg5 = static_cast< int >(val5);
35819 }
35820 {
35821 PyThreadState* __tstate = wxPyBeginAllowThreads();
35822 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35823 wxPyEndAllowThreads(__tstate);
35824 if (PyErr_Occurred()) SWIG_fail;
35825 }
35826 resultobj = SWIG_Py_Void();
35827 return resultobj;
35828 fail:
35829 return NULL;
35830 }
35831
35832
35833 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35834 PyObject *resultobj = 0;
35835 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35836 wxWindow *arg2 = (wxWindow *) 0 ;
35837 wxDC *arg3 = 0 ;
35838 wxRect *arg4 = 0 ;
35839 int arg5 = (int) 0 ;
35840 void *argp1 = 0 ;
35841 int res1 = 0 ;
35842 void *argp2 = 0 ;
35843 int res2 = 0 ;
35844 void *argp3 = 0 ;
35845 int res3 = 0 ;
35846 wxRect temp4 ;
35847 int val5 ;
35848 int ecode5 = 0 ;
35849 PyObject * obj0 = 0 ;
35850 PyObject * obj1 = 0 ;
35851 PyObject * obj2 = 0 ;
35852 PyObject * obj3 = 0 ;
35853 PyObject * obj4 = 0 ;
35854 char * kwnames[] = {
35855 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35856 };
35857
35858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35860 if (!SWIG_IsOK(res1)) {
35861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35862 }
35863 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35864 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35865 if (!SWIG_IsOK(res2)) {
35866 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
35867 }
35868 arg2 = reinterpret_cast< wxWindow * >(argp2);
35869 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35870 if (!SWIG_IsOK(res3)) {
35871 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35872 }
35873 if (!argp3) {
35874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35875 }
35876 arg3 = reinterpret_cast< wxDC * >(argp3);
35877 {
35878 arg4 = &temp4;
35879 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35880 }
35881 if (obj4) {
35882 ecode5 = SWIG_AsVal_int(obj4, &val5);
35883 if (!SWIG_IsOK(ecode5)) {
35884 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
35885 }
35886 arg5 = static_cast< int >(val5);
35887 }
35888 {
35889 PyThreadState* __tstate = wxPyBeginAllowThreads();
35890 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
35891 wxPyEndAllowThreads(__tstate);
35892 if (PyErr_Occurred()) SWIG_fail;
35893 }
35894 resultobj = SWIG_Py_Void();
35895 return resultobj;
35896 fail:
35897 return NULL;
35898 }
35899
35900
35901 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35902 PyObject *resultobj = 0;
35903 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35904 wxWindow *arg2 = (wxWindow *) 0 ;
35905 wxDC *arg3 = 0 ;
35906 wxRect *arg4 = 0 ;
35907 int arg5 = (int) 0 ;
35908 void *argp1 = 0 ;
35909 int res1 = 0 ;
35910 void *argp2 = 0 ;
35911 int res2 = 0 ;
35912 void *argp3 = 0 ;
35913 int res3 = 0 ;
35914 wxRect temp4 ;
35915 int val5 ;
35916 int ecode5 = 0 ;
35917 PyObject * obj0 = 0 ;
35918 PyObject * obj1 = 0 ;
35919 PyObject * obj2 = 0 ;
35920 PyObject * obj3 = 0 ;
35921 PyObject * obj4 = 0 ;
35922 char * kwnames[] = {
35923 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35924 };
35925
35926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35928 if (!SWIG_IsOK(res1)) {
35929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35930 }
35931 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35932 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35933 if (!SWIG_IsOK(res2)) {
35934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
35935 }
35936 arg2 = reinterpret_cast< wxWindow * >(argp2);
35937 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35938 if (!SWIG_IsOK(res3)) {
35939 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35940 }
35941 if (!argp3) {
35942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35943 }
35944 arg3 = reinterpret_cast< wxDC * >(argp3);
35945 {
35946 arg4 = &temp4;
35947 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35948 }
35949 if (obj4) {
35950 ecode5 = SWIG_AsVal_int(obj4, &val5);
35951 if (!SWIG_IsOK(ecode5)) {
35952 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35953 }
35954 arg5 = static_cast< int >(val5);
35955 }
35956 {
35957 PyThreadState* __tstate = wxPyBeginAllowThreads();
35958 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35959 wxPyEndAllowThreads(__tstate);
35960 if (PyErr_Occurred()) SWIG_fail;
35961 }
35962 resultobj = SWIG_Py_Void();
35963 return resultobj;
35964 fail:
35965 return NULL;
35966 }
35967
35968
35969 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35970 PyObject *resultobj = 0;
35971 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35972 wxWindow *arg2 = (wxWindow *) 0 ;
35973 wxDC *arg3 = 0 ;
35974 wxRect *arg4 = 0 ;
35975 int arg5 = (int) 0 ;
35976 void *argp1 = 0 ;
35977 int res1 = 0 ;
35978 void *argp2 = 0 ;
35979 int res2 = 0 ;
35980 void *argp3 = 0 ;
35981 int res3 = 0 ;
35982 wxRect temp4 ;
35983 int val5 ;
35984 int ecode5 = 0 ;
35985 PyObject * obj0 = 0 ;
35986 PyObject * obj1 = 0 ;
35987 PyObject * obj2 = 0 ;
35988 PyObject * obj3 = 0 ;
35989 PyObject * obj4 = 0 ;
35990 char * kwnames[] = {
35991 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35992 };
35993
35994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35996 if (!SWIG_IsOK(res1)) {
35997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35998 }
35999 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
36000 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36001 if (!SWIG_IsOK(res2)) {
36002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
36003 }
36004 arg2 = reinterpret_cast< wxWindow * >(argp2);
36005 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
36006 if (!SWIG_IsOK(res3)) {
36007 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
36008 }
36009 if (!argp3) {
36010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
36011 }
36012 arg3 = reinterpret_cast< wxDC * >(argp3);
36013 {
36014 arg4 = &temp4;
36015 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
36016 }
36017 if (obj4) {
36018 ecode5 = SWIG_AsVal_int(obj4, &val5);
36019 if (!SWIG_IsOK(ecode5)) {
36020 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
36021 }
36022 arg5 = static_cast< int >(val5);
36023 }
36024 {
36025 PyThreadState* __tstate = wxPyBeginAllowThreads();
36026 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
36027 wxPyEndAllowThreads(__tstate);
36028 if (PyErr_Occurred()) SWIG_fail;
36029 }
36030 resultobj = SWIG_Py_Void();
36031 return resultobj;
36032 fail:
36033 return NULL;
36034 }
36035
36036
36037 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36038 PyObject *resultobj = 0;
36039 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
36040 wxWindow *arg2 = (wxWindow *) 0 ;
36041 wxDC *arg3 = 0 ;
36042 wxRect *arg4 = 0 ;
36043 int arg5 = (int) 0 ;
36044 void *argp1 = 0 ;
36045 int res1 = 0 ;
36046 void *argp2 = 0 ;
36047 int res2 = 0 ;
36048 void *argp3 = 0 ;
36049 int res3 = 0 ;
36050 wxRect temp4 ;
36051 int val5 ;
36052 int ecode5 = 0 ;
36053 PyObject * obj0 = 0 ;
36054 PyObject * obj1 = 0 ;
36055 PyObject * obj2 = 0 ;
36056 PyObject * obj3 = 0 ;
36057 PyObject * obj4 = 0 ;
36058 char * kwnames[] = {
36059 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
36060 };
36061
36062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
36064 if (!SWIG_IsOK(res1)) {
36065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
36066 }
36067 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
36068 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36069 if (!SWIG_IsOK(res2)) {
36070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
36071 }
36072 arg2 = reinterpret_cast< wxWindow * >(argp2);
36073 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
36074 if (!SWIG_IsOK(res3)) {
36075 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
36076 }
36077 if (!argp3) {
36078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
36079 }
36080 arg3 = reinterpret_cast< wxDC * >(argp3);
36081 {
36082 arg4 = &temp4;
36083 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
36084 }
36085 if (obj4) {
36086 ecode5 = SWIG_AsVal_int(obj4, &val5);
36087 if (!SWIG_IsOK(ecode5)) {
36088 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
36089 }
36090 arg5 = static_cast< int >(val5);
36091 }
36092 {
36093 PyThreadState* __tstate = wxPyBeginAllowThreads();
36094 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
36095 wxPyEndAllowThreads(__tstate);
36096 if (PyErr_Occurred()) SWIG_fail;
36097 }
36098 resultobj = SWIG_Py_Void();
36099 return resultobj;
36100 fail:
36101 return NULL;
36102 }
36103
36104
36105 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36106 PyObject *resultobj = 0;
36107 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
36108 wxWindow *arg2 = (wxWindow *) 0 ;
36109 SwigValueWrapper<wxSplitterRenderParams > result;
36110 void *argp1 = 0 ;
36111 int res1 = 0 ;
36112 void *argp2 = 0 ;
36113 int res2 = 0 ;
36114 PyObject * obj0 = 0 ;
36115 PyObject * obj1 = 0 ;
36116 char * kwnames[] = {
36117 (char *) "self",(char *) "win", NULL
36118 };
36119
36120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
36121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
36122 if (!SWIG_IsOK(res1)) {
36123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
36124 }
36125 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
36126 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36127 if (!SWIG_IsOK(res2)) {
36128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
36129 }
36130 arg2 = reinterpret_cast< wxWindow * >(argp2);
36131 {
36132 PyThreadState* __tstate = wxPyBeginAllowThreads();
36133 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
36134 wxPyEndAllowThreads(__tstate);
36135 if (PyErr_Occurred()) SWIG_fail;
36136 }
36137 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
36138 return resultobj;
36139 fail:
36140 return NULL;
36141 }
36142
36143
36144 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36145 PyObject *resultobj = 0;
36146 wxRendererNative *result = 0 ;
36147
36148 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
36149 {
36150 if (!wxPyCheckForApp()) SWIG_fail;
36151 PyThreadState* __tstate = wxPyBeginAllowThreads();
36152 {
36153 wxRendererNative &_result_ref = wxRendererNative::Get();
36154 result = (wxRendererNative *) &_result_ref;
36155 }
36156 wxPyEndAllowThreads(__tstate);
36157 if (PyErr_Occurred()) SWIG_fail;
36158 }
36159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
36160 return resultobj;
36161 fail:
36162 return NULL;
36163 }
36164
36165
36166 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36167 PyObject *resultobj = 0;
36168 wxRendererNative *result = 0 ;
36169
36170 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
36171 {
36172 if (!wxPyCheckForApp()) SWIG_fail;
36173 PyThreadState* __tstate = wxPyBeginAllowThreads();
36174 {
36175 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
36176 result = (wxRendererNative *) &_result_ref;
36177 }
36178 wxPyEndAllowThreads(__tstate);
36179 if (PyErr_Occurred()) SWIG_fail;
36180 }
36181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
36182 return resultobj;
36183 fail:
36184 return NULL;
36185 }
36186
36187
36188 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36189 PyObject *resultobj = 0;
36190 wxRendererNative *result = 0 ;
36191
36192 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
36193 {
36194 if (!wxPyCheckForApp()) SWIG_fail;
36195 PyThreadState* __tstate = wxPyBeginAllowThreads();
36196 {
36197 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
36198 result = (wxRendererNative *) &_result_ref;
36199 }
36200 wxPyEndAllowThreads(__tstate);
36201 if (PyErr_Occurred()) SWIG_fail;
36202 }
36203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
36204 return resultobj;
36205 fail:
36206 return NULL;
36207 }
36208
36209
36210 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36211 PyObject *resultobj = 0;
36212 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
36213 wxRendererNative *result = 0 ;
36214 void *argp1 = 0 ;
36215 int res1 = 0 ;
36216 PyObject * obj0 = 0 ;
36217 char * kwnames[] = {
36218 (char *) "renderer", NULL
36219 };
36220
36221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
36222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
36223 if (!SWIG_IsOK(res1)) {
36224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
36225 }
36226 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
36227 {
36228 if (!wxPyCheckForApp()) SWIG_fail;
36229 PyThreadState* __tstate = wxPyBeginAllowThreads();
36230 result = (wxRendererNative *)wxRendererNative::Set(arg1);
36231 wxPyEndAllowThreads(__tstate);
36232 if (PyErr_Occurred()) SWIG_fail;
36233 }
36234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
36235 return resultobj;
36236 fail:
36237 return NULL;
36238 }
36239
36240
36241 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36242 PyObject *resultobj = 0;
36243 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
36244 SwigValueWrapper<wxRendererVersion > result;
36245 void *argp1 = 0 ;
36246 int res1 = 0 ;
36247 PyObject *swig_obj[1] ;
36248
36249 if (!args) SWIG_fail;
36250 swig_obj[0] = args;
36251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
36252 if (!SWIG_IsOK(res1)) {
36253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
36254 }
36255 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
36256 {
36257 PyThreadState* __tstate = wxPyBeginAllowThreads();
36258 result = ((wxRendererNative const *)arg1)->GetVersion();
36259 wxPyEndAllowThreads(__tstate);
36260 if (PyErr_Occurred()) SWIG_fail;
36261 }
36262 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
36263 return resultobj;
36264 fail:
36265 return NULL;
36266 }
36267
36268
36269 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36270 PyObject *obj;
36271 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36272 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
36273 return SWIG_Py_Void();
36274 }
36275
36276 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36277 PyObject *resultobj = 0;
36278 wxPseudoDC *result = 0 ;
36279
36280 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
36281 {
36282 PyThreadState* __tstate = wxPyBeginAllowThreads();
36283 result = (wxPseudoDC *)new wxPseudoDC();
36284 wxPyEndAllowThreads(__tstate);
36285 if (PyErr_Occurred()) SWIG_fail;
36286 }
36287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
36288 return resultobj;
36289 fail:
36290 return NULL;
36291 }
36292
36293
36294 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36295 PyObject *resultobj = 0;
36296 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36297 void *argp1 = 0 ;
36298 int res1 = 0 ;
36299 PyObject *swig_obj[1] ;
36300
36301 if (!args) SWIG_fail;
36302 swig_obj[0] = args;
36303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36304 if (!SWIG_IsOK(res1)) {
36305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36306 }
36307 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36308 {
36309 PyThreadState* __tstate = wxPyBeginAllowThreads();
36310 (arg1)->BeginDrawing();
36311 wxPyEndAllowThreads(__tstate);
36312 if (PyErr_Occurred()) SWIG_fail;
36313 }
36314 resultobj = SWIG_Py_Void();
36315 return resultobj;
36316 fail:
36317 return NULL;
36318 }
36319
36320
36321 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36322 PyObject *resultobj = 0;
36323 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36324 void *argp1 = 0 ;
36325 int res1 = 0 ;
36326 PyObject *swig_obj[1] ;
36327
36328 if (!args) SWIG_fail;
36329 swig_obj[0] = args;
36330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36331 if (!SWIG_IsOK(res1)) {
36332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36333 }
36334 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36335 {
36336 PyThreadState* __tstate = wxPyBeginAllowThreads();
36337 (arg1)->EndDrawing();
36338 wxPyEndAllowThreads(__tstate);
36339 if (PyErr_Occurred()) SWIG_fail;
36340 }
36341 resultobj = SWIG_Py_Void();
36342 return resultobj;
36343 fail:
36344 return NULL;
36345 }
36346
36347
36348 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36349 PyObject *resultobj = 0;
36350 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36351 void *argp1 = 0 ;
36352 int res1 = 0 ;
36353 PyObject *swig_obj[1] ;
36354
36355 if (!args) SWIG_fail;
36356 swig_obj[0] = args;
36357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
36358 if (!SWIG_IsOK(res1)) {
36359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36360 }
36361 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36362 {
36363 PyThreadState* __tstate = wxPyBeginAllowThreads();
36364 delete arg1;
36365
36366 wxPyEndAllowThreads(__tstate);
36367 if (PyErr_Occurred()) SWIG_fail;
36368 }
36369 resultobj = SWIG_Py_Void();
36370 return resultobj;
36371 fail:
36372 return NULL;
36373 }
36374
36375
36376 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36377 PyObject *resultobj = 0;
36378 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36379 void *argp1 = 0 ;
36380 int res1 = 0 ;
36381 PyObject *swig_obj[1] ;
36382
36383 if (!args) SWIG_fail;
36384 swig_obj[0] = args;
36385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36386 if (!SWIG_IsOK(res1)) {
36387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36388 }
36389 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36390 {
36391 PyThreadState* __tstate = wxPyBeginAllowThreads();
36392 (arg1)->RemoveAll();
36393 wxPyEndAllowThreads(__tstate);
36394 if (PyErr_Occurred()) SWIG_fail;
36395 }
36396 resultobj = SWIG_Py_Void();
36397 return resultobj;
36398 fail:
36399 return NULL;
36400 }
36401
36402
36403 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36404 PyObject *resultobj = 0;
36405 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36406 int result;
36407 void *argp1 = 0 ;
36408 int res1 = 0 ;
36409 PyObject *swig_obj[1] ;
36410
36411 if (!args) SWIG_fail;
36412 swig_obj[0] = args;
36413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36414 if (!SWIG_IsOK(res1)) {
36415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36416 }
36417 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36418 {
36419 PyThreadState* __tstate = wxPyBeginAllowThreads();
36420 result = (int)(arg1)->GetLen();
36421 wxPyEndAllowThreads(__tstate);
36422 if (PyErr_Occurred()) SWIG_fail;
36423 }
36424 resultobj = SWIG_From_int(static_cast< int >(result));
36425 return resultobj;
36426 fail:
36427 return NULL;
36428 }
36429
36430
36431 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36432 PyObject *resultobj = 0;
36433 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36434 int arg2 ;
36435 void *argp1 = 0 ;
36436 int res1 = 0 ;
36437 int val2 ;
36438 int ecode2 = 0 ;
36439 PyObject * obj0 = 0 ;
36440 PyObject * obj1 = 0 ;
36441 char * kwnames[] = {
36442 (char *) "self",(char *) "id", NULL
36443 };
36444
36445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
36446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36447 if (!SWIG_IsOK(res1)) {
36448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36449 }
36450 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36451 ecode2 = SWIG_AsVal_int(obj1, &val2);
36452 if (!SWIG_IsOK(ecode2)) {
36453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
36454 }
36455 arg2 = static_cast< int >(val2);
36456 {
36457 PyThreadState* __tstate = wxPyBeginAllowThreads();
36458 (arg1)->SetId(arg2);
36459 wxPyEndAllowThreads(__tstate);
36460 if (PyErr_Occurred()) SWIG_fail;
36461 }
36462 resultobj = SWIG_Py_Void();
36463 return resultobj;
36464 fail:
36465 return NULL;
36466 }
36467
36468
36469 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36470 PyObject *resultobj = 0;
36471 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36472 int arg2 ;
36473 void *argp1 = 0 ;
36474 int res1 = 0 ;
36475 int val2 ;
36476 int ecode2 = 0 ;
36477 PyObject * obj0 = 0 ;
36478 PyObject * obj1 = 0 ;
36479 char * kwnames[] = {
36480 (char *) "self",(char *) "id", NULL
36481 };
36482
36483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
36484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36485 if (!SWIG_IsOK(res1)) {
36486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36487 }
36488 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36489 ecode2 = SWIG_AsVal_int(obj1, &val2);
36490 if (!SWIG_IsOK(ecode2)) {
36491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
36492 }
36493 arg2 = static_cast< int >(val2);
36494 {
36495 PyThreadState* __tstate = wxPyBeginAllowThreads();
36496 (arg1)->ClearId(arg2);
36497 wxPyEndAllowThreads(__tstate);
36498 if (PyErr_Occurred()) SWIG_fail;
36499 }
36500 resultobj = SWIG_Py_Void();
36501 return resultobj;
36502 fail:
36503 return NULL;
36504 }
36505
36506
36507 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36508 PyObject *resultobj = 0;
36509 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36510 int arg2 ;
36511 void *argp1 = 0 ;
36512 int res1 = 0 ;
36513 int val2 ;
36514 int ecode2 = 0 ;
36515 PyObject * obj0 = 0 ;
36516 PyObject * obj1 = 0 ;
36517 char * kwnames[] = {
36518 (char *) "self",(char *) "id", NULL
36519 };
36520
36521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
36522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36523 if (!SWIG_IsOK(res1)) {
36524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36525 }
36526 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36527 ecode2 = SWIG_AsVal_int(obj1, &val2);
36528 if (!SWIG_IsOK(ecode2)) {
36529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
36530 }
36531 arg2 = static_cast< int >(val2);
36532 {
36533 PyThreadState* __tstate = wxPyBeginAllowThreads();
36534 (arg1)->RemoveId(arg2);
36535 wxPyEndAllowThreads(__tstate);
36536 if (PyErr_Occurred()) SWIG_fail;
36537 }
36538 resultobj = SWIG_Py_Void();
36539 return resultobj;
36540 fail:
36541 return NULL;
36542 }
36543
36544
36545 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36546 PyObject *resultobj = 0;
36547 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36548 int arg2 ;
36549 int arg3 ;
36550 int arg4 ;
36551 void *argp1 = 0 ;
36552 int res1 = 0 ;
36553 int val2 ;
36554 int ecode2 = 0 ;
36555 int val3 ;
36556 int ecode3 = 0 ;
36557 int val4 ;
36558 int ecode4 = 0 ;
36559 PyObject * obj0 = 0 ;
36560 PyObject * obj1 = 0 ;
36561 PyObject * obj2 = 0 ;
36562 PyObject * obj3 = 0 ;
36563 char * kwnames[] = {
36564 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
36565 };
36566
36567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36569 if (!SWIG_IsOK(res1)) {
36570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36571 }
36572 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36573 ecode2 = SWIG_AsVal_int(obj1, &val2);
36574 if (!SWIG_IsOK(ecode2)) {
36575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
36576 }
36577 arg2 = static_cast< int >(val2);
36578 ecode3 = SWIG_AsVal_int(obj2, &val3);
36579 if (!SWIG_IsOK(ecode3)) {
36580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
36581 }
36582 arg3 = static_cast< int >(val3);
36583 ecode4 = SWIG_AsVal_int(obj3, &val4);
36584 if (!SWIG_IsOK(ecode4)) {
36585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
36586 }
36587 arg4 = static_cast< int >(val4);
36588 {
36589 PyThreadState* __tstate = wxPyBeginAllowThreads();
36590 (arg1)->TranslateId(arg2,arg3,arg4);
36591 wxPyEndAllowThreads(__tstate);
36592 if (PyErr_Occurred()) SWIG_fail;
36593 }
36594 resultobj = SWIG_Py_Void();
36595 return resultobj;
36596 fail:
36597 return NULL;
36598 }
36599
36600
36601 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36602 PyObject *resultobj = 0;
36603 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36604 int arg2 ;
36605 bool arg3 = (bool) true ;
36606 void *argp1 = 0 ;
36607 int res1 = 0 ;
36608 int val2 ;
36609 int ecode2 = 0 ;
36610 bool val3 ;
36611 int ecode3 = 0 ;
36612 PyObject * obj0 = 0 ;
36613 PyObject * obj1 = 0 ;
36614 PyObject * obj2 = 0 ;
36615 char * kwnames[] = {
36616 (char *) "self",(char *) "id",(char *) "greyout", NULL
36617 };
36618
36619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36621 if (!SWIG_IsOK(res1)) {
36622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36623 }
36624 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36625 ecode2 = SWIG_AsVal_int(obj1, &val2);
36626 if (!SWIG_IsOK(ecode2)) {
36627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36628 }
36629 arg2 = static_cast< int >(val2);
36630 if (obj2) {
36631 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36632 if (!SWIG_IsOK(ecode3)) {
36633 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
36634 }
36635 arg3 = static_cast< bool >(val3);
36636 }
36637 {
36638 PyThreadState* __tstate = wxPyBeginAllowThreads();
36639 (arg1)->SetIdGreyedOut(arg2,arg3);
36640 wxPyEndAllowThreads(__tstate);
36641 if (PyErr_Occurred()) SWIG_fail;
36642 }
36643 resultobj = SWIG_Py_Void();
36644 return resultobj;
36645 fail:
36646 return NULL;
36647 }
36648
36649
36650 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36651 PyObject *resultobj = 0;
36652 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36653 int arg2 ;
36654 bool result;
36655 void *argp1 = 0 ;
36656 int res1 = 0 ;
36657 int val2 ;
36658 int ecode2 = 0 ;
36659 PyObject * obj0 = 0 ;
36660 PyObject * obj1 = 0 ;
36661 char * kwnames[] = {
36662 (char *) "self",(char *) "id", NULL
36663 };
36664
36665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
36666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36667 if (!SWIG_IsOK(res1)) {
36668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36669 }
36670 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36671 ecode2 = SWIG_AsVal_int(obj1, &val2);
36672 if (!SWIG_IsOK(ecode2)) {
36673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36674 }
36675 arg2 = static_cast< int >(val2);
36676 {
36677 PyThreadState* __tstate = wxPyBeginAllowThreads();
36678 result = (bool)(arg1)->GetIdGreyedOut(arg2);
36679 wxPyEndAllowThreads(__tstate);
36680 if (PyErr_Occurred()) SWIG_fail;
36681 }
36682 {
36683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36684 }
36685 return resultobj;
36686 fail:
36687 return NULL;
36688 }
36689
36690
36691 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36692 PyObject *resultobj = 0;
36693 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36694 int arg2 ;
36695 int arg3 ;
36696 int arg4 = (int) 1 ;
36697 wxColour const &arg5_defvalue = *wxWHITE ;
36698 wxColour *arg5 = (wxColour *) &arg5_defvalue ;
36699 PyObject *result = 0 ;
36700 void *argp1 = 0 ;
36701 int res1 = 0 ;
36702 int val2 ;
36703 int ecode2 = 0 ;
36704 int val3 ;
36705 int ecode3 = 0 ;
36706 int val4 ;
36707 int ecode4 = 0 ;
36708 wxColour temp5 ;
36709 PyObject * obj0 = 0 ;
36710 PyObject * obj1 = 0 ;
36711 PyObject * obj2 = 0 ;
36712 PyObject * obj3 = 0 ;
36713 PyObject * obj4 = 0 ;
36714 char * kwnames[] = {
36715 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
36716 };
36717
36718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36720 if (!SWIG_IsOK(res1)) {
36721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36722 }
36723 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36724 ecode2 = SWIG_AsVal_int(obj1, &val2);
36725 if (!SWIG_IsOK(ecode2)) {
36726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
36727 }
36728 arg2 = static_cast< int >(val2);
36729 ecode3 = SWIG_AsVal_int(obj2, &val3);
36730 if (!SWIG_IsOK(ecode3)) {
36731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
36732 }
36733 arg3 = static_cast< int >(val3);
36734 if (obj3) {
36735 ecode4 = SWIG_AsVal_int(obj3, &val4);
36736 if (!SWIG_IsOK(ecode4)) {
36737 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
36738 }
36739 arg4 = static_cast< int >(val4);
36740 }
36741 if (obj4) {
36742 {
36743 arg5 = &temp5;
36744 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
36745 }
36746 }
36747 {
36748 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColour const &)*arg5);
36749 if (PyErr_Occurred()) SWIG_fail;
36750 }
36751 resultobj = result;
36752 return resultobj;
36753 fail:
36754 return NULL;
36755 }
36756
36757
36758 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36759 PyObject *resultobj = 0;
36760 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36761 int arg2 ;
36762 int arg3 ;
36763 PyObject *result = 0 ;
36764 void *argp1 = 0 ;
36765 int res1 = 0 ;
36766 int val2 ;
36767 int ecode2 = 0 ;
36768 int val3 ;
36769 int ecode3 = 0 ;
36770 PyObject * obj0 = 0 ;
36771 PyObject * obj1 = 0 ;
36772 PyObject * obj2 = 0 ;
36773 char * kwnames[] = {
36774 (char *) "self",(char *) "x",(char *) "y", NULL
36775 };
36776
36777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36779 if (!SWIG_IsOK(res1)) {
36780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36781 }
36782 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36783 ecode2 = SWIG_AsVal_int(obj1, &val2);
36784 if (!SWIG_IsOK(ecode2)) {
36785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
36786 }
36787 arg2 = static_cast< int >(val2);
36788 ecode3 = SWIG_AsVal_int(obj2, &val3);
36789 if (!SWIG_IsOK(ecode3)) {
36790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
36791 }
36792 arg3 = static_cast< int >(val3);
36793 {
36794 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
36795 if (PyErr_Occurred()) SWIG_fail;
36796 }
36797 resultobj = result;
36798 return resultobj;
36799 fail:
36800 return NULL;
36801 }
36802
36803
36804 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36805 PyObject *resultobj = 0;
36806 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36807 int arg2 ;
36808 wxDC *arg3 = (wxDC *) 0 ;
36809 void *argp1 = 0 ;
36810 int res1 = 0 ;
36811 int val2 ;
36812 int ecode2 = 0 ;
36813 void *argp3 = 0 ;
36814 int res3 = 0 ;
36815 PyObject * obj0 = 0 ;
36816 PyObject * obj1 = 0 ;
36817 PyObject * obj2 = 0 ;
36818 char * kwnames[] = {
36819 (char *) "self",(char *) "id",(char *) "dc", NULL
36820 };
36821
36822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36824 if (!SWIG_IsOK(res1)) {
36825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36826 }
36827 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36828 ecode2 = SWIG_AsVal_int(obj1, &val2);
36829 if (!SWIG_IsOK(ecode2)) {
36830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
36831 }
36832 arg2 = static_cast< int >(val2);
36833 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
36834 if (!SWIG_IsOK(res3)) {
36835 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
36836 }
36837 arg3 = reinterpret_cast< wxDC * >(argp3);
36838 {
36839 PyThreadState* __tstate = wxPyBeginAllowThreads();
36840 (arg1)->DrawIdToDC(arg2,arg3);
36841 wxPyEndAllowThreads(__tstate);
36842 if (PyErr_Occurred()) SWIG_fail;
36843 }
36844 resultobj = SWIG_Py_Void();
36845 return resultobj;
36846 fail:
36847 return NULL;
36848 }
36849
36850
36851 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36852 PyObject *resultobj = 0;
36853 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36854 int arg2 ;
36855 wxRect *arg3 = 0 ;
36856 void *argp1 = 0 ;
36857 int res1 = 0 ;
36858 int val2 ;
36859 int ecode2 = 0 ;
36860 wxRect temp3 ;
36861 PyObject * obj0 = 0 ;
36862 PyObject * obj1 = 0 ;
36863 PyObject * obj2 = 0 ;
36864 char * kwnames[] = {
36865 (char *) "self",(char *) "id",(char *) "rect", NULL
36866 };
36867
36868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36870 if (!SWIG_IsOK(res1)) {
36871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36872 }
36873 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36874 ecode2 = SWIG_AsVal_int(obj1, &val2);
36875 if (!SWIG_IsOK(ecode2)) {
36876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
36877 }
36878 arg2 = static_cast< int >(val2);
36879 {
36880 arg3 = &temp3;
36881 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36882 }
36883 {
36884 PyThreadState* __tstate = wxPyBeginAllowThreads();
36885 (arg1)->SetIdBounds(arg2,*arg3);
36886 wxPyEndAllowThreads(__tstate);
36887 if (PyErr_Occurred()) SWIG_fail;
36888 }
36889 resultobj = SWIG_Py_Void();
36890 return resultobj;
36891 fail:
36892 return NULL;
36893 }
36894
36895
36896 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36897 PyObject *resultobj = 0;
36898 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36899 int arg2 ;
36900 wxRect result;
36901 void *argp1 = 0 ;
36902 int res1 = 0 ;
36903 int val2 ;
36904 int ecode2 = 0 ;
36905 PyObject * obj0 = 0 ;
36906 PyObject * obj1 = 0 ;
36907 char * kwnames[] = {
36908 (char *) "self",(char *) "id", NULL
36909 };
36910
36911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
36912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36913 if (!SWIG_IsOK(res1)) {
36914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36915 }
36916 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36917 ecode2 = SWIG_AsVal_int(obj1, &val2);
36918 if (!SWIG_IsOK(ecode2)) {
36919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36920 }
36921 arg2 = static_cast< int >(val2);
36922 {
36923 PyThreadState* __tstate = wxPyBeginAllowThreads();
36924 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36925 wxPyEndAllowThreads(__tstate);
36926 if (PyErr_Occurred()) SWIG_fail;
36927 }
36928 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36929 return resultobj;
36930 fail:
36931 return NULL;
36932 }
36933
36934
36935 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36936 PyObject *resultobj = 0;
36937 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36938 wxDC *arg2 = (wxDC *) 0 ;
36939 wxRect *arg3 = 0 ;
36940 void *argp1 = 0 ;
36941 int res1 = 0 ;
36942 void *argp2 = 0 ;
36943 int res2 = 0 ;
36944 wxRect temp3 ;
36945 PyObject * obj0 = 0 ;
36946 PyObject * obj1 = 0 ;
36947 PyObject * obj2 = 0 ;
36948 char * kwnames[] = {
36949 (char *) "self",(char *) "dc",(char *) "rect", NULL
36950 };
36951
36952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36954 if (!SWIG_IsOK(res1)) {
36955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36956 }
36957 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36958 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36959 if (!SWIG_IsOK(res2)) {
36960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36961 }
36962 arg2 = reinterpret_cast< wxDC * >(argp2);
36963 {
36964 arg3 = &temp3;
36965 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36966 }
36967 {
36968 PyThreadState* __tstate = wxPyBeginAllowThreads();
36969 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36970 wxPyEndAllowThreads(__tstate);
36971 if (PyErr_Occurred()) SWIG_fail;
36972 }
36973 resultobj = SWIG_Py_Void();
36974 return resultobj;
36975 fail:
36976 return NULL;
36977 }
36978
36979
36980 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36981 PyObject *resultobj = 0;
36982 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36983 wxDC *arg2 = (wxDC *) 0 ;
36984 wxRegion *arg3 = 0 ;
36985 void *argp1 = 0 ;
36986 int res1 = 0 ;
36987 void *argp2 = 0 ;
36988 int res2 = 0 ;
36989 void *argp3 = 0 ;
36990 int res3 = 0 ;
36991 PyObject * obj0 = 0 ;
36992 PyObject * obj1 = 0 ;
36993 PyObject * obj2 = 0 ;
36994 char * kwnames[] = {
36995 (char *) "self",(char *) "dc",(char *) "region", NULL
36996 };
36997
36998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37000 if (!SWIG_IsOK(res1)) {
37001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37002 }
37003 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37004 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
37005 if (!SWIG_IsOK(res2)) {
37006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
37007 }
37008 arg2 = reinterpret_cast< wxDC * >(argp2);
37009 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
37010 if (!SWIG_IsOK(res3)) {
37011 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
37012 }
37013 if (!argp3) {
37014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
37015 }
37016 arg3 = reinterpret_cast< wxRegion * >(argp3);
37017 {
37018 PyThreadState* __tstate = wxPyBeginAllowThreads();
37019 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
37020 wxPyEndAllowThreads(__tstate);
37021 if (PyErr_Occurred()) SWIG_fail;
37022 }
37023 resultobj = SWIG_Py_Void();
37024 return resultobj;
37025 fail:
37026 return NULL;
37027 }
37028
37029
37030 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37031 PyObject *resultobj = 0;
37032 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37033 wxDC *arg2 = (wxDC *) 0 ;
37034 void *argp1 = 0 ;
37035 int res1 = 0 ;
37036 void *argp2 = 0 ;
37037 int res2 = 0 ;
37038 PyObject * obj0 = 0 ;
37039 PyObject * obj1 = 0 ;
37040 char * kwnames[] = {
37041 (char *) "self",(char *) "dc", NULL
37042 };
37043
37044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
37045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37046 if (!SWIG_IsOK(res1)) {
37047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37048 }
37049 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37050 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
37051 if (!SWIG_IsOK(res2)) {
37052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
37053 }
37054 arg2 = reinterpret_cast< wxDC * >(argp2);
37055 {
37056 PyThreadState* __tstate = wxPyBeginAllowThreads();
37057 (arg1)->DrawToDC(arg2);
37058 wxPyEndAllowThreads(__tstate);
37059 if (PyErr_Occurred()) SWIG_fail;
37060 }
37061 resultobj = SWIG_Py_Void();
37062 return resultobj;
37063 fail:
37064 return NULL;
37065 }
37066
37067
37068 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37069 PyObject *resultobj = 0;
37070 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37071 int arg2 ;
37072 int arg3 ;
37073 wxColour *arg4 = 0 ;
37074 int arg5 = (int) wxFLOOD_SURFACE ;
37075 void *argp1 = 0 ;
37076 int res1 = 0 ;
37077 int val2 ;
37078 int ecode2 = 0 ;
37079 int val3 ;
37080 int ecode3 = 0 ;
37081 wxColour temp4 ;
37082 int val5 ;
37083 int ecode5 = 0 ;
37084 PyObject * obj0 = 0 ;
37085 PyObject * obj1 = 0 ;
37086 PyObject * obj2 = 0 ;
37087 PyObject * obj3 = 0 ;
37088 PyObject * obj4 = 0 ;
37089 char * kwnames[] = {
37090 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
37091 };
37092
37093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37095 if (!SWIG_IsOK(res1)) {
37096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37097 }
37098 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37099 ecode2 = SWIG_AsVal_int(obj1, &val2);
37100 if (!SWIG_IsOK(ecode2)) {
37101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
37102 }
37103 arg2 = static_cast< int >(val2);
37104 ecode3 = SWIG_AsVal_int(obj2, &val3);
37105 if (!SWIG_IsOK(ecode3)) {
37106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
37107 }
37108 arg3 = static_cast< int >(val3);
37109 {
37110 arg4 = &temp4;
37111 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
37112 }
37113 if (obj4) {
37114 ecode5 = SWIG_AsVal_int(obj4, &val5);
37115 if (!SWIG_IsOK(ecode5)) {
37116 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
37117 }
37118 arg5 = static_cast< int >(val5);
37119 }
37120 {
37121 PyThreadState* __tstate = wxPyBeginAllowThreads();
37122 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
37123 wxPyEndAllowThreads(__tstate);
37124 if (PyErr_Occurred()) SWIG_fail;
37125 }
37126 resultobj = SWIG_Py_Void();
37127 return resultobj;
37128 fail:
37129 return NULL;
37130 }
37131
37132
37133 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37134 PyObject *resultobj = 0;
37135 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37136 wxPoint *arg2 = 0 ;
37137 wxColour *arg3 = 0 ;
37138 int arg4 = (int) wxFLOOD_SURFACE ;
37139 void *argp1 = 0 ;
37140 int res1 = 0 ;
37141 wxPoint temp2 ;
37142 wxColour temp3 ;
37143 int val4 ;
37144 int ecode4 = 0 ;
37145 PyObject * obj0 = 0 ;
37146 PyObject * obj1 = 0 ;
37147 PyObject * obj2 = 0 ;
37148 PyObject * obj3 = 0 ;
37149 char * kwnames[] = {
37150 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
37151 };
37152
37153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37155 if (!SWIG_IsOK(res1)) {
37156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37157 }
37158 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37159 {
37160 arg2 = &temp2;
37161 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37162 }
37163 {
37164 arg3 = &temp3;
37165 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
37166 }
37167 if (obj3) {
37168 ecode4 = SWIG_AsVal_int(obj3, &val4);
37169 if (!SWIG_IsOK(ecode4)) {
37170 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
37171 }
37172 arg4 = static_cast< int >(val4);
37173 }
37174 {
37175 PyThreadState* __tstate = wxPyBeginAllowThreads();
37176 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
37177 wxPyEndAllowThreads(__tstate);
37178 if (PyErr_Occurred()) SWIG_fail;
37179 }
37180 resultobj = SWIG_Py_Void();
37181 return resultobj;
37182 fail:
37183 return NULL;
37184 }
37185
37186
37187 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37188 PyObject *resultobj = 0;
37189 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37190 int arg2 ;
37191 int arg3 ;
37192 int arg4 ;
37193 int arg5 ;
37194 void *argp1 = 0 ;
37195 int res1 = 0 ;
37196 int val2 ;
37197 int ecode2 = 0 ;
37198 int val3 ;
37199 int ecode3 = 0 ;
37200 int val4 ;
37201 int ecode4 = 0 ;
37202 int val5 ;
37203 int ecode5 = 0 ;
37204 PyObject * obj0 = 0 ;
37205 PyObject * obj1 = 0 ;
37206 PyObject * obj2 = 0 ;
37207 PyObject * obj3 = 0 ;
37208 PyObject * obj4 = 0 ;
37209 char * kwnames[] = {
37210 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
37211 };
37212
37213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37215 if (!SWIG_IsOK(res1)) {
37216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37217 }
37218 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37219 ecode2 = SWIG_AsVal_int(obj1, &val2);
37220 if (!SWIG_IsOK(ecode2)) {
37221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
37222 }
37223 arg2 = static_cast< int >(val2);
37224 ecode3 = SWIG_AsVal_int(obj2, &val3);
37225 if (!SWIG_IsOK(ecode3)) {
37226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
37227 }
37228 arg3 = static_cast< int >(val3);
37229 ecode4 = SWIG_AsVal_int(obj3, &val4);
37230 if (!SWIG_IsOK(ecode4)) {
37231 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
37232 }
37233 arg4 = static_cast< int >(val4);
37234 ecode5 = SWIG_AsVal_int(obj4, &val5);
37235 if (!SWIG_IsOK(ecode5)) {
37236 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
37237 }
37238 arg5 = static_cast< int >(val5);
37239 {
37240 PyThreadState* __tstate = wxPyBeginAllowThreads();
37241 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
37242 wxPyEndAllowThreads(__tstate);
37243 if (PyErr_Occurred()) SWIG_fail;
37244 }
37245 resultobj = SWIG_Py_Void();
37246 return resultobj;
37247 fail:
37248 return NULL;
37249 }
37250
37251
37252 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37253 PyObject *resultobj = 0;
37254 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37255 wxPoint *arg2 = 0 ;
37256 wxPoint *arg3 = 0 ;
37257 void *argp1 = 0 ;
37258 int res1 = 0 ;
37259 wxPoint temp2 ;
37260 wxPoint temp3 ;
37261 PyObject * obj0 = 0 ;
37262 PyObject * obj1 = 0 ;
37263 PyObject * obj2 = 0 ;
37264 char * kwnames[] = {
37265 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
37266 };
37267
37268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37270 if (!SWIG_IsOK(res1)) {
37271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37272 }
37273 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37274 {
37275 arg2 = &temp2;
37276 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37277 }
37278 {
37279 arg3 = &temp3;
37280 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37281 }
37282 {
37283 PyThreadState* __tstate = wxPyBeginAllowThreads();
37284 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
37285 wxPyEndAllowThreads(__tstate);
37286 if (PyErr_Occurred()) SWIG_fail;
37287 }
37288 resultobj = SWIG_Py_Void();
37289 return resultobj;
37290 fail:
37291 return NULL;
37292 }
37293
37294
37295 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37296 PyObject *resultobj = 0;
37297 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37298 int arg2 ;
37299 int arg3 ;
37300 void *argp1 = 0 ;
37301 int res1 = 0 ;
37302 int val2 ;
37303 int ecode2 = 0 ;
37304 int val3 ;
37305 int ecode3 = 0 ;
37306 PyObject * obj0 = 0 ;
37307 PyObject * obj1 = 0 ;
37308 PyObject * obj2 = 0 ;
37309 char * kwnames[] = {
37310 (char *) "self",(char *) "x",(char *) "y", NULL
37311 };
37312
37313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37315 if (!SWIG_IsOK(res1)) {
37316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37317 }
37318 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37319 ecode2 = SWIG_AsVal_int(obj1, &val2);
37320 if (!SWIG_IsOK(ecode2)) {
37321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
37322 }
37323 arg2 = static_cast< int >(val2);
37324 ecode3 = SWIG_AsVal_int(obj2, &val3);
37325 if (!SWIG_IsOK(ecode3)) {
37326 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
37327 }
37328 arg3 = static_cast< int >(val3);
37329 {
37330 PyThreadState* __tstate = wxPyBeginAllowThreads();
37331 (arg1)->CrossHair(arg2,arg3);
37332 wxPyEndAllowThreads(__tstate);
37333 if (PyErr_Occurred()) SWIG_fail;
37334 }
37335 resultobj = SWIG_Py_Void();
37336 return resultobj;
37337 fail:
37338 return NULL;
37339 }
37340
37341
37342 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37343 PyObject *resultobj = 0;
37344 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37345 wxPoint *arg2 = 0 ;
37346 void *argp1 = 0 ;
37347 int res1 = 0 ;
37348 wxPoint temp2 ;
37349 PyObject * obj0 = 0 ;
37350 PyObject * obj1 = 0 ;
37351 char * kwnames[] = {
37352 (char *) "self",(char *) "pt", NULL
37353 };
37354
37355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37357 if (!SWIG_IsOK(res1)) {
37358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37359 }
37360 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37361 {
37362 arg2 = &temp2;
37363 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37364 }
37365 {
37366 PyThreadState* __tstate = wxPyBeginAllowThreads();
37367 (arg1)->CrossHair((wxPoint const &)*arg2);
37368 wxPyEndAllowThreads(__tstate);
37369 if (PyErr_Occurred()) SWIG_fail;
37370 }
37371 resultobj = SWIG_Py_Void();
37372 return resultobj;
37373 fail:
37374 return NULL;
37375 }
37376
37377
37378 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37379 PyObject *resultobj = 0;
37380 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37381 int arg2 ;
37382 int arg3 ;
37383 int arg4 ;
37384 int arg5 ;
37385 int arg6 ;
37386 int arg7 ;
37387 void *argp1 = 0 ;
37388 int res1 = 0 ;
37389 int val2 ;
37390 int ecode2 = 0 ;
37391 int val3 ;
37392 int ecode3 = 0 ;
37393 int val4 ;
37394 int ecode4 = 0 ;
37395 int val5 ;
37396 int ecode5 = 0 ;
37397 int val6 ;
37398 int ecode6 = 0 ;
37399 int val7 ;
37400 int ecode7 = 0 ;
37401 PyObject * obj0 = 0 ;
37402 PyObject * obj1 = 0 ;
37403 PyObject * obj2 = 0 ;
37404 PyObject * obj3 = 0 ;
37405 PyObject * obj4 = 0 ;
37406 PyObject * obj5 = 0 ;
37407 PyObject * obj6 = 0 ;
37408 char * kwnames[] = {
37409 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
37410 };
37411
37412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37414 if (!SWIG_IsOK(res1)) {
37415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37416 }
37417 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37418 ecode2 = SWIG_AsVal_int(obj1, &val2);
37419 if (!SWIG_IsOK(ecode2)) {
37420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
37421 }
37422 arg2 = static_cast< int >(val2);
37423 ecode3 = SWIG_AsVal_int(obj2, &val3);
37424 if (!SWIG_IsOK(ecode3)) {
37425 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
37426 }
37427 arg3 = static_cast< int >(val3);
37428 ecode4 = SWIG_AsVal_int(obj3, &val4);
37429 if (!SWIG_IsOK(ecode4)) {
37430 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
37431 }
37432 arg4 = static_cast< int >(val4);
37433 ecode5 = SWIG_AsVal_int(obj4, &val5);
37434 if (!SWIG_IsOK(ecode5)) {
37435 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
37436 }
37437 arg5 = static_cast< int >(val5);
37438 ecode6 = SWIG_AsVal_int(obj5, &val6);
37439 if (!SWIG_IsOK(ecode6)) {
37440 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
37441 }
37442 arg6 = static_cast< int >(val6);
37443 ecode7 = SWIG_AsVal_int(obj6, &val7);
37444 if (!SWIG_IsOK(ecode7)) {
37445 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
37446 }
37447 arg7 = static_cast< int >(val7);
37448 {
37449 PyThreadState* __tstate = wxPyBeginAllowThreads();
37450 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
37451 wxPyEndAllowThreads(__tstate);
37452 if (PyErr_Occurred()) SWIG_fail;
37453 }
37454 resultobj = SWIG_Py_Void();
37455 return resultobj;
37456 fail:
37457 return NULL;
37458 }
37459
37460
37461 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37462 PyObject *resultobj = 0;
37463 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37464 wxPoint *arg2 = 0 ;
37465 wxPoint *arg3 = 0 ;
37466 wxPoint *arg4 = 0 ;
37467 void *argp1 = 0 ;
37468 int res1 = 0 ;
37469 wxPoint temp2 ;
37470 wxPoint temp3 ;
37471 wxPoint temp4 ;
37472 PyObject * obj0 = 0 ;
37473 PyObject * obj1 = 0 ;
37474 PyObject * obj2 = 0 ;
37475 PyObject * obj3 = 0 ;
37476 char * kwnames[] = {
37477 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
37478 };
37479
37480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37482 if (!SWIG_IsOK(res1)) {
37483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37484 }
37485 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37486 {
37487 arg2 = &temp2;
37488 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37489 }
37490 {
37491 arg3 = &temp3;
37492 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37493 }
37494 {
37495 arg4 = &temp4;
37496 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37497 }
37498 {
37499 PyThreadState* __tstate = wxPyBeginAllowThreads();
37500 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
37501 wxPyEndAllowThreads(__tstate);
37502 if (PyErr_Occurred()) SWIG_fail;
37503 }
37504 resultobj = SWIG_Py_Void();
37505 return resultobj;
37506 fail:
37507 return NULL;
37508 }
37509
37510
37511 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37512 PyObject *resultobj = 0;
37513 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37514 int arg2 ;
37515 int arg3 ;
37516 int arg4 ;
37517 int arg5 ;
37518 void *argp1 = 0 ;
37519 int res1 = 0 ;
37520 int val2 ;
37521 int ecode2 = 0 ;
37522 int val3 ;
37523 int ecode3 = 0 ;
37524 int val4 ;
37525 int ecode4 = 0 ;
37526 int val5 ;
37527 int ecode5 = 0 ;
37528 PyObject * obj0 = 0 ;
37529 PyObject * obj1 = 0 ;
37530 PyObject * obj2 = 0 ;
37531 PyObject * obj3 = 0 ;
37532 PyObject * obj4 = 0 ;
37533 char * kwnames[] = {
37534 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37535 };
37536
37537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37539 if (!SWIG_IsOK(res1)) {
37540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37541 }
37542 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37543 ecode2 = SWIG_AsVal_int(obj1, &val2);
37544 if (!SWIG_IsOK(ecode2)) {
37545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
37546 }
37547 arg2 = static_cast< int >(val2);
37548 ecode3 = SWIG_AsVal_int(obj2, &val3);
37549 if (!SWIG_IsOK(ecode3)) {
37550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
37551 }
37552 arg3 = static_cast< int >(val3);
37553 ecode4 = SWIG_AsVal_int(obj3, &val4);
37554 if (!SWIG_IsOK(ecode4)) {
37555 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
37556 }
37557 arg4 = static_cast< int >(val4);
37558 ecode5 = SWIG_AsVal_int(obj4, &val5);
37559 if (!SWIG_IsOK(ecode5)) {
37560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
37561 }
37562 arg5 = static_cast< int >(val5);
37563 {
37564 PyThreadState* __tstate = wxPyBeginAllowThreads();
37565 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
37566 wxPyEndAllowThreads(__tstate);
37567 if (PyErr_Occurred()) SWIG_fail;
37568 }
37569 resultobj = SWIG_Py_Void();
37570 return resultobj;
37571 fail:
37572 return NULL;
37573 }
37574
37575
37576 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37577 PyObject *resultobj = 0;
37578 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37579 wxRect *arg2 = 0 ;
37580 void *argp1 = 0 ;
37581 int res1 = 0 ;
37582 wxRect temp2 ;
37583 PyObject * obj0 = 0 ;
37584 PyObject * obj1 = 0 ;
37585 char * kwnames[] = {
37586 (char *) "self",(char *) "rect", NULL
37587 };
37588
37589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
37590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37591 if (!SWIG_IsOK(res1)) {
37592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37593 }
37594 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37595 {
37596 arg2 = &temp2;
37597 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37598 }
37599 {
37600 PyThreadState* __tstate = wxPyBeginAllowThreads();
37601 (arg1)->DrawCheckMark((wxRect const &)*arg2);
37602 wxPyEndAllowThreads(__tstate);
37603 if (PyErr_Occurred()) SWIG_fail;
37604 }
37605 resultobj = SWIG_Py_Void();
37606 return resultobj;
37607 fail:
37608 return NULL;
37609 }
37610
37611
37612 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37613 PyObject *resultobj = 0;
37614 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37615 int arg2 ;
37616 int arg3 ;
37617 int arg4 ;
37618 int arg5 ;
37619 double arg6 ;
37620 double arg7 ;
37621 void *argp1 = 0 ;
37622 int res1 = 0 ;
37623 int val2 ;
37624 int ecode2 = 0 ;
37625 int val3 ;
37626 int ecode3 = 0 ;
37627 int val4 ;
37628 int ecode4 = 0 ;
37629 int val5 ;
37630 int ecode5 = 0 ;
37631 double val6 ;
37632 int ecode6 = 0 ;
37633 double val7 ;
37634 int ecode7 = 0 ;
37635 PyObject * obj0 = 0 ;
37636 PyObject * obj1 = 0 ;
37637 PyObject * obj2 = 0 ;
37638 PyObject * obj3 = 0 ;
37639 PyObject * obj4 = 0 ;
37640 PyObject * obj5 = 0 ;
37641 PyObject * obj6 = 0 ;
37642 char * kwnames[] = {
37643 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
37644 };
37645
37646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37648 if (!SWIG_IsOK(res1)) {
37649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37650 }
37651 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37652 ecode2 = SWIG_AsVal_int(obj1, &val2);
37653 if (!SWIG_IsOK(ecode2)) {
37654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
37655 }
37656 arg2 = static_cast< int >(val2);
37657 ecode3 = SWIG_AsVal_int(obj2, &val3);
37658 if (!SWIG_IsOK(ecode3)) {
37659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
37660 }
37661 arg3 = static_cast< int >(val3);
37662 ecode4 = SWIG_AsVal_int(obj3, &val4);
37663 if (!SWIG_IsOK(ecode4)) {
37664 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
37665 }
37666 arg4 = static_cast< int >(val4);
37667 ecode5 = SWIG_AsVal_int(obj4, &val5);
37668 if (!SWIG_IsOK(ecode5)) {
37669 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
37670 }
37671 arg5 = static_cast< int >(val5);
37672 ecode6 = SWIG_AsVal_double(obj5, &val6);
37673 if (!SWIG_IsOK(ecode6)) {
37674 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
37675 }
37676 arg6 = static_cast< double >(val6);
37677 ecode7 = SWIG_AsVal_double(obj6, &val7);
37678 if (!SWIG_IsOK(ecode7)) {
37679 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
37680 }
37681 arg7 = static_cast< double >(val7);
37682 {
37683 PyThreadState* __tstate = wxPyBeginAllowThreads();
37684 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
37685 wxPyEndAllowThreads(__tstate);
37686 if (PyErr_Occurred()) SWIG_fail;
37687 }
37688 resultobj = SWIG_Py_Void();
37689 return resultobj;
37690 fail:
37691 return NULL;
37692 }
37693
37694
37695 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37696 PyObject *resultobj = 0;
37697 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37698 wxPoint *arg2 = 0 ;
37699 wxSize *arg3 = 0 ;
37700 double arg4 ;
37701 double arg5 ;
37702 void *argp1 = 0 ;
37703 int res1 = 0 ;
37704 wxPoint temp2 ;
37705 wxSize temp3 ;
37706 double val4 ;
37707 int ecode4 = 0 ;
37708 double val5 ;
37709 int ecode5 = 0 ;
37710 PyObject * obj0 = 0 ;
37711 PyObject * obj1 = 0 ;
37712 PyObject * obj2 = 0 ;
37713 PyObject * obj3 = 0 ;
37714 PyObject * obj4 = 0 ;
37715 char * kwnames[] = {
37716 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
37717 };
37718
37719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37721 if (!SWIG_IsOK(res1)) {
37722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37723 }
37724 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37725 {
37726 arg2 = &temp2;
37727 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37728 }
37729 {
37730 arg3 = &temp3;
37731 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37732 }
37733 ecode4 = SWIG_AsVal_double(obj3, &val4);
37734 if (!SWIG_IsOK(ecode4)) {
37735 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
37736 }
37737 arg4 = static_cast< double >(val4);
37738 ecode5 = SWIG_AsVal_double(obj4, &val5);
37739 if (!SWIG_IsOK(ecode5)) {
37740 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
37741 }
37742 arg5 = static_cast< double >(val5);
37743 {
37744 PyThreadState* __tstate = wxPyBeginAllowThreads();
37745 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
37746 wxPyEndAllowThreads(__tstate);
37747 if (PyErr_Occurred()) SWIG_fail;
37748 }
37749 resultobj = SWIG_Py_Void();
37750 return resultobj;
37751 fail:
37752 return NULL;
37753 }
37754
37755
37756 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37757 PyObject *resultobj = 0;
37758 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37759 int arg2 ;
37760 int arg3 ;
37761 void *argp1 = 0 ;
37762 int res1 = 0 ;
37763 int val2 ;
37764 int ecode2 = 0 ;
37765 int val3 ;
37766 int ecode3 = 0 ;
37767 PyObject * obj0 = 0 ;
37768 PyObject * obj1 = 0 ;
37769 PyObject * obj2 = 0 ;
37770 char * kwnames[] = {
37771 (char *) "self",(char *) "x",(char *) "y", NULL
37772 };
37773
37774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37776 if (!SWIG_IsOK(res1)) {
37777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37778 }
37779 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37780 ecode2 = SWIG_AsVal_int(obj1, &val2);
37781 if (!SWIG_IsOK(ecode2)) {
37782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
37783 }
37784 arg2 = static_cast< int >(val2);
37785 ecode3 = SWIG_AsVal_int(obj2, &val3);
37786 if (!SWIG_IsOK(ecode3)) {
37787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
37788 }
37789 arg3 = static_cast< int >(val3);
37790 {
37791 PyThreadState* __tstate = wxPyBeginAllowThreads();
37792 (arg1)->DrawPoint(arg2,arg3);
37793 wxPyEndAllowThreads(__tstate);
37794 if (PyErr_Occurred()) SWIG_fail;
37795 }
37796 resultobj = SWIG_Py_Void();
37797 return resultobj;
37798 fail:
37799 return NULL;
37800 }
37801
37802
37803 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37804 PyObject *resultobj = 0;
37805 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37806 wxPoint *arg2 = 0 ;
37807 void *argp1 = 0 ;
37808 int res1 = 0 ;
37809 wxPoint temp2 ;
37810 PyObject * obj0 = 0 ;
37811 PyObject * obj1 = 0 ;
37812 char * kwnames[] = {
37813 (char *) "self",(char *) "pt", NULL
37814 };
37815
37816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37818 if (!SWIG_IsOK(res1)) {
37819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37820 }
37821 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37822 {
37823 arg2 = &temp2;
37824 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37825 }
37826 {
37827 PyThreadState* __tstate = wxPyBeginAllowThreads();
37828 (arg1)->DrawPoint((wxPoint const &)*arg2);
37829 wxPyEndAllowThreads(__tstate);
37830 if (PyErr_Occurred()) SWIG_fail;
37831 }
37832 resultobj = SWIG_Py_Void();
37833 return resultobj;
37834 fail:
37835 return NULL;
37836 }
37837
37838
37839 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37840 PyObject *resultobj = 0;
37841 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37842 int arg2 ;
37843 int arg3 ;
37844 int arg4 ;
37845 int arg5 ;
37846 void *argp1 = 0 ;
37847 int res1 = 0 ;
37848 int val2 ;
37849 int ecode2 = 0 ;
37850 int val3 ;
37851 int ecode3 = 0 ;
37852 int val4 ;
37853 int ecode4 = 0 ;
37854 int val5 ;
37855 int ecode5 = 0 ;
37856 PyObject * obj0 = 0 ;
37857 PyObject * obj1 = 0 ;
37858 PyObject * obj2 = 0 ;
37859 PyObject * obj3 = 0 ;
37860 PyObject * obj4 = 0 ;
37861 char * kwnames[] = {
37862 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37863 };
37864
37865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37867 if (!SWIG_IsOK(res1)) {
37868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37869 }
37870 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37871 ecode2 = SWIG_AsVal_int(obj1, &val2);
37872 if (!SWIG_IsOK(ecode2)) {
37873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
37874 }
37875 arg2 = static_cast< int >(val2);
37876 ecode3 = SWIG_AsVal_int(obj2, &val3);
37877 if (!SWIG_IsOK(ecode3)) {
37878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
37879 }
37880 arg3 = static_cast< int >(val3);
37881 ecode4 = SWIG_AsVal_int(obj3, &val4);
37882 if (!SWIG_IsOK(ecode4)) {
37883 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
37884 }
37885 arg4 = static_cast< int >(val4);
37886 ecode5 = SWIG_AsVal_int(obj4, &val5);
37887 if (!SWIG_IsOK(ecode5)) {
37888 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
37889 }
37890 arg5 = static_cast< int >(val5);
37891 {
37892 PyThreadState* __tstate = wxPyBeginAllowThreads();
37893 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
37894 wxPyEndAllowThreads(__tstate);
37895 if (PyErr_Occurred()) SWIG_fail;
37896 }
37897 resultobj = SWIG_Py_Void();
37898 return resultobj;
37899 fail:
37900 return NULL;
37901 }
37902
37903
37904 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37905 PyObject *resultobj = 0;
37906 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37907 wxRect *arg2 = 0 ;
37908 void *argp1 = 0 ;
37909 int res1 = 0 ;
37910 wxRect temp2 ;
37911 PyObject * obj0 = 0 ;
37912 PyObject * obj1 = 0 ;
37913 char * kwnames[] = {
37914 (char *) "self",(char *) "rect", NULL
37915 };
37916
37917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37919 if (!SWIG_IsOK(res1)) {
37920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37921 }
37922 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37923 {
37924 arg2 = &temp2;
37925 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37926 }
37927 {
37928 PyThreadState* __tstate = wxPyBeginAllowThreads();
37929 (arg1)->DrawRectangle((wxRect const &)*arg2);
37930 wxPyEndAllowThreads(__tstate);
37931 if (PyErr_Occurred()) SWIG_fail;
37932 }
37933 resultobj = SWIG_Py_Void();
37934 return resultobj;
37935 fail:
37936 return NULL;
37937 }
37938
37939
37940 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37941 PyObject *resultobj = 0;
37942 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37943 wxPoint *arg2 = 0 ;
37944 wxSize *arg3 = 0 ;
37945 void *argp1 = 0 ;
37946 int res1 = 0 ;
37947 wxPoint temp2 ;
37948 wxSize temp3 ;
37949 PyObject * obj0 = 0 ;
37950 PyObject * obj1 = 0 ;
37951 PyObject * obj2 = 0 ;
37952 char * kwnames[] = {
37953 (char *) "self",(char *) "pt",(char *) "sz", NULL
37954 };
37955
37956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37958 if (!SWIG_IsOK(res1)) {
37959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37960 }
37961 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37962 {
37963 arg2 = &temp2;
37964 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37965 }
37966 {
37967 arg3 = &temp3;
37968 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37969 }
37970 {
37971 PyThreadState* __tstate = wxPyBeginAllowThreads();
37972 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37973 wxPyEndAllowThreads(__tstate);
37974 if (PyErr_Occurred()) SWIG_fail;
37975 }
37976 resultobj = SWIG_Py_Void();
37977 return resultobj;
37978 fail:
37979 return NULL;
37980 }
37981
37982
37983 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37984 PyObject *resultobj = 0;
37985 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37986 int arg2 ;
37987 int arg3 ;
37988 int arg4 ;
37989 int arg5 ;
37990 double arg6 ;
37991 void *argp1 = 0 ;
37992 int res1 = 0 ;
37993 int val2 ;
37994 int ecode2 = 0 ;
37995 int val3 ;
37996 int ecode3 = 0 ;
37997 int val4 ;
37998 int ecode4 = 0 ;
37999 int val5 ;
38000 int ecode5 = 0 ;
38001 double val6 ;
38002 int ecode6 = 0 ;
38003 PyObject * obj0 = 0 ;
38004 PyObject * obj1 = 0 ;
38005 PyObject * obj2 = 0 ;
38006 PyObject * obj3 = 0 ;
38007 PyObject * obj4 = 0 ;
38008 PyObject * obj5 = 0 ;
38009 char * kwnames[] = {
38010 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
38011 };
38012
38013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38015 if (!SWIG_IsOK(res1)) {
38016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38017 }
38018 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38019 ecode2 = SWIG_AsVal_int(obj1, &val2);
38020 if (!SWIG_IsOK(ecode2)) {
38021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
38022 }
38023 arg2 = static_cast< int >(val2);
38024 ecode3 = SWIG_AsVal_int(obj2, &val3);
38025 if (!SWIG_IsOK(ecode3)) {
38026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
38027 }
38028 arg3 = static_cast< int >(val3);
38029 ecode4 = SWIG_AsVal_int(obj3, &val4);
38030 if (!SWIG_IsOK(ecode4)) {
38031 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
38032 }
38033 arg4 = static_cast< int >(val4);
38034 ecode5 = SWIG_AsVal_int(obj4, &val5);
38035 if (!SWIG_IsOK(ecode5)) {
38036 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
38037 }
38038 arg5 = static_cast< int >(val5);
38039 ecode6 = SWIG_AsVal_double(obj5, &val6);
38040 if (!SWIG_IsOK(ecode6)) {
38041 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
38042 }
38043 arg6 = static_cast< double >(val6);
38044 {
38045 PyThreadState* __tstate = wxPyBeginAllowThreads();
38046 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
38047 wxPyEndAllowThreads(__tstate);
38048 if (PyErr_Occurred()) SWIG_fail;
38049 }
38050 resultobj = SWIG_Py_Void();
38051 return resultobj;
38052 fail:
38053 return NULL;
38054 }
38055
38056
38057 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38058 PyObject *resultobj = 0;
38059 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38060 wxRect *arg2 = 0 ;
38061 double arg3 ;
38062 void *argp1 = 0 ;
38063 int res1 = 0 ;
38064 wxRect temp2 ;
38065 double val3 ;
38066 int ecode3 = 0 ;
38067 PyObject * obj0 = 0 ;
38068 PyObject * obj1 = 0 ;
38069 PyObject * obj2 = 0 ;
38070 char * kwnames[] = {
38071 (char *) "self",(char *) "r",(char *) "radius", NULL
38072 };
38073
38074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38076 if (!SWIG_IsOK(res1)) {
38077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38078 }
38079 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38080 {
38081 arg2 = &temp2;
38082 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
38083 }
38084 ecode3 = SWIG_AsVal_double(obj2, &val3);
38085 if (!SWIG_IsOK(ecode3)) {
38086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
38087 }
38088 arg3 = static_cast< double >(val3);
38089 {
38090 PyThreadState* __tstate = wxPyBeginAllowThreads();
38091 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
38092 wxPyEndAllowThreads(__tstate);
38093 if (PyErr_Occurred()) SWIG_fail;
38094 }
38095 resultobj = SWIG_Py_Void();
38096 return resultobj;
38097 fail:
38098 return NULL;
38099 }
38100
38101
38102 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38103 PyObject *resultobj = 0;
38104 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38105 wxPoint *arg2 = 0 ;
38106 wxSize *arg3 = 0 ;
38107 double arg4 ;
38108 void *argp1 = 0 ;
38109 int res1 = 0 ;
38110 wxPoint temp2 ;
38111 wxSize temp3 ;
38112 double val4 ;
38113 int ecode4 = 0 ;
38114 PyObject * obj0 = 0 ;
38115 PyObject * obj1 = 0 ;
38116 PyObject * obj2 = 0 ;
38117 PyObject * obj3 = 0 ;
38118 char * kwnames[] = {
38119 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
38120 };
38121
38122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38124 if (!SWIG_IsOK(res1)) {
38125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38126 }
38127 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38128 {
38129 arg2 = &temp2;
38130 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38131 }
38132 {
38133 arg3 = &temp3;
38134 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
38135 }
38136 ecode4 = SWIG_AsVal_double(obj3, &val4);
38137 if (!SWIG_IsOK(ecode4)) {
38138 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
38139 }
38140 arg4 = static_cast< double >(val4);
38141 {
38142 PyThreadState* __tstate = wxPyBeginAllowThreads();
38143 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
38144 wxPyEndAllowThreads(__tstate);
38145 if (PyErr_Occurred()) SWIG_fail;
38146 }
38147 resultobj = SWIG_Py_Void();
38148 return resultobj;
38149 fail:
38150 return NULL;
38151 }
38152
38153
38154 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38155 PyObject *resultobj = 0;
38156 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38157 int arg2 ;
38158 int arg3 ;
38159 int arg4 ;
38160 void *argp1 = 0 ;
38161 int res1 = 0 ;
38162 int val2 ;
38163 int ecode2 = 0 ;
38164 int val3 ;
38165 int ecode3 = 0 ;
38166 int val4 ;
38167 int ecode4 = 0 ;
38168 PyObject * obj0 = 0 ;
38169 PyObject * obj1 = 0 ;
38170 PyObject * obj2 = 0 ;
38171 PyObject * obj3 = 0 ;
38172 char * kwnames[] = {
38173 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
38174 };
38175
38176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38178 if (!SWIG_IsOK(res1)) {
38179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38180 }
38181 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38182 ecode2 = SWIG_AsVal_int(obj1, &val2);
38183 if (!SWIG_IsOK(ecode2)) {
38184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
38185 }
38186 arg2 = static_cast< int >(val2);
38187 ecode3 = SWIG_AsVal_int(obj2, &val3);
38188 if (!SWIG_IsOK(ecode3)) {
38189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
38190 }
38191 arg3 = static_cast< int >(val3);
38192 ecode4 = SWIG_AsVal_int(obj3, &val4);
38193 if (!SWIG_IsOK(ecode4)) {
38194 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
38195 }
38196 arg4 = static_cast< int >(val4);
38197 {
38198 PyThreadState* __tstate = wxPyBeginAllowThreads();
38199 (arg1)->DrawCircle(arg2,arg3,arg4);
38200 wxPyEndAllowThreads(__tstate);
38201 if (PyErr_Occurred()) SWIG_fail;
38202 }
38203 resultobj = SWIG_Py_Void();
38204 return resultobj;
38205 fail:
38206 return NULL;
38207 }
38208
38209
38210 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38211 PyObject *resultobj = 0;
38212 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38213 wxPoint *arg2 = 0 ;
38214 int arg3 ;
38215 void *argp1 = 0 ;
38216 int res1 = 0 ;
38217 wxPoint temp2 ;
38218 int val3 ;
38219 int ecode3 = 0 ;
38220 PyObject * obj0 = 0 ;
38221 PyObject * obj1 = 0 ;
38222 PyObject * obj2 = 0 ;
38223 char * kwnames[] = {
38224 (char *) "self",(char *) "pt",(char *) "radius", NULL
38225 };
38226
38227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38229 if (!SWIG_IsOK(res1)) {
38230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38231 }
38232 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38233 {
38234 arg2 = &temp2;
38235 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38236 }
38237 ecode3 = SWIG_AsVal_int(obj2, &val3);
38238 if (!SWIG_IsOK(ecode3)) {
38239 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
38240 }
38241 arg3 = static_cast< int >(val3);
38242 {
38243 PyThreadState* __tstate = wxPyBeginAllowThreads();
38244 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
38245 wxPyEndAllowThreads(__tstate);
38246 if (PyErr_Occurred()) SWIG_fail;
38247 }
38248 resultobj = SWIG_Py_Void();
38249 return resultobj;
38250 fail:
38251 return NULL;
38252 }
38253
38254
38255 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38256 PyObject *resultobj = 0;
38257 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38258 int arg2 ;
38259 int arg3 ;
38260 int arg4 ;
38261 int arg5 ;
38262 void *argp1 = 0 ;
38263 int res1 = 0 ;
38264 int val2 ;
38265 int ecode2 = 0 ;
38266 int val3 ;
38267 int ecode3 = 0 ;
38268 int val4 ;
38269 int ecode4 = 0 ;
38270 int val5 ;
38271 int ecode5 = 0 ;
38272 PyObject * obj0 = 0 ;
38273 PyObject * obj1 = 0 ;
38274 PyObject * obj2 = 0 ;
38275 PyObject * obj3 = 0 ;
38276 PyObject * obj4 = 0 ;
38277 char * kwnames[] = {
38278 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38279 };
38280
38281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38283 if (!SWIG_IsOK(res1)) {
38284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38285 }
38286 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38287 ecode2 = SWIG_AsVal_int(obj1, &val2);
38288 if (!SWIG_IsOK(ecode2)) {
38289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
38290 }
38291 arg2 = static_cast< int >(val2);
38292 ecode3 = SWIG_AsVal_int(obj2, &val3);
38293 if (!SWIG_IsOK(ecode3)) {
38294 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
38295 }
38296 arg3 = static_cast< int >(val3);
38297 ecode4 = SWIG_AsVal_int(obj3, &val4);
38298 if (!SWIG_IsOK(ecode4)) {
38299 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
38300 }
38301 arg4 = static_cast< int >(val4);
38302 ecode5 = SWIG_AsVal_int(obj4, &val5);
38303 if (!SWIG_IsOK(ecode5)) {
38304 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
38305 }
38306 arg5 = static_cast< int >(val5);
38307 {
38308 PyThreadState* __tstate = wxPyBeginAllowThreads();
38309 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
38310 wxPyEndAllowThreads(__tstate);
38311 if (PyErr_Occurred()) SWIG_fail;
38312 }
38313 resultobj = SWIG_Py_Void();
38314 return resultobj;
38315 fail:
38316 return NULL;
38317 }
38318
38319
38320 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38321 PyObject *resultobj = 0;
38322 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38323 wxRect *arg2 = 0 ;
38324 void *argp1 = 0 ;
38325 int res1 = 0 ;
38326 wxRect temp2 ;
38327 PyObject * obj0 = 0 ;
38328 PyObject * obj1 = 0 ;
38329 char * kwnames[] = {
38330 (char *) "self",(char *) "rect", NULL
38331 };
38332
38333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
38334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38335 if (!SWIG_IsOK(res1)) {
38336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38337 }
38338 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38339 {
38340 arg2 = &temp2;
38341 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
38342 }
38343 {
38344 PyThreadState* __tstate = wxPyBeginAllowThreads();
38345 (arg1)->DrawEllipse((wxRect const &)*arg2);
38346 wxPyEndAllowThreads(__tstate);
38347 if (PyErr_Occurred()) SWIG_fail;
38348 }
38349 resultobj = SWIG_Py_Void();
38350 return resultobj;
38351 fail:
38352 return NULL;
38353 }
38354
38355
38356 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38357 PyObject *resultobj = 0;
38358 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38359 wxPoint *arg2 = 0 ;
38360 wxSize *arg3 = 0 ;
38361 void *argp1 = 0 ;
38362 int res1 = 0 ;
38363 wxPoint temp2 ;
38364 wxSize temp3 ;
38365 PyObject * obj0 = 0 ;
38366 PyObject * obj1 = 0 ;
38367 PyObject * obj2 = 0 ;
38368 char * kwnames[] = {
38369 (char *) "self",(char *) "pt",(char *) "sz", NULL
38370 };
38371
38372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38374 if (!SWIG_IsOK(res1)) {
38375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38376 }
38377 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38378 {
38379 arg2 = &temp2;
38380 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38381 }
38382 {
38383 arg3 = &temp3;
38384 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
38385 }
38386 {
38387 PyThreadState* __tstate = wxPyBeginAllowThreads();
38388 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
38389 wxPyEndAllowThreads(__tstate);
38390 if (PyErr_Occurred()) SWIG_fail;
38391 }
38392 resultobj = SWIG_Py_Void();
38393 return resultobj;
38394 fail:
38395 return NULL;
38396 }
38397
38398
38399 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38400 PyObject *resultobj = 0;
38401 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38402 wxIcon *arg2 = 0 ;
38403 int arg3 ;
38404 int arg4 ;
38405 void *argp1 = 0 ;
38406 int res1 = 0 ;
38407 void *argp2 = 0 ;
38408 int res2 = 0 ;
38409 int val3 ;
38410 int ecode3 = 0 ;
38411 int val4 ;
38412 int ecode4 = 0 ;
38413 PyObject * obj0 = 0 ;
38414 PyObject * obj1 = 0 ;
38415 PyObject * obj2 = 0 ;
38416 PyObject * obj3 = 0 ;
38417 char * kwnames[] = {
38418 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
38419 };
38420
38421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38423 if (!SWIG_IsOK(res1)) {
38424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38425 }
38426 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38427 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38428 if (!SWIG_IsOK(res2)) {
38429 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38430 }
38431 if (!argp2) {
38432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38433 }
38434 arg2 = reinterpret_cast< wxIcon * >(argp2);
38435 ecode3 = SWIG_AsVal_int(obj2, &val3);
38436 if (!SWIG_IsOK(ecode3)) {
38437 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
38438 }
38439 arg3 = static_cast< int >(val3);
38440 ecode4 = SWIG_AsVal_int(obj3, &val4);
38441 if (!SWIG_IsOK(ecode4)) {
38442 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
38443 }
38444 arg4 = static_cast< int >(val4);
38445 {
38446 PyThreadState* __tstate = wxPyBeginAllowThreads();
38447 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
38448 wxPyEndAllowThreads(__tstate);
38449 if (PyErr_Occurred()) SWIG_fail;
38450 }
38451 resultobj = SWIG_Py_Void();
38452 return resultobj;
38453 fail:
38454 return NULL;
38455 }
38456
38457
38458 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38459 PyObject *resultobj = 0;
38460 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38461 wxIcon *arg2 = 0 ;
38462 wxPoint *arg3 = 0 ;
38463 void *argp1 = 0 ;
38464 int res1 = 0 ;
38465 void *argp2 = 0 ;
38466 int res2 = 0 ;
38467 wxPoint temp3 ;
38468 PyObject * obj0 = 0 ;
38469 PyObject * obj1 = 0 ;
38470 PyObject * obj2 = 0 ;
38471 char * kwnames[] = {
38472 (char *) "self",(char *) "icon",(char *) "pt", NULL
38473 };
38474
38475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38477 if (!SWIG_IsOK(res1)) {
38478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38479 }
38480 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38481 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38482 if (!SWIG_IsOK(res2)) {
38483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38484 }
38485 if (!argp2) {
38486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38487 }
38488 arg2 = reinterpret_cast< wxIcon * >(argp2);
38489 {
38490 arg3 = &temp3;
38491 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38492 }
38493 {
38494 PyThreadState* __tstate = wxPyBeginAllowThreads();
38495 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
38496 wxPyEndAllowThreads(__tstate);
38497 if (PyErr_Occurred()) SWIG_fail;
38498 }
38499 resultobj = SWIG_Py_Void();
38500 return resultobj;
38501 fail:
38502 return NULL;
38503 }
38504
38505
38506 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38507 PyObject *resultobj = 0;
38508 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38509 wxBitmap *arg2 = 0 ;
38510 int arg3 ;
38511 int arg4 ;
38512 bool arg5 = (bool) false ;
38513 void *argp1 = 0 ;
38514 int res1 = 0 ;
38515 void *argp2 = 0 ;
38516 int res2 = 0 ;
38517 int val3 ;
38518 int ecode3 = 0 ;
38519 int val4 ;
38520 int ecode4 = 0 ;
38521 bool val5 ;
38522 int ecode5 = 0 ;
38523 PyObject * obj0 = 0 ;
38524 PyObject * obj1 = 0 ;
38525 PyObject * obj2 = 0 ;
38526 PyObject * obj3 = 0 ;
38527 PyObject * obj4 = 0 ;
38528 char * kwnames[] = {
38529 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
38530 };
38531
38532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38534 if (!SWIG_IsOK(res1)) {
38535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38536 }
38537 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38538 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38539 if (!SWIG_IsOK(res2)) {
38540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38541 }
38542 if (!argp2) {
38543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38544 }
38545 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38546 ecode3 = SWIG_AsVal_int(obj2, &val3);
38547 if (!SWIG_IsOK(ecode3)) {
38548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
38549 }
38550 arg3 = static_cast< int >(val3);
38551 ecode4 = SWIG_AsVal_int(obj3, &val4);
38552 if (!SWIG_IsOK(ecode4)) {
38553 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
38554 }
38555 arg4 = static_cast< int >(val4);
38556 if (obj4) {
38557 ecode5 = SWIG_AsVal_bool(obj4, &val5);
38558 if (!SWIG_IsOK(ecode5)) {
38559 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
38560 }
38561 arg5 = static_cast< bool >(val5);
38562 }
38563 {
38564 PyThreadState* __tstate = wxPyBeginAllowThreads();
38565 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
38566 wxPyEndAllowThreads(__tstate);
38567 if (PyErr_Occurred()) SWIG_fail;
38568 }
38569 resultobj = SWIG_Py_Void();
38570 return resultobj;
38571 fail:
38572 return NULL;
38573 }
38574
38575
38576 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38577 PyObject *resultobj = 0;
38578 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38579 wxBitmap *arg2 = 0 ;
38580 wxPoint *arg3 = 0 ;
38581 bool arg4 = (bool) false ;
38582 void *argp1 = 0 ;
38583 int res1 = 0 ;
38584 void *argp2 = 0 ;
38585 int res2 = 0 ;
38586 wxPoint temp3 ;
38587 bool val4 ;
38588 int ecode4 = 0 ;
38589 PyObject * obj0 = 0 ;
38590 PyObject * obj1 = 0 ;
38591 PyObject * obj2 = 0 ;
38592 PyObject * obj3 = 0 ;
38593 char * kwnames[] = {
38594 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
38595 };
38596
38597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38599 if (!SWIG_IsOK(res1)) {
38600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38601 }
38602 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38603 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38604 if (!SWIG_IsOK(res2)) {
38605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38606 }
38607 if (!argp2) {
38608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38609 }
38610 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38611 {
38612 arg3 = &temp3;
38613 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38614 }
38615 if (obj3) {
38616 ecode4 = SWIG_AsVal_bool(obj3, &val4);
38617 if (!SWIG_IsOK(ecode4)) {
38618 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
38619 }
38620 arg4 = static_cast< bool >(val4);
38621 }
38622 {
38623 PyThreadState* __tstate = wxPyBeginAllowThreads();
38624 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
38625 wxPyEndAllowThreads(__tstate);
38626 if (PyErr_Occurred()) SWIG_fail;
38627 }
38628 resultobj = SWIG_Py_Void();
38629 return resultobj;
38630 fail:
38631 return NULL;
38632 }
38633
38634
38635 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38636 PyObject *resultobj = 0;
38637 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38638 wxString *arg2 = 0 ;
38639 int arg3 ;
38640 int arg4 ;
38641 void *argp1 = 0 ;
38642 int res1 = 0 ;
38643 bool temp2 = false ;
38644 int val3 ;
38645 int ecode3 = 0 ;
38646 int val4 ;
38647 int ecode4 = 0 ;
38648 PyObject * obj0 = 0 ;
38649 PyObject * obj1 = 0 ;
38650 PyObject * obj2 = 0 ;
38651 PyObject * obj3 = 0 ;
38652 char * kwnames[] = {
38653 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
38654 };
38655
38656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38658 if (!SWIG_IsOK(res1)) {
38659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38660 }
38661 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38662 {
38663 arg2 = wxString_in_helper(obj1);
38664 if (arg2 == NULL) SWIG_fail;
38665 temp2 = true;
38666 }
38667 ecode3 = SWIG_AsVal_int(obj2, &val3);
38668 if (!SWIG_IsOK(ecode3)) {
38669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
38670 }
38671 arg3 = static_cast< int >(val3);
38672 ecode4 = SWIG_AsVal_int(obj3, &val4);
38673 if (!SWIG_IsOK(ecode4)) {
38674 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
38675 }
38676 arg4 = static_cast< int >(val4);
38677 {
38678 PyThreadState* __tstate = wxPyBeginAllowThreads();
38679 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
38680 wxPyEndAllowThreads(__tstate);
38681 if (PyErr_Occurred()) SWIG_fail;
38682 }
38683 resultobj = SWIG_Py_Void();
38684 {
38685 if (temp2)
38686 delete arg2;
38687 }
38688 return resultobj;
38689 fail:
38690 {
38691 if (temp2)
38692 delete arg2;
38693 }
38694 return NULL;
38695 }
38696
38697
38698 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38699 PyObject *resultobj = 0;
38700 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38701 wxString *arg2 = 0 ;
38702 wxPoint *arg3 = 0 ;
38703 void *argp1 = 0 ;
38704 int res1 = 0 ;
38705 bool temp2 = false ;
38706 wxPoint temp3 ;
38707 PyObject * obj0 = 0 ;
38708 PyObject * obj1 = 0 ;
38709 PyObject * obj2 = 0 ;
38710 char * kwnames[] = {
38711 (char *) "self",(char *) "text",(char *) "pt", NULL
38712 };
38713
38714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38716 if (!SWIG_IsOK(res1)) {
38717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38718 }
38719 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38720 {
38721 arg2 = wxString_in_helper(obj1);
38722 if (arg2 == NULL) SWIG_fail;
38723 temp2 = true;
38724 }
38725 {
38726 arg3 = &temp3;
38727 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38728 }
38729 {
38730 PyThreadState* __tstate = wxPyBeginAllowThreads();
38731 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
38732 wxPyEndAllowThreads(__tstate);
38733 if (PyErr_Occurred()) SWIG_fail;
38734 }
38735 resultobj = SWIG_Py_Void();
38736 {
38737 if (temp2)
38738 delete arg2;
38739 }
38740 return resultobj;
38741 fail:
38742 {
38743 if (temp2)
38744 delete arg2;
38745 }
38746 return NULL;
38747 }
38748
38749
38750 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38751 PyObject *resultobj = 0;
38752 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38753 wxString *arg2 = 0 ;
38754 int arg3 ;
38755 int arg4 ;
38756 double arg5 ;
38757 void *argp1 = 0 ;
38758 int res1 = 0 ;
38759 bool temp2 = false ;
38760 int val3 ;
38761 int ecode3 = 0 ;
38762 int val4 ;
38763 int ecode4 = 0 ;
38764 double val5 ;
38765 int ecode5 = 0 ;
38766 PyObject * obj0 = 0 ;
38767 PyObject * obj1 = 0 ;
38768 PyObject * obj2 = 0 ;
38769 PyObject * obj3 = 0 ;
38770 PyObject * obj4 = 0 ;
38771 char * kwnames[] = {
38772 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
38773 };
38774
38775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38777 if (!SWIG_IsOK(res1)) {
38778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38779 }
38780 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38781 {
38782 arg2 = wxString_in_helper(obj1);
38783 if (arg2 == NULL) SWIG_fail;
38784 temp2 = true;
38785 }
38786 ecode3 = SWIG_AsVal_int(obj2, &val3);
38787 if (!SWIG_IsOK(ecode3)) {
38788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
38789 }
38790 arg3 = static_cast< int >(val3);
38791 ecode4 = SWIG_AsVal_int(obj3, &val4);
38792 if (!SWIG_IsOK(ecode4)) {
38793 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
38794 }
38795 arg4 = static_cast< int >(val4);
38796 ecode5 = SWIG_AsVal_double(obj4, &val5);
38797 if (!SWIG_IsOK(ecode5)) {
38798 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
38799 }
38800 arg5 = static_cast< double >(val5);
38801 {
38802 PyThreadState* __tstate = wxPyBeginAllowThreads();
38803 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
38804 wxPyEndAllowThreads(__tstate);
38805 if (PyErr_Occurred()) SWIG_fail;
38806 }
38807 resultobj = SWIG_Py_Void();
38808 {
38809 if (temp2)
38810 delete arg2;
38811 }
38812 return resultobj;
38813 fail:
38814 {
38815 if (temp2)
38816 delete arg2;
38817 }
38818 return NULL;
38819 }
38820
38821
38822 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38823 PyObject *resultobj = 0;
38824 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38825 wxString *arg2 = 0 ;
38826 wxPoint *arg3 = 0 ;
38827 double arg4 ;
38828 void *argp1 = 0 ;
38829 int res1 = 0 ;
38830 bool temp2 = false ;
38831 wxPoint temp3 ;
38832 double val4 ;
38833 int ecode4 = 0 ;
38834 PyObject * obj0 = 0 ;
38835 PyObject * obj1 = 0 ;
38836 PyObject * obj2 = 0 ;
38837 PyObject * obj3 = 0 ;
38838 char * kwnames[] = {
38839 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
38840 };
38841
38842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38844 if (!SWIG_IsOK(res1)) {
38845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38846 }
38847 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38848 {
38849 arg2 = wxString_in_helper(obj1);
38850 if (arg2 == NULL) SWIG_fail;
38851 temp2 = true;
38852 }
38853 {
38854 arg3 = &temp3;
38855 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38856 }
38857 ecode4 = SWIG_AsVal_double(obj3, &val4);
38858 if (!SWIG_IsOK(ecode4)) {
38859 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
38860 }
38861 arg4 = static_cast< double >(val4);
38862 {
38863 PyThreadState* __tstate = wxPyBeginAllowThreads();
38864 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
38865 wxPyEndAllowThreads(__tstate);
38866 if (PyErr_Occurred()) SWIG_fail;
38867 }
38868 resultobj = SWIG_Py_Void();
38869 {
38870 if (temp2)
38871 delete arg2;
38872 }
38873 return resultobj;
38874 fail:
38875 {
38876 if (temp2)
38877 delete arg2;
38878 }
38879 return NULL;
38880 }
38881
38882
38883 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38884 PyObject *resultobj = 0;
38885 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38886 int arg2 ;
38887 wxPoint *arg3 = (wxPoint *) 0 ;
38888 int arg4 = (int) 0 ;
38889 int arg5 = (int) 0 ;
38890 void *argp1 = 0 ;
38891 int res1 = 0 ;
38892 int val4 ;
38893 int ecode4 = 0 ;
38894 int val5 ;
38895 int ecode5 = 0 ;
38896 PyObject * obj0 = 0 ;
38897 PyObject * obj1 = 0 ;
38898 PyObject * obj2 = 0 ;
38899 PyObject * obj3 = 0 ;
38900 char * kwnames[] = {
38901 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
38902 };
38903
38904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38906 if (!SWIG_IsOK(res1)) {
38907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38908 }
38909 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38910 {
38911 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38912 if (arg3 == NULL) SWIG_fail;
38913 }
38914 if (obj2) {
38915 ecode4 = SWIG_AsVal_int(obj2, &val4);
38916 if (!SWIG_IsOK(ecode4)) {
38917 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38918 }
38919 arg4 = static_cast< int >(val4);
38920 }
38921 if (obj3) {
38922 ecode5 = SWIG_AsVal_int(obj3, &val5);
38923 if (!SWIG_IsOK(ecode5)) {
38924 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38925 }
38926 arg5 = static_cast< int >(val5);
38927 }
38928 {
38929 PyThreadState* __tstate = wxPyBeginAllowThreads();
38930 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38931 wxPyEndAllowThreads(__tstate);
38932 if (PyErr_Occurred()) SWIG_fail;
38933 }
38934 resultobj = SWIG_Py_Void();
38935 {
38936 if (arg3) delete [] arg3;
38937 }
38938 return resultobj;
38939 fail:
38940 {
38941 if (arg3) delete [] arg3;
38942 }
38943 return NULL;
38944 }
38945
38946
38947 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38948 PyObject *resultobj = 0;
38949 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38950 int arg2 ;
38951 wxPoint *arg3 = (wxPoint *) 0 ;
38952 int arg4 = (int) 0 ;
38953 int arg5 = (int) 0 ;
38954 int arg6 = (int) wxODDEVEN_RULE ;
38955 void *argp1 = 0 ;
38956 int res1 = 0 ;
38957 int val4 ;
38958 int ecode4 = 0 ;
38959 int val5 ;
38960 int ecode5 = 0 ;
38961 int val6 ;
38962 int ecode6 = 0 ;
38963 PyObject * obj0 = 0 ;
38964 PyObject * obj1 = 0 ;
38965 PyObject * obj2 = 0 ;
38966 PyObject * obj3 = 0 ;
38967 PyObject * obj4 = 0 ;
38968 char * kwnames[] = {
38969 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38970 };
38971
38972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38974 if (!SWIG_IsOK(res1)) {
38975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38976 }
38977 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38978 {
38979 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38980 if (arg3 == NULL) SWIG_fail;
38981 }
38982 if (obj2) {
38983 ecode4 = SWIG_AsVal_int(obj2, &val4);
38984 if (!SWIG_IsOK(ecode4)) {
38985 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38986 }
38987 arg4 = static_cast< int >(val4);
38988 }
38989 if (obj3) {
38990 ecode5 = SWIG_AsVal_int(obj3, &val5);
38991 if (!SWIG_IsOK(ecode5)) {
38992 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38993 }
38994 arg5 = static_cast< int >(val5);
38995 }
38996 if (obj4) {
38997 ecode6 = SWIG_AsVal_int(obj4, &val6);
38998 if (!SWIG_IsOK(ecode6)) {
38999 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
39000 }
39001 arg6 = static_cast< int >(val6);
39002 }
39003 {
39004 PyThreadState* __tstate = wxPyBeginAllowThreads();
39005 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
39006 wxPyEndAllowThreads(__tstate);
39007 if (PyErr_Occurred()) SWIG_fail;
39008 }
39009 resultobj = SWIG_Py_Void();
39010 {
39011 if (arg3) delete [] arg3;
39012 }
39013 return resultobj;
39014 fail:
39015 {
39016 if (arg3) delete [] arg3;
39017 }
39018 return NULL;
39019 }
39020
39021
39022 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39023 PyObject *resultobj = 0;
39024 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39025 wxString *arg2 = 0 ;
39026 wxRect *arg3 = 0 ;
39027 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
39028 int arg5 = (int) -1 ;
39029 void *argp1 = 0 ;
39030 int res1 = 0 ;
39031 bool temp2 = false ;
39032 wxRect temp3 ;
39033 int val4 ;
39034 int ecode4 = 0 ;
39035 int val5 ;
39036 int ecode5 = 0 ;
39037 PyObject * obj0 = 0 ;
39038 PyObject * obj1 = 0 ;
39039 PyObject * obj2 = 0 ;
39040 PyObject * obj3 = 0 ;
39041 PyObject * obj4 = 0 ;
39042 char * kwnames[] = {
39043 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
39044 };
39045
39046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39048 if (!SWIG_IsOK(res1)) {
39049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39050 }
39051 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39052 {
39053 arg2 = wxString_in_helper(obj1);
39054 if (arg2 == NULL) SWIG_fail;
39055 temp2 = true;
39056 }
39057 {
39058 arg3 = &temp3;
39059 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
39060 }
39061 if (obj3) {
39062 ecode4 = SWIG_AsVal_int(obj3, &val4);
39063 if (!SWIG_IsOK(ecode4)) {
39064 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
39065 }
39066 arg4 = static_cast< int >(val4);
39067 }
39068 if (obj4) {
39069 ecode5 = SWIG_AsVal_int(obj4, &val5);
39070 if (!SWIG_IsOK(ecode5)) {
39071 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
39072 }
39073 arg5 = static_cast< int >(val5);
39074 }
39075 {
39076 PyThreadState* __tstate = wxPyBeginAllowThreads();
39077 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
39078 wxPyEndAllowThreads(__tstate);
39079 if (PyErr_Occurred()) SWIG_fail;
39080 }
39081 resultobj = SWIG_Py_Void();
39082 {
39083 if (temp2)
39084 delete arg2;
39085 }
39086 return resultobj;
39087 fail:
39088 {
39089 if (temp2)
39090 delete arg2;
39091 }
39092 return NULL;
39093 }
39094
39095
39096 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39097 PyObject *resultobj = 0;
39098 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39099 wxString *arg2 = 0 ;
39100 wxBitmap *arg3 = 0 ;
39101 wxRect *arg4 = 0 ;
39102 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
39103 int arg6 = (int) -1 ;
39104 void *argp1 = 0 ;
39105 int res1 = 0 ;
39106 bool temp2 = false ;
39107 void *argp3 = 0 ;
39108 int res3 = 0 ;
39109 wxRect temp4 ;
39110 int val5 ;
39111 int ecode5 = 0 ;
39112 int val6 ;
39113 int ecode6 = 0 ;
39114 PyObject * obj0 = 0 ;
39115 PyObject * obj1 = 0 ;
39116 PyObject * obj2 = 0 ;
39117 PyObject * obj3 = 0 ;
39118 PyObject * obj4 = 0 ;
39119 PyObject * obj5 = 0 ;
39120 char * kwnames[] = {
39121 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
39122 };
39123
39124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39126 if (!SWIG_IsOK(res1)) {
39127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39128 }
39129 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39130 {
39131 arg2 = wxString_in_helper(obj1);
39132 if (arg2 == NULL) SWIG_fail;
39133 temp2 = true;
39134 }
39135 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
39136 if (!SWIG_IsOK(res3)) {
39137 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
39138 }
39139 if (!argp3) {
39140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
39141 }
39142 arg3 = reinterpret_cast< wxBitmap * >(argp3);
39143 {
39144 arg4 = &temp4;
39145 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
39146 }
39147 if (obj4) {
39148 ecode5 = SWIG_AsVal_int(obj4, &val5);
39149 if (!SWIG_IsOK(ecode5)) {
39150 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
39151 }
39152 arg5 = static_cast< int >(val5);
39153 }
39154 if (obj5) {
39155 ecode6 = SWIG_AsVal_int(obj5, &val6);
39156 if (!SWIG_IsOK(ecode6)) {
39157 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
39158 }
39159 arg6 = static_cast< int >(val6);
39160 }
39161 {
39162 PyThreadState* __tstate = wxPyBeginAllowThreads();
39163 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
39164 wxPyEndAllowThreads(__tstate);
39165 if (PyErr_Occurred()) SWIG_fail;
39166 }
39167 resultobj = SWIG_Py_Void();
39168 {
39169 if (temp2)
39170 delete arg2;
39171 }
39172 return resultobj;
39173 fail:
39174 {
39175 if (temp2)
39176 delete arg2;
39177 }
39178 return NULL;
39179 }
39180
39181
39182 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39183 PyObject *resultobj = 0;
39184 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39185 int arg2 ;
39186 wxPoint *arg3 = (wxPoint *) 0 ;
39187 void *argp1 = 0 ;
39188 int res1 = 0 ;
39189 PyObject * obj0 = 0 ;
39190 PyObject * obj1 = 0 ;
39191 char * kwnames[] = {
39192 (char *) "self",(char *) "points", NULL
39193 };
39194
39195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
39196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39197 if (!SWIG_IsOK(res1)) {
39198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39199 }
39200 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39201 {
39202 arg3 = wxPoint_LIST_helper(obj1, &arg2);
39203 if (arg3 == NULL) SWIG_fail;
39204 }
39205 {
39206 PyThreadState* __tstate = wxPyBeginAllowThreads();
39207 (arg1)->DrawSpline(arg2,arg3);
39208 wxPyEndAllowThreads(__tstate);
39209 if (PyErr_Occurred()) SWIG_fail;
39210 }
39211 resultobj = SWIG_Py_Void();
39212 {
39213 if (arg3) delete [] arg3;
39214 }
39215 return resultobj;
39216 fail:
39217 {
39218 if (arg3) delete [] arg3;
39219 }
39220 return NULL;
39221 }
39222
39223
39224 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39225 PyObject *resultobj = 0;
39226 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39227 void *argp1 = 0 ;
39228 int res1 = 0 ;
39229 PyObject *swig_obj[1] ;
39230
39231 if (!args) SWIG_fail;
39232 swig_obj[0] = args;
39233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39234 if (!SWIG_IsOK(res1)) {
39235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39236 }
39237 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39238 {
39239 PyThreadState* __tstate = wxPyBeginAllowThreads();
39240 (arg1)->Clear();
39241 wxPyEndAllowThreads(__tstate);
39242 if (PyErr_Occurred()) SWIG_fail;
39243 }
39244 resultobj = SWIG_Py_Void();
39245 return resultobj;
39246 fail:
39247 return NULL;
39248 }
39249
39250
39251 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39252 PyObject *resultobj = 0;
39253 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39254 wxFont *arg2 = 0 ;
39255 void *argp1 = 0 ;
39256 int res1 = 0 ;
39257 void *argp2 = 0 ;
39258 int res2 = 0 ;
39259 PyObject * obj0 = 0 ;
39260 PyObject * obj1 = 0 ;
39261 char * kwnames[] = {
39262 (char *) "self",(char *) "font", NULL
39263 };
39264
39265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
39266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39267 if (!SWIG_IsOK(res1)) {
39268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39269 }
39270 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39271 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
39272 if (!SWIG_IsOK(res2)) {
39273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
39274 }
39275 if (!argp2) {
39276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
39277 }
39278 arg2 = reinterpret_cast< wxFont * >(argp2);
39279 {
39280 PyThreadState* __tstate = wxPyBeginAllowThreads();
39281 (arg1)->SetFont((wxFont const &)*arg2);
39282 wxPyEndAllowThreads(__tstate);
39283 if (PyErr_Occurred()) SWIG_fail;
39284 }
39285 resultobj = SWIG_Py_Void();
39286 return resultobj;
39287 fail:
39288 return NULL;
39289 }
39290
39291
39292 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39293 PyObject *resultobj = 0;
39294 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39295 wxPen *arg2 = 0 ;
39296 void *argp1 = 0 ;
39297 int res1 = 0 ;
39298 void *argp2 = 0 ;
39299 int res2 = 0 ;
39300 PyObject * obj0 = 0 ;
39301 PyObject * obj1 = 0 ;
39302 char * kwnames[] = {
39303 (char *) "self",(char *) "pen", NULL
39304 };
39305
39306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
39307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39308 if (!SWIG_IsOK(res1)) {
39309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39310 }
39311 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39312 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
39313 if (!SWIG_IsOK(res2)) {
39314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
39315 }
39316 if (!argp2) {
39317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
39318 }
39319 arg2 = reinterpret_cast< wxPen * >(argp2);
39320 {
39321 PyThreadState* __tstate = wxPyBeginAllowThreads();
39322 (arg1)->SetPen((wxPen 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_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39334 PyObject *resultobj = 0;
39335 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39336 wxBrush *arg2 = 0 ;
39337 void *argp1 = 0 ;
39338 int res1 = 0 ;
39339 void *argp2 = 0 ;
39340 int res2 = 0 ;
39341 PyObject * obj0 = 0 ;
39342 PyObject * obj1 = 0 ;
39343 char * kwnames[] = {
39344 (char *) "self",(char *) "brush", NULL
39345 };
39346
39347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",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_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39351 }
39352 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39353 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
39354 if (!SWIG_IsOK(res2)) {
39355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
39356 }
39357 if (!argp2) {
39358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
39359 }
39360 arg2 = reinterpret_cast< wxBrush * >(argp2);
39361 {
39362 PyThreadState* __tstate = wxPyBeginAllowThreads();
39363 (arg1)->SetBrush((wxBrush const &)*arg2);
39364 wxPyEndAllowThreads(__tstate);
39365 if (PyErr_Occurred()) SWIG_fail;
39366 }
39367 resultobj = SWIG_Py_Void();
39368 return resultobj;
39369 fail:
39370 return NULL;
39371 }
39372
39373
39374 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39375 PyObject *resultobj = 0;
39376 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39377 wxBrush *arg2 = 0 ;
39378 void *argp1 = 0 ;
39379 int res1 = 0 ;
39380 void *argp2 = 0 ;
39381 int res2 = 0 ;
39382 PyObject * obj0 = 0 ;
39383 PyObject * obj1 = 0 ;
39384 char * kwnames[] = {
39385 (char *) "self",(char *) "brush", NULL
39386 };
39387
39388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39390 if (!SWIG_IsOK(res1)) {
39391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39392 }
39393 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39394 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
39395 if (!SWIG_IsOK(res2)) {
39396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
39397 }
39398 if (!argp2) {
39399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
39400 }
39401 arg2 = reinterpret_cast< wxBrush * >(argp2);
39402 {
39403 PyThreadState* __tstate = wxPyBeginAllowThreads();
39404 (arg1)->SetBackground((wxBrush const &)*arg2);
39405 wxPyEndAllowThreads(__tstate);
39406 if (PyErr_Occurred()) SWIG_fail;
39407 }
39408 resultobj = SWIG_Py_Void();
39409 return resultobj;
39410 fail:
39411 return NULL;
39412 }
39413
39414
39415 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39416 PyObject *resultobj = 0;
39417 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39418 int arg2 ;
39419 void *argp1 = 0 ;
39420 int res1 = 0 ;
39421 int val2 ;
39422 int ecode2 = 0 ;
39423 PyObject * obj0 = 0 ;
39424 PyObject * obj1 = 0 ;
39425 char * kwnames[] = {
39426 (char *) "self",(char *) "mode", NULL
39427 };
39428
39429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
39430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39431 if (!SWIG_IsOK(res1)) {
39432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39433 }
39434 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39435 ecode2 = SWIG_AsVal_int(obj1, &val2);
39436 if (!SWIG_IsOK(ecode2)) {
39437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
39438 }
39439 arg2 = static_cast< int >(val2);
39440 {
39441 PyThreadState* __tstate = wxPyBeginAllowThreads();
39442 (arg1)->SetBackgroundMode(arg2);
39443 wxPyEndAllowThreads(__tstate);
39444 if (PyErr_Occurred()) SWIG_fail;
39445 }
39446 resultobj = SWIG_Py_Void();
39447 return resultobj;
39448 fail:
39449 return NULL;
39450 }
39451
39452
39453 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39454 PyObject *resultobj = 0;
39455 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39456 wxPalette *arg2 = 0 ;
39457 void *argp1 = 0 ;
39458 int res1 = 0 ;
39459 void *argp2 = 0 ;
39460 int res2 = 0 ;
39461 PyObject * obj0 = 0 ;
39462 PyObject * obj1 = 0 ;
39463 char * kwnames[] = {
39464 (char *) "self",(char *) "palette", NULL
39465 };
39466
39467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
39468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39469 if (!SWIG_IsOK(res1)) {
39470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39471 }
39472 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39473 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
39474 if (!SWIG_IsOK(res2)) {
39475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39476 }
39477 if (!argp2) {
39478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39479 }
39480 arg2 = reinterpret_cast< wxPalette * >(argp2);
39481 {
39482 PyThreadState* __tstate = wxPyBeginAllowThreads();
39483 (arg1)->SetPalette((wxPalette const &)*arg2);
39484 wxPyEndAllowThreads(__tstate);
39485 if (PyErr_Occurred()) SWIG_fail;
39486 }
39487 resultobj = SWIG_Py_Void();
39488 return resultobj;
39489 fail:
39490 return NULL;
39491 }
39492
39493
39494 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39495 PyObject *resultobj = 0;
39496 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39497 wxColour *arg2 = 0 ;
39498 void *argp1 = 0 ;
39499 int res1 = 0 ;
39500 wxColour temp2 ;
39501 PyObject * obj0 = 0 ;
39502 PyObject * obj1 = 0 ;
39503 char * kwnames[] = {
39504 (char *) "self",(char *) "colour", NULL
39505 };
39506
39507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
39508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39509 if (!SWIG_IsOK(res1)) {
39510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39511 }
39512 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39513 {
39514 arg2 = &temp2;
39515 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39516 }
39517 {
39518 PyThreadState* __tstate = wxPyBeginAllowThreads();
39519 (arg1)->SetTextForeground((wxColour const &)*arg2);
39520 wxPyEndAllowThreads(__tstate);
39521 if (PyErr_Occurred()) SWIG_fail;
39522 }
39523 resultobj = SWIG_Py_Void();
39524 return resultobj;
39525 fail:
39526 return NULL;
39527 }
39528
39529
39530 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39531 PyObject *resultobj = 0;
39532 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39533 wxColour *arg2 = 0 ;
39534 void *argp1 = 0 ;
39535 int res1 = 0 ;
39536 wxColour temp2 ;
39537 PyObject * obj0 = 0 ;
39538 PyObject * obj1 = 0 ;
39539 char * kwnames[] = {
39540 (char *) "self",(char *) "colour", NULL
39541 };
39542
39543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39545 if (!SWIG_IsOK(res1)) {
39546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39547 }
39548 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39549 {
39550 arg2 = &temp2;
39551 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39552 }
39553 {
39554 PyThreadState* __tstate = wxPyBeginAllowThreads();
39555 (arg1)->SetTextBackground((wxColour const &)*arg2);
39556 wxPyEndAllowThreads(__tstate);
39557 if (PyErr_Occurred()) SWIG_fail;
39558 }
39559 resultobj = SWIG_Py_Void();
39560 return resultobj;
39561 fail:
39562 return NULL;
39563 }
39564
39565
39566 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39567 PyObject *resultobj = 0;
39568 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39569 int arg2 ;
39570 void *argp1 = 0 ;
39571 int res1 = 0 ;
39572 int val2 ;
39573 int ecode2 = 0 ;
39574 PyObject * obj0 = 0 ;
39575 PyObject * obj1 = 0 ;
39576 char * kwnames[] = {
39577 (char *) "self",(char *) "function", NULL
39578 };
39579
39580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
39581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39582 if (!SWIG_IsOK(res1)) {
39583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39584 }
39585 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39586 ecode2 = SWIG_AsVal_int(obj1, &val2);
39587 if (!SWIG_IsOK(ecode2)) {
39588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
39589 }
39590 arg2 = static_cast< int >(val2);
39591 {
39592 PyThreadState* __tstate = wxPyBeginAllowThreads();
39593 (arg1)->SetLogicalFunction(arg2);
39594 wxPyEndAllowThreads(__tstate);
39595 if (PyErr_Occurred()) SWIG_fail;
39596 }
39597 resultobj = SWIG_Py_Void();
39598 return resultobj;
39599 fail:
39600 return NULL;
39601 }
39602
39603
39604 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39605 PyObject *obj;
39606 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39607 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
39608 return SWIG_Py_Void();
39609 }
39610
39611 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39612 return SWIG_Python_InitShadowInstance(args);
39613 }
39614
39615 static PyMethodDef SwigMethods[] = {
39616 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
39617 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
39618 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
39619 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
39620 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
39621 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
39622 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
39623 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39624 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
39625 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
39626 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
39627 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
39628 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
39629 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
39630 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39631 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39632 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39633 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
39634 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
39635 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39636 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39637 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
39638 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
39639 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
39640 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
39641 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
39642 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
39643 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39644 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39645 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
39646 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
39647 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
39648 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
39649 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
39650 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
39651 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
39652 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
39653 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
39654 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
39655 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
39656 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
39657 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
39658 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39659 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
39660 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39661 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39662 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39663 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
39664 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39665 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
39666 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
39667 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39668 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39669 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39670 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
39671 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
39672 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
39673 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39674 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
39675 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39676 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39677 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39678 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
39679 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
39680 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
39681 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
39682 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
39683 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
39684 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
39685 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39686 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
39687 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39688 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39689 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39690 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39691 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
39692 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
39693 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39694 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
39695 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
39696 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
39697 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
39698 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
39699 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
39700 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
39701 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
39702 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
39703 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39704 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
39705 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39706 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
39707 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39708 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39709 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39710 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39711 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39712 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39713 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39714 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39715 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39716 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39717 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39718 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
39719 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
39720 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
39721 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39722 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39723 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
39724 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
39725 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
39726 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
39727 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
39728 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
39729 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
39730 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
39731 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
39732 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
39733 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
39734 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
39735 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
39736 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
39737 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
39738 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39739 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
39740 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
39741 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39742 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39743 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39744 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39745 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39746 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
39747 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
39748 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
39749 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
39750 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
39751 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
39752 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
39753 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
39754 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
39755 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
39756 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
39757 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
39758 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39759 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
39760 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
39761 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39762 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39763 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39764 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39765 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39766 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
39767 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
39768 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
39769 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
39770 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
39771 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
39772 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
39773 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
39774 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
39775 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
39776 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39777 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39778 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39779 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39780 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
39781 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39782 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
39783 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
39784 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
39785 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
39786 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39787 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39788 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39789 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39790 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39791 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
39792 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
39793 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39794 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
39795 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
39796 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
39797 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
39798 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39799 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
39800 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
39801 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
39802 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
39803 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39804 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39805 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
39806 { (char *)"IconBundle_IsOk", (PyCFunction)_wrap_IconBundle_IsOk, METH_O, NULL},
39807 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39808 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39809 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39810 { (char *)"IconBundle_GetIconOfExactSize", (PyCFunction) _wrap_IconBundle_GetIconOfExactSize, METH_VARARGS | METH_KEYWORDS, NULL},
39811 { (char *)"IconBundle_GetIconCount", (PyCFunction)_wrap_IconBundle_GetIconCount, METH_O, NULL},
39812 { (char *)"IconBundle_GetIconByIndex", (PyCFunction) _wrap_IconBundle_GetIconByIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39813 { (char *)"IconBundle_IsEmpty", (PyCFunction)_wrap_IconBundle_IsEmpty, METH_O, NULL},
39814 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
39815 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
39816 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
39817 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
39818 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39819 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39820 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
39821 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39822 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
39823 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
39824 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
39825 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
39826 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39827 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39828 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39829 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39830 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
39831 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
39832 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
39833 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39834 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39835 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
39836 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
39837 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
39838 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39839 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
39840 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39841 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
39842 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
39843 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
39844 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
39845 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
39846 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39847 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
39848 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39849 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
39850 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39851 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39852 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39853 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
39854 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39855 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
39856 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
39857 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39858 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
39859 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39860 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39861 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
39862 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
39863 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
39864 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
39865 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
39866 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
39867 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
39868 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
39869 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
39870 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
39871 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
39872 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
39873 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
39874 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
39875 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
39876 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
39877 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
39878 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
39879 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
39880 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
39881 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
39882 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
39883 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
39884 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
39885 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
39886 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
39887 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
39888 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
39889 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
39890 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39891 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39892 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39893 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39894 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39895 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39896 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39897 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39898 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39899 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
39900 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
39901 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
39902 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
39903 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
39904 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
39905 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
39906 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
39907 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
39908 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
39909 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
39910 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
39911 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39912 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
39913 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
39914 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
39915 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39916 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39917 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
39918 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
39919 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
39920 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39921 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39922 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
39923 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39924 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
39925 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
39926 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39927 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
39928 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
39929 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39930 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39931 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
39932 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
39933 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
39934 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
39935 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
39936 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
39937 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39938 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
39939 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
39940 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39941 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39942 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
39943 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39944 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39945 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39946 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39947 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39948 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39949 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39950 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39951 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39952 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39953 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39954 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39955 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39956 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39957 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39958 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39959 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39960 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39961 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39962 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39963 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39964 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39965 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39966 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39967 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39968 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39969 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39970 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39971 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39972 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39973 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39974 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39975 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39976 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39977 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39978 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39979 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39980 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39981 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39982 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
39983 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39984 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39985 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
39986 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39987 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39988 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39989 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39990 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39991 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39992 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39993 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39994 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39995 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39996 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39997 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39998 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39999 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
40000 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
40001 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
40002 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
40003 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
40004 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
40005 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
40006 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
40007 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
40008 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
40009 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
40010 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
40011 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
40012 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
40013 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
40014 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
40015 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
40016 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
40017 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
40018 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
40019 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
40020 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
40021 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
40022 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
40023 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
40024 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
40025 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
40026 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
40027 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
40028 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
40029 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
40030 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
40031 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
40032 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
40033 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
40034 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
40035 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
40036 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
40037 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
40038 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
40039 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40040 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
40041 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
40042 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
40043 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40044 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
40045 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40046 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
40047 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40048 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
40049 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40050 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
40051 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
40052 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
40053 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40054 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40055 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40056 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40057 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40058 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40059 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40060 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40061 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40062 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40063 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40064 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40065 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
40066 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40067 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40068 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40069 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40070 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40071 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40072 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40073 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
40074 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40075 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
40076 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40077 { (char *)"DC_StretchBlit", (PyCFunction) _wrap_DC_StretchBlit, METH_VARARGS | METH_KEYWORDS, NULL},
40078 { (char *)"DC_StretchBlitPointSize", (PyCFunction) _wrap_DC_StretchBlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40079 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40080 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
40081 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40082 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
40083 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
40084 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40085 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
40086 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40087 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40088 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
40089 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
40090 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
40091 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
40092 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
40093 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
40094 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40095 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40096 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40097 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40098 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
40099 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
40100 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
40101 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
40102 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
40103 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
40104 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
40105 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40106 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40107 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40108 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
40109 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
40110 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
40111 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
40112 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
40113 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
40114 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
40115 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
40116 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
40117 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
40118 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
40119 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
40120 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
40121 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
40122 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
40123 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
40124 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
40125 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
40126 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
40127 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
40128 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
40129 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
40130 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
40131 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
40132 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
40133 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
40134 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40135 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
40136 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
40137 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
40138 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
40139 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
40140 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
40141 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
40142 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
40143 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
40144 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40145 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
40146 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
40147 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
40148 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40149 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
40150 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
40151 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40152 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
40153 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
40154 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40155 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
40156 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
40157 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
40158 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
40159 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
40160 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
40161 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
40162 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
40163 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
40164 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
40165 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
40166 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
40167 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
40168 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
40169 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
40170 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
40171 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
40172 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
40173 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
40174 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
40175 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
40176 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
40177 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
40178 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
40179 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
40180 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
40181 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
40182 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
40183 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
40184 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
40185 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
40186 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
40187 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
40188 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
40189 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
40190 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
40191 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
40192 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
40193 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
40194 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
40195 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
40196 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
40197 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
40198 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
40199 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
40200 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
40201 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
40202 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
40203 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
40204 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
40205 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
40206 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
40207 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
40208 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
40209 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
40210 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
40211 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
40212 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
40213 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
40214 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
40215 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
40216 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
40217 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
40218 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
40219 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
40220 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
40221 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
40222 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
40223 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
40224 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
40225 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
40226 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
40227 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
40228 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
40229 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
40230 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
40231 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
40232 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
40233 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
40234 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
40235 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
40236 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
40237 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
40238 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
40239 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
40240 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
40241 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
40242 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
40243 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
40244 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
40245 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
40246 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
40247 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
40248 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
40249 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
40250 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
40251 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
40252 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
40253 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
40254 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
40255 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
40256 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
40257 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
40258 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
40259 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
40260 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
40261 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
40262 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
40263 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
40264 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
40265 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
40266 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
40267 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
40268 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
40269 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40270 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
40271 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
40272 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
40273 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
40274 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
40275 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
40276 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
40277 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40278 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
40279 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
40280 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
40281 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
40282 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
40283 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
40284 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
40285 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
40286 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
40287 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
40288 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
40289 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40290 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40291 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40292 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40293 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40294 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40295 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
40296 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
40297 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
40298 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
40299 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
40300 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
40301 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
40302 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
40303 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
40304 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
40305 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
40306 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
40307 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40308 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40309 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40310 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40311 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40312 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
40313 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
40314 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
40315 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
40316 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
40317 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
40318 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
40319 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
40320 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40321 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
40322 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
40323 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
40324 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
40325 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
40326 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
40327 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
40328 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
40329 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
40330 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
40331 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
40332 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
40333 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40334 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
40335 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40336 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40337 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
40338 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40339 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40340 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
40341 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
40342 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
40343 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40344 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40345 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40346 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40347 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
40348 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
40349 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
40350 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
40351 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
40352 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
40353 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
40354 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
40355 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
40356 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
40357 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40358 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40359 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40360 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40361 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40362 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
40363 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
40364 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
40365 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
40366 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
40367 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
40368 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
40369 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
40370 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
40371 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
40372 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
40373 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
40374 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
40375 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
40376 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
40377 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
40378 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
40379 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
40380 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
40381 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
40382 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
40383 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40384 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40385 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40386 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40387 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
40388 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
40389 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40390 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
40391 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
40392 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
40393 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
40394 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
40395 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
40396 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
40397 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
40398 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40399 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
40400 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
40401 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40402 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40403 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
40404 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
40405 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
40406 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
40407 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
40408 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
40409 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40410 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
40411 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40412 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
40413 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40414 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
40415 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
40416 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
40417 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
40418 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
40419 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
40420 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
40421 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
40422 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
40423 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
40424 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
40425 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
40426 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
40427 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
40428 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
40429 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
40430 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
40431 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
40432 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
40433 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
40434 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40435 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
40436 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40437 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40438 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40439 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
40440 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40441 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
40442 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
40443 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
40444 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
40445 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
40446 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
40447 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
40448 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
40449 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
40450 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
40451 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
40452 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
40453 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
40454 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
40455 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
40456 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
40457 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
40458 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
40459 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
40460 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
40461 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
40462 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
40463 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
40464 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
40465 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
40466 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
40467 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
40468 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
40469 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
40470 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
40471 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
40472 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
40473 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
40474 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
40475 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
40476 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
40477 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
40478 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
40479 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
40480 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
40481 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
40482 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
40483 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40484 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
40485 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
40486 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
40487 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
40488 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
40489 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
40490 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40491 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
40492 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
40493 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
40494 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
40495 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
40496 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
40497 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
40498 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
40499 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
40500 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
40501 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
40502 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
40503 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40504 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40505 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
40506 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
40507 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40508 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40509 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40510 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
40511 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
40512 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40513 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
40514 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40515 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
40516 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40517 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
40518 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40519 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
40520 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40521 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
40522 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
40523 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
40524 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40525 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40526 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40527 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40528 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40529 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40530 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40531 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40532 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40533 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40534 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40535 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40536 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
40537 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40538 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40539 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40540 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40541 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40542 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40543 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40544 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
40545 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40546 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40547 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
40548 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40549 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40550 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
40551 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
40552 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40553 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40554 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40555 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40556 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
40557 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
40558 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
40559 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40560 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40561 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
40562 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
40563 { NULL, NULL, 0, NULL }
40564 };
40565
40566
40567 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
40568
40569 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
40570 return (void *)((wxClientDC *) ((wxPaintDC *) x));
40571 }
40572 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
40573 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
40574 }
40575 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
40576 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
40577 }
40578 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
40579 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
40580 }
40581 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
40582 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
40583 }
40584 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
40585 return (void *)((wxWindowDC *) ((wxClientDC *) x));
40586 }
40587 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
40588 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
40589 }
40590 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
40591 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40592 }
40593 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
40594 return (void *)((wxLocale *) ((wxPyLocale *) x));
40595 }
40596 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
40597 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
40598 }
40599 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
40600 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
40601 }
40602 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
40603 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40604 }
40605 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
40606 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
40607 }
40608 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
40609 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
40610 }
40611 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
40612 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
40613 }
40614 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
40615 return (void *)((wxGDIObject *) ((wxIcon *) x));
40616 }
40617 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
40618 return (void *)((wxGDIObject *) ((wxPalette *) x));
40619 }
40620 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
40621 return (void *)((wxGDIObject *) ((wxPen *) x));
40622 }
40623 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
40624 return (void *)((wxGDIObject *) ((wxFont *) x));
40625 }
40626 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
40627 return (void *)((wxGDIObject *) ((wxCursor *) x));
40628 }
40629 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
40630 return (void *)((wxGDIObject *) ((wxBitmap *) x));
40631 }
40632 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
40633 return (void *)((wxGDIObject *) ((wxRegion *) x));
40634 }
40635 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
40636 return (void *)((wxGDIObject *) ((wxBrush *) x));
40637 }
40638 static void *_p_wxGCDCTo_p_wxDC(void *x) {
40639 return (void *)((wxDC *) ((wxGCDC *) x));
40640 }
40641 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
40642 return (void *)((wxDC *) ((wxScreenDC *) x));
40643 }
40644 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
40645 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40646 }
40647 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
40648 return (void *)((wxDC *) ((wxMirrorDC *) x));
40649 }
40650 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
40651 return (void *)((wxDC *) ((wxWindowDC *) x));
40652 }
40653 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
40654 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
40655 }
40656 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
40657 return (void *)((wxDC *) ((wxMetaFileDC *) x));
40658 }
40659 static void *_p_wxClientDCTo_p_wxDC(void *x) {
40660 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
40661 }
40662 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
40663 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40664 }
40665 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
40666 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40667 }
40668 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
40669 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
40670 }
40671 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
40672 return (void *)((wxDC *) ((wxPostScriptDC *) x));
40673 }
40674 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
40675 return (void *)((wxDC *) ((wxPrinterDC *) x));
40676 }
40677 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
40678 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
40679 }
40680 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
40681 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
40682 }
40683 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
40684 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
40685 }
40686 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
40687 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
40688 }
40689 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40690 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40691 }
40692 static void *_p_wxPenTo_p_wxObject(void *x) {
40693 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
40694 }
40695 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
40696 return (void *)((wxObject *) ((wxRegionIterator *) x));
40697 }
40698 static void *_p_wxEventBlockerTo_p_wxObject(void *x) {
40699 return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x));
40700 }
40701 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40702 return (void *)((wxObject *) ((wxSizerItem *) x));
40703 }
40704 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40705 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40706 }
40707 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
40708 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
40709 }
40710 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
40711 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
40712 }
40713 static void *_p_wxIconTo_p_wxObject(void *x) {
40714 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
40715 }
40716 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
40717 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
40718 }
40719 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
40720 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
40721 }
40722 static void *_p_wxSizerTo_p_wxObject(void *x) {
40723 return (void *)((wxObject *) ((wxSizer *) x));
40724 }
40725 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40726 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40727 }
40728 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40729 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40730 }
40731 static void *_p_wxEventTo_p_wxObject(void *x) {
40732 return (void *)((wxObject *) ((wxEvent *) x));
40733 }
40734 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
40735 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
40736 }
40737 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
40738 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
40739 }
40740 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
40741 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
40742 }
40743 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
40744 return (void *)((wxObject *) ((wxPseudoDC *) x));
40745 }
40746 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
40747 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
40748 }
40749 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40750 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40751 }
40752 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40753 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40754 }
40755 static void *_p_wxDCTo_p_wxObject(void *x) {
40756 return (void *)((wxObject *) ((wxDC *) x));
40757 }
40758 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40759 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40760 }
40761 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40762 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40763 }
40764 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40765 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40766 }
40767 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40768 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40769 }
40770 static void *_p_wxControlTo_p_wxObject(void *x) {
40771 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40772 }
40773 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
40774 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
40775 }
40776 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40777 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40778 }
40779 static void *_p_wxClientDCTo_p_wxObject(void *x) {
40780 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
40781 }
40782 static void *_p_wxFSFileTo_p_wxObject(void *x) {
40783 return (void *)((wxObject *) ((wxFSFile *) x));
40784 }
40785 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
40786 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
40787 }
40788 static void *_p_wxRegionTo_p_wxObject(void *x) {
40789 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
40790 }
40791 static void *_p_wxPySizerTo_p_wxObject(void *x) {
40792 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40793 }
40794 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
40795 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
40796 }
40797 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
40798 return (void *)((wxObject *) ((wxGDIObject *) x));
40799 }
40800 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
40801 return (void *)((wxObject *) ((wxGraphicsObject *) x));
40802 }
40803 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
40804 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
40805 }
40806 static void *_p_wxEffectsTo_p_wxObject(void *x) {
40807 return (void *)((wxObject *) ((wxEffects *) x));
40808 }
40809 static void *_p_wxPyEventTo_p_wxObject(void *x) {
40810 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40811 }
40812 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40813 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40814 }
40815 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
40816 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
40817 }
40818 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
40819 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
40820 }
40821 static void *_p_wxShowEventTo_p_wxObject(void *x) {
40822 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40823 }
40824 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40825 return (void *)((wxObject *) ((wxMenuItem *) x));
40826 }
40827 static void *_p_wxDateEventTo_p_wxObject(void *x) {
40828 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40829 }
40830 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40831 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40832 }
40833 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40834 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40835 }
40836 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40837 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40838 }
40839 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40840 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40841 }
40842 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40843 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40844 }
40845 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40846 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40847 }
40848 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40849 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40850 }
40851 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40852 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40853 }
40854 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40855 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40856 }
40857 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40858 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40859 }
40860 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40861 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40862 }
40863 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40864 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40865 }
40866 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40867 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40868 }
40869 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40870 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40871 }
40872 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40873 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40874 }
40875 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40876 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40877 }
40878 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40879 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40880 }
40881 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40882 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40883 }
40884 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40885 return (void *)((wxObject *) ((wxImageHandler *) x));
40886 }
40887 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40888 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40889 }
40890 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40891 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40892 }
40893 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
40894 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
40895 }
40896 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40897 return (void *)((wxObject *) ((wxEvtHandler *) x));
40898 }
40899 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40900 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40901 }
40902 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
40903 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40904 }
40905 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
40906 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40907 }
40908 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
40909 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
40910 }
40911 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
40912 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
40913 }
40914 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
40915 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
40916 }
40917 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40918 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40919 }
40920 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40921 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40922 }
40923 static void *_p_wxImageTo_p_wxObject(void *x) {
40924 return (void *)((wxObject *) ((wxImage *) x));
40925 }
40926 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40927 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40928 }
40929 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
40930 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
40931 }
40932 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
40933 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
40934 }
40935 static void *_p_wxPaletteTo_p_wxObject(void *x) {
40936 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
40937 }
40938 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
40939 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40940 }
40941 static void *_p_wxImageListTo_p_wxObject(void *x) {
40942 return (void *)((wxObject *) ((wxImageList *) x));
40943 }
40944 static void *_p_wxGCDCTo_p_wxObject(void *x) {
40945 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40946 }
40947 static void *_p_wxCursorTo_p_wxObject(void *x) {
40948 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40949 }
40950 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40951 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40952 }
40953 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40954 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40955 }
40956 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40957 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40958 }
40959 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40960 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40961 }
40962 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40963 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40964 }
40965 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40966 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40967 }
40968 static void *_p_wxWindowTo_p_wxObject(void *x) {
40969 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40970 }
40971 static void *_p_wxMenuTo_p_wxObject(void *x) {
40972 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40973 }
40974 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40975 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40976 }
40977 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40978 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40979 }
40980 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40981 return (void *)((wxObject *) ((wxFileSystem *) x));
40982 }
40983 static void *_p_wxBitmapTo_p_wxObject(void *x) {
40984 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40985 }
40986 static void *_p_wxMaskTo_p_wxObject(void *x) {
40987 return (void *)((wxObject *) ((wxMask *) x));
40988 }
40989 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40990 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40991 }
40992 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40993 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40994 }
40995 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40996 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40997 }
40998 static void *_p_wxPyAppTo_p_wxObject(void *x) {
40999 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
41000 }
41001 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
41002 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
41003 }
41004 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
41005 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
41006 }
41007 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
41008 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
41009 }
41010 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
41011 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
41012 }
41013 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
41014 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
41015 }
41016 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
41017 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
41018 }
41019 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
41020 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
41021 }
41022 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
41023 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
41024 }
41025 static void *_p_wxFontTo_p_wxObject(void *x) {
41026 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
41027 }
41028 static void *_p_wxBrushTo_p_wxObject(void *x) {
41029 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
41030 }
41031 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
41032 return (void *)((wxObject *) ((wxMetaFile *) x));
41033 }
41034 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
41035 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
41036 }
41037 static void *_p_wxColourTo_p_wxObject(void *x) {
41038 return (void *)((wxObject *) ((wxColour *) x));
41039 }
41040 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
41041 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
41042 }
41043 static void *_p_wxValidatorTo_p_wxObject(void *x) {
41044 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
41045 }
41046 static void *_p_wxControlTo_p_wxWindow(void *x) {
41047 return (void *)((wxWindow *) ((wxControl *) x));
41048 }
41049 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
41050 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
41051 }
41052 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
41053 return (void *)((wxWindow *) ((wxMenuBar *) x));
41054 }
41055 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
41056 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
41057 }
41058 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
41059 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
41060 }
41061 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
41062 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
41063 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
41064 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};
41065 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
41066 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
41067 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
41068 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
41069 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
41070 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
41071 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
41072 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
41073 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
41074 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
41075 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
41076 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
41077 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
41078 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
41079 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
41080 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
41081 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
41082 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
41083 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
41084 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
41085 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
41086 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
41087 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
41088 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
41089 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
41090 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
41091 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
41092 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
41093 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
41094 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
41095 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
41096 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
41097 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
41098 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
41099 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
41100 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
41101 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
41102 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
41103 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
41104 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
41105 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
41106 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
41107 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
41108 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
41109 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
41110 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
41111 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
41112 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
41113 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
41114 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
41115 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
41116 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
41117 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
41118 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
41119 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
41120 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
41121 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
41122 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
41123 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
41124 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
41125 static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0};
41126 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
41127 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
41128 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
41129 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
41130 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
41131 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
41132 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
41133 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
41134 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
41135 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
41136 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
41137 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
41138 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
41139 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
41140 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
41141 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
41142 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
41143 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
41144 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
41145 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
41146 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
41147 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
41148 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
41149 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
41150 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
41151 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
41152 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
41153 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
41154 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
41155 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
41156 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
41157 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
41158 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
41159 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
41160 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
41161 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
41162 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
41163 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
41164 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
41165 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
41166 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
41167 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
41168 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
41169 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
41170 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
41171 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
41172 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
41173 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
41174 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
41175 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
41176 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
41177 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
41178 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
41179 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
41180 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
41181 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
41182 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
41183 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
41184 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
41185 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
41186 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
41187 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
41188 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
41189 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
41190 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
41191 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
41192 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
41193 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
41194 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
41195 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
41196 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
41197 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
41198 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
41199 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
41200 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
41201 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
41202 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
41203 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
41204 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
41205 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
41206 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
41207 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
41208 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
41209 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
41210 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
41211 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
41212 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
41213 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
41214 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
41215 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
41216 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
41217 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
41218 static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
41219 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
41220 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
41221 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
41222 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
41223 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
41224 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
41225 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
41226 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
41227 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
41228 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
41229 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
41230
41231 static swig_type_info *swig_type_initial[] = {
41232 &_swigt__p_buffer,
41233 &_swigt__p_char,
41234 &_swigt__p_double,
41235 &_swigt__p_form_ops_t,
41236 &_swigt__p_int,
41237 &_swigt__p_unsigned_char,
41238 &_swigt__p_unsigned_int,
41239 &_swigt__p_unsigned_long,
41240 &_swigt__p_void,
41241 &_swigt__p_wxANIHandler,
41242 &_swigt__p_wxAcceleratorTable,
41243 &_swigt__p_wxActivateEvent,
41244 &_swigt__p_wxAlphaPixelData,
41245 &_swigt__p_wxAlphaPixelData_Accessor,
41246 &_swigt__p_wxAutoBufferedPaintDC,
41247 &_swigt__p_wxBMPHandler,
41248 &_swigt__p_wxBitmap,
41249 &_swigt__p_wxBoxSizer,
41250 &_swigt__p_wxBrush,
41251 &_swigt__p_wxBrushList,
41252 &_swigt__p_wxBufferedDC,
41253 &_swigt__p_wxBufferedPaintDC,
41254 &_swigt__p_wxCURHandler,
41255 &_swigt__p_wxChildFocusEvent,
41256 &_swigt__p_wxClientDC,
41257 &_swigt__p_wxClipboardTextEvent,
41258 &_swigt__p_wxCloseEvent,
41259 &_swigt__p_wxColour,
41260 &_swigt__p_wxColourDatabase,
41261 &_swigt__p_wxCommandEvent,
41262 &_swigt__p_wxContextMenuEvent,
41263 &_swigt__p_wxControl,
41264 &_swigt__p_wxControlWithItems,
41265 &_swigt__p_wxCursor,
41266 &_swigt__p_wxDC,
41267 &_swigt__p_wxDCBrushChanger,
41268 &_swigt__p_wxDCClipper,
41269 &_swigt__p_wxDCOverlay,
41270 &_swigt__p_wxDCPenChanger,
41271 &_swigt__p_wxDCTextColourChanger,
41272 &_swigt__p_wxDash,
41273 &_swigt__p_wxDateEvent,
41274 &_swigt__p_wxDisplayChangedEvent,
41275 &_swigt__p_wxDropFilesEvent,
41276 &_swigt__p_wxDuplexMode,
41277 &_swigt__p_wxEffects,
41278 &_swigt__p_wxEncodingConverter,
41279 &_swigt__p_wxEraseEvent,
41280 &_swigt__p_wxEvent,
41281 &_swigt__p_wxEventBlocker,
41282 &_swigt__p_wxEvtHandler,
41283 &_swigt__p_wxFSFile,
41284 &_swigt__p_wxFileSystem,
41285 &_swigt__p_wxFlexGridSizer,
41286 &_swigt__p_wxFocusEvent,
41287 &_swigt__p_wxFont,
41288 &_swigt__p_wxFontList,
41289 &_swigt__p_wxFontMapper,
41290 &_swigt__p_wxGBSizerItem,
41291 &_swigt__p_wxGCDC,
41292 &_swigt__p_wxGDIObjListBase,
41293 &_swigt__p_wxGDIObject,
41294 &_swigt__p_wxGIFHandler,
41295 &_swigt__p_wxGraphicsBrush,
41296 &_swigt__p_wxGraphicsContext,
41297 &_swigt__p_wxGraphicsFont,
41298 &_swigt__p_wxGraphicsMatrix,
41299 &_swigt__p_wxGraphicsObject,
41300 &_swigt__p_wxGraphicsPath,
41301 &_swigt__p_wxGraphicsPen,
41302 &_swigt__p_wxGraphicsRenderer,
41303 &_swigt__p_wxGridBagSizer,
41304 &_swigt__p_wxGridSizer,
41305 &_swigt__p_wxHeaderButtonParams,
41306 &_swigt__p_wxICOHandler,
41307 &_swigt__p_wxIcon,
41308 &_swigt__p_wxIconBundle,
41309 &_swigt__p_wxIconLocation,
41310 &_swigt__p_wxIconizeEvent,
41311 &_swigt__p_wxIdleEvent,
41312 &_swigt__p_wxImage,
41313 &_swigt__p_wxImageHandler,
41314 &_swigt__p_wxImageList,
41315 &_swigt__p_wxIndividualLayoutConstraint,
41316 &_swigt__p_wxInitDialogEvent,
41317 &_swigt__p_wxJPEGHandler,
41318 &_swigt__p_wxKeyEvent,
41319 &_swigt__p_wxLanguageInfo,
41320 &_swigt__p_wxLayoutConstraints,
41321 &_swigt__p_wxLocale,
41322 &_swigt__p_wxMask,
41323 &_swigt__p_wxMaximizeEvent,
41324 &_swigt__p_wxMemoryDC,
41325 &_swigt__p_wxMenu,
41326 &_swigt__p_wxMenuBar,
41327 &_swigt__p_wxMenuEvent,
41328 &_swigt__p_wxMenuItem,
41329 &_swigt__p_wxMetaFile,
41330 &_swigt__p_wxMetaFileDC,
41331 &_swigt__p_wxMirrorDC,
41332 &_swigt__p_wxMouseCaptureChangedEvent,
41333 &_swigt__p_wxMouseCaptureLostEvent,
41334 &_swigt__p_wxMouseEvent,
41335 &_swigt__p_wxMoveEvent,
41336 &_swigt__p_wxNativeEncodingInfo,
41337 &_swigt__p_wxNativeFontInfo,
41338 &_swigt__p_wxNativePixelData,
41339 &_swigt__p_wxNativePixelData_Accessor,
41340 &_swigt__p_wxNavigationKeyEvent,
41341 &_swigt__p_wxNcPaintEvent,
41342 &_swigt__p_wxNotifyEvent,
41343 &_swigt__p_wxObject,
41344 &_swigt__p_wxOverlay,
41345 &_swigt__p_wxPCXHandler,
41346 &_swigt__p_wxPNGHandler,
41347 &_swigt__p_wxPNMHandler,
41348 &_swigt__p_wxPaintDC,
41349 &_swigt__p_wxPaintEvent,
41350 &_swigt__p_wxPalette,
41351 &_swigt__p_wxPaletteChangedEvent,
41352 &_swigt__p_wxPaperSize,
41353 &_swigt__p_wxPen,
41354 &_swigt__p_wxPenList,
41355 &_swigt__p_wxPixelDataBase,
41356 &_swigt__p_wxPoint,
41357 &_swigt__p_wxPoint2D,
41358 &_swigt__p_wxPostScriptDC,
41359 &_swigt__p_wxPrintData,
41360 &_swigt__p_wxPrinterDC,
41361 &_swigt__p_wxPseudoDC,
41362 &_swigt__p_wxPyApp,
41363 &_swigt__p_wxPyCommandEvent,
41364 &_swigt__p_wxPyEvent,
41365 &_swigt__p_wxPyFontEnumerator,
41366 &_swigt__p_wxPyImageHandler,
41367 &_swigt__p_wxPyLocale,
41368 &_swigt__p_wxPySizer,
41369 &_swigt__p_wxPyValidator,
41370 &_swigt__p_wxQueryNewPaletteEvent,
41371 &_swigt__p_wxRect,
41372 &_swigt__p_wxRect2D,
41373 &_swigt__p_wxRegion,
41374 &_swigt__p_wxRegionIterator,
41375 &_swigt__p_wxRendererNative,
41376 &_swigt__p_wxRendererVersion,
41377 &_swigt__p_wxScreenDC,
41378 &_swigt__p_wxScrollEvent,
41379 &_swigt__p_wxScrollWinEvent,
41380 &_swigt__p_wxSetCursorEvent,
41381 &_swigt__p_wxShowEvent,
41382 &_swigt__p_wxSize,
41383 &_swigt__p_wxSizeEvent,
41384 &_swigt__p_wxSizer,
41385 &_swigt__p_wxSizerItem,
41386 &_swigt__p_wxSplitterRenderParams,
41387 &_swigt__p_wxStaticBoxSizer,
41388 &_swigt__p_wxStdDialogButtonSizer,
41389 &_swigt__p_wxStockGDI,
41390 &_swigt__p_wxString,
41391 &_swigt__p_wxSysColourChangedEvent,
41392 &_swigt__p_wxTGAHandler,
41393 &_swigt__p_wxTIFFHandler,
41394 &_swigt__p_wxUpdateUIEvent,
41395 &_swigt__p_wxValidator,
41396 &_swigt__p_wxWindow,
41397 &_swigt__p_wxWindowCreateEvent,
41398 &_swigt__p_wxWindowDC,
41399 &_swigt__p_wxWindowDestroyEvent,
41400 &_swigt__p_wxXPMHandler,
41401 };
41402
41403 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
41404 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
41405 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
41406 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
41407 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
41408 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
41409 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
41410 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
41411 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
41412 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
41413 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
41414 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41415 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
41416 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
41417 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
41418 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}};
41419 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41420 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}};
41421 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
41422 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
41423 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
41424 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}};
41425 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
41426 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
41427 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
41428 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
41429 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
41430 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
41431 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
41432 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
41433 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
41434 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
41435 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
41436 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
41437 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
41438 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}};
41439 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}};
41440 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
41441 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
41442 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
41443 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
41444 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}};
41445 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
41446 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
41447 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
41448 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
41449 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
41450 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
41451 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
41452 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
41453 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
41454 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
41455 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}};
41456 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
41457 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}};
41458 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
41459 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
41460 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
41461 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
41462 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
41463 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
41464 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
41465 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
41466 static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}};
41467 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
41468 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
41469 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
41470 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
41471 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41472 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41473 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
41474 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
41475 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
41476 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
41477 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
41478 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41479 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41480 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
41481 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
41482 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41483 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41484 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41485 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41486 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41487 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41488 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
41489 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
41490 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
41491 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
41492 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
41493 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
41494 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
41495 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
41496 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
41497 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
41498 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
41499 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41500 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41501 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41502 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
41503 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
41504 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
41505 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
41506 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
41507 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
41508 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
41509 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41510 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41511 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
41512 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
41513 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
41514 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
41515 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
41516 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
41517 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
41518 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
41519 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
41520 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
41521 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
41522 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
41523 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
41524 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
41525 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41526 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41527 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
41528 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
41529 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41530 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41531 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
41532 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
41533 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
41534 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
41535 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41536 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41537 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
41538 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41539 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41540 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
41541 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
41542 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
41543 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_wxEventBlocker, _p_wxEventBlockerTo_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_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_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_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_wxDateEvent, _p_wxDateEventTo_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}};
41544 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
41545 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41546 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
41547 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
41548 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
41549 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
41550 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}};
41551 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
41552 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
41553 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
41554 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
41555 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
41556 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
41557 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
41558 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
41559 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
41560 static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
41561 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
41562 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
41563 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
41564 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
41565 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
41566 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
41567 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
41568 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
41569 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
41570 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}};
41571 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}};
41572
41573 static swig_cast_info *swig_cast_initial[] = {
41574 _swigc__p_buffer,
41575 _swigc__p_char,
41576 _swigc__p_double,
41577 _swigc__p_form_ops_t,
41578 _swigc__p_int,
41579 _swigc__p_unsigned_char,
41580 _swigc__p_unsigned_int,
41581 _swigc__p_unsigned_long,
41582 _swigc__p_void,
41583 _swigc__p_wxANIHandler,
41584 _swigc__p_wxAcceleratorTable,
41585 _swigc__p_wxActivateEvent,
41586 _swigc__p_wxAlphaPixelData,
41587 _swigc__p_wxAlphaPixelData_Accessor,
41588 _swigc__p_wxAutoBufferedPaintDC,
41589 _swigc__p_wxBMPHandler,
41590 _swigc__p_wxBitmap,
41591 _swigc__p_wxBoxSizer,
41592 _swigc__p_wxBrush,
41593 _swigc__p_wxBrushList,
41594 _swigc__p_wxBufferedDC,
41595 _swigc__p_wxBufferedPaintDC,
41596 _swigc__p_wxCURHandler,
41597 _swigc__p_wxChildFocusEvent,
41598 _swigc__p_wxClientDC,
41599 _swigc__p_wxClipboardTextEvent,
41600 _swigc__p_wxCloseEvent,
41601 _swigc__p_wxColour,
41602 _swigc__p_wxColourDatabase,
41603 _swigc__p_wxCommandEvent,
41604 _swigc__p_wxContextMenuEvent,
41605 _swigc__p_wxControl,
41606 _swigc__p_wxControlWithItems,
41607 _swigc__p_wxCursor,
41608 _swigc__p_wxDC,
41609 _swigc__p_wxDCBrushChanger,
41610 _swigc__p_wxDCClipper,
41611 _swigc__p_wxDCOverlay,
41612 _swigc__p_wxDCPenChanger,
41613 _swigc__p_wxDCTextColourChanger,
41614 _swigc__p_wxDash,
41615 _swigc__p_wxDateEvent,
41616 _swigc__p_wxDisplayChangedEvent,
41617 _swigc__p_wxDropFilesEvent,
41618 _swigc__p_wxDuplexMode,
41619 _swigc__p_wxEffects,
41620 _swigc__p_wxEncodingConverter,
41621 _swigc__p_wxEraseEvent,
41622 _swigc__p_wxEvent,
41623 _swigc__p_wxEventBlocker,
41624 _swigc__p_wxEvtHandler,
41625 _swigc__p_wxFSFile,
41626 _swigc__p_wxFileSystem,
41627 _swigc__p_wxFlexGridSizer,
41628 _swigc__p_wxFocusEvent,
41629 _swigc__p_wxFont,
41630 _swigc__p_wxFontList,
41631 _swigc__p_wxFontMapper,
41632 _swigc__p_wxGBSizerItem,
41633 _swigc__p_wxGCDC,
41634 _swigc__p_wxGDIObjListBase,
41635 _swigc__p_wxGDIObject,
41636 _swigc__p_wxGIFHandler,
41637 _swigc__p_wxGraphicsBrush,
41638 _swigc__p_wxGraphicsContext,
41639 _swigc__p_wxGraphicsFont,
41640 _swigc__p_wxGraphicsMatrix,
41641 _swigc__p_wxGraphicsObject,
41642 _swigc__p_wxGraphicsPath,
41643 _swigc__p_wxGraphicsPen,
41644 _swigc__p_wxGraphicsRenderer,
41645 _swigc__p_wxGridBagSizer,
41646 _swigc__p_wxGridSizer,
41647 _swigc__p_wxHeaderButtonParams,
41648 _swigc__p_wxICOHandler,
41649 _swigc__p_wxIcon,
41650 _swigc__p_wxIconBundle,
41651 _swigc__p_wxIconLocation,
41652 _swigc__p_wxIconizeEvent,
41653 _swigc__p_wxIdleEvent,
41654 _swigc__p_wxImage,
41655 _swigc__p_wxImageHandler,
41656 _swigc__p_wxImageList,
41657 _swigc__p_wxIndividualLayoutConstraint,
41658 _swigc__p_wxInitDialogEvent,
41659 _swigc__p_wxJPEGHandler,
41660 _swigc__p_wxKeyEvent,
41661 _swigc__p_wxLanguageInfo,
41662 _swigc__p_wxLayoutConstraints,
41663 _swigc__p_wxLocale,
41664 _swigc__p_wxMask,
41665 _swigc__p_wxMaximizeEvent,
41666 _swigc__p_wxMemoryDC,
41667 _swigc__p_wxMenu,
41668 _swigc__p_wxMenuBar,
41669 _swigc__p_wxMenuEvent,
41670 _swigc__p_wxMenuItem,
41671 _swigc__p_wxMetaFile,
41672 _swigc__p_wxMetaFileDC,
41673 _swigc__p_wxMirrorDC,
41674 _swigc__p_wxMouseCaptureChangedEvent,
41675 _swigc__p_wxMouseCaptureLostEvent,
41676 _swigc__p_wxMouseEvent,
41677 _swigc__p_wxMoveEvent,
41678 _swigc__p_wxNativeEncodingInfo,
41679 _swigc__p_wxNativeFontInfo,
41680 _swigc__p_wxNativePixelData,
41681 _swigc__p_wxNativePixelData_Accessor,
41682 _swigc__p_wxNavigationKeyEvent,
41683 _swigc__p_wxNcPaintEvent,
41684 _swigc__p_wxNotifyEvent,
41685 _swigc__p_wxObject,
41686 _swigc__p_wxOverlay,
41687 _swigc__p_wxPCXHandler,
41688 _swigc__p_wxPNGHandler,
41689 _swigc__p_wxPNMHandler,
41690 _swigc__p_wxPaintDC,
41691 _swigc__p_wxPaintEvent,
41692 _swigc__p_wxPalette,
41693 _swigc__p_wxPaletteChangedEvent,
41694 _swigc__p_wxPaperSize,
41695 _swigc__p_wxPen,
41696 _swigc__p_wxPenList,
41697 _swigc__p_wxPixelDataBase,
41698 _swigc__p_wxPoint,
41699 _swigc__p_wxPoint2D,
41700 _swigc__p_wxPostScriptDC,
41701 _swigc__p_wxPrintData,
41702 _swigc__p_wxPrinterDC,
41703 _swigc__p_wxPseudoDC,
41704 _swigc__p_wxPyApp,
41705 _swigc__p_wxPyCommandEvent,
41706 _swigc__p_wxPyEvent,
41707 _swigc__p_wxPyFontEnumerator,
41708 _swigc__p_wxPyImageHandler,
41709 _swigc__p_wxPyLocale,
41710 _swigc__p_wxPySizer,
41711 _swigc__p_wxPyValidator,
41712 _swigc__p_wxQueryNewPaletteEvent,
41713 _swigc__p_wxRect,
41714 _swigc__p_wxRect2D,
41715 _swigc__p_wxRegion,
41716 _swigc__p_wxRegionIterator,
41717 _swigc__p_wxRendererNative,
41718 _swigc__p_wxRendererVersion,
41719 _swigc__p_wxScreenDC,
41720 _swigc__p_wxScrollEvent,
41721 _swigc__p_wxScrollWinEvent,
41722 _swigc__p_wxSetCursorEvent,
41723 _swigc__p_wxShowEvent,
41724 _swigc__p_wxSize,
41725 _swigc__p_wxSizeEvent,
41726 _swigc__p_wxSizer,
41727 _swigc__p_wxSizerItem,
41728 _swigc__p_wxSplitterRenderParams,
41729 _swigc__p_wxStaticBoxSizer,
41730 _swigc__p_wxStdDialogButtonSizer,
41731 _swigc__p_wxStockGDI,
41732 _swigc__p_wxString,
41733 _swigc__p_wxSysColourChangedEvent,
41734 _swigc__p_wxTGAHandler,
41735 _swigc__p_wxTIFFHandler,
41736 _swigc__p_wxUpdateUIEvent,
41737 _swigc__p_wxValidator,
41738 _swigc__p_wxWindow,
41739 _swigc__p_wxWindowCreateEvent,
41740 _swigc__p_wxWindowDC,
41741 _swigc__p_wxWindowDestroyEvent,
41742 _swigc__p_wxXPMHandler,
41743 };
41744
41745
41746 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
41747
41748 static swig_const_info swig_const_table[] = {
41749 {0, 0, 0, 0.0, 0, 0}};
41750
41751 #ifdef __cplusplus
41752 }
41753 #endif
41754 /* -----------------------------------------------------------------------------
41755 * Type initialization:
41756 * This problem is tough by the requirement that no dynamic
41757 * memory is used. Also, since swig_type_info structures store pointers to
41758 * swig_cast_info structures and swig_cast_info structures store pointers back
41759 * to swig_type_info structures, we need some lookup code at initialization.
41760 * The idea is that swig generates all the structures that are needed.
41761 * The runtime then collects these partially filled structures.
41762 * The SWIG_InitializeModule function takes these initial arrays out of
41763 * swig_module, and does all the lookup, filling in the swig_module.types
41764 * array with the correct data and linking the correct swig_cast_info
41765 * structures together.
41766 *
41767 * The generated swig_type_info structures are assigned staticly to an initial
41768 * array. We just loop though that array, and handle each type individually.
41769 * First we lookup if this type has been already loaded, and if so, use the
41770 * loaded structure instead of the generated one. Then we have to fill in the
41771 * cast linked list. The cast data is initially stored in something like a
41772 * two-dimensional array. Each row corresponds to a type (there are the same
41773 * number of rows as there are in the swig_type_initial array). Each entry in
41774 * a column is one of the swig_cast_info structures for that type.
41775 * The cast_initial array is actually an array of arrays, because each row has
41776 * a variable number of columns. So to actually build the cast linked list,
41777 * we find the array of casts associated with the type, and loop through it
41778 * adding the casts to the list. The one last trick we need to do is making
41779 * sure the type pointer in the swig_cast_info struct is correct.
41780 *
41781 * First off, we lookup the cast->type name to see if it is already loaded.
41782 * There are three cases to handle:
41783 * 1) If the cast->type has already been loaded AND the type we are adding
41784 * casting info to has not been loaded (it is in this module), THEN we
41785 * replace the cast->type pointer with the type pointer that has already
41786 * been loaded.
41787 * 2) If BOTH types (the one we are adding casting info to, and the
41788 * cast->type) are loaded, THEN the cast info has already been loaded by
41789 * the previous module so we just ignore it.
41790 * 3) Finally, if cast->type has not already been loaded, then we add that
41791 * swig_cast_info to the linked list (because the cast->type) pointer will
41792 * be correct.
41793 * ----------------------------------------------------------------------------- */
41794
41795 #ifdef __cplusplus
41796 extern "C" {
41797 #if 0
41798 } /* c-mode */
41799 #endif
41800 #endif
41801
41802 #if 0
41803 #define SWIGRUNTIME_DEBUG
41804 #endif
41805
41806 SWIGRUNTIME void
41807 SWIG_InitializeModule(void *clientdata) {
41808 size_t i;
41809 swig_module_info *module_head;
41810 static int init_run = 0;
41811
41812 clientdata = clientdata;
41813
41814 if (init_run) return;
41815 init_run = 1;
41816
41817 /* Initialize the swig_module */
41818 swig_module.type_initial = swig_type_initial;
41819 swig_module.cast_initial = swig_cast_initial;
41820
41821 /* Try and load any already created modules */
41822 module_head = SWIG_GetModule(clientdata);
41823 if (module_head) {
41824 swig_module.next = module_head->next;
41825 module_head->next = &swig_module;
41826 } else {
41827 /* This is the first module loaded */
41828 swig_module.next = &swig_module;
41829 SWIG_SetModule(clientdata, &swig_module);
41830 }
41831
41832 /* Now work on filling in swig_module.types */
41833 #ifdef SWIGRUNTIME_DEBUG
41834 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41835 #endif
41836 for (i = 0; i < swig_module.size; ++i) {
41837 swig_type_info *type = 0;
41838 swig_type_info *ret;
41839 swig_cast_info *cast;
41840
41841 #ifdef SWIGRUNTIME_DEBUG
41842 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41843 #endif
41844
41845 /* if there is another module already loaded */
41846 if (swig_module.next != &swig_module) {
41847 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
41848 }
41849 if (type) {
41850 /* Overwrite clientdata field */
41851 #ifdef SWIGRUNTIME_DEBUG
41852 printf("SWIG_InitializeModule: found type %s\n", type->name);
41853 #endif
41854 if (swig_module.type_initial[i]->clientdata) {
41855 type->clientdata = swig_module.type_initial[i]->clientdata;
41856 #ifdef SWIGRUNTIME_DEBUG
41857 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41858 #endif
41859 }
41860 } else {
41861 type = swig_module.type_initial[i];
41862 }
41863
41864 /* Insert casting types */
41865 cast = swig_module.cast_initial[i];
41866 while (cast->type) {
41867 /* Don't need to add information already in the list */
41868 ret = 0;
41869 #ifdef SWIGRUNTIME_DEBUG
41870 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41871 #endif
41872 if (swig_module.next != &swig_module) {
41873 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41874 #ifdef SWIGRUNTIME_DEBUG
41875 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41876 #endif
41877 }
41878 if (ret) {
41879 if (type == swig_module.type_initial[i]) {
41880 #ifdef SWIGRUNTIME_DEBUG
41881 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41882 #endif
41883 cast->type = ret;
41884 ret = 0;
41885 } else {
41886 /* Check for casting already in the list */
41887 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41888 #ifdef SWIGRUNTIME_DEBUG
41889 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41890 #endif
41891 if (!ocast) ret = 0;
41892 }
41893 }
41894
41895 if (!ret) {
41896 #ifdef SWIGRUNTIME_DEBUG
41897 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41898 #endif
41899 if (type->cast) {
41900 type->cast->prev = cast;
41901 cast->next = type->cast;
41902 }
41903 type->cast = cast;
41904 }
41905 cast++;
41906 }
41907 /* Set entry in modules->types array equal to the type */
41908 swig_module.types[i] = type;
41909 }
41910 swig_module.types[i] = 0;
41911
41912 #ifdef SWIGRUNTIME_DEBUG
41913 printf("**** SWIG_InitializeModule: Cast List ******\n");
41914 for (i = 0; i < swig_module.size; ++i) {
41915 int j = 0;
41916 swig_cast_info *cast = swig_module.cast_initial[i];
41917 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41918 while (cast->type) {
41919 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41920 cast++;
41921 ++j;
41922 }
41923 printf("---- Total casts: %d\n",j);
41924 }
41925 printf("**** SWIG_InitializeModule: Cast List ******\n");
41926 #endif
41927 }
41928
41929 /* This function will propagate the clientdata field of type to
41930 * any new swig_type_info structures that have been added into the list
41931 * of equivalent types. It is like calling
41932 * SWIG_TypeClientData(type, clientdata) a second time.
41933 */
41934 SWIGRUNTIME void
41935 SWIG_PropagateClientData(void) {
41936 size_t i;
41937 swig_cast_info *equiv;
41938 static int init_run = 0;
41939
41940 if (init_run) return;
41941 init_run = 1;
41942
41943 for (i = 0; i < swig_module.size; i++) {
41944 if (swig_module.types[i]->clientdata) {
41945 equiv = swig_module.types[i]->cast;
41946 while (equiv) {
41947 if (!equiv->converter) {
41948 if (equiv->type && !equiv->type->clientdata)
41949 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41950 }
41951 equiv = equiv->next;
41952 }
41953 }
41954 }
41955 }
41956
41957 #ifdef __cplusplus
41958 #if 0
41959 {
41960 /* c-mode */
41961 #endif
41962 }
41963 #endif
41964
41965
41966
41967 #ifdef __cplusplus
41968 extern "C" {
41969 #endif
41970
41971 /* Python-specific SWIG API */
41972 #define SWIG_newvarlink() SWIG_Python_newvarlink()
41973 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41974 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41975
41976 /* -----------------------------------------------------------------------------
41977 * global variable support code.
41978 * ----------------------------------------------------------------------------- */
41979
41980 typedef struct swig_globalvar {
41981 char *name; /* Name of global variable */
41982 PyObject *(*get_attr)(void); /* Return the current value */
41983 int (*set_attr)(PyObject *); /* Set the value */
41984 struct swig_globalvar *next;
41985 } swig_globalvar;
41986
41987 typedef struct swig_varlinkobject {
41988 PyObject_HEAD
41989 swig_globalvar *vars;
41990 } swig_varlinkobject;
41991
41992 SWIGINTERN PyObject *
41993 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41994 return PyString_FromString("<Swig global variables>");
41995 }
41996
41997 SWIGINTERN PyObject *
41998 swig_varlink_str(swig_varlinkobject *v) {
41999 PyObject *str = PyString_FromString("(");
42000 swig_globalvar *var;
42001 for (var = v->vars; var; var=var->next) {
42002 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
42003 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
42004 }
42005 PyString_ConcatAndDel(&str,PyString_FromString(")"));
42006 return str;
42007 }
42008
42009 SWIGINTERN int
42010 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
42011 PyObject *str = swig_varlink_str(v);
42012 fprintf(fp,"Swig global variables ");
42013 fprintf(fp,"%s\n", PyString_AsString(str));
42014 Py_DECREF(str);
42015 return 0;
42016 }
42017
42018 SWIGINTERN void
42019 swig_varlink_dealloc(swig_varlinkobject *v) {
42020 swig_globalvar *var = v->vars;
42021 while (var) {
42022 swig_globalvar *n = var->next;
42023 free(var->name);
42024 free(var);
42025 var = n;
42026 }
42027 }
42028
42029 SWIGINTERN PyObject *
42030 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
42031 PyObject *res = NULL;
42032 swig_globalvar *var = v->vars;
42033 while (var) {
42034 if (strcmp(var->name,n) == 0) {
42035 res = (*var->get_attr)();
42036 break;
42037 }
42038 var = var->next;
42039 }
42040 if (res == NULL && !PyErr_Occurred()) {
42041 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
42042 }
42043 return res;
42044 }
42045
42046 SWIGINTERN int
42047 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
42048 int res = 1;
42049 swig_globalvar *var = v->vars;
42050 while (var) {
42051 if (strcmp(var->name,n) == 0) {
42052 res = (*var->set_attr)(p);
42053 break;
42054 }
42055 var = var->next;
42056 }
42057 if (res == 1 && !PyErr_Occurred()) {
42058 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
42059 }
42060 return res;
42061 }
42062
42063 SWIGINTERN PyTypeObject*
42064 swig_varlink_type(void) {
42065 static char varlink__doc__[] = "Swig var link object";
42066 static PyTypeObject varlink_type;
42067 static int type_init = 0;
42068 if (!type_init) {
42069 const PyTypeObject tmp
42070 = {
42071 PyObject_HEAD_INIT(NULL)
42072 0, /* Number of items in variable part (ob_size) */
42073 (char *)"swigvarlink", /* Type name (tp_name) */
42074 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
42075 0, /* Itemsize (tp_itemsize) */
42076 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
42077 (printfunc) swig_varlink_print, /* Print (tp_print) */
42078 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
42079 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
42080 0, /* tp_compare */
42081 (reprfunc) swig_varlink_repr, /* tp_repr */
42082 0, /* tp_as_number */
42083 0, /* tp_as_sequence */
42084 0, /* tp_as_mapping */
42085 0, /* tp_hash */
42086 0, /* tp_call */
42087 (reprfunc)swig_varlink_str, /* tp_str */
42088 0, /* tp_getattro */
42089 0, /* tp_setattro */
42090 0, /* tp_as_buffer */
42091 0, /* tp_flags */
42092 varlink__doc__, /* tp_doc */
42093 0, /* tp_traverse */
42094 0, /* tp_clear */
42095 0, /* tp_richcompare */
42096 0, /* tp_weaklistoffset */
42097 #if PY_VERSION_HEX >= 0x02020000
42098 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
42099 #endif
42100 #if PY_VERSION_HEX >= 0x02030000
42101 0, /* tp_del */
42102 #endif
42103 #ifdef COUNT_ALLOCS
42104 0,0,0,0 /* tp_alloc -> tp_next */
42105 #endif
42106 };
42107 varlink_type = tmp;
42108 varlink_type.ob_type = &PyType_Type;
42109 type_init = 1;
42110 }
42111 return &varlink_type;
42112 }
42113
42114 /* Create a variable linking object for use later */
42115 SWIGINTERN PyObject *
42116 SWIG_Python_newvarlink(void) {
42117 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
42118 if (result) {
42119 result->vars = 0;
42120 }
42121 return ((PyObject*) result);
42122 }
42123
42124 SWIGINTERN void
42125 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
42126 swig_varlinkobject *v = (swig_varlinkobject *) p;
42127 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
42128 if (gv) {
42129 size_t size = strlen(name)+1;
42130 gv->name = (char *)malloc(size);
42131 if (gv->name) {
42132 strncpy(gv->name,name,size);
42133 gv->get_attr = get_attr;
42134 gv->set_attr = set_attr;
42135 gv->next = v->vars;
42136 }
42137 }
42138 v->vars = gv;
42139 }
42140
42141 SWIGINTERN PyObject *
42142 SWIG_globals() {
42143 static PyObject *_SWIG_globals = 0;
42144 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
42145 return _SWIG_globals;
42146 }
42147
42148 /* -----------------------------------------------------------------------------
42149 * constants/methods manipulation
42150 * ----------------------------------------------------------------------------- */
42151
42152 /* Install Constants */
42153 SWIGINTERN void
42154 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
42155 PyObject *obj = 0;
42156 size_t i;
42157 for (i = 0; constants[i].type; ++i) {
42158 switch(constants[i].type) {
42159 case SWIG_PY_POINTER:
42160 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
42161 break;
42162 case SWIG_PY_BINARY:
42163 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
42164 break;
42165 default:
42166 obj = 0;
42167 break;
42168 }
42169 if (obj) {
42170 PyDict_SetItemString(d, constants[i].name, obj);
42171 Py_DECREF(obj);
42172 }
42173 }
42174 }
42175
42176 /* -----------------------------------------------------------------------------*/
42177 /* Fix SwigMethods to carry the callback ptrs when needed */
42178 /* -----------------------------------------------------------------------------*/
42179
42180 SWIGINTERN void
42181 SWIG_Python_FixMethods(PyMethodDef *methods,
42182 swig_const_info *const_table,
42183 swig_type_info **types,
42184 swig_type_info **types_initial) {
42185 size_t i;
42186 for (i = 0; methods[i].ml_name; ++i) {
42187 const char *c = methods[i].ml_doc;
42188 if (c && (c = strstr(c, "swig_ptr: "))) {
42189 int j;
42190 swig_const_info *ci = 0;
42191 const char *name = c + 10;
42192 for (j = 0; const_table[j].type; ++j) {
42193 if (strncmp(const_table[j].name, name,
42194 strlen(const_table[j].name)) == 0) {
42195 ci = &(const_table[j]);
42196 break;
42197 }
42198 }
42199 if (ci) {
42200 size_t shift = (ci->ptype) - types;
42201 swig_type_info *ty = types_initial[shift];
42202 size_t ldoc = (c - methods[i].ml_doc);
42203 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
42204 char *ndoc = (char*)malloc(ldoc + lptr + 10);
42205 if (ndoc) {
42206 char *buff = ndoc;
42207 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
42208 if (ptr) {
42209 strncpy(buff, methods[i].ml_doc, ldoc);
42210 buff += ldoc;
42211 strncpy(buff, "swig_ptr: ", 10);
42212 buff += 10;
42213 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
42214 methods[i].ml_doc = ndoc;
42215 }
42216 }
42217 }
42218 }
42219 }
42220 }
42221
42222 #ifdef __cplusplus
42223 }
42224 #endif
42225
42226 /* -----------------------------------------------------------------------------*
42227 * Partial Init method
42228 * -----------------------------------------------------------------------------*/
42229
42230 #ifdef __cplusplus
42231 extern "C"
42232 #endif
42233 SWIGEXPORT void SWIG_init(void) {
42234 PyObject *m, *d;
42235
42236 /* Fix SwigMethods to carry the callback ptrs when needed */
42237 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
42238
42239 m = Py_InitModule((char *) SWIG_name, SwigMethods);
42240 d = PyModule_GetDict(m);
42241
42242 SWIG_InitializeModule(0);
42243 SWIG_InstallConstants(d,swig_const_table);
42244
42245
42246 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
42247 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
42248 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
42249 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
42250 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
42251 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
42252 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
42253 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
42254 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
42255 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
42256 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
42257 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
42258 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
42259 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
42260 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
42261 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
42262 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
42263 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
42264 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
42265 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
42266 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
42267 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
42268 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
42269 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
42270 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
42271 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
42272 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
42273 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
42274 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
42275 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
42276 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
42277 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
42278 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
42279 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
42280 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
42281 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
42282 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
42283 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
42284 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
42285 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
42286 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
42287 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
42288 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
42289 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
42290 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
42291 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
42292 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
42293 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
42294 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
42295 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
42296 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
42297 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
42298 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
42299 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
42300 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
42301 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
42302 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
42303 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
42304 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
42305 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
42306 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
42307 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
42308 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
42309 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
42310 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
42311 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
42312 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
42313 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
42314 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
42315 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
42316 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
42317 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
42318 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
42319 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
42320 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
42321 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
42322 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
42323 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
42324 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
42325 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
42326 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
42327 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
42328 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
42329 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
42330 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
42331 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
42332 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
42333 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
42334 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
42335 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
42336 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
42337 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
42338 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
42339 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
42340 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
42341 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
42342 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
42343 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
42344 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
42345 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
42346 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
42347 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
42348 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
42349 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
42350 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
42351 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
42352 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
42353 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
42354 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
42355 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
42356 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
42357 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
42358 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
42359 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
42360 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
42361 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
42362 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
42363 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
42364 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
42365 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
42366 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
42367 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
42368 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
42369 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
42370 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
42371 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
42372 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
42373 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
42374 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
42375 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
42376 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
42377 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
42378
42379 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
42380
42381 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
42382 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
42383 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
42384 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
42385 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
42386 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
42387 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
42388 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
42389 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
42390 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
42391 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
42392 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
42393 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
42394 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
42395 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
42396 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
42397 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
42398 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
42399 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
42400 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
42401 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
42402 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
42403 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
42404 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
42405 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
42406 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
42407 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
42408 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
42409 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
42410 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
42411 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
42412 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
42413 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
42414 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
42415 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
42416 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
42417 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
42418 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
42419 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
42420 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
42421 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
42422 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
42423 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
42424 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
42425 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
42426 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
42427 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
42428 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
42429 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
42430 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
42431 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
42432 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
42433 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
42434 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
42435 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
42436 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
42437 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
42438 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
42439 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
42440 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
42441 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
42442 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
42443 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
42444 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
42445 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
42446 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
42447 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
42448 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
42449 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
42450 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
42451 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
42452 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
42453 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
42454 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
42455 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
42456 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
42457 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
42458 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
42459 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
42460 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
42461 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
42462 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
42463 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
42464 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
42465 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
42466 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
42467 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
42468 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
42469 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
42470 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
42471 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
42472 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
42473 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
42474 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
42475 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
42476 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
42477 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
42478 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
42479 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
42480 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
42481 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
42482 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
42483 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
42484 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
42485 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
42486 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
42487 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
42488 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
42489 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
42490 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
42491 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
42492 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
42493 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
42494 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
42495 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
42496 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
42497 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
42498 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
42499 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
42500 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
42501 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
42502 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
42503 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
42504 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
42505 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
42506 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
42507 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
42508 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
42509 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
42510 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
42511 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
42512 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
42513 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
42514 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
42515 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
42516 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
42517 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
42518 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
42519 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
42520 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
42521 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
42522 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
42523 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
42524 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
42525 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
42526 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
42527 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
42528 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
42529 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
42530 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
42531 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
42532 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
42533 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
42534 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
42535 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
42536 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
42537 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
42538 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
42539 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
42540 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
42541 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
42542 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
42543 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
42544 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
42545 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
42546 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
42547 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
42548 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
42549 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
42550 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
42551 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
42552 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
42553 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
42554 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
42555 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
42556 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
42557 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
42558 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
42559 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
42560 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
42561 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
42562 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
42563 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
42564 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
42565 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
42566 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
42567 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
42568 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
42569 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
42570 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
42571 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
42572 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
42573 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
42574 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
42575 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
42576 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
42577 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
42578 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
42579 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
42580 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
42581 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
42582 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
42583 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
42584 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
42585 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
42586 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
42587 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
42588 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
42589 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
42590 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
42591 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
42592 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
42593 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
42594 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
42595 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
42596 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
42597 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
42598 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
42599 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
42600 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
42601 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
42602 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
42603 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
42604 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
42605 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
42606 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
42607 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
42608 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
42609 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
42610 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
42611 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
42612 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
42613 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
42614 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
42615 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
42616 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
42617 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
42618 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
42619 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
42620 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
42621 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
42622 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
42623 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
42624 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
42625 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
42626 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
42627 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
42628 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
42629 SWIG_Python_SetConstant(d, "BUFFER_USES_SHARED_BUFFER",SWIG_From_int(static_cast< int >(wxBUFFER_USES_SHARED_BUFFER)));
42630 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
42631 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
42632 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
42633 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
42634 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
42635 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
42636 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
42637 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
42638 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
42639 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
42640 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
42641 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
42642 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
42643 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
42644 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
42645 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
42646 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
42647 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
42648 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
42649 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
42650 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
42651 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
42652 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
42653 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
42654 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
42655 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
42656 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
42657 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
42658 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
42659 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
42660 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
42661 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
42662 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
42663 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
42664 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
42665 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
42666 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
42667 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
42668 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
42669 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
42670 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
42671 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
42672 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
42673 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
42674 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
42675 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
42676 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
42677 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
42678 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
42679 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
42680 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
42681 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
42682 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
42683 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
42684 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
42685 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
42686 SWIG_addvarlink(SWIG_globals(),(char*)"NullIconBundle",NullIconBundle_get, NullIconBundle_set);
42687 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
42688 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
42689 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
42690 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
42691 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
42692 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
42693 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
42694 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
42695 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
42696 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
42697 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
42698 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
42699 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
42700 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
42701 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
42702 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
42703 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
42704 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
42705 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
42706 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
42707
42708 // Work around a chicken/egg problem in drawlist.cpp
42709 wxPyDrawList_SetAPIPtr();
42710
42711 }
42712